configure 324 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for ngircd 0.10.3.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Name of the host.
  215. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  216. # so uname gets run too.
  217. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  218. exec 6>&1
  219. #
  220. # Initializations.
  221. #
  222. ac_default_prefix=/usr/local
  223. ac_config_libobj_dir=.
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS=
  227. MAKEFLAGS=
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. # Maximum number of lines to put in a shell here document.
  230. # This variable seems obsolete. It should probably be removed, and
  231. # only ac_max_sed_lines should be used.
  232. : ${ac_max_here_lines=38}
  233. # Identity of this package.
  234. PACKAGE_NAME='ngircd'
  235. PACKAGE_TARNAME='ngircd'
  236. PACKAGE_VERSION='0.10.3'
  237. PACKAGE_STRING='ngircd 0.10.3'
  238. PACKAGE_BUGREPORT=''
  239. ac_unique_file="src/ngircd/ngircd.c"
  240. # Factoring default headers for most tests.
  241. ac_includes_default="\
  242. #include <stdio.h>
  243. #if HAVE_SYS_TYPES_H
  244. # include <sys/types.h>
  245. #endif
  246. #if HAVE_SYS_STAT_H
  247. # include <sys/stat.h>
  248. #endif
  249. #if STDC_HEADERS
  250. # include <stdlib.h>
  251. # include <stddef.h>
  252. #else
  253. # if HAVE_STDLIB_H
  254. # include <stdlib.h>
  255. # endif
  256. #endif
  257. #if HAVE_STRING_H
  258. # if !STDC_HEADERS && HAVE_MEMORY_H
  259. # include <memory.h>
  260. # endif
  261. # include <string.h>
  262. #endif
  263. #if HAVE_STRINGS_H
  264. # include <strings.h>
  265. #endif
  266. #if HAVE_INTTYPES_H
  267. # include <inttypes.h>
  268. #else
  269. # if HAVE_STDINT_H
  270. # include <stdint.h>
  271. # endif
  272. #endif
  273. #if HAVE_UNISTD_H
  274. # include <unistd.h>
  275. #endif"
  276. 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR LIBOBJS LTLIBOBJS'
  277. ac_subst_files=''
  278. # Initialize some variables set by options.
  279. ac_init_help=
  280. ac_init_version=false
  281. # The variables have the same names as the options, with
  282. # dashes changed to underlines.
  283. cache_file=/dev/null
  284. exec_prefix=NONE
  285. no_create=
  286. no_recursion=
  287. prefix=NONE
  288. program_prefix=NONE
  289. program_suffix=NONE
  290. program_transform_name=s,x,x,
  291. silent=
  292. site=
  293. srcdir=
  294. verbose=
  295. x_includes=NONE
  296. x_libraries=NONE
  297. # Installation directory options.
  298. # These are left unexpanded so users can "make install exec_prefix=/foo"
  299. # and all the variables that are supposed to be based on exec_prefix
  300. # by default will actually change.
  301. # Use braces instead of parens because sh, perl, etc. also accept them.
  302. bindir='${exec_prefix}/bin'
  303. sbindir='${exec_prefix}/sbin'
  304. libexecdir='${exec_prefix}/libexec'
  305. datadir='${prefix}/share'
  306. sysconfdir='${prefix}/etc'
  307. sharedstatedir='${prefix}/com'
  308. localstatedir='${prefix}/var'
  309. libdir='${exec_prefix}/lib'
  310. includedir='${prefix}/include'
  311. oldincludedir='/usr/include'
  312. infodir='${prefix}/info'
  313. mandir='${prefix}/man'
  314. ac_prev=
  315. for ac_option
  316. do
  317. # If the previous option needs an argument, assign it.
  318. if test -n "$ac_prev"; then
  319. eval "$ac_prev=\$ac_option"
  320. ac_prev=
  321. continue
  322. fi
  323. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  324. # Accept the important Cygnus configure options, so we can diagnose typos.
  325. case $ac_option in
  326. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  327. ac_prev=bindir ;;
  328. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  329. bindir=$ac_optarg ;;
  330. -build | --build | --buil | --bui | --bu)
  331. ac_prev=build_alias ;;
  332. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  333. build_alias=$ac_optarg ;;
  334. -cache-file | --cache-file | --cache-fil | --cache-fi \
  335. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  336. ac_prev=cache_file ;;
  337. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  338. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  339. cache_file=$ac_optarg ;;
  340. --config-cache | -C)
  341. cache_file=config.cache ;;
  342. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  343. ac_prev=datadir ;;
  344. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  345. | --da=*)
  346. datadir=$ac_optarg ;;
  347. -disable-* | --disable-*)
  348. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  349. # Reject names that are not valid shell variable names.
  350. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  351. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  352. { (exit 1); exit 1; }; }
  353. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  354. eval "enable_$ac_feature=no" ;;
  355. -enable-* | --enable-*)
  356. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  357. # Reject names that are not valid shell variable names.
  358. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  359. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  360. { (exit 1); exit 1; }; }
  361. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  362. case $ac_option in
  363. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  364. *) ac_optarg=yes ;;
  365. esac
  366. eval "enable_$ac_feature='$ac_optarg'" ;;
  367. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  368. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  369. | --exec | --exe | --ex)
  370. ac_prev=exec_prefix ;;
  371. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  372. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  373. | --exec=* | --exe=* | --ex=*)
  374. exec_prefix=$ac_optarg ;;
  375. -gas | --gas | --ga | --g)
  376. # Obsolete; use --with-gas.
  377. with_gas=yes ;;
  378. -help | --help | --hel | --he | -h)
  379. ac_init_help=long ;;
  380. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  381. ac_init_help=recursive ;;
  382. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  383. ac_init_help=short ;;
  384. -host | --host | --hos | --ho)
  385. ac_prev=host_alias ;;
  386. -host=* | --host=* | --hos=* | --ho=*)
  387. host_alias=$ac_optarg ;;
  388. -includedir | --includedir | --includedi | --included | --include \
  389. | --includ | --inclu | --incl | --inc)
  390. ac_prev=includedir ;;
  391. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  392. | --includ=* | --inclu=* | --incl=* | --inc=*)
  393. includedir=$ac_optarg ;;
  394. -infodir | --infodir | --infodi | --infod | --info | --inf)
  395. ac_prev=infodir ;;
  396. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  397. infodir=$ac_optarg ;;
  398. -libdir | --libdir | --libdi | --libd)
  399. ac_prev=libdir ;;
  400. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  401. libdir=$ac_optarg ;;
  402. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  403. | --libexe | --libex | --libe)
  404. ac_prev=libexecdir ;;
  405. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  406. | --libexe=* | --libex=* | --libe=*)
  407. libexecdir=$ac_optarg ;;
  408. -localstatedir | --localstatedir | --localstatedi | --localstated \
  409. | --localstate | --localstat | --localsta | --localst \
  410. | --locals | --local | --loca | --loc | --lo)
  411. ac_prev=localstatedir ;;
  412. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  413. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  414. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  415. localstatedir=$ac_optarg ;;
  416. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  417. ac_prev=mandir ;;
  418. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  419. mandir=$ac_optarg ;;
  420. -nfp | --nfp | --nf)
  421. # Obsolete; use --without-fp.
  422. with_fp=no ;;
  423. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. | --no-cr | --no-c | -n)
  425. no_create=yes ;;
  426. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  428. no_recursion=yes ;;
  429. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  430. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  431. | --oldin | --oldi | --old | --ol | --o)
  432. ac_prev=oldincludedir ;;
  433. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  434. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  435. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  436. oldincludedir=$ac_optarg ;;
  437. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  438. ac_prev=prefix ;;
  439. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  440. prefix=$ac_optarg ;;
  441. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  442. | --program-pre | --program-pr | --program-p)
  443. ac_prev=program_prefix ;;
  444. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  445. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  446. program_prefix=$ac_optarg ;;
  447. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  448. | --program-suf | --program-su | --program-s)
  449. ac_prev=program_suffix ;;
  450. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  451. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  452. program_suffix=$ac_optarg ;;
  453. -program-transform-name | --program-transform-name \
  454. | --program-transform-nam | --program-transform-na \
  455. | --program-transform-n | --program-transform- \
  456. | --program-transform | --program-transfor \
  457. | --program-transfo | --program-transf \
  458. | --program-trans | --program-tran \
  459. | --progr-tra | --program-tr | --program-t)
  460. ac_prev=program_transform_name ;;
  461. -program-transform-name=* | --program-transform-name=* \
  462. | --program-transform-nam=* | --program-transform-na=* \
  463. | --program-transform-n=* | --program-transform-=* \
  464. | --program-transform=* | --program-transfor=* \
  465. | --program-transfo=* | --program-transf=* \
  466. | --program-trans=* | --program-tran=* \
  467. | --progr-tra=* | --program-tr=* | --program-t=*)
  468. program_transform_name=$ac_optarg ;;
  469. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  470. | -silent | --silent | --silen | --sile | --sil)
  471. silent=yes ;;
  472. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  473. ac_prev=sbindir ;;
  474. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  475. | --sbi=* | --sb=*)
  476. sbindir=$ac_optarg ;;
  477. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  478. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  479. | --sharedst | --shareds | --shared | --share | --shar \
  480. | --sha | --sh)
  481. ac_prev=sharedstatedir ;;
  482. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  483. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  484. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  485. | --sha=* | --sh=*)
  486. sharedstatedir=$ac_optarg ;;
  487. -site | --site | --sit)
  488. ac_prev=site ;;
  489. -site=* | --site=* | --sit=*)
  490. site=$ac_optarg ;;
  491. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  492. ac_prev=srcdir ;;
  493. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  494. srcdir=$ac_optarg ;;
  495. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  496. | --syscon | --sysco | --sysc | --sys | --sy)
  497. ac_prev=sysconfdir ;;
  498. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  499. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  500. sysconfdir=$ac_optarg ;;
  501. -target | --target | --targe | --targ | --tar | --ta | --t)
  502. ac_prev=target_alias ;;
  503. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  504. target_alias=$ac_optarg ;;
  505. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  506. verbose=yes ;;
  507. -version | --version | --versio | --versi | --vers | -V)
  508. ac_init_version=: ;;
  509. -with-* | --with-*)
  510. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  511. # Reject names that are not valid shell variable names.
  512. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  513. { echo "$as_me: error: invalid package name: $ac_package" >&2
  514. { (exit 1); exit 1; }; }
  515. ac_package=`echo $ac_package| sed 's/-/_/g'`
  516. case $ac_option in
  517. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  518. *) ac_optarg=yes ;;
  519. esac
  520. eval "with_$ac_package='$ac_optarg'" ;;
  521. -without-* | --without-*)
  522. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  523. # Reject names that are not valid shell variable names.
  524. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  525. { echo "$as_me: error: invalid package name: $ac_package" >&2
  526. { (exit 1); exit 1; }; }
  527. ac_package=`echo $ac_package | sed 's/-/_/g'`
  528. eval "with_$ac_package=no" ;;
  529. --x)
  530. # Obsolete; use --with-x.
  531. with_x=yes ;;
  532. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  533. | --x-incl | --x-inc | --x-in | --x-i)
  534. ac_prev=x_includes ;;
  535. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  536. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  537. x_includes=$ac_optarg ;;
  538. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  539. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  540. ac_prev=x_libraries ;;
  541. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  542. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  543. x_libraries=$ac_optarg ;;
  544. -*) { echo "$as_me: error: unrecognized option: $ac_option
  545. Try \`$0 --help' for more information." >&2
  546. { (exit 1); exit 1; }; }
  547. ;;
  548. *=*)
  549. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  550. # Reject names that are not valid shell variable names.
  551. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  552. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  553. { (exit 1); exit 1; }; }
  554. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  555. eval "$ac_envvar='$ac_optarg'"
  556. export $ac_envvar ;;
  557. *)
  558. # FIXME: should be removed in autoconf 3.0.
  559. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  560. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  561. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  562. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  563. ;;
  564. esac
  565. done
  566. if test -n "$ac_prev"; then
  567. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  568. { echo "$as_me: error: missing argument to $ac_option" >&2
  569. { (exit 1); exit 1; }; }
  570. fi
  571. # Be sure to have absolute paths.
  572. for ac_var in exec_prefix prefix
  573. do
  574. eval ac_val=$`echo $ac_var`
  575. case $ac_val in
  576. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  577. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  578. { (exit 1); exit 1; }; };;
  579. esac
  580. done
  581. # Be sure to have absolute paths.
  582. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  583. localstatedir libdir includedir oldincludedir infodir mandir
  584. do
  585. eval ac_val=$`echo $ac_var`
  586. case $ac_val in
  587. [\\/$]* | ?:[\\/]* ) ;;
  588. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  589. { (exit 1); exit 1; }; };;
  590. esac
  591. done
  592. # There might be people who depend on the old broken behavior: `$host'
  593. # used to hold the argument of --host etc.
  594. # FIXME: To remove some day.
  595. build=$build_alias
  596. host=$host_alias
  597. target=$target_alias
  598. # FIXME: To remove some day.
  599. if test "x$host_alias" != x; then
  600. if test "x$build_alias" = x; then
  601. cross_compiling=maybe
  602. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  603. If a cross compiler is detected then cross compile mode will be used." >&2
  604. elif test "x$build_alias" != "x$host_alias"; then
  605. cross_compiling=yes
  606. fi
  607. fi
  608. ac_tool_prefix=
  609. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  610. test "$silent" = yes && exec 6>/dev/null
  611. # Find the source files, if location was not specified.
  612. if test -z "$srcdir"; then
  613. ac_srcdir_defaulted=yes
  614. # Try the directory containing this script, then its parent.
  615. ac_confdir=`(dirname "$0") 2>/dev/null ||
  616. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  617. X"$0" : 'X\(//\)[^/]' \| \
  618. X"$0" : 'X\(//\)$' \| \
  619. X"$0" : 'X\(/\)' \| \
  620. . : '\(.\)' 2>/dev/null ||
  621. echo X"$0" |
  622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  623. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  624. /^X\(\/\/\)$/{ s//\1/; q; }
  625. /^X\(\/\).*/{ s//\1/; q; }
  626. s/.*/./; q'`
  627. srcdir=$ac_confdir
  628. if test ! -r $srcdir/$ac_unique_file; then
  629. srcdir=..
  630. fi
  631. else
  632. ac_srcdir_defaulted=no
  633. fi
  634. if test ! -r $srcdir/$ac_unique_file; then
  635. if test "$ac_srcdir_defaulted" = yes; then
  636. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  637. { (exit 1); exit 1; }; }
  638. else
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  640. { (exit 1); exit 1; }; }
  641. fi
  642. fi
  643. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  644. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  645. { (exit 1); exit 1; }; }
  646. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  647. ac_env_build_alias_set=${build_alias+set}
  648. ac_env_build_alias_value=$build_alias
  649. ac_cv_env_build_alias_set=${build_alias+set}
  650. ac_cv_env_build_alias_value=$build_alias
  651. ac_env_host_alias_set=${host_alias+set}
  652. ac_env_host_alias_value=$host_alias
  653. ac_cv_env_host_alias_set=${host_alias+set}
  654. ac_cv_env_host_alias_value=$host_alias
  655. ac_env_target_alias_set=${target_alias+set}
  656. ac_env_target_alias_value=$target_alias
  657. ac_cv_env_target_alias_set=${target_alias+set}
  658. ac_cv_env_target_alias_value=$target_alias
  659. ac_env_CC_set=${CC+set}
  660. ac_env_CC_value=$CC
  661. ac_cv_env_CC_set=${CC+set}
  662. ac_cv_env_CC_value=$CC
  663. ac_env_CFLAGS_set=${CFLAGS+set}
  664. ac_env_CFLAGS_value=$CFLAGS
  665. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  666. ac_cv_env_CFLAGS_value=$CFLAGS
  667. ac_env_LDFLAGS_set=${LDFLAGS+set}
  668. ac_env_LDFLAGS_value=$LDFLAGS
  669. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_cv_env_LDFLAGS_value=$LDFLAGS
  671. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  672. ac_env_CPPFLAGS_value=$CPPFLAGS
  673. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_env_CPP_set=${CPP+set}
  676. ac_env_CPP_value=$CPP
  677. ac_cv_env_CPP_set=${CPP+set}
  678. ac_cv_env_CPP_value=$CPP
  679. #
  680. # Report the --help message.
  681. #
  682. if test "$ac_init_help" = "long"; then
  683. # Omit some internal or obsolete options to make the list less imposing.
  684. # This message is too long to be a string in the A/UX 3.1 sh.
  685. cat <<_ACEOF
  686. \`configure' configures ngircd 0.10.3 to adapt to many kinds of systems.
  687. Usage: $0 [OPTION]... [VAR=VALUE]...
  688. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  689. VAR=VALUE. See below for descriptions of some of the useful variables.
  690. Defaults for the options are specified in brackets.
  691. Configuration:
  692. -h, --help display this help and exit
  693. --help=short display options specific to this package
  694. --help=recursive display the short help of all the included packages
  695. -V, --version display version information and exit
  696. -q, --quiet, --silent do not print \`checking...' messages
  697. --cache-file=FILE cache test results in FILE [disabled]
  698. -C, --config-cache alias for \`--cache-file=config.cache'
  699. -n, --no-create do not create output files
  700. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  701. _ACEOF
  702. cat <<_ACEOF
  703. Installation directories:
  704. --prefix=PREFIX install architecture-independent files in PREFIX
  705. [$ac_default_prefix]
  706. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  707. [PREFIX]
  708. By default, \`make install' will install all the files in
  709. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  710. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  711. for instance \`--prefix=\$HOME'.
  712. For better control, use the options below.
  713. Fine tuning of the installation directories:
  714. --bindir=DIR user executables [EPREFIX/bin]
  715. --sbindir=DIR system admin executables [EPREFIX/sbin]
  716. --libexecdir=DIR program executables [EPREFIX/libexec]
  717. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  718. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  719. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  720. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  721. --libdir=DIR object code libraries [EPREFIX/lib]
  722. --includedir=DIR C header files [PREFIX/include]
  723. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  724. --infodir=DIR info documentation [PREFIX/info]
  725. --mandir=DIR man documentation [PREFIX/man]
  726. _ACEOF
  727. cat <<\_ACEOF
  728. Program names:
  729. --program-prefix=PREFIX prepend PREFIX to installed program names
  730. --program-suffix=SUFFIX append SUFFIX to installed program names
  731. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  732. System types:
  733. --build=BUILD configure for building on BUILD [guessed]
  734. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  735. --target=TARGET configure for building compilers for TARGET [HOST]
  736. _ACEOF
  737. fi
  738. if test -n "$ac_init_help"; then
  739. case $ac_init_help in
  740. short | recursive ) echo "Configuration of ngircd 0.10.3:";;
  741. esac
  742. cat <<\_ACEOF
  743. Optional Features:
  744. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  745. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  746. --disable-dependency-tracking speeds up one-time build
  747. --enable-dependency-tracking do not reject slow dependency extractors
  748. --disable-ircplus disable IRC+ protocol
  749. --enable-sniffer enable IRC traffic sniffer (enables debug mode)
  750. --enable-debug show additional debug output
  751. --enable-strict-rfc strict RFC conformance -- may break clients!
  752. Optional Packages:
  753. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  754. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  755. --without-syslog disable syslog (autodetected by default)
  756. --without-zlib disable zlib compression (autodetected by default)
  757. --without-select disable select IO support (autodetected by default)
  758. --without-poll disable poll support (autodetected by default)
  759. --without-devpoll disable /dev/poll IO support (autodetected by default)
  760. --without-epoll disable epoll IO support (autodetected by default)
  761. --without-kqueue disable kqueue IO support (autodetected by default)
  762. --with-tcp-wrappers enable TCP wrappers support
  763. --with-zeroconf enable support for "Zeroconf"
  764. --with-ident enable "IDENT" ("AUTH") protocol support
  765. Some influential environment variables:
  766. CC C compiler command
  767. CFLAGS C compiler flags
  768. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  769. nonstandard directory <lib dir>
  770. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  771. headers in a nonstandard directory <include dir>
  772. CPP C preprocessor
  773. Use these variables to override the choices made by `configure' or to help
  774. it to find libraries and programs with nonstandard names/locations.
  775. _ACEOF
  776. fi
  777. if test "$ac_init_help" = "recursive"; then
  778. # If there are subdirs, report their specific --help.
  779. ac_popdir=`pwd`
  780. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  781. test -d $ac_dir || continue
  782. ac_builddir=.
  783. if test "$ac_dir" != .; then
  784. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  785. # A "../" for each directory in $ac_dir_suffix.
  786. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  787. else
  788. ac_dir_suffix= ac_top_builddir=
  789. fi
  790. case $srcdir in
  791. .) # No --srcdir option. We are building in place.
  792. ac_srcdir=.
  793. if test -z "$ac_top_builddir"; then
  794. ac_top_srcdir=.
  795. else
  796. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  797. fi ;;
  798. [\\/]* | ?:[\\/]* ) # Absolute path.
  799. ac_srcdir=$srcdir$ac_dir_suffix;
  800. ac_top_srcdir=$srcdir ;;
  801. *) # Relative path.
  802. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  803. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  804. esac
  805. # Do not use `cd foo && pwd` to compute absolute paths, because
  806. # the directories may not exist.
  807. case `pwd` in
  808. .) ac_abs_builddir="$ac_dir";;
  809. *)
  810. case "$ac_dir" in
  811. .) ac_abs_builddir=`pwd`;;
  812. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  813. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  814. esac;;
  815. esac
  816. case $ac_abs_builddir in
  817. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  818. *)
  819. case ${ac_top_builddir}. in
  820. .) ac_abs_top_builddir=$ac_abs_builddir;;
  821. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  822. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  823. esac;;
  824. esac
  825. case $ac_abs_builddir in
  826. .) ac_abs_srcdir=$ac_srcdir;;
  827. *)
  828. case $ac_srcdir in
  829. .) ac_abs_srcdir=$ac_abs_builddir;;
  830. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  831. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  832. esac;;
  833. esac
  834. case $ac_abs_builddir in
  835. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  836. *)
  837. case $ac_top_srcdir in
  838. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  839. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  840. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  841. esac;;
  842. esac
  843. cd $ac_dir
  844. # Check for guested configure; otherwise get Cygnus style configure.
  845. if test -f $ac_srcdir/configure.gnu; then
  846. echo
  847. $SHELL $ac_srcdir/configure.gnu --help=recursive
  848. elif test -f $ac_srcdir/configure; then
  849. echo
  850. $SHELL $ac_srcdir/configure --help=recursive
  851. elif test -f $ac_srcdir/configure.ac ||
  852. test -f $ac_srcdir/configure.in; then
  853. echo
  854. $ac_configure --help
  855. else
  856. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  857. fi
  858. cd "$ac_popdir"
  859. done
  860. fi
  861. test -n "$ac_init_help" && exit 0
  862. if $ac_init_version; then
  863. cat <<\_ACEOF
  864. ngircd configure 0.10.3
  865. generated by GNU Autoconf 2.59
  866. Copyright (C) 2003 Free Software Foundation, Inc.
  867. This configure script is free software; the Free Software Foundation
  868. gives unlimited permission to copy, distribute and modify it.
  869. _ACEOF
  870. exit 0
  871. fi
  872. exec 5>config.log
  873. cat >&5 <<_ACEOF
  874. This file contains any messages produced by compilers while
  875. running configure, to aid debugging if configure makes a mistake.
  876. It was created by ngircd $as_me 0.10.3, which was
  877. generated by GNU Autoconf 2.59. Invocation command line was
  878. $ $0 $@
  879. _ACEOF
  880. {
  881. cat <<_ASUNAME
  882. ## --------- ##
  883. ## Platform. ##
  884. ## --------- ##
  885. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  886. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  887. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  888. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  889. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  890. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  891. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  892. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  893. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  894. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  895. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  896. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  897. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  898. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  899. _ASUNAME
  900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  901. for as_dir in $PATH
  902. do
  903. IFS=$as_save_IFS
  904. test -z "$as_dir" && as_dir=.
  905. echo "PATH: $as_dir"
  906. done
  907. } >&5
  908. cat >&5 <<_ACEOF
  909. ## ----------- ##
  910. ## Core tests. ##
  911. ## ----------- ##
  912. _ACEOF
  913. # Keep a trace of the command line.
  914. # Strip out --no-create and --no-recursion so they do not pile up.
  915. # Strip out --silent because we don't want to record it for future runs.
  916. # Also quote any args containing shell meta-characters.
  917. # Make two passes to allow for proper duplicate-argument suppression.
  918. ac_configure_args=
  919. ac_configure_args0=
  920. ac_configure_args1=
  921. ac_sep=
  922. ac_must_keep_next=false
  923. for ac_pass in 1 2
  924. do
  925. for ac_arg
  926. do
  927. case $ac_arg in
  928. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  929. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  930. | -silent | --silent | --silen | --sile | --sil)
  931. continue ;;
  932. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  933. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  934. esac
  935. case $ac_pass in
  936. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  937. 2)
  938. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  939. if test $ac_must_keep_next = true; then
  940. ac_must_keep_next=false # Got value, back to normal.
  941. else
  942. case $ac_arg in
  943. *=* | --config-cache | -C | -disable-* | --disable-* \
  944. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  945. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  946. | -with-* | --with-* | -without-* | --without-* | --x)
  947. case "$ac_configure_args0 " in
  948. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  949. esac
  950. ;;
  951. -* ) ac_must_keep_next=true ;;
  952. esac
  953. fi
  954. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  955. # Get rid of the leading space.
  956. ac_sep=" "
  957. ;;
  958. esac
  959. done
  960. done
  961. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  962. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  963. # When interrupted or exit'd, cleanup temporary files, and complete
  964. # config.log. We remove comments because anyway the quotes in there
  965. # would cause problems or look ugly.
  966. # WARNING: Be sure not to use single quotes in there, as some shells,
  967. # such as our DU 5.0 friend, will then `close' the trap.
  968. trap 'exit_status=$?
  969. # Save into config.log some information that might help in debugging.
  970. {
  971. echo
  972. cat <<\_ASBOX
  973. ## ---------------- ##
  974. ## Cache variables. ##
  975. ## ---------------- ##
  976. _ASBOX
  977. echo
  978. # The following way of writing the cache mishandles newlines in values,
  979. {
  980. (set) 2>&1 |
  981. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  982. *ac_space=\ *)
  983. sed -n \
  984. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  985. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  986. ;;
  987. *)
  988. sed -n \
  989. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  990. ;;
  991. esac;
  992. }
  993. echo
  994. cat <<\_ASBOX
  995. ## ----------------- ##
  996. ## Output variables. ##
  997. ## ----------------- ##
  998. _ASBOX
  999. echo
  1000. for ac_var in $ac_subst_vars
  1001. do
  1002. eval ac_val=$`echo $ac_var`
  1003. echo "$ac_var='"'"'$ac_val'"'"'"
  1004. done | sort
  1005. echo
  1006. if test -n "$ac_subst_files"; then
  1007. cat <<\_ASBOX
  1008. ## ------------- ##
  1009. ## Output files. ##
  1010. ## ------------- ##
  1011. _ASBOX
  1012. echo
  1013. for ac_var in $ac_subst_files
  1014. do
  1015. eval ac_val=$`echo $ac_var`
  1016. echo "$ac_var='"'"'$ac_val'"'"'"
  1017. done | sort
  1018. echo
  1019. fi
  1020. if test -s confdefs.h; then
  1021. cat <<\_ASBOX
  1022. ## ----------- ##
  1023. ## confdefs.h. ##
  1024. ## ----------- ##
  1025. _ASBOX
  1026. echo
  1027. sed "/^$/d" confdefs.h | sort
  1028. echo
  1029. fi
  1030. test "$ac_signal" != 0 &&
  1031. echo "$as_me: caught signal $ac_signal"
  1032. echo "$as_me: exit $exit_status"
  1033. } >&5
  1034. rm -f core *.core &&
  1035. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1036. exit $exit_status
  1037. ' 0
  1038. for ac_signal in 1 2 13 15; do
  1039. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1040. done
  1041. ac_signal=0
  1042. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1043. rm -rf conftest* confdefs.h
  1044. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1045. echo >confdefs.h
  1046. # Predefined preprocessor variables.
  1047. cat >>confdefs.h <<_ACEOF
  1048. #define PACKAGE_NAME "$PACKAGE_NAME"
  1049. _ACEOF
  1050. cat >>confdefs.h <<_ACEOF
  1051. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1052. _ACEOF
  1053. cat >>confdefs.h <<_ACEOF
  1054. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1055. _ACEOF
  1056. cat >>confdefs.h <<_ACEOF
  1057. #define PACKAGE_STRING "$PACKAGE_STRING"
  1058. _ACEOF
  1059. cat >>confdefs.h <<_ACEOF
  1060. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1061. _ACEOF
  1062. # Let the site file select an alternate cache file if it wants to.
  1063. # Prefer explicitly selected file to automatically selected ones.
  1064. if test -z "$CONFIG_SITE"; then
  1065. if test "x$prefix" != xNONE; then
  1066. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1067. else
  1068. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1069. fi
  1070. fi
  1071. for ac_site_file in $CONFIG_SITE; do
  1072. if test -r "$ac_site_file"; then
  1073. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1074. echo "$as_me: loading site script $ac_site_file" >&6;}
  1075. sed 's/^/| /' "$ac_site_file" >&5
  1076. . "$ac_site_file"
  1077. fi
  1078. done
  1079. if test -r "$cache_file"; then
  1080. # Some versions of bash will fail to source /dev/null (special
  1081. # files actually), so we avoid doing that.
  1082. if test -f "$cache_file"; then
  1083. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1084. echo "$as_me: loading cache $cache_file" >&6;}
  1085. case $cache_file in
  1086. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1087. *) . ./$cache_file;;
  1088. esac
  1089. fi
  1090. else
  1091. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1092. echo "$as_me: creating cache $cache_file" >&6;}
  1093. >$cache_file
  1094. fi
  1095. # Check that the precious variables saved in the cache have kept the same
  1096. # value.
  1097. ac_cache_corrupted=false
  1098. for ac_var in `(set) 2>&1 |
  1099. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1100. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1101. eval ac_new_set=\$ac_env_${ac_var}_set
  1102. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1103. eval ac_new_val="\$ac_env_${ac_var}_value"
  1104. case $ac_old_set,$ac_new_set in
  1105. set,)
  1106. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1107. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1108. ac_cache_corrupted=: ;;
  1109. ,set)
  1110. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1111. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1112. ac_cache_corrupted=: ;;
  1113. ,);;
  1114. *)
  1115. if test "x$ac_old_val" != "x$ac_new_val"; then
  1116. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1117. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1118. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1119. echo "$as_me: former value: $ac_old_val" >&2;}
  1120. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1121. echo "$as_me: current value: $ac_new_val" >&2;}
  1122. ac_cache_corrupted=:
  1123. fi;;
  1124. esac
  1125. # Pass precious variables to config.status.
  1126. if test "$ac_new_set" = set; then
  1127. case $ac_new_val in
  1128. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1129. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1130. *) ac_arg=$ac_var=$ac_new_val ;;
  1131. esac
  1132. case " $ac_configure_args " in
  1133. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1134. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1135. esac
  1136. fi
  1137. done
  1138. if $ac_cache_corrupted; then
  1139. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1140. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1141. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1142. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1143. { (exit 1); exit 1; }; }
  1144. fi
  1145. ac_ext=c
  1146. ac_cpp='$CPP $CPPFLAGS'
  1147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1150. ac_aux_dir=
  1151. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1152. if test -f $ac_dir/install-sh; then
  1153. ac_aux_dir=$ac_dir
  1154. ac_install_sh="$ac_aux_dir/install-sh -c"
  1155. break
  1156. elif test -f $ac_dir/install.sh; then
  1157. ac_aux_dir=$ac_dir
  1158. ac_install_sh="$ac_aux_dir/install.sh -c"
  1159. break
  1160. elif test -f $ac_dir/shtool; then
  1161. ac_aux_dir=$ac_dir
  1162. ac_install_sh="$ac_aux_dir/shtool install -c"
  1163. break
  1164. fi
  1165. done
  1166. if test -z "$ac_aux_dir"; then
  1167. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1168. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1169. { (exit 1); exit 1; }; }
  1170. fi
  1171. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1172. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1173. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1174. # Make sure we can run config.sub.
  1175. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1176. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1177. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1178. { (exit 1); exit 1; }; }
  1179. echo "$as_me:$LINENO: checking build system type" >&5
  1180. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1181. if test "${ac_cv_build+set}" = set; then
  1182. echo $ECHO_N "(cached) $ECHO_C" >&6
  1183. else
  1184. ac_cv_build_alias=$build_alias
  1185. test -z "$ac_cv_build_alias" &&
  1186. ac_cv_build_alias=`$ac_config_guess`
  1187. test -z "$ac_cv_build_alias" &&
  1188. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1189. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1190. { (exit 1); exit 1; }; }
  1191. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1192. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1193. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1194. { (exit 1); exit 1; }; }
  1195. fi
  1196. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1197. echo "${ECHO_T}$ac_cv_build" >&6
  1198. build=$ac_cv_build
  1199. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1200. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1201. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1202. echo "$as_me:$LINENO: checking host system type" >&5
  1203. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1204. if test "${ac_cv_host+set}" = set; then
  1205. echo $ECHO_N "(cached) $ECHO_C" >&6
  1206. else
  1207. ac_cv_host_alias=$host_alias
  1208. test -z "$ac_cv_host_alias" &&
  1209. ac_cv_host_alias=$ac_cv_build_alias
  1210. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1211. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1212. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1213. { (exit 1); exit 1; }; }
  1214. fi
  1215. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1216. echo "${ECHO_T}$ac_cv_host" >&6
  1217. host=$ac_cv_host
  1218. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1219. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1220. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1221. echo "$as_me:$LINENO: checking target system type" >&5
  1222. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1223. if test "${ac_cv_target+set}" = set; then
  1224. echo $ECHO_N "(cached) $ECHO_C" >&6
  1225. else
  1226. ac_cv_target_alias=$target_alias
  1227. test "x$ac_cv_target_alias" = "x" &&
  1228. ac_cv_target_alias=$ac_cv_host_alias
  1229. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1230. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1231. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1232. { (exit 1); exit 1; }; }
  1233. fi
  1234. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1235. echo "${ECHO_T}$ac_cv_target" >&6
  1236. target=$ac_cv_target
  1237. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1238. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1239. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1240. # The aliases save the names the user supplied, while $host etc.
  1241. # will get canonicalized.
  1242. test -n "$target_alias" &&
  1243. test "$program_prefix$program_suffix$program_transform_name" = \
  1244. NONENONEs,x,x, &&
  1245. program_prefix=${target_alias}-
  1246. am__api_version="1.9"
  1247. # Find a good install program. We prefer a C program (faster),
  1248. # so one script is as good as another. But avoid the broken or
  1249. # incompatible versions:
  1250. # SysV /etc/install, /usr/sbin/install
  1251. # SunOS /usr/etc/install
  1252. # IRIX /sbin/install
  1253. # AIX /bin/install
  1254. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1255. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1256. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1257. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1258. # OS/2's system install, which has a completely different semantic
  1259. # ./install, which can be erroneously created by make from ./install.sh.
  1260. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1261. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1262. if test -z "$INSTALL"; then
  1263. if test "${ac_cv_path_install+set}" = set; then
  1264. echo $ECHO_N "(cached) $ECHO_C" >&6
  1265. else
  1266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1267. for as_dir in $PATH
  1268. do
  1269. IFS=$as_save_IFS
  1270. test -z "$as_dir" && as_dir=.
  1271. # Account for people who put trailing slashes in PATH elements.
  1272. case $as_dir/ in
  1273. ./ | .// | /cC/* | \
  1274. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1275. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1276. /usr/ucb/* ) ;;
  1277. *)
  1278. # OSF1 and SCO ODT 3.0 have their own names for install.
  1279. # Don't use installbsd from OSF since it installs stuff as root
  1280. # by default.
  1281. for ac_prog in ginstall scoinst install; do
  1282. for ac_exec_ext in '' $ac_executable_extensions; do
  1283. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1284. if test $ac_prog = install &&
  1285. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1286. # AIX install. It has an incompatible calling convention.
  1287. :
  1288. elif test $ac_prog = install &&
  1289. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1290. # program-specific install script used by HP pwplus--don't use.
  1291. :
  1292. else
  1293. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1294. break 3
  1295. fi
  1296. fi
  1297. done
  1298. done
  1299. ;;
  1300. esac
  1301. done
  1302. fi
  1303. if test "${ac_cv_path_install+set}" = set; then
  1304. INSTALL=$ac_cv_path_install
  1305. else
  1306. # As a last resort, use the slow shell script. We don't cache a
  1307. # path for INSTALL within a source directory, because that will
  1308. # break other packages using the cache if that directory is
  1309. # removed, or if the path is relative.
  1310. INSTALL=$ac_install_sh
  1311. fi
  1312. fi
  1313. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1314. echo "${ECHO_T}$INSTALL" >&6
  1315. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1316. # It thinks the first close brace ends the variable substitution.
  1317. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1318. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1319. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1320. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1321. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1322. # Just in case
  1323. sleep 1
  1324. echo timestamp > conftest.file
  1325. # Do `set' in a subshell so we don't clobber the current shell's
  1326. # arguments. Must try -L first in case configure is actually a
  1327. # symlink; some systems play weird games with the mod time of symlinks
  1328. # (eg FreeBSD returns the mod time of the symlink's containing
  1329. # directory).
  1330. if (
  1331. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1332. if test "$*" = "X"; then
  1333. # -L didn't work.
  1334. set X `ls -t $srcdir/configure conftest.file`
  1335. fi
  1336. rm -f conftest.file
  1337. if test "$*" != "X $srcdir/configure conftest.file" \
  1338. && test "$*" != "X conftest.file $srcdir/configure"; then
  1339. # If neither matched, then we have a broken ls. This can happen
  1340. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1341. # broken ls alias from the environment. This has actually
  1342. # happened. Such a system could not be considered "sane".
  1343. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1344. alias in your environment" >&5
  1345. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1346. alias in your environment" >&2;}
  1347. { (exit 1); exit 1; }; }
  1348. fi
  1349. test "$2" = conftest.file
  1350. )
  1351. then
  1352. # Ok.
  1353. :
  1354. else
  1355. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1356. Check your system clock" >&5
  1357. echo "$as_me: error: newly created file is older than distributed files!
  1358. Check your system clock" >&2;}
  1359. { (exit 1); exit 1; }; }
  1360. fi
  1361. echo "$as_me:$LINENO: result: yes" >&5
  1362. echo "${ECHO_T}yes" >&6
  1363. test "$program_prefix" != NONE &&
  1364. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1365. # Use a double $ so make ignores it.
  1366. test "$program_suffix" != NONE &&
  1367. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1368. # Double any \ or $. echo might interpret backslashes.
  1369. # By default was `s,x,x', remove it if useless.
  1370. cat <<\_ACEOF >conftest.sed
  1371. s/[\\$]/&&/g;s/;s,x,x,$//
  1372. _ACEOF
  1373. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1374. rm conftest.sed
  1375. # expand $ac_aux_dir to an absolute path
  1376. am_aux_dir=`cd $ac_aux_dir && pwd`
  1377. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1378. # Use eval to expand $SHELL
  1379. if eval "$MISSING --run true"; then
  1380. am_missing_run="$MISSING --run "
  1381. else
  1382. am_missing_run=
  1383. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1384. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1385. fi
  1386. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1387. # We used to keeping the `.' as first argument, in order to
  1388. # allow $(mkdir_p) to be used without argument. As in
  1389. # $(mkdir_p) $(somedir)
  1390. # where $(somedir) is conditionally defined. However this is wrong
  1391. # for two reasons:
  1392. # 1. if the package is installed by a user who cannot write `.'
  1393. # make install will fail,
  1394. # 2. the above comment should most certainly read
  1395. # $(mkdir_p) $(DESTDIR)$(somedir)
  1396. # so it does not work when $(somedir) is undefined and
  1397. # $(DESTDIR) is not.
  1398. # To support the latter case, we have to write
  1399. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1400. # so the `.' trick is pointless.
  1401. mkdir_p='mkdir -p --'
  1402. else
  1403. # On NextStep and OpenStep, the `mkdir' command does not
  1404. # recognize any option. It will interpret all options as
  1405. # directories to create, and then abort because `.' already
  1406. # exists.
  1407. for d in ./-p ./--version;
  1408. do
  1409. test -d $d && rmdir $d
  1410. done
  1411. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1412. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1413. mkdir_p='$(mkinstalldirs)'
  1414. else
  1415. mkdir_p='$(install_sh) -d'
  1416. fi
  1417. fi
  1418. for ac_prog in gawk mawk nawk awk
  1419. do
  1420. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1421. set dummy $ac_prog; ac_word=$2
  1422. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1423. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1424. if test "${ac_cv_prog_AWK+set}" = set; then
  1425. echo $ECHO_N "(cached) $ECHO_C" >&6
  1426. else
  1427. if test -n "$AWK"; then
  1428. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1429. else
  1430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1431. for as_dir in $PATH
  1432. do
  1433. IFS=$as_save_IFS
  1434. test -z "$as_dir" && as_dir=.
  1435. for ac_exec_ext in '' $ac_executable_extensions; do
  1436. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1437. ac_cv_prog_AWK="$ac_prog"
  1438. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1439. break 2
  1440. fi
  1441. done
  1442. done
  1443. fi
  1444. fi
  1445. AWK=$ac_cv_prog_AWK
  1446. if test -n "$AWK"; then
  1447. echo "$as_me:$LINENO: result: $AWK" >&5
  1448. echo "${ECHO_T}$AWK" >&6
  1449. else
  1450. echo "$as_me:$LINENO: result: no" >&5
  1451. echo "${ECHO_T}no" >&6
  1452. fi
  1453. test -n "$AWK" && break
  1454. done
  1455. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1456. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1457. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1458. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1459. echo $ECHO_N "(cached) $ECHO_C" >&6
  1460. else
  1461. cat >conftest.make <<\_ACEOF
  1462. all:
  1463. @echo 'ac_maketemp="$(MAKE)"'
  1464. _ACEOF
  1465. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1466. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1467. if test -n "$ac_maketemp"; then
  1468. eval ac_cv_prog_make_${ac_make}_set=yes
  1469. else
  1470. eval ac_cv_prog_make_${ac_make}_set=no
  1471. fi
  1472. rm -f conftest.make
  1473. fi
  1474. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1475. echo "$as_me:$LINENO: result: yes" >&5
  1476. echo "${ECHO_T}yes" >&6
  1477. SET_MAKE=
  1478. else
  1479. echo "$as_me:$LINENO: result: no" >&5
  1480. echo "${ECHO_T}no" >&6
  1481. SET_MAKE="MAKE=${MAKE-make}"
  1482. fi
  1483. rm -rf .tst 2>/dev/null
  1484. mkdir .tst 2>/dev/null
  1485. if test -d .tst; then
  1486. am__leading_dot=.
  1487. else
  1488. am__leading_dot=_
  1489. fi
  1490. rmdir .tst 2>/dev/null
  1491. # test to see if srcdir already configured
  1492. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1493. test -f $srcdir/config.status; then
  1494. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1495. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1496. { (exit 1); exit 1; }; }
  1497. fi
  1498. # test whether we have cygpath
  1499. if test -z "$CYGPATH_W"; then
  1500. if (cygpath --version) >/dev/null 2>/dev/null; then
  1501. CYGPATH_W='cygpath -w'
  1502. else
  1503. CYGPATH_W=echo
  1504. fi
  1505. fi
  1506. # Define the identity of the package.
  1507. PACKAGE='ngircd'
  1508. VERSION='0.10.3'
  1509. cat >>confdefs.h <<_ACEOF
  1510. #define PACKAGE "$PACKAGE"
  1511. _ACEOF
  1512. cat >>confdefs.h <<_ACEOF
  1513. #define VERSION "$VERSION"
  1514. _ACEOF
  1515. # Some tools Automake needs.
  1516. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1517. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1518. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1519. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1520. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1521. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1522. # Installed binaries are usually stripped using `strip' when the user
  1523. # run `make install-strip'. However `strip' might not be the right
  1524. # tool to use in cross-compilation environments, therefore Automake
  1525. # will honor the `STRIP' environment variable to overrule this program.
  1526. if test "$cross_compiling" != no; then
  1527. if test -n "$ac_tool_prefix"; then
  1528. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1529. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1530. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1531. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1532. if test "${ac_cv_prog_STRIP+set}" = set; then
  1533. echo $ECHO_N "(cached) $ECHO_C" >&6
  1534. else
  1535. if test -n "$STRIP"; then
  1536. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1537. else
  1538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1539. for as_dir in $PATH
  1540. do
  1541. IFS=$as_save_IFS
  1542. test -z "$as_dir" && as_dir=.
  1543. for ac_exec_ext in '' $ac_executable_extensions; do
  1544. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1545. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1546. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1547. break 2
  1548. fi
  1549. done
  1550. done
  1551. fi
  1552. fi
  1553. STRIP=$ac_cv_prog_STRIP
  1554. if test -n "$STRIP"; then
  1555. echo "$as_me:$LINENO: result: $STRIP" >&5
  1556. echo "${ECHO_T}$STRIP" >&6
  1557. else
  1558. echo "$as_me:$LINENO: result: no" >&5
  1559. echo "${ECHO_T}no" >&6
  1560. fi
  1561. fi
  1562. if test -z "$ac_cv_prog_STRIP"; then
  1563. ac_ct_STRIP=$STRIP
  1564. # Extract the first word of "strip", so it can be a program name with args.
  1565. set dummy strip; ac_word=$2
  1566. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1567. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1568. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1569. echo $ECHO_N "(cached) $ECHO_C" >&6
  1570. else
  1571. if test -n "$ac_ct_STRIP"; then
  1572. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1573. else
  1574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1575. for as_dir in $PATH
  1576. do
  1577. IFS=$as_save_IFS
  1578. test -z "$as_dir" && as_dir=.
  1579. for ac_exec_ext in '' $ac_executable_extensions; do
  1580. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1581. ac_cv_prog_ac_ct_STRIP="strip"
  1582. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1583. break 2
  1584. fi
  1585. done
  1586. done
  1587. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1588. fi
  1589. fi
  1590. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1591. if test -n "$ac_ct_STRIP"; then
  1592. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1593. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1594. else
  1595. echo "$as_me:$LINENO: result: no" >&5
  1596. echo "${ECHO_T}no" >&6
  1597. fi
  1598. STRIP=$ac_ct_STRIP
  1599. else
  1600. STRIP="$ac_cv_prog_STRIP"
  1601. fi
  1602. fi
  1603. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1604. # We need awk for the "check" target. The system "awk" is bad on
  1605. # some platforms.
  1606. # Always define AMTAR for backward compatibility.
  1607. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1608. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1609. ac_config_headers="$ac_config_headers src/config.h"
  1610. # -- Templates for config.h --
  1611. # -- C Compiler --
  1612. ac_ext=c
  1613. ac_cpp='$CPP $CPPFLAGS'
  1614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1617. if test -n "$ac_tool_prefix"; then
  1618. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1619. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1620. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1621. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1622. if test "${ac_cv_prog_CC+set}" = set; then
  1623. echo $ECHO_N "(cached) $ECHO_C" >&6
  1624. else
  1625. if test -n "$CC"; then
  1626. ac_cv_prog_CC="$CC" # Let the user override the test.
  1627. else
  1628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1629. for as_dir in $PATH
  1630. do
  1631. IFS=$as_save_IFS
  1632. test -z "$as_dir" && as_dir=.
  1633. for ac_exec_ext in '' $ac_executable_extensions; do
  1634. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1635. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1636. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1637. break 2
  1638. fi
  1639. done
  1640. done
  1641. fi
  1642. fi
  1643. CC=$ac_cv_prog_CC
  1644. if test -n "$CC"; then
  1645. echo "$as_me:$LINENO: result: $CC" >&5
  1646. echo "${ECHO_T}$CC" >&6
  1647. else
  1648. echo "$as_me:$LINENO: result: no" >&5
  1649. echo "${ECHO_T}no" >&6
  1650. fi
  1651. fi
  1652. if test -z "$ac_cv_prog_CC"; then
  1653. ac_ct_CC=$CC
  1654. # Extract the first word of "gcc", so it can be a program name with args.
  1655. set dummy gcc; ac_word=$2
  1656. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1657. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1658. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. if test -n "$ac_ct_CC"; then
  1662. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1663. else
  1664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1665. for as_dir in $PATH
  1666. do
  1667. IFS=$as_save_IFS
  1668. test -z "$as_dir" && as_dir=.
  1669. for ac_exec_ext in '' $ac_executable_extensions; do
  1670. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1671. ac_cv_prog_ac_ct_CC="gcc"
  1672. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1673. break 2
  1674. fi
  1675. done
  1676. done
  1677. fi
  1678. fi
  1679. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1680. if test -n "$ac_ct_CC"; then
  1681. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1682. echo "${ECHO_T}$ac_ct_CC" >&6
  1683. else
  1684. echo "$as_me:$LINENO: result: no" >&5
  1685. echo "${ECHO_T}no" >&6
  1686. fi
  1687. CC=$ac_ct_CC
  1688. else
  1689. CC="$ac_cv_prog_CC"
  1690. fi
  1691. if test -z "$CC"; then
  1692. if test -n "$ac_tool_prefix"; then
  1693. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1694. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1695. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1696. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1697. if test "${ac_cv_prog_CC+set}" = set; then
  1698. echo $ECHO_N "(cached) $ECHO_C" >&6
  1699. else
  1700. if test -n "$CC"; then
  1701. ac_cv_prog_CC="$CC" # Let the user override the test.
  1702. else
  1703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1704. for as_dir in $PATH
  1705. do
  1706. IFS=$as_save_IFS
  1707. test -z "$as_dir" && as_dir=.
  1708. for ac_exec_ext in '' $ac_executable_extensions; do
  1709. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1710. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1711. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1712. break 2
  1713. fi
  1714. done
  1715. done
  1716. fi
  1717. fi
  1718. CC=$ac_cv_prog_CC
  1719. if test -n "$CC"; then
  1720. echo "$as_me:$LINENO: result: $CC" >&5
  1721. echo "${ECHO_T}$CC" >&6
  1722. else
  1723. echo "$as_me:$LINENO: result: no" >&5
  1724. echo "${ECHO_T}no" >&6
  1725. fi
  1726. fi
  1727. if test -z "$ac_cv_prog_CC"; then
  1728. ac_ct_CC=$CC
  1729. # Extract the first word of "cc", so it can be a program name with args.
  1730. set dummy cc; ac_word=$2
  1731. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1732. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1733. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1734. echo $ECHO_N "(cached) $ECHO_C" >&6
  1735. else
  1736. if test -n "$ac_ct_CC"; then
  1737. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1738. else
  1739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1740. for as_dir in $PATH
  1741. do
  1742. IFS=$as_save_IFS
  1743. test -z "$as_dir" && as_dir=.
  1744. for ac_exec_ext in '' $ac_executable_extensions; do
  1745. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1746. ac_cv_prog_ac_ct_CC="cc"
  1747. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1748. break 2
  1749. fi
  1750. done
  1751. done
  1752. fi
  1753. fi
  1754. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1755. if test -n "$ac_ct_CC"; then
  1756. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1757. echo "${ECHO_T}$ac_ct_CC" >&6
  1758. else
  1759. echo "$as_me:$LINENO: result: no" >&5
  1760. echo "${ECHO_T}no" >&6
  1761. fi
  1762. CC=$ac_ct_CC
  1763. else
  1764. CC="$ac_cv_prog_CC"
  1765. fi
  1766. fi
  1767. if test -z "$CC"; then
  1768. # Extract the first word of "cc", so it can be a program name with args.
  1769. set dummy cc; ac_word=$2
  1770. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1771. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1772. if test "${ac_cv_prog_CC+set}" = set; then
  1773. echo $ECHO_N "(cached) $ECHO_C" >&6
  1774. else
  1775. if test -n "$CC"; then
  1776. ac_cv_prog_CC="$CC" # Let the user override the test.
  1777. else
  1778. ac_prog_rejected=no
  1779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1780. for as_dir in $PATH
  1781. do
  1782. IFS=$as_save_IFS
  1783. test -z "$as_dir" && as_dir=.
  1784. for ac_exec_ext in '' $ac_executable_extensions; do
  1785. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1786. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1787. ac_prog_rejected=yes
  1788. continue
  1789. fi
  1790. ac_cv_prog_CC="cc"
  1791. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1792. break 2
  1793. fi
  1794. done
  1795. done
  1796. if test $ac_prog_rejected = yes; then
  1797. # We found a bogon in the path, so make sure we never use it.
  1798. set dummy $ac_cv_prog_CC
  1799. shift
  1800. if test $# != 0; then
  1801. # We chose a different compiler from the bogus one.
  1802. # However, it has the same basename, so the bogon will be chosen
  1803. # first if we set CC to just the basename; use the full file name.
  1804. shift
  1805. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1806. fi
  1807. fi
  1808. fi
  1809. fi
  1810. CC=$ac_cv_prog_CC
  1811. if test -n "$CC"; then
  1812. echo "$as_me:$LINENO: result: $CC" >&5
  1813. echo "${ECHO_T}$CC" >&6
  1814. else
  1815. echo "$as_me:$LINENO: result: no" >&5
  1816. echo "${ECHO_T}no" >&6
  1817. fi
  1818. fi
  1819. if test -z "$CC"; then
  1820. if test -n "$ac_tool_prefix"; then
  1821. for ac_prog in cl
  1822. do
  1823. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1824. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1825. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1826. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1827. if test "${ac_cv_prog_CC+set}" = set; then
  1828. echo $ECHO_N "(cached) $ECHO_C" >&6
  1829. else
  1830. if test -n "$CC"; then
  1831. ac_cv_prog_CC="$CC" # Let the user override the test.
  1832. else
  1833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1834. for as_dir in $PATH
  1835. do
  1836. IFS=$as_save_IFS
  1837. test -z "$as_dir" && as_dir=.
  1838. for ac_exec_ext in '' $ac_executable_extensions; do
  1839. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1840. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1841. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1842. break 2
  1843. fi
  1844. done
  1845. done
  1846. fi
  1847. fi
  1848. CC=$ac_cv_prog_CC
  1849. if test -n "$CC"; then
  1850. echo "$as_me:$LINENO: result: $CC" >&5
  1851. echo "${ECHO_T}$CC" >&6
  1852. else
  1853. echo "$as_me:$LINENO: result: no" >&5
  1854. echo "${ECHO_T}no" >&6
  1855. fi
  1856. test -n "$CC" && break
  1857. done
  1858. fi
  1859. if test -z "$CC"; then
  1860. ac_ct_CC=$CC
  1861. for ac_prog in cl
  1862. do
  1863. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1864. set dummy $ac_prog; ac_word=$2
  1865. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1866. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1867. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1868. echo $ECHO_N "(cached) $ECHO_C" >&6
  1869. else
  1870. if test -n "$ac_ct_CC"; then
  1871. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1872. else
  1873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1874. for as_dir in $PATH
  1875. do
  1876. IFS=$as_save_IFS
  1877. test -z "$as_dir" && as_dir=.
  1878. for ac_exec_ext in '' $ac_executable_extensions; do
  1879. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1880. ac_cv_prog_ac_ct_CC="$ac_prog"
  1881. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1882. break 2
  1883. fi
  1884. done
  1885. done
  1886. fi
  1887. fi
  1888. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1889. if test -n "$ac_ct_CC"; then
  1890. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1891. echo "${ECHO_T}$ac_ct_CC" >&6
  1892. else
  1893. echo "$as_me:$LINENO: result: no" >&5
  1894. echo "${ECHO_T}no" >&6
  1895. fi
  1896. test -n "$ac_ct_CC" && break
  1897. done
  1898. CC=$ac_ct_CC
  1899. fi
  1900. fi
  1901. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1902. See \`config.log' for more details." >&5
  1903. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1904. See \`config.log' for more details." >&2;}
  1905. { (exit 1); exit 1; }; }
  1906. # Provide some information about the compiler.
  1907. echo "$as_me:$LINENO:" \
  1908. "checking for C compiler version" >&5
  1909. ac_compiler=`set X $ac_compile; echo $2`
  1910. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1911. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }
  1915. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1916. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }
  1920. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1921. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1922. ac_status=$?
  1923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1924. (exit $ac_status); }
  1925. cat >conftest.$ac_ext <<_ACEOF
  1926. /* confdefs.h. */
  1927. _ACEOF
  1928. cat confdefs.h >>conftest.$ac_ext
  1929. cat >>conftest.$ac_ext <<_ACEOF
  1930. /* end confdefs.h. */
  1931. int
  1932. main ()
  1933. {
  1934. ;
  1935. return 0;
  1936. }
  1937. _ACEOF
  1938. ac_clean_files_save=$ac_clean_files
  1939. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1940. # Try to create an executable without -o first, disregard a.out.
  1941. # It will help us diagnose broken compilers, and finding out an intuition
  1942. # of exeext.
  1943. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1944. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1945. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1946. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1947. (eval $ac_link_default) 2>&5
  1948. ac_status=$?
  1949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1950. (exit $ac_status); }; then
  1951. # Find the output, starting from the most likely. This scheme is
  1952. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1953. # resort.
  1954. # Be careful to initialize this variable, since it used to be cached.
  1955. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1956. ac_cv_exeext=
  1957. # b.out is created by i960 compilers.
  1958. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1959. do
  1960. test -f "$ac_file" || continue
  1961. case $ac_file in
  1962. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1963. ;;
  1964. conftest.$ac_ext )
  1965. # This is the source file.
  1966. ;;
  1967. [ab].out )
  1968. # We found the default executable, but exeext='' is most
  1969. # certainly right.
  1970. break;;
  1971. *.* )
  1972. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1973. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1974. # but it would be cool to find out if it's true. Does anybody
  1975. # maintain Libtool? --akim.
  1976. export ac_cv_exeext
  1977. break;;
  1978. * )
  1979. break;;
  1980. esac
  1981. done
  1982. else
  1983. echo "$as_me: failed program was:" >&5
  1984. sed 's/^/| /' conftest.$ac_ext >&5
  1985. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1986. See \`config.log' for more details." >&5
  1987. echo "$as_me: error: C compiler cannot create executables
  1988. See \`config.log' for more details." >&2;}
  1989. { (exit 77); exit 77; }; }
  1990. fi
  1991. ac_exeext=$ac_cv_exeext
  1992. echo "$as_me:$LINENO: result: $ac_file" >&5
  1993. echo "${ECHO_T}$ac_file" >&6
  1994. # Check the compiler produces executables we can run. If not, either
  1995. # the compiler is broken, or we cross compile.
  1996. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1997. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1998. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1999. # If not cross compiling, check that we can run a simple program.
  2000. if test "$cross_compiling" != yes; then
  2001. if { ac_try='./$ac_file'
  2002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2003. (eval $ac_try) 2>&5
  2004. ac_status=$?
  2005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2006. (exit $ac_status); }; }; then
  2007. cross_compiling=no
  2008. else
  2009. if test "$cross_compiling" = maybe; then
  2010. cross_compiling=yes
  2011. else
  2012. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2013. If you meant to cross compile, use \`--host'.
  2014. See \`config.log' for more details." >&5
  2015. echo "$as_me: error: cannot run C compiled programs.
  2016. If you meant to cross compile, use \`--host'.
  2017. See \`config.log' for more details." >&2;}
  2018. { (exit 1); exit 1; }; }
  2019. fi
  2020. fi
  2021. fi
  2022. echo "$as_me:$LINENO: result: yes" >&5
  2023. echo "${ECHO_T}yes" >&6
  2024. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2025. ac_clean_files=$ac_clean_files_save
  2026. # Check the compiler produces executables we can run. If not, either
  2027. # the compiler is broken, or we cross compile.
  2028. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2029. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2030. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2031. echo "${ECHO_T}$cross_compiling" >&6
  2032. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2033. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2034. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2035. (eval $ac_link) 2>&5
  2036. ac_status=$?
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); }; then
  2039. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2040. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2041. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2042. # `rm'.
  2043. for ac_file in conftest.exe conftest conftest.*; do
  2044. test -f "$ac_file" || continue
  2045. case $ac_file in
  2046. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2047. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2048. export ac_cv_exeext
  2049. break;;
  2050. * ) break;;
  2051. esac
  2052. done
  2053. else
  2054. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2055. See \`config.log' for more details." >&5
  2056. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2057. See \`config.log' for more details." >&2;}
  2058. { (exit 1); exit 1; }; }
  2059. fi
  2060. rm -f conftest$ac_cv_exeext
  2061. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2062. echo "${ECHO_T}$ac_cv_exeext" >&6
  2063. rm -f conftest.$ac_ext
  2064. EXEEXT=$ac_cv_exeext
  2065. ac_exeext=$EXEEXT
  2066. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2067. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2068. if test "${ac_cv_objext+set}" = set; then
  2069. echo $ECHO_N "(cached) $ECHO_C" >&6
  2070. else
  2071. cat >conftest.$ac_ext <<_ACEOF
  2072. /* confdefs.h. */
  2073. _ACEOF
  2074. cat confdefs.h >>conftest.$ac_ext
  2075. cat >>conftest.$ac_ext <<_ACEOF
  2076. /* end confdefs.h. */
  2077. int
  2078. main ()
  2079. {
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. rm -f conftest.o conftest.obj
  2085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2086. (eval $ac_compile) 2>&5
  2087. ac_status=$?
  2088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2089. (exit $ac_status); }; then
  2090. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2091. case $ac_file in
  2092. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2093. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2094. break;;
  2095. esac
  2096. done
  2097. else
  2098. echo "$as_me: failed program was:" >&5
  2099. sed 's/^/| /' conftest.$ac_ext >&5
  2100. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2101. See \`config.log' for more details." >&5
  2102. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2103. See \`config.log' for more details." >&2;}
  2104. { (exit 1); exit 1; }; }
  2105. fi
  2106. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2107. fi
  2108. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2109. echo "${ECHO_T}$ac_cv_objext" >&6
  2110. OBJEXT=$ac_cv_objext
  2111. ac_objext=$OBJEXT
  2112. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2113. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2114. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2115. echo $ECHO_N "(cached) $ECHO_C" >&6
  2116. else
  2117. cat >conftest.$ac_ext <<_ACEOF
  2118. /* confdefs.h. */
  2119. _ACEOF
  2120. cat confdefs.h >>conftest.$ac_ext
  2121. cat >>conftest.$ac_ext <<_ACEOF
  2122. /* end confdefs.h. */
  2123. int
  2124. main ()
  2125. {
  2126. #ifndef __GNUC__
  2127. choke me
  2128. #endif
  2129. ;
  2130. return 0;
  2131. }
  2132. _ACEOF
  2133. rm -f conftest.$ac_objext
  2134. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2135. (eval $ac_compile) 2>conftest.er1
  2136. ac_status=$?
  2137. grep -v '^ *+' conftest.er1 >conftest.err
  2138. rm -f conftest.er1
  2139. cat conftest.err >&5
  2140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2141. (exit $ac_status); } &&
  2142. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2144. (eval $ac_try) 2>&5
  2145. ac_status=$?
  2146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2147. (exit $ac_status); }; } &&
  2148. { ac_try='test -s conftest.$ac_objext'
  2149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2150. (eval $ac_try) 2>&5
  2151. ac_status=$?
  2152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2153. (exit $ac_status); }; }; then
  2154. ac_compiler_gnu=yes
  2155. else
  2156. echo "$as_me: failed program was:" >&5
  2157. sed 's/^/| /' conftest.$ac_ext >&5
  2158. ac_compiler_gnu=no
  2159. fi
  2160. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2161. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2162. fi
  2163. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2164. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2165. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2166. ac_test_CFLAGS=${CFLAGS+set}
  2167. ac_save_CFLAGS=$CFLAGS
  2168. CFLAGS="-g"
  2169. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2170. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2171. if test "${ac_cv_prog_cc_g+set}" = set; then
  2172. echo $ECHO_N "(cached) $ECHO_C" >&6
  2173. else
  2174. cat >conftest.$ac_ext <<_ACEOF
  2175. /* confdefs.h. */
  2176. _ACEOF
  2177. cat confdefs.h >>conftest.$ac_ext
  2178. cat >>conftest.$ac_ext <<_ACEOF
  2179. /* end confdefs.h. */
  2180. int
  2181. main ()
  2182. {
  2183. ;
  2184. return 0;
  2185. }
  2186. _ACEOF
  2187. rm -f conftest.$ac_objext
  2188. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2189. (eval $ac_compile) 2>conftest.er1
  2190. ac_status=$?
  2191. grep -v '^ *+' conftest.er1 >conftest.err
  2192. rm -f conftest.er1
  2193. cat conftest.err >&5
  2194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2195. (exit $ac_status); } &&
  2196. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2198. (eval $ac_try) 2>&5
  2199. ac_status=$?
  2200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2201. (exit $ac_status); }; } &&
  2202. { ac_try='test -s conftest.$ac_objext'
  2203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2204. (eval $ac_try) 2>&5
  2205. ac_status=$?
  2206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2207. (exit $ac_status); }; }; then
  2208. ac_cv_prog_cc_g=yes
  2209. else
  2210. echo "$as_me: failed program was:" >&5
  2211. sed 's/^/| /' conftest.$ac_ext >&5
  2212. ac_cv_prog_cc_g=no
  2213. fi
  2214. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2215. fi
  2216. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2217. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2218. if test "$ac_test_CFLAGS" = set; then
  2219. CFLAGS=$ac_save_CFLAGS
  2220. elif test $ac_cv_prog_cc_g = yes; then
  2221. if test "$GCC" = yes; then
  2222. CFLAGS="-g -O2"
  2223. else
  2224. CFLAGS="-g"
  2225. fi
  2226. else
  2227. if test "$GCC" = yes; then
  2228. CFLAGS="-O2"
  2229. else
  2230. CFLAGS=
  2231. fi
  2232. fi
  2233. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2234. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2235. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2236. echo $ECHO_N "(cached) $ECHO_C" >&6
  2237. else
  2238. ac_cv_prog_cc_stdc=no
  2239. ac_save_CC=$CC
  2240. cat >conftest.$ac_ext <<_ACEOF
  2241. /* confdefs.h. */
  2242. _ACEOF
  2243. cat confdefs.h >>conftest.$ac_ext
  2244. cat >>conftest.$ac_ext <<_ACEOF
  2245. /* end confdefs.h. */
  2246. #include <stdarg.h>
  2247. #include <stdio.h>
  2248. #include <sys/types.h>
  2249. #include <sys/stat.h>
  2250. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2251. struct buf { int x; };
  2252. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2253. static char *e (p, i)
  2254. char **p;
  2255. int i;
  2256. {
  2257. return p[i];
  2258. }
  2259. static char *f (char * (*g) (char **, int), char **p, ...)
  2260. {
  2261. char *s;
  2262. va_list v;
  2263. va_start (v,p);
  2264. s = g (p, va_arg (v,int));
  2265. va_end (v);
  2266. return s;
  2267. }
  2268. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2269. function prototypes and stuff, but not '\xHH' hex character constants.
  2270. These don't provoke an error unfortunately, instead are silently treated
  2271. as 'x'. The following induces an error, until -std1 is added to get
  2272. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2273. array size at least. It's necessary to write '\x00'==0 to get something
  2274. that's true only with -std1. */
  2275. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2276. int test (int i, double x);
  2277. struct s1 {int (*f) (int a);};
  2278. struct s2 {int (*f) (double a);};
  2279. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2280. int argc;
  2281. char **argv;
  2282. int
  2283. main ()
  2284. {
  2285. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2286. ;
  2287. return 0;
  2288. }
  2289. _ACEOF
  2290. # Don't try gcc -ansi; that turns off useful extensions and
  2291. # breaks some systems' header files.
  2292. # AIX -qlanglvl=ansi
  2293. # Ultrix and OSF/1 -std1
  2294. # HP-UX 10.20 and later -Ae
  2295. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2296. # SVR4 -Xc -D__EXTENSIONS__
  2297. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2298. do
  2299. CC="$ac_save_CC $ac_arg"
  2300. rm -f conftest.$ac_objext
  2301. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2302. (eval $ac_compile) 2>conftest.er1
  2303. ac_status=$?
  2304. grep -v '^ *+' conftest.er1 >conftest.err
  2305. rm -f conftest.er1
  2306. cat conftest.err >&5
  2307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2308. (exit $ac_status); } &&
  2309. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2311. (eval $ac_try) 2>&5
  2312. ac_status=$?
  2313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2314. (exit $ac_status); }; } &&
  2315. { ac_try='test -s conftest.$ac_objext'
  2316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2317. (eval $ac_try) 2>&5
  2318. ac_status=$?
  2319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2320. (exit $ac_status); }; }; then
  2321. ac_cv_prog_cc_stdc=$ac_arg
  2322. break
  2323. else
  2324. echo "$as_me: failed program was:" >&5
  2325. sed 's/^/| /' conftest.$ac_ext >&5
  2326. fi
  2327. rm -f conftest.err conftest.$ac_objext
  2328. done
  2329. rm -f conftest.$ac_ext conftest.$ac_objext
  2330. CC=$ac_save_CC
  2331. fi
  2332. case "x$ac_cv_prog_cc_stdc" in
  2333. x|xno)
  2334. echo "$as_me:$LINENO: result: none needed" >&5
  2335. echo "${ECHO_T}none needed" >&6 ;;
  2336. *)
  2337. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2338. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2339. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2340. esac
  2341. # Some people use a C++ compiler to compile C. Since we use `exit',
  2342. # in C++ we need to declare it. In case someone uses the same compiler
  2343. # for both compiling C and C++ we need to have the C++ compiler decide
  2344. # the declaration of exit, since it's the most demanding environment.
  2345. cat >conftest.$ac_ext <<_ACEOF
  2346. #ifndef __cplusplus
  2347. choke me
  2348. #endif
  2349. _ACEOF
  2350. rm -f conftest.$ac_objext
  2351. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2352. (eval $ac_compile) 2>conftest.er1
  2353. ac_status=$?
  2354. grep -v '^ *+' conftest.er1 >conftest.err
  2355. rm -f conftest.er1
  2356. cat conftest.err >&5
  2357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2358. (exit $ac_status); } &&
  2359. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2361. (eval $ac_try) 2>&5
  2362. ac_status=$?
  2363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2364. (exit $ac_status); }; } &&
  2365. { ac_try='test -s conftest.$ac_objext'
  2366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2367. (eval $ac_try) 2>&5
  2368. ac_status=$?
  2369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2370. (exit $ac_status); }; }; then
  2371. for ac_declaration in \
  2372. '' \
  2373. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2374. 'extern "C" void std::exit (int); using std::exit;' \
  2375. 'extern "C" void exit (int) throw ();' \
  2376. 'extern "C" void exit (int);' \
  2377. 'void exit (int);'
  2378. do
  2379. cat >conftest.$ac_ext <<_ACEOF
  2380. /* confdefs.h. */
  2381. _ACEOF
  2382. cat confdefs.h >>conftest.$ac_ext
  2383. cat >>conftest.$ac_ext <<_ACEOF
  2384. /* end confdefs.h. */
  2385. $ac_declaration
  2386. #include <stdlib.h>
  2387. int
  2388. main ()
  2389. {
  2390. exit (42);
  2391. ;
  2392. return 0;
  2393. }
  2394. _ACEOF
  2395. rm -f conftest.$ac_objext
  2396. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2397. (eval $ac_compile) 2>conftest.er1
  2398. ac_status=$?
  2399. grep -v '^ *+' conftest.er1 >conftest.err
  2400. rm -f conftest.er1
  2401. cat conftest.err >&5
  2402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2403. (exit $ac_status); } &&
  2404. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2406. (eval $ac_try) 2>&5
  2407. ac_status=$?
  2408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2409. (exit $ac_status); }; } &&
  2410. { ac_try='test -s conftest.$ac_objext'
  2411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2412. (eval $ac_try) 2>&5
  2413. ac_status=$?
  2414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2415. (exit $ac_status); }; }; then
  2416. :
  2417. else
  2418. echo "$as_me: failed program was:" >&5
  2419. sed 's/^/| /' conftest.$ac_ext >&5
  2420. continue
  2421. fi
  2422. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2423. cat >conftest.$ac_ext <<_ACEOF
  2424. /* confdefs.h. */
  2425. _ACEOF
  2426. cat confdefs.h >>conftest.$ac_ext
  2427. cat >>conftest.$ac_ext <<_ACEOF
  2428. /* end confdefs.h. */
  2429. $ac_declaration
  2430. int
  2431. main ()
  2432. {
  2433. exit (42);
  2434. ;
  2435. return 0;
  2436. }
  2437. _ACEOF
  2438. rm -f conftest.$ac_objext
  2439. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2440. (eval $ac_compile) 2>conftest.er1
  2441. ac_status=$?
  2442. grep -v '^ *+' conftest.er1 >conftest.err
  2443. rm -f conftest.er1
  2444. cat conftest.err >&5
  2445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2446. (exit $ac_status); } &&
  2447. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2449. (eval $ac_try) 2>&5
  2450. ac_status=$?
  2451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2452. (exit $ac_status); }; } &&
  2453. { ac_try='test -s conftest.$ac_objext'
  2454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2455. (eval $ac_try) 2>&5
  2456. ac_status=$?
  2457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2458. (exit $ac_status); }; }; then
  2459. break
  2460. else
  2461. echo "$as_me: failed program was:" >&5
  2462. sed 's/^/| /' conftest.$ac_ext >&5
  2463. fi
  2464. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2465. done
  2466. rm -f conftest*
  2467. if test -n "$ac_declaration"; then
  2468. echo '#ifdef __cplusplus' >>confdefs.h
  2469. echo $ac_declaration >>confdefs.h
  2470. echo '#endif' >>confdefs.h
  2471. fi
  2472. else
  2473. echo "$as_me: failed program was:" >&5
  2474. sed 's/^/| /' conftest.$ac_ext >&5
  2475. fi
  2476. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2477. ac_ext=c
  2478. ac_cpp='$CPP $CPPFLAGS'
  2479. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2480. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2481. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2482. DEPDIR="${am__leading_dot}deps"
  2483. ac_config_commands="$ac_config_commands depfiles"
  2484. am_make=${MAKE-make}
  2485. cat > confinc << 'END'
  2486. am__doit:
  2487. @echo done
  2488. .PHONY: am__doit
  2489. END
  2490. # If we don't find an include directive, just comment out the code.
  2491. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2492. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2493. am__include="#"
  2494. am__quote=
  2495. _am_result=none
  2496. # First try GNU make style include.
  2497. echo "include confinc" > confmf
  2498. # We grep out `Entering directory' and `Leaving directory'
  2499. # messages which can occur if `w' ends up in MAKEFLAGS.
  2500. # In particular we don't look at `^make:' because GNU make might
  2501. # be invoked under some other name (usually "gmake"), in which
  2502. # case it prints its new name instead of `make'.
  2503. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2504. am__include=include
  2505. am__quote=
  2506. _am_result=GNU
  2507. fi
  2508. # Now try BSD make style include.
  2509. if test "$am__include" = "#"; then
  2510. echo '.include "confinc"' > confmf
  2511. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2512. am__include=.include
  2513. am__quote="\""
  2514. _am_result=BSD
  2515. fi
  2516. fi
  2517. echo "$as_me:$LINENO: result: $_am_result" >&5
  2518. echo "${ECHO_T}$_am_result" >&6
  2519. rm -f confinc confmf
  2520. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2521. if test "${enable_dependency_tracking+set}" = set; then
  2522. enableval="$enable_dependency_tracking"
  2523. fi;
  2524. if test "x$enable_dependency_tracking" != xno; then
  2525. am_depcomp="$ac_aux_dir/depcomp"
  2526. AMDEPBACKSLASH='\'
  2527. fi
  2528. if test "x$enable_dependency_tracking" != xno; then
  2529. AMDEP_TRUE=
  2530. AMDEP_FALSE='#'
  2531. else
  2532. AMDEP_TRUE='#'
  2533. AMDEP_FALSE=
  2534. fi
  2535. depcc="$CC" am_compiler_list=
  2536. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2537. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2538. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2539. echo $ECHO_N "(cached) $ECHO_C" >&6
  2540. else
  2541. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2542. # We make a subdir and do the tests there. Otherwise we can end up
  2543. # making bogus files that we don't know about and never remove. For
  2544. # instance it was reported that on HP-UX the gcc test will end up
  2545. # making a dummy file named `D' -- because `-MD' means `put the output
  2546. # in D'.
  2547. mkdir conftest.dir
  2548. # Copy depcomp to subdir because otherwise we won't find it if we're
  2549. # using a relative directory.
  2550. cp "$am_depcomp" conftest.dir
  2551. cd conftest.dir
  2552. # We will build objects and dependencies in a subdirectory because
  2553. # it helps to detect inapplicable dependency modes. For instance
  2554. # both Tru64's cc and ICC support -MD to output dependencies as a
  2555. # side effect of compilation, but ICC will put the dependencies in
  2556. # the current directory while Tru64 will put them in the object
  2557. # directory.
  2558. mkdir sub
  2559. am_cv_CC_dependencies_compiler_type=none
  2560. if test "$am_compiler_list" = ""; then
  2561. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2562. fi
  2563. for depmode in $am_compiler_list; do
  2564. # Setup a source with many dependencies, because some compilers
  2565. # like to wrap large dependency lists on column 80 (with \), and
  2566. # we should not choose a depcomp mode which is confused by this.
  2567. #
  2568. # We need to recreate these files for each test, as the compiler may
  2569. # overwrite some of them when testing with obscure command lines.
  2570. # This happens at least with the AIX C compiler.
  2571. : > sub/conftest.c
  2572. for i in 1 2 3 4 5 6; do
  2573. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2574. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2575. # Solaris 8's {/usr,}/bin/sh.
  2576. touch sub/conftst$i.h
  2577. done
  2578. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2579. case $depmode in
  2580. nosideeffect)
  2581. # after this tag, mechanisms are not by side-effect, so they'll
  2582. # only be used when explicitly requested
  2583. if test "x$enable_dependency_tracking" = xyes; then
  2584. continue
  2585. else
  2586. break
  2587. fi
  2588. ;;
  2589. none) break ;;
  2590. esac
  2591. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2592. # mode. It turns out that the SunPro C++ compiler does not properly
  2593. # handle `-M -o', and we need to detect this.
  2594. if depmode=$depmode \
  2595. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2596. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2597. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2598. >/dev/null 2>conftest.err &&
  2599. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2600. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2601. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2602. # icc doesn't choke on unknown options, it will just issue warnings
  2603. # or remarks (even with -Werror). So we grep stderr for any message
  2604. # that says an option was ignored or not supported.
  2605. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2606. # icc: Command line warning: ignoring option '-M'; no argument required
  2607. # The diagnosis changed in icc 8.0:
  2608. # icc: Command line remark: option '-MP' not supported
  2609. if (grep 'ignoring option' conftest.err ||
  2610. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2611. am_cv_CC_dependencies_compiler_type=$depmode
  2612. break
  2613. fi
  2614. fi
  2615. done
  2616. cd ..
  2617. rm -rf conftest.dir
  2618. else
  2619. am_cv_CC_dependencies_compiler_type=none
  2620. fi
  2621. fi
  2622. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2623. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2624. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2625. if
  2626. test "x$enable_dependency_tracking" != xno \
  2627. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2628. am__fastdepCC_TRUE=
  2629. am__fastdepCC_FALSE='#'
  2630. else
  2631. am__fastdepCC_TRUE='#'
  2632. am__fastdepCC_FALSE=
  2633. fi
  2634. # -- Helper programs --
  2635. for ac_prog in gawk mawk nawk awk
  2636. do
  2637. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2638. set dummy $ac_prog; ac_word=$2
  2639. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2640. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2641. if test "${ac_cv_prog_AWK+set}" = set; then
  2642. echo $ECHO_N "(cached) $ECHO_C" >&6
  2643. else
  2644. if test -n "$AWK"; then
  2645. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2646. else
  2647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2648. for as_dir in $PATH
  2649. do
  2650. IFS=$as_save_IFS
  2651. test -z "$as_dir" && as_dir=.
  2652. for ac_exec_ext in '' $ac_executable_extensions; do
  2653. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2654. ac_cv_prog_AWK="$ac_prog"
  2655. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2656. break 2
  2657. fi
  2658. done
  2659. done
  2660. fi
  2661. fi
  2662. AWK=$ac_cv_prog_AWK
  2663. if test -n "$AWK"; then
  2664. echo "$as_me:$LINENO: result: $AWK" >&5
  2665. echo "${ECHO_T}$AWK" >&6
  2666. else
  2667. echo "$as_me:$LINENO: result: no" >&5
  2668. echo "${ECHO_T}no" >&6
  2669. fi
  2670. test -n "$AWK" && break
  2671. done
  2672. # Find a good install program. We prefer a C program (faster),
  2673. # so one script is as good as another. But avoid the broken or
  2674. # incompatible versions:
  2675. # SysV /etc/install, /usr/sbin/install
  2676. # SunOS /usr/etc/install
  2677. # IRIX /sbin/install
  2678. # AIX /bin/install
  2679. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2680. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2681. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2682. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2683. # OS/2's system install, which has a completely different semantic
  2684. # ./install, which can be erroneously created by make from ./install.sh.
  2685. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2686. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2687. if test -z "$INSTALL"; then
  2688. if test "${ac_cv_path_install+set}" = set; then
  2689. echo $ECHO_N "(cached) $ECHO_C" >&6
  2690. else
  2691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2692. for as_dir in $PATH
  2693. do
  2694. IFS=$as_save_IFS
  2695. test -z "$as_dir" && as_dir=.
  2696. # Account for people who put trailing slashes in PATH elements.
  2697. case $as_dir/ in
  2698. ./ | .// | /cC/* | \
  2699. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2700. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2701. /usr/ucb/* ) ;;
  2702. *)
  2703. # OSF1 and SCO ODT 3.0 have their own names for install.
  2704. # Don't use installbsd from OSF since it installs stuff as root
  2705. # by default.
  2706. for ac_prog in ginstall scoinst install; do
  2707. for ac_exec_ext in '' $ac_executable_extensions; do
  2708. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2709. if test $ac_prog = install &&
  2710. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2711. # AIX install. It has an incompatible calling convention.
  2712. :
  2713. elif test $ac_prog = install &&
  2714. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2715. # program-specific install script used by HP pwplus--don't use.
  2716. :
  2717. else
  2718. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2719. break 3
  2720. fi
  2721. fi
  2722. done
  2723. done
  2724. ;;
  2725. esac
  2726. done
  2727. fi
  2728. if test "${ac_cv_path_install+set}" = set; then
  2729. INSTALL=$ac_cv_path_install
  2730. else
  2731. # As a last resort, use the slow shell script. We don't cache a
  2732. # path for INSTALL within a source directory, because that will
  2733. # break other packages using the cache if that directory is
  2734. # removed, or if the path is relative.
  2735. INSTALL=$ac_install_sh
  2736. fi
  2737. fi
  2738. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2739. echo "${ECHO_T}$INSTALL" >&6
  2740. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2741. # It thinks the first close brace ends the variable substitution.
  2742. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2743. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2744. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2745. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2746. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2747. LN_S=$as_ln_s
  2748. if test "$LN_S" = "ln -s"; then
  2749. echo "$as_me:$LINENO: result: yes" >&5
  2750. echo "${ECHO_T}yes" >&6
  2751. else
  2752. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2753. echo "${ECHO_T}no, using $LN_S" >&6
  2754. fi
  2755. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2756. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2757. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2758. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2759. echo $ECHO_N "(cached) $ECHO_C" >&6
  2760. else
  2761. cat >conftest.make <<\_ACEOF
  2762. all:
  2763. @echo 'ac_maketemp="$(MAKE)"'
  2764. _ACEOF
  2765. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2766. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2767. if test -n "$ac_maketemp"; then
  2768. eval ac_cv_prog_make_${ac_make}_set=yes
  2769. else
  2770. eval ac_cv_prog_make_${ac_make}_set=no
  2771. fi
  2772. rm -f conftest.make
  2773. fi
  2774. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2775. echo "$as_me:$LINENO: result: yes" >&5
  2776. echo "${ECHO_T}yes" >&6
  2777. SET_MAKE=
  2778. else
  2779. echo "$as_me:$LINENO: result: no" >&5
  2780. echo "${ECHO_T}no" >&6
  2781. SET_MAKE="MAKE=${MAKE-make}"
  2782. fi
  2783. if test -n "$ac_tool_prefix"; then
  2784. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2785. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2786. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2787. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2788. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2789. echo $ECHO_N "(cached) $ECHO_C" >&6
  2790. else
  2791. if test -n "$RANLIB"; then
  2792. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2793. else
  2794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2795. for as_dir in $PATH
  2796. do
  2797. IFS=$as_save_IFS
  2798. test -z "$as_dir" && as_dir=.
  2799. for ac_exec_ext in '' $ac_executable_extensions; do
  2800. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2801. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2802. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2803. break 2
  2804. fi
  2805. done
  2806. done
  2807. fi
  2808. fi
  2809. RANLIB=$ac_cv_prog_RANLIB
  2810. if test -n "$RANLIB"; then
  2811. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2812. echo "${ECHO_T}$RANLIB" >&6
  2813. else
  2814. echo "$as_me:$LINENO: result: no" >&5
  2815. echo "${ECHO_T}no" >&6
  2816. fi
  2817. fi
  2818. if test -z "$ac_cv_prog_RANLIB"; then
  2819. ac_ct_RANLIB=$RANLIB
  2820. # Extract the first word of "ranlib", so it can be a program name with args.
  2821. set dummy ranlib; ac_word=$2
  2822. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2823. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2824. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2825. echo $ECHO_N "(cached) $ECHO_C" >&6
  2826. else
  2827. if test -n "$ac_ct_RANLIB"; then
  2828. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2829. else
  2830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2831. for as_dir in $PATH
  2832. do
  2833. IFS=$as_save_IFS
  2834. test -z "$as_dir" && as_dir=.
  2835. for ac_exec_ext in '' $ac_executable_extensions; do
  2836. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2837. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2838. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2839. break 2
  2840. fi
  2841. done
  2842. done
  2843. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2844. fi
  2845. fi
  2846. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2847. if test -n "$ac_ct_RANLIB"; then
  2848. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2849. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2850. else
  2851. echo "$as_me:$LINENO: result: no" >&5
  2852. echo "${ECHO_T}no" >&6
  2853. fi
  2854. RANLIB=$ac_ct_RANLIB
  2855. else
  2856. RANLIB="$ac_cv_prog_RANLIB"
  2857. fi
  2858. # -- Compiler Features --
  2859. echo "$as_me:$LINENO: checking for function prototypes" >&5
  2860. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  2861. if test "$ac_cv_prog_cc_stdc" != no; then
  2862. echo "$as_me:$LINENO: result: yes" >&5
  2863. echo "${ECHO_T}yes" >&6
  2864. cat >>confdefs.h <<\_ACEOF
  2865. #define PROTOTYPES 1
  2866. _ACEOF
  2867. cat >>confdefs.h <<\_ACEOF
  2868. #define __PROTOTYPES 1
  2869. _ACEOF
  2870. else
  2871. echo "$as_me:$LINENO: result: no" >&5
  2872. echo "${ECHO_T}no" >&6
  2873. fi
  2874. ac_ext=c
  2875. ac_cpp='$CPP $CPPFLAGS'
  2876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2879. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2880. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2881. # On Suns, sometimes $CPP names a directory.
  2882. if test -n "$CPP" && test -d "$CPP"; then
  2883. CPP=
  2884. fi
  2885. if test -z "$CPP"; then
  2886. if test "${ac_cv_prog_CPP+set}" = set; then
  2887. echo $ECHO_N "(cached) $ECHO_C" >&6
  2888. else
  2889. # Double quotes because CPP needs to be expanded
  2890. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2891. do
  2892. ac_preproc_ok=false
  2893. for ac_c_preproc_warn_flag in '' yes
  2894. do
  2895. # Use a header file that comes with gcc, so configuring glibc
  2896. # with a fresh cross-compiler works.
  2897. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2898. # <limits.h> exists even on freestanding compilers.
  2899. # On the NeXT, cc -E runs the code through the compiler's parser,
  2900. # not just through cpp. "Syntax error" is here to catch this case.
  2901. cat >conftest.$ac_ext <<_ACEOF
  2902. /* confdefs.h. */
  2903. _ACEOF
  2904. cat confdefs.h >>conftest.$ac_ext
  2905. cat >>conftest.$ac_ext <<_ACEOF
  2906. /* end confdefs.h. */
  2907. #ifdef __STDC__
  2908. # include <limits.h>
  2909. #else
  2910. # include <assert.h>
  2911. #endif
  2912. Syntax error
  2913. _ACEOF
  2914. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2915. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2916. ac_status=$?
  2917. grep -v '^ *+' conftest.er1 >conftest.err
  2918. rm -f conftest.er1
  2919. cat conftest.err >&5
  2920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921. (exit $ac_status); } >/dev/null; then
  2922. if test -s conftest.err; then
  2923. ac_cpp_err=$ac_c_preproc_warn_flag
  2924. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2925. else
  2926. ac_cpp_err=
  2927. fi
  2928. else
  2929. ac_cpp_err=yes
  2930. fi
  2931. if test -z "$ac_cpp_err"; then
  2932. :
  2933. else
  2934. echo "$as_me: failed program was:" >&5
  2935. sed 's/^/| /' conftest.$ac_ext >&5
  2936. # Broken: fails on valid input.
  2937. continue
  2938. fi
  2939. rm -f conftest.err conftest.$ac_ext
  2940. # OK, works on sane cases. Now check whether non-existent headers
  2941. # can be detected and how.
  2942. cat >conftest.$ac_ext <<_ACEOF
  2943. /* confdefs.h. */
  2944. _ACEOF
  2945. cat confdefs.h >>conftest.$ac_ext
  2946. cat >>conftest.$ac_ext <<_ACEOF
  2947. /* end confdefs.h. */
  2948. #include <ac_nonexistent.h>
  2949. _ACEOF
  2950. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2951. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2952. ac_status=$?
  2953. grep -v '^ *+' conftest.er1 >conftest.err
  2954. rm -f conftest.er1
  2955. cat conftest.err >&5
  2956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2957. (exit $ac_status); } >/dev/null; then
  2958. if test -s conftest.err; then
  2959. ac_cpp_err=$ac_c_preproc_warn_flag
  2960. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2961. else
  2962. ac_cpp_err=
  2963. fi
  2964. else
  2965. ac_cpp_err=yes
  2966. fi
  2967. if test -z "$ac_cpp_err"; then
  2968. # Broken: success on invalid input.
  2969. continue
  2970. else
  2971. echo "$as_me: failed program was:" >&5
  2972. sed 's/^/| /' conftest.$ac_ext >&5
  2973. # Passes both tests.
  2974. ac_preproc_ok=:
  2975. break
  2976. fi
  2977. rm -f conftest.err conftest.$ac_ext
  2978. done
  2979. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2980. rm -f conftest.err conftest.$ac_ext
  2981. if $ac_preproc_ok; then
  2982. break
  2983. fi
  2984. done
  2985. ac_cv_prog_CPP=$CPP
  2986. fi
  2987. CPP=$ac_cv_prog_CPP
  2988. else
  2989. ac_cv_prog_CPP=$CPP
  2990. fi
  2991. echo "$as_me:$LINENO: result: $CPP" >&5
  2992. echo "${ECHO_T}$CPP" >&6
  2993. ac_preproc_ok=false
  2994. for ac_c_preproc_warn_flag in '' yes
  2995. do
  2996. # Use a header file that comes with gcc, so configuring glibc
  2997. # with a fresh cross-compiler works.
  2998. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2999. # <limits.h> exists even on freestanding compilers.
  3000. # On the NeXT, cc -E runs the code through the compiler's parser,
  3001. # not just through cpp. "Syntax error" is here to catch this case.
  3002. cat >conftest.$ac_ext <<_ACEOF
  3003. /* confdefs.h. */
  3004. _ACEOF
  3005. cat confdefs.h >>conftest.$ac_ext
  3006. cat >>conftest.$ac_ext <<_ACEOF
  3007. /* end confdefs.h. */
  3008. #ifdef __STDC__
  3009. # include <limits.h>
  3010. #else
  3011. # include <assert.h>
  3012. #endif
  3013. Syntax error
  3014. _ACEOF
  3015. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3016. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3017. ac_status=$?
  3018. grep -v '^ *+' conftest.er1 >conftest.err
  3019. rm -f conftest.er1
  3020. cat conftest.err >&5
  3021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3022. (exit $ac_status); } >/dev/null; then
  3023. if test -s conftest.err; then
  3024. ac_cpp_err=$ac_c_preproc_warn_flag
  3025. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3026. else
  3027. ac_cpp_err=
  3028. fi
  3029. else
  3030. ac_cpp_err=yes
  3031. fi
  3032. if test -z "$ac_cpp_err"; then
  3033. :
  3034. else
  3035. echo "$as_me: failed program was:" >&5
  3036. sed 's/^/| /' conftest.$ac_ext >&5
  3037. # Broken: fails on valid input.
  3038. continue
  3039. fi
  3040. rm -f conftest.err conftest.$ac_ext
  3041. # OK, works on sane cases. Now check whether non-existent headers
  3042. # can be detected and how.
  3043. cat >conftest.$ac_ext <<_ACEOF
  3044. /* confdefs.h. */
  3045. _ACEOF
  3046. cat confdefs.h >>conftest.$ac_ext
  3047. cat >>conftest.$ac_ext <<_ACEOF
  3048. /* end confdefs.h. */
  3049. #include <ac_nonexistent.h>
  3050. _ACEOF
  3051. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3052. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3053. ac_status=$?
  3054. grep -v '^ *+' conftest.er1 >conftest.err
  3055. rm -f conftest.er1
  3056. cat conftest.err >&5
  3057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3058. (exit $ac_status); } >/dev/null; then
  3059. if test -s conftest.err; then
  3060. ac_cpp_err=$ac_c_preproc_warn_flag
  3061. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3062. else
  3063. ac_cpp_err=
  3064. fi
  3065. else
  3066. ac_cpp_err=yes
  3067. fi
  3068. if test -z "$ac_cpp_err"; then
  3069. # Broken: success on invalid input.
  3070. continue
  3071. else
  3072. echo "$as_me: failed program was:" >&5
  3073. sed 's/^/| /' conftest.$ac_ext >&5
  3074. # Passes both tests.
  3075. ac_preproc_ok=:
  3076. break
  3077. fi
  3078. rm -f conftest.err conftest.$ac_ext
  3079. done
  3080. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3081. rm -f conftest.err conftest.$ac_ext
  3082. if $ac_preproc_ok; then
  3083. :
  3084. else
  3085. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3086. See \`config.log' for more details." >&5
  3087. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3088. See \`config.log' for more details." >&2;}
  3089. { (exit 1); exit 1; }; }
  3090. fi
  3091. ac_ext=c
  3092. ac_cpp='$CPP $CPPFLAGS'
  3093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3096. echo "$as_me:$LINENO: checking for egrep" >&5
  3097. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3098. if test "${ac_cv_prog_egrep+set}" = set; then
  3099. echo $ECHO_N "(cached) $ECHO_C" >&6
  3100. else
  3101. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3102. then ac_cv_prog_egrep='grep -E'
  3103. else ac_cv_prog_egrep='egrep'
  3104. fi
  3105. fi
  3106. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3107. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3108. EGREP=$ac_cv_prog_egrep
  3109. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3110. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3111. if test "${ac_cv_header_stdc+set}" = set; then
  3112. echo $ECHO_N "(cached) $ECHO_C" >&6
  3113. else
  3114. cat >conftest.$ac_ext <<_ACEOF
  3115. /* confdefs.h. */
  3116. _ACEOF
  3117. cat confdefs.h >>conftest.$ac_ext
  3118. cat >>conftest.$ac_ext <<_ACEOF
  3119. /* end confdefs.h. */
  3120. #include <stdlib.h>
  3121. #include <stdarg.h>
  3122. #include <string.h>
  3123. #include <float.h>
  3124. int
  3125. main ()
  3126. {
  3127. ;
  3128. return 0;
  3129. }
  3130. _ACEOF
  3131. rm -f conftest.$ac_objext
  3132. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3133. (eval $ac_compile) 2>conftest.er1
  3134. ac_status=$?
  3135. grep -v '^ *+' conftest.er1 >conftest.err
  3136. rm -f conftest.er1
  3137. cat conftest.err >&5
  3138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3139. (exit $ac_status); } &&
  3140. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3142. (eval $ac_try) 2>&5
  3143. ac_status=$?
  3144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3145. (exit $ac_status); }; } &&
  3146. { ac_try='test -s conftest.$ac_objext'
  3147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3148. (eval $ac_try) 2>&5
  3149. ac_status=$?
  3150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3151. (exit $ac_status); }; }; then
  3152. ac_cv_header_stdc=yes
  3153. else
  3154. echo "$as_me: failed program was:" >&5
  3155. sed 's/^/| /' conftest.$ac_ext >&5
  3156. ac_cv_header_stdc=no
  3157. fi
  3158. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3159. if test $ac_cv_header_stdc = yes; then
  3160. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3161. cat >conftest.$ac_ext <<_ACEOF
  3162. /* confdefs.h. */
  3163. _ACEOF
  3164. cat confdefs.h >>conftest.$ac_ext
  3165. cat >>conftest.$ac_ext <<_ACEOF
  3166. /* end confdefs.h. */
  3167. #include <string.h>
  3168. _ACEOF
  3169. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3170. $EGREP "memchr" >/dev/null 2>&1; then
  3171. :
  3172. else
  3173. ac_cv_header_stdc=no
  3174. fi
  3175. rm -f conftest*
  3176. fi
  3177. if test $ac_cv_header_stdc = yes; then
  3178. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3179. cat >conftest.$ac_ext <<_ACEOF
  3180. /* confdefs.h. */
  3181. _ACEOF
  3182. cat confdefs.h >>conftest.$ac_ext
  3183. cat >>conftest.$ac_ext <<_ACEOF
  3184. /* end confdefs.h. */
  3185. #include <stdlib.h>
  3186. _ACEOF
  3187. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3188. $EGREP "free" >/dev/null 2>&1; then
  3189. :
  3190. else
  3191. ac_cv_header_stdc=no
  3192. fi
  3193. rm -f conftest*
  3194. fi
  3195. if test $ac_cv_header_stdc = yes; then
  3196. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3197. if test "$cross_compiling" = yes; then
  3198. :
  3199. else
  3200. cat >conftest.$ac_ext <<_ACEOF
  3201. /* confdefs.h. */
  3202. _ACEOF
  3203. cat confdefs.h >>conftest.$ac_ext
  3204. cat >>conftest.$ac_ext <<_ACEOF
  3205. /* end confdefs.h. */
  3206. #include <ctype.h>
  3207. #if ((' ' & 0x0FF) == 0x020)
  3208. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3209. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3210. #else
  3211. # define ISLOWER(c) \
  3212. (('a' <= (c) && (c) <= 'i') \
  3213. || ('j' <= (c) && (c) <= 'r') \
  3214. || ('s' <= (c) && (c) <= 'z'))
  3215. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3216. #endif
  3217. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3218. int
  3219. main ()
  3220. {
  3221. int i;
  3222. for (i = 0; i < 256; i++)
  3223. if (XOR (islower (i), ISLOWER (i))
  3224. || toupper (i) != TOUPPER (i))
  3225. exit(2);
  3226. exit (0);
  3227. }
  3228. _ACEOF
  3229. rm -f conftest$ac_exeext
  3230. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3231. (eval $ac_link) 2>&5
  3232. ac_status=$?
  3233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3234. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3236. (eval $ac_try) 2>&5
  3237. ac_status=$?
  3238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3239. (exit $ac_status); }; }; then
  3240. :
  3241. else
  3242. echo "$as_me: program exited with status $ac_status" >&5
  3243. echo "$as_me: failed program was:" >&5
  3244. sed 's/^/| /' conftest.$ac_ext >&5
  3245. ( exit $ac_status )
  3246. ac_cv_header_stdc=no
  3247. fi
  3248. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3249. fi
  3250. fi
  3251. fi
  3252. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3253. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3254. if test $ac_cv_header_stdc = yes; then
  3255. cat >>confdefs.h <<\_ACEOF
  3256. #define STDC_HEADERS 1
  3257. _ACEOF
  3258. fi
  3259. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3260. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3261. inttypes.h stdint.h unistd.h
  3262. do
  3263. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3264. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3265. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3266. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3267. echo $ECHO_N "(cached) $ECHO_C" >&6
  3268. else
  3269. cat >conftest.$ac_ext <<_ACEOF
  3270. /* confdefs.h. */
  3271. _ACEOF
  3272. cat confdefs.h >>conftest.$ac_ext
  3273. cat >>conftest.$ac_ext <<_ACEOF
  3274. /* end confdefs.h. */
  3275. $ac_includes_default
  3276. #include <$ac_header>
  3277. _ACEOF
  3278. rm -f conftest.$ac_objext
  3279. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3280. (eval $ac_compile) 2>conftest.er1
  3281. ac_status=$?
  3282. grep -v '^ *+' conftest.er1 >conftest.err
  3283. rm -f conftest.er1
  3284. cat conftest.err >&5
  3285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3286. (exit $ac_status); } &&
  3287. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3289. (eval $ac_try) 2>&5
  3290. ac_status=$?
  3291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3292. (exit $ac_status); }; } &&
  3293. { ac_try='test -s conftest.$ac_objext'
  3294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3295. (eval $ac_try) 2>&5
  3296. ac_status=$?
  3297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3298. (exit $ac_status); }; }; then
  3299. eval "$as_ac_Header=yes"
  3300. else
  3301. echo "$as_me: failed program was:" >&5
  3302. sed 's/^/| /' conftest.$ac_ext >&5
  3303. eval "$as_ac_Header=no"
  3304. fi
  3305. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3306. fi
  3307. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3308. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3309. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3310. cat >>confdefs.h <<_ACEOF
  3311. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3312. _ACEOF
  3313. fi
  3314. done
  3315. if test "$ac_cv_prog_cc_stdc" != no; then
  3316. U= ANSI2KNR=
  3317. else
  3318. U=_ ANSI2KNR=./ansi2knr
  3319. fi
  3320. # Ensure some checks needed by ansi2knr itself.
  3321. for ac_header in string.h
  3322. do
  3323. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3324. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3325. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3326. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3328. echo $ECHO_N "(cached) $ECHO_C" >&6
  3329. fi
  3330. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3331. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3332. else
  3333. # Is the header compilable?
  3334. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3335. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3336. cat >conftest.$ac_ext <<_ACEOF
  3337. /* confdefs.h. */
  3338. _ACEOF
  3339. cat confdefs.h >>conftest.$ac_ext
  3340. cat >>conftest.$ac_ext <<_ACEOF
  3341. /* end confdefs.h. */
  3342. $ac_includes_default
  3343. #include <$ac_header>
  3344. _ACEOF
  3345. rm -f conftest.$ac_objext
  3346. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3347. (eval $ac_compile) 2>conftest.er1
  3348. ac_status=$?
  3349. grep -v '^ *+' conftest.er1 >conftest.err
  3350. rm -f conftest.er1
  3351. cat conftest.err >&5
  3352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3353. (exit $ac_status); } &&
  3354. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3356. (eval $ac_try) 2>&5
  3357. ac_status=$?
  3358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3359. (exit $ac_status); }; } &&
  3360. { ac_try='test -s conftest.$ac_objext'
  3361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3362. (eval $ac_try) 2>&5
  3363. ac_status=$?
  3364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3365. (exit $ac_status); }; }; then
  3366. ac_header_compiler=yes
  3367. else
  3368. echo "$as_me: failed program was:" >&5
  3369. sed 's/^/| /' conftest.$ac_ext >&5
  3370. ac_header_compiler=no
  3371. fi
  3372. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3373. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3374. echo "${ECHO_T}$ac_header_compiler" >&6
  3375. # Is the header present?
  3376. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3377. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3378. cat >conftest.$ac_ext <<_ACEOF
  3379. /* confdefs.h. */
  3380. _ACEOF
  3381. cat confdefs.h >>conftest.$ac_ext
  3382. cat >>conftest.$ac_ext <<_ACEOF
  3383. /* end confdefs.h. */
  3384. #include <$ac_header>
  3385. _ACEOF
  3386. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3387. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3388. ac_status=$?
  3389. grep -v '^ *+' conftest.er1 >conftest.err
  3390. rm -f conftest.er1
  3391. cat conftest.err >&5
  3392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3393. (exit $ac_status); } >/dev/null; then
  3394. if test -s conftest.err; then
  3395. ac_cpp_err=$ac_c_preproc_warn_flag
  3396. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3397. else
  3398. ac_cpp_err=
  3399. fi
  3400. else
  3401. ac_cpp_err=yes
  3402. fi
  3403. if test -z "$ac_cpp_err"; then
  3404. ac_header_preproc=yes
  3405. else
  3406. echo "$as_me: failed program was:" >&5
  3407. sed 's/^/| /' conftest.$ac_ext >&5
  3408. ac_header_preproc=no
  3409. fi
  3410. rm -f conftest.err conftest.$ac_ext
  3411. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3412. echo "${ECHO_T}$ac_header_preproc" >&6
  3413. # So? What about this header?
  3414. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3415. yes:no: )
  3416. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3417. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3418. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3419. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3420. ac_header_preproc=yes
  3421. ;;
  3422. no:yes:* )
  3423. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3424. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3425. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3426. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3427. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3428. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3429. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3430. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3431. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3432. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3433. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3434. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3435. (
  3436. cat <<\_ASBOX
  3437. ## --------------------------------- ##
  3438. ## Report this to the ngircd lists. ##
  3439. ## --------------------------------- ##
  3440. _ASBOX
  3441. ) |
  3442. sed "s/^/$as_me: WARNING: /" >&2
  3443. ;;
  3444. esac
  3445. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3446. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3447. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3448. echo $ECHO_N "(cached) $ECHO_C" >&6
  3449. else
  3450. eval "$as_ac_Header=\$ac_header_preproc"
  3451. fi
  3452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3453. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3454. fi
  3455. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3456. cat >>confdefs.h <<_ACEOF
  3457. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3458. _ACEOF
  3459. fi
  3460. done
  3461. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3462. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3463. if test "${ac_cv_c_const+set}" = set; then
  3464. echo $ECHO_N "(cached) $ECHO_C" >&6
  3465. else
  3466. cat >conftest.$ac_ext <<_ACEOF
  3467. /* confdefs.h. */
  3468. _ACEOF
  3469. cat confdefs.h >>conftest.$ac_ext
  3470. cat >>conftest.$ac_ext <<_ACEOF
  3471. /* end confdefs.h. */
  3472. int
  3473. main ()
  3474. {
  3475. /* FIXME: Include the comments suggested by Paul. */
  3476. #ifndef __cplusplus
  3477. /* Ultrix mips cc rejects this. */
  3478. typedef int charset[2];
  3479. const charset x;
  3480. /* SunOS 4.1.1 cc rejects this. */
  3481. char const *const *ccp;
  3482. char **p;
  3483. /* NEC SVR4.0.2 mips cc rejects this. */
  3484. struct point {int x, y;};
  3485. static struct point const zero = {0,0};
  3486. /* AIX XL C 1.02.0.0 rejects this.
  3487. It does not let you subtract one const X* pointer from another in
  3488. an arm of an if-expression whose if-part is not a constant
  3489. expression */
  3490. const char *g = "string";
  3491. ccp = &g + (g ? g-g : 0);
  3492. /* HPUX 7.0 cc rejects these. */
  3493. ++ccp;
  3494. p = (char**) ccp;
  3495. ccp = (char const *const *) p;
  3496. { /* SCO 3.2v4 cc rejects this. */
  3497. char *t;
  3498. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3499. *t++ = 0;
  3500. }
  3501. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3502. int x[] = {25, 17};
  3503. const int *foo = &x[0];
  3504. ++foo;
  3505. }
  3506. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3507. typedef const int *iptr;
  3508. iptr p = 0;
  3509. ++p;
  3510. }
  3511. { /* AIX XL C 1.02.0.0 rejects this saying
  3512. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3513. struct s { int j; const int *ap[3]; };
  3514. struct s *b; b->j = 5;
  3515. }
  3516. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3517. const int foo = 10;
  3518. }
  3519. #endif
  3520. ;
  3521. return 0;
  3522. }
  3523. _ACEOF
  3524. rm -f conftest.$ac_objext
  3525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3526. (eval $ac_compile) 2>conftest.er1
  3527. ac_status=$?
  3528. grep -v '^ *+' conftest.er1 >conftest.err
  3529. rm -f conftest.er1
  3530. cat conftest.err >&5
  3531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3532. (exit $ac_status); } &&
  3533. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3535. (eval $ac_try) 2>&5
  3536. ac_status=$?
  3537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3538. (exit $ac_status); }; } &&
  3539. { ac_try='test -s conftest.$ac_objext'
  3540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3541. (eval $ac_try) 2>&5
  3542. ac_status=$?
  3543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3544. (exit $ac_status); }; }; then
  3545. ac_cv_c_const=yes
  3546. else
  3547. echo "$as_me: failed program was:" >&5
  3548. sed 's/^/| /' conftest.$ac_ext >&5
  3549. ac_cv_c_const=no
  3550. fi
  3551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3552. fi
  3553. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3554. echo "${ECHO_T}$ac_cv_c_const" >&6
  3555. if test $ac_cv_c_const = no; then
  3556. cat >>confdefs.h <<\_ACEOF
  3557. #define const
  3558. _ACEOF
  3559. fi
  3560. echo "$as_me:$LINENO: checking for inline" >&5
  3561. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  3562. if test "${ac_cv_c_inline+set}" = set; then
  3563. echo $ECHO_N "(cached) $ECHO_C" >&6
  3564. else
  3565. ac_cv_c_inline=no
  3566. for ac_kw in inline __inline__ __inline; do
  3567. cat >conftest.$ac_ext <<_ACEOF
  3568. /* confdefs.h. */
  3569. _ACEOF
  3570. cat confdefs.h >>conftest.$ac_ext
  3571. cat >>conftest.$ac_ext <<_ACEOF
  3572. /* end confdefs.h. */
  3573. #ifndef __cplusplus
  3574. typedef int foo_t;
  3575. static $ac_kw foo_t static_foo () {return 0; }
  3576. $ac_kw foo_t foo () {return 0; }
  3577. #endif
  3578. _ACEOF
  3579. rm -f conftest.$ac_objext
  3580. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3581. (eval $ac_compile) 2>conftest.er1
  3582. ac_status=$?
  3583. grep -v '^ *+' conftest.er1 >conftest.err
  3584. rm -f conftest.er1
  3585. cat conftest.err >&5
  3586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3587. (exit $ac_status); } &&
  3588. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3590. (eval $ac_try) 2>&5
  3591. ac_status=$?
  3592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3593. (exit $ac_status); }; } &&
  3594. { ac_try='test -s conftest.$ac_objext'
  3595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3596. (eval $ac_try) 2>&5
  3597. ac_status=$?
  3598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3599. (exit $ac_status); }; }; then
  3600. ac_cv_c_inline=$ac_kw; break
  3601. else
  3602. echo "$as_me: failed program was:" >&5
  3603. sed 's/^/| /' conftest.$ac_ext >&5
  3604. fi
  3605. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3606. done
  3607. fi
  3608. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  3609. echo "${ECHO_T}$ac_cv_c_inline" >&6
  3610. case $ac_cv_c_inline in
  3611. inline | yes) ;;
  3612. *)
  3613. case $ac_cv_c_inline in
  3614. no) ac_val=;;
  3615. *) ac_val=$ac_cv_c_inline;;
  3616. esac
  3617. cat >>confdefs.h <<_ACEOF
  3618. #ifndef __cplusplus
  3619. #define inline $ac_val
  3620. #endif
  3621. _ACEOF
  3622. ;;
  3623. esac
  3624. # -- Hard coded system and compiler dependencies/features/options ... --
  3625. if test "$GCC" = "yes"; then
  3626. # We are using the GNU C compiler. Good!
  3627. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  3628. ssp_cc=yes
  3629. # we use -fstack-protector-all for the test to enfoce the use of the guard variable
  3630. echo "$as_me:$LINENO: checking whether ${CC} accepts -fstack-protector" >&5
  3631. echo $ECHO_N "checking whether ${CC} accepts -fstack-protector... $ECHO_C" >&6
  3632. ssp_old_cflags="$CFLAGS"
  3633. CFLAGS="$CFLAGS -fstack-protector-all"
  3634. cat >conftest.$ac_ext <<_ACEOF
  3635. /* confdefs.h. */
  3636. _ACEOF
  3637. cat confdefs.h >>conftest.$ac_ext
  3638. cat >>conftest.$ac_ext <<_ACEOF
  3639. /* end confdefs.h. */
  3640. int
  3641. main ()
  3642. {
  3643. ;
  3644. return 0;
  3645. }
  3646. _ACEOF
  3647. rm -f conftest.$ac_objext conftest$ac_exeext
  3648. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3649. (eval $ac_link) 2>conftest.er1
  3650. ac_status=$?
  3651. grep -v '^ *+' conftest.er1 >conftest.err
  3652. rm -f conftest.er1
  3653. cat conftest.err >&5
  3654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3655. (exit $ac_status); } &&
  3656. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3658. (eval $ac_try) 2>&5
  3659. ac_status=$?
  3660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3661. (exit $ac_status); }; } &&
  3662. { ac_try='test -s conftest$ac_exeext'
  3663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3664. (eval $ac_try) 2>&5
  3665. ac_status=$?
  3666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3667. (exit $ac_status); }; }; then
  3668. :
  3669. else
  3670. echo "$as_me: failed program was:" >&5
  3671. sed 's/^/| /' conftest.$ac_ext >&5
  3672. ssp_cc=no
  3673. fi
  3674. rm -f conftest.err conftest.$ac_objext \
  3675. conftest$ac_exeext conftest.$ac_ext
  3676. echo $ssp_cc
  3677. CFLAGS="$ssp_old_cflags"
  3678. if test "X$ssp_cc" = "Xyes"; then
  3679. CFLAGS="$CFLAGS -fstack-protector"
  3680. cat >>confdefs.h <<\_ACEOF
  3681. #define ENABLE_SSP_CC 1
  3682. _ACEOF
  3683. fi
  3684. fi
  3685. case "$target_os" in
  3686. hpux*)
  3687. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  3688. # (tested with HP/UX 11.11)
  3689. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  3690. ;;
  3691. esac
  3692. # Add additional CFLAGS, eventually specified on the command line:
  3693. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  3694. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
  3695. # -- Headers --
  3696. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3697. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3698. if test "${ac_cv_header_stdc+set}" = set; then
  3699. echo $ECHO_N "(cached) $ECHO_C" >&6
  3700. else
  3701. cat >conftest.$ac_ext <<_ACEOF
  3702. /* confdefs.h. */
  3703. _ACEOF
  3704. cat confdefs.h >>conftest.$ac_ext
  3705. cat >>conftest.$ac_ext <<_ACEOF
  3706. /* end confdefs.h. */
  3707. #include <stdlib.h>
  3708. #include <stdarg.h>
  3709. #include <string.h>
  3710. #include <float.h>
  3711. int
  3712. main ()
  3713. {
  3714. ;
  3715. return 0;
  3716. }
  3717. _ACEOF
  3718. rm -f conftest.$ac_objext
  3719. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3720. (eval $ac_compile) 2>conftest.er1
  3721. ac_status=$?
  3722. grep -v '^ *+' conftest.er1 >conftest.err
  3723. rm -f conftest.er1
  3724. cat conftest.err >&5
  3725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3726. (exit $ac_status); } &&
  3727. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3729. (eval $ac_try) 2>&5
  3730. ac_status=$?
  3731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3732. (exit $ac_status); }; } &&
  3733. { ac_try='test -s conftest.$ac_objext'
  3734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3735. (eval $ac_try) 2>&5
  3736. ac_status=$?
  3737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3738. (exit $ac_status); }; }; then
  3739. ac_cv_header_stdc=yes
  3740. else
  3741. echo "$as_me: failed program was:" >&5
  3742. sed 's/^/| /' conftest.$ac_ext >&5
  3743. ac_cv_header_stdc=no
  3744. fi
  3745. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3746. if test $ac_cv_header_stdc = yes; then
  3747. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3748. cat >conftest.$ac_ext <<_ACEOF
  3749. /* confdefs.h. */
  3750. _ACEOF
  3751. cat confdefs.h >>conftest.$ac_ext
  3752. cat >>conftest.$ac_ext <<_ACEOF
  3753. /* end confdefs.h. */
  3754. #include <string.h>
  3755. _ACEOF
  3756. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3757. $EGREP "memchr" >/dev/null 2>&1; then
  3758. :
  3759. else
  3760. ac_cv_header_stdc=no
  3761. fi
  3762. rm -f conftest*
  3763. fi
  3764. if test $ac_cv_header_stdc = yes; then
  3765. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3766. cat >conftest.$ac_ext <<_ACEOF
  3767. /* confdefs.h. */
  3768. _ACEOF
  3769. cat confdefs.h >>conftest.$ac_ext
  3770. cat >>conftest.$ac_ext <<_ACEOF
  3771. /* end confdefs.h. */
  3772. #include <stdlib.h>
  3773. _ACEOF
  3774. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3775. $EGREP "free" >/dev/null 2>&1; then
  3776. :
  3777. else
  3778. ac_cv_header_stdc=no
  3779. fi
  3780. rm -f conftest*
  3781. fi
  3782. if test $ac_cv_header_stdc = yes; then
  3783. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3784. if test "$cross_compiling" = yes; then
  3785. :
  3786. else
  3787. cat >conftest.$ac_ext <<_ACEOF
  3788. /* confdefs.h. */
  3789. _ACEOF
  3790. cat confdefs.h >>conftest.$ac_ext
  3791. cat >>conftest.$ac_ext <<_ACEOF
  3792. /* end confdefs.h. */
  3793. #include <ctype.h>
  3794. #if ((' ' & 0x0FF) == 0x020)
  3795. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3796. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3797. #else
  3798. # define ISLOWER(c) \
  3799. (('a' <= (c) && (c) <= 'i') \
  3800. || ('j' <= (c) && (c) <= 'r') \
  3801. || ('s' <= (c) && (c) <= 'z'))
  3802. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3803. #endif
  3804. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3805. int
  3806. main ()
  3807. {
  3808. int i;
  3809. for (i = 0; i < 256; i++)
  3810. if (XOR (islower (i), ISLOWER (i))
  3811. || toupper (i) != TOUPPER (i))
  3812. exit(2);
  3813. exit (0);
  3814. }
  3815. _ACEOF
  3816. rm -f conftest$ac_exeext
  3817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3818. (eval $ac_link) 2>&5
  3819. ac_status=$?
  3820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3821. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3823. (eval $ac_try) 2>&5
  3824. ac_status=$?
  3825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3826. (exit $ac_status); }; }; then
  3827. :
  3828. else
  3829. echo "$as_me: program exited with status $ac_status" >&5
  3830. echo "$as_me: failed program was:" >&5
  3831. sed 's/^/| /' conftest.$ac_ext >&5
  3832. ( exit $ac_status )
  3833. ac_cv_header_stdc=no
  3834. fi
  3835. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3836. fi
  3837. fi
  3838. fi
  3839. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3840. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3841. if test $ac_cv_header_stdc = yes; then
  3842. cat >>confdefs.h <<\_ACEOF
  3843. #define STDC_HEADERS 1
  3844. _ACEOF
  3845. fi
  3846. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  3847. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3848. if test "${ac_cv_header_time+set}" = set; then
  3849. echo $ECHO_N "(cached) $ECHO_C" >&6
  3850. else
  3851. cat >conftest.$ac_ext <<_ACEOF
  3852. /* confdefs.h. */
  3853. _ACEOF
  3854. cat confdefs.h >>conftest.$ac_ext
  3855. cat >>conftest.$ac_ext <<_ACEOF
  3856. /* end confdefs.h. */
  3857. #include <sys/types.h>
  3858. #include <sys/time.h>
  3859. #include <time.h>
  3860. int
  3861. main ()
  3862. {
  3863. if ((struct tm *) 0)
  3864. return 0;
  3865. ;
  3866. return 0;
  3867. }
  3868. _ACEOF
  3869. rm -f conftest.$ac_objext
  3870. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3871. (eval $ac_compile) 2>conftest.er1
  3872. ac_status=$?
  3873. grep -v '^ *+' conftest.er1 >conftest.err
  3874. rm -f conftest.er1
  3875. cat conftest.err >&5
  3876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877. (exit $ac_status); } &&
  3878. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3880. (eval $ac_try) 2>&5
  3881. ac_status=$?
  3882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3883. (exit $ac_status); }; } &&
  3884. { ac_try='test -s conftest.$ac_objext'
  3885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3886. (eval $ac_try) 2>&5
  3887. ac_status=$?
  3888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); }; }; then
  3890. ac_cv_header_time=yes
  3891. else
  3892. echo "$as_me: failed program was:" >&5
  3893. sed 's/^/| /' conftest.$ac_ext >&5
  3894. ac_cv_header_time=no
  3895. fi
  3896. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3897. fi
  3898. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  3899. echo "${ECHO_T}$ac_cv_header_time" >&6
  3900. if test $ac_cv_header_time = yes; then
  3901. cat >>confdefs.h <<\_ACEOF
  3902. #define TIME_WITH_SYS_TIME 1
  3903. _ACEOF
  3904. fi
  3905. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3906. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3907. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3908. echo $ECHO_N "(cached) $ECHO_C" >&6
  3909. else
  3910. cat >conftest.$ac_ext <<_ACEOF
  3911. /* confdefs.h. */
  3912. _ACEOF
  3913. cat confdefs.h >>conftest.$ac_ext
  3914. cat >>conftest.$ac_ext <<_ACEOF
  3915. /* end confdefs.h. */
  3916. #include <sys/types.h>
  3917. #include <sys/wait.h>
  3918. #ifndef WEXITSTATUS
  3919. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3920. #endif
  3921. #ifndef WIFEXITED
  3922. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3923. #endif
  3924. int
  3925. main ()
  3926. {
  3927. int s;
  3928. wait (&s);
  3929. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3930. ;
  3931. return 0;
  3932. }
  3933. _ACEOF
  3934. rm -f conftest.$ac_objext
  3935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3936. (eval $ac_compile) 2>conftest.er1
  3937. ac_status=$?
  3938. grep -v '^ *+' conftest.er1 >conftest.err
  3939. rm -f conftest.er1
  3940. cat conftest.err >&5
  3941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3942. (exit $ac_status); } &&
  3943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3945. (eval $ac_try) 2>&5
  3946. ac_status=$?
  3947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3948. (exit $ac_status); }; } &&
  3949. { ac_try='test -s conftest.$ac_objext'
  3950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3951. (eval $ac_try) 2>&5
  3952. ac_status=$?
  3953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3954. (exit $ac_status); }; }; then
  3955. ac_cv_header_sys_wait_h=yes
  3956. else
  3957. echo "$as_me: failed program was:" >&5
  3958. sed 's/^/| /' conftest.$ac_ext >&5
  3959. ac_cv_header_sys_wait_h=no
  3960. fi
  3961. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3962. fi
  3963. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  3964. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3965. if test $ac_cv_header_sys_wait_h = yes; then
  3966. cat >>confdefs.h <<\_ACEOF
  3967. #define HAVE_SYS_WAIT_H 1
  3968. _ACEOF
  3969. fi
  3970. for ac_header in \
  3971. ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \
  3972. strings.h sys/socket.h sys/time.h unistd.h \
  3973. do
  3974. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3975. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3976. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3977. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3978. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3979. echo $ECHO_N "(cached) $ECHO_C" >&6
  3980. fi
  3981. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3982. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3983. else
  3984. # Is the header compilable?
  3985. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3986. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3987. cat >conftest.$ac_ext <<_ACEOF
  3988. /* confdefs.h. */
  3989. _ACEOF
  3990. cat confdefs.h >>conftest.$ac_ext
  3991. cat >>conftest.$ac_ext <<_ACEOF
  3992. /* end confdefs.h. */
  3993. $ac_includes_default
  3994. #include <$ac_header>
  3995. _ACEOF
  3996. rm -f conftest.$ac_objext
  3997. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3998. (eval $ac_compile) 2>conftest.er1
  3999. ac_status=$?
  4000. grep -v '^ *+' conftest.er1 >conftest.err
  4001. rm -f conftest.er1
  4002. cat conftest.err >&5
  4003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4004. (exit $ac_status); } &&
  4005. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4007. (eval $ac_try) 2>&5
  4008. ac_status=$?
  4009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4010. (exit $ac_status); }; } &&
  4011. { ac_try='test -s conftest.$ac_objext'
  4012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4013. (eval $ac_try) 2>&5
  4014. ac_status=$?
  4015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4016. (exit $ac_status); }; }; then
  4017. ac_header_compiler=yes
  4018. else
  4019. echo "$as_me: failed program was:" >&5
  4020. sed 's/^/| /' conftest.$ac_ext >&5
  4021. ac_header_compiler=no
  4022. fi
  4023. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4024. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4025. echo "${ECHO_T}$ac_header_compiler" >&6
  4026. # Is the header present?
  4027. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4028. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4029. cat >conftest.$ac_ext <<_ACEOF
  4030. /* confdefs.h. */
  4031. _ACEOF
  4032. cat confdefs.h >>conftest.$ac_ext
  4033. cat >>conftest.$ac_ext <<_ACEOF
  4034. /* end confdefs.h. */
  4035. #include <$ac_header>
  4036. _ACEOF
  4037. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4038. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  4045. if test -s conftest.err; then
  4046. ac_cpp_err=$ac_c_preproc_warn_flag
  4047. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4048. else
  4049. ac_cpp_err=
  4050. fi
  4051. else
  4052. ac_cpp_err=yes
  4053. fi
  4054. if test -z "$ac_cpp_err"; then
  4055. ac_header_preproc=yes
  4056. else
  4057. echo "$as_me: failed program was:" >&5
  4058. sed 's/^/| /' conftest.$ac_ext >&5
  4059. ac_header_preproc=no
  4060. fi
  4061. rm -f conftest.err conftest.$ac_ext
  4062. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4063. echo "${ECHO_T}$ac_header_preproc" >&6
  4064. # So? What about this header?
  4065. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4066. yes:no: )
  4067. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4068. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4069. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4070. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4071. ac_header_preproc=yes
  4072. ;;
  4073. no:yes:* )
  4074. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4075. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4076. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4077. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4078. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4079. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4080. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4081. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4082. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4083. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4084. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4085. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4086. (
  4087. cat <<\_ASBOX
  4088. ## --------------------------------- ##
  4089. ## Report this to the ngircd lists. ##
  4090. ## --------------------------------- ##
  4091. _ASBOX
  4092. ) |
  4093. sed "s/^/$as_me: WARNING: /" >&2
  4094. ;;
  4095. esac
  4096. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4097. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4098. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4099. echo $ECHO_N "(cached) $ECHO_C" >&6
  4100. else
  4101. eval "$as_ac_Header=\$ac_header_preproc"
  4102. fi
  4103. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4104. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4105. fi
  4106. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4107. cat >>confdefs.h <<_ACEOF
  4108. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4109. _ACEOF
  4110. else
  4111. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  4112. echo "$as_me: error: required C header missing!" >&2;}
  4113. { (exit 1); exit 1; }; }
  4114. fi
  4115. done
  4116. for ac_header in arpa/inet.h ctype.h malloc.h stdbool.h stddef.h varargs.h
  4117. do
  4118. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4119. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4120. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4121. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4122. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4123. echo $ECHO_N "(cached) $ECHO_C" >&6
  4124. fi
  4125. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4126. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4127. else
  4128. # Is the header compilable?
  4129. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4130. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4131. cat >conftest.$ac_ext <<_ACEOF
  4132. /* confdefs.h. */
  4133. _ACEOF
  4134. cat confdefs.h >>conftest.$ac_ext
  4135. cat >>conftest.$ac_ext <<_ACEOF
  4136. /* end confdefs.h. */
  4137. $ac_includes_default
  4138. #include <$ac_header>
  4139. _ACEOF
  4140. rm -f conftest.$ac_objext
  4141. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4142. (eval $ac_compile) 2>conftest.er1
  4143. ac_status=$?
  4144. grep -v '^ *+' conftest.er1 >conftest.err
  4145. rm -f conftest.er1
  4146. cat conftest.err >&5
  4147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4148. (exit $ac_status); } &&
  4149. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4151. (eval $ac_try) 2>&5
  4152. ac_status=$?
  4153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4154. (exit $ac_status); }; } &&
  4155. { ac_try='test -s conftest.$ac_objext'
  4156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4157. (eval $ac_try) 2>&5
  4158. ac_status=$?
  4159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4160. (exit $ac_status); }; }; then
  4161. ac_header_compiler=yes
  4162. else
  4163. echo "$as_me: failed program was:" >&5
  4164. sed 's/^/| /' conftest.$ac_ext >&5
  4165. ac_header_compiler=no
  4166. fi
  4167. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4168. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4169. echo "${ECHO_T}$ac_header_compiler" >&6
  4170. # Is the header present?
  4171. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4172. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4173. cat >conftest.$ac_ext <<_ACEOF
  4174. /* confdefs.h. */
  4175. _ACEOF
  4176. cat confdefs.h >>conftest.$ac_ext
  4177. cat >>conftest.$ac_ext <<_ACEOF
  4178. /* end confdefs.h. */
  4179. #include <$ac_header>
  4180. _ACEOF
  4181. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4182. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4183. ac_status=$?
  4184. grep -v '^ *+' conftest.er1 >conftest.err
  4185. rm -f conftest.er1
  4186. cat conftest.err >&5
  4187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4188. (exit $ac_status); } >/dev/null; then
  4189. if test -s conftest.err; then
  4190. ac_cpp_err=$ac_c_preproc_warn_flag
  4191. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4192. else
  4193. ac_cpp_err=
  4194. fi
  4195. else
  4196. ac_cpp_err=yes
  4197. fi
  4198. if test -z "$ac_cpp_err"; then
  4199. ac_header_preproc=yes
  4200. else
  4201. echo "$as_me: failed program was:" >&5
  4202. sed 's/^/| /' conftest.$ac_ext >&5
  4203. ac_header_preproc=no
  4204. fi
  4205. rm -f conftest.err conftest.$ac_ext
  4206. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4207. echo "${ECHO_T}$ac_header_preproc" >&6
  4208. # So? What about this header?
  4209. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4210. yes:no: )
  4211. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4212. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4213. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4214. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4215. ac_header_preproc=yes
  4216. ;;
  4217. no:yes:* )
  4218. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4219. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4220. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4221. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4222. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4223. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4224. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4225. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4226. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4227. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4228. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4229. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4230. (
  4231. cat <<\_ASBOX
  4232. ## --------------------------------- ##
  4233. ## Report this to the ngircd lists. ##
  4234. ## --------------------------------- ##
  4235. _ASBOX
  4236. ) |
  4237. sed "s/^/$as_me: WARNING: /" >&2
  4238. ;;
  4239. esac
  4240. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4241. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4242. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4243. echo $ECHO_N "(cached) $ECHO_C" >&6
  4244. else
  4245. eval "$as_ac_Header=\$ac_header_preproc"
  4246. fi
  4247. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4248. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4249. fi
  4250. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4251. cat >>confdefs.h <<_ACEOF
  4252. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4253. _ACEOF
  4254. fi
  4255. done
  4256. # -- Datatypes --
  4257. echo "$as_me:$LINENO: checking whether socklen_t exists" >&5
  4258. echo $ECHO_N "checking whether socklen_t exists... $ECHO_C" >&6
  4259. cat >conftest.$ac_ext <<_ACEOF
  4260. /* confdefs.h. */
  4261. _ACEOF
  4262. cat confdefs.h >>conftest.$ac_ext
  4263. cat >>conftest.$ac_ext <<_ACEOF
  4264. /* end confdefs.h. */
  4265. #include <sys/types.h>
  4266. #include <sys/socket.h>
  4267. int
  4268. main ()
  4269. {
  4270. socklen_t a, b;
  4271. a = 2; b = 4; a += b;
  4272. ;
  4273. return 0;
  4274. }
  4275. _ACEOF
  4276. rm -f conftest.$ac_objext
  4277. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4278. (eval $ac_compile) 2>conftest.er1
  4279. ac_status=$?
  4280. grep -v '^ *+' conftest.er1 >conftest.err
  4281. rm -f conftest.er1
  4282. cat conftest.err >&5
  4283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4284. (exit $ac_status); } &&
  4285. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4287. (eval $ac_try) 2>&5
  4288. ac_status=$?
  4289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4290. (exit $ac_status); }; } &&
  4291. { ac_try='test -s conftest.$ac_objext'
  4292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4293. (eval $ac_try) 2>&5
  4294. ac_status=$?
  4295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4296. (exit $ac_status); }; }; then
  4297. cat >>confdefs.h <<\_ACEOF
  4298. #define HAVE_socklen_t 1
  4299. _ACEOF
  4300. echo "$as_me:$LINENO: result: yes" >&5
  4301. echo "${ECHO_T}yes" >&6
  4302. else
  4303. echo "$as_me: failed program was:" >&5
  4304. sed 's/^/| /' conftest.$ac_ext >&5
  4305. echo "$as_me:$LINENO: result: no" >&5
  4306. echo "${ECHO_T}no" >&6
  4307. fi
  4308. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4309. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  4310. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  4311. if test "${ac_cv_type_signal+set}" = set; then
  4312. echo $ECHO_N "(cached) $ECHO_C" >&6
  4313. else
  4314. cat >conftest.$ac_ext <<_ACEOF
  4315. /* confdefs.h. */
  4316. _ACEOF
  4317. cat confdefs.h >>conftest.$ac_ext
  4318. cat >>conftest.$ac_ext <<_ACEOF
  4319. /* end confdefs.h. */
  4320. #include <sys/types.h>
  4321. #include <signal.h>
  4322. #ifdef signal
  4323. # undef signal
  4324. #endif
  4325. #ifdef __cplusplus
  4326. extern "C" void (*signal (int, void (*)(int)))(int);
  4327. #else
  4328. void (*signal ()) ();
  4329. #endif
  4330. int
  4331. main ()
  4332. {
  4333. int i;
  4334. ;
  4335. return 0;
  4336. }
  4337. _ACEOF
  4338. rm -f conftest.$ac_objext
  4339. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4340. (eval $ac_compile) 2>conftest.er1
  4341. ac_status=$?
  4342. grep -v '^ *+' conftest.er1 >conftest.err
  4343. rm -f conftest.er1
  4344. cat conftest.err >&5
  4345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4346. (exit $ac_status); } &&
  4347. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4349. (eval $ac_try) 2>&5
  4350. ac_status=$?
  4351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4352. (exit $ac_status); }; } &&
  4353. { ac_try='test -s conftest.$ac_objext'
  4354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4355. (eval $ac_try) 2>&5
  4356. ac_status=$?
  4357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4358. (exit $ac_status); }; }; then
  4359. ac_cv_type_signal=void
  4360. else
  4361. echo "$as_me: failed program was:" >&5
  4362. sed 's/^/| /' conftest.$ac_ext >&5
  4363. ac_cv_type_signal=int
  4364. fi
  4365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4366. fi
  4367. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  4368. echo "${ECHO_T}$ac_cv_type_signal" >&6
  4369. cat >>confdefs.h <<_ACEOF
  4370. #define RETSIGTYPE $ac_cv_type_signal
  4371. _ACEOF
  4372. echo "$as_me:$LINENO: checking for size_t" >&5
  4373. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4374. if test "${ac_cv_type_size_t+set}" = set; then
  4375. echo $ECHO_N "(cached) $ECHO_C" >&6
  4376. else
  4377. cat >conftest.$ac_ext <<_ACEOF
  4378. /* confdefs.h. */
  4379. _ACEOF
  4380. cat confdefs.h >>conftest.$ac_ext
  4381. cat >>conftest.$ac_ext <<_ACEOF
  4382. /* end confdefs.h. */
  4383. $ac_includes_default
  4384. int
  4385. main ()
  4386. {
  4387. if ((size_t *) 0)
  4388. return 0;
  4389. if (sizeof (size_t))
  4390. return 0;
  4391. ;
  4392. return 0;
  4393. }
  4394. _ACEOF
  4395. rm -f conftest.$ac_objext
  4396. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4397. (eval $ac_compile) 2>conftest.er1
  4398. ac_status=$?
  4399. grep -v '^ *+' conftest.er1 >conftest.err
  4400. rm -f conftest.er1
  4401. cat conftest.err >&5
  4402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4403. (exit $ac_status); } &&
  4404. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4406. (eval $ac_try) 2>&5
  4407. ac_status=$?
  4408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4409. (exit $ac_status); }; } &&
  4410. { ac_try='test -s conftest.$ac_objext'
  4411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4412. (eval $ac_try) 2>&5
  4413. ac_status=$?
  4414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4415. (exit $ac_status); }; }; then
  4416. ac_cv_type_size_t=yes
  4417. else
  4418. echo "$as_me: failed program was:" >&5
  4419. sed 's/^/| /' conftest.$ac_ext >&5
  4420. ac_cv_type_size_t=no
  4421. fi
  4422. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4423. fi
  4424. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4425. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4426. if test $ac_cv_type_size_t = yes; then
  4427. :
  4428. else
  4429. cat >>confdefs.h <<_ACEOF
  4430. #define size_t unsigned
  4431. _ACEOF
  4432. fi
  4433. # -- Libraries --
  4434. echo "$as_me:$LINENO: checking for memmove in -lUTIL" >&5
  4435. echo $ECHO_N "checking for memmove in -lUTIL... $ECHO_C" >&6
  4436. if test "${ac_cv_lib_UTIL_memmove+set}" = set; then
  4437. echo $ECHO_N "(cached) $ECHO_C" >&6
  4438. else
  4439. ac_check_lib_save_LIBS=$LIBS
  4440. LIBS="-lUTIL $LIBS"
  4441. cat >conftest.$ac_ext <<_ACEOF
  4442. /* confdefs.h. */
  4443. _ACEOF
  4444. cat confdefs.h >>conftest.$ac_ext
  4445. cat >>conftest.$ac_ext <<_ACEOF
  4446. /* end confdefs.h. */
  4447. /* Override any gcc2 internal prototype to avoid an error. */
  4448. #ifdef __cplusplus
  4449. extern "C"
  4450. #endif
  4451. /* We use char because int might match the return type of a gcc2
  4452. builtin and then its argument prototype would still apply. */
  4453. char memmove ();
  4454. int
  4455. main ()
  4456. {
  4457. memmove ();
  4458. ;
  4459. return 0;
  4460. }
  4461. _ACEOF
  4462. rm -f conftest.$ac_objext conftest$ac_exeext
  4463. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4464. (eval $ac_link) 2>conftest.er1
  4465. ac_status=$?
  4466. grep -v '^ *+' conftest.er1 >conftest.err
  4467. rm -f conftest.er1
  4468. cat conftest.err >&5
  4469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4470. (exit $ac_status); } &&
  4471. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4473. (eval $ac_try) 2>&5
  4474. ac_status=$?
  4475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4476. (exit $ac_status); }; } &&
  4477. { ac_try='test -s conftest$ac_exeext'
  4478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4479. (eval $ac_try) 2>&5
  4480. ac_status=$?
  4481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4482. (exit $ac_status); }; }; then
  4483. ac_cv_lib_UTIL_memmove=yes
  4484. else
  4485. echo "$as_me: failed program was:" >&5
  4486. sed 's/^/| /' conftest.$ac_ext >&5
  4487. ac_cv_lib_UTIL_memmove=no
  4488. fi
  4489. rm -f conftest.err conftest.$ac_objext \
  4490. conftest$ac_exeext conftest.$ac_ext
  4491. LIBS=$ac_check_lib_save_LIBS
  4492. fi
  4493. echo "$as_me:$LINENO: result: $ac_cv_lib_UTIL_memmove" >&5
  4494. echo "${ECHO_T}$ac_cv_lib_UTIL_memmove" >&6
  4495. if test $ac_cv_lib_UTIL_memmove = yes; then
  4496. cat >>confdefs.h <<_ACEOF
  4497. #define HAVE_LIBUTIL 1
  4498. _ACEOF
  4499. LIBS="-lUTIL $LIBS"
  4500. fi
  4501. echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
  4502. echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
  4503. if test "${ac_cv_lib_socket_bind+set}" = set; then
  4504. echo $ECHO_N "(cached) $ECHO_C" >&6
  4505. else
  4506. ac_check_lib_save_LIBS=$LIBS
  4507. LIBS="-lsocket $LIBS"
  4508. cat >conftest.$ac_ext <<_ACEOF
  4509. /* confdefs.h. */
  4510. _ACEOF
  4511. cat confdefs.h >>conftest.$ac_ext
  4512. cat >>conftest.$ac_ext <<_ACEOF
  4513. /* end confdefs.h. */
  4514. /* Override any gcc2 internal prototype to avoid an error. */
  4515. #ifdef __cplusplus
  4516. extern "C"
  4517. #endif
  4518. /* We use char because int might match the return type of a gcc2
  4519. builtin and then its argument prototype would still apply. */
  4520. char bind ();
  4521. int
  4522. main ()
  4523. {
  4524. bind ();
  4525. ;
  4526. return 0;
  4527. }
  4528. _ACEOF
  4529. rm -f conftest.$ac_objext conftest$ac_exeext
  4530. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4531. (eval $ac_link) 2>conftest.er1
  4532. ac_status=$?
  4533. grep -v '^ *+' conftest.er1 >conftest.err
  4534. rm -f conftest.er1
  4535. cat conftest.err >&5
  4536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4537. (exit $ac_status); } &&
  4538. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4540. (eval $ac_try) 2>&5
  4541. ac_status=$?
  4542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4543. (exit $ac_status); }; } &&
  4544. { ac_try='test -s conftest$ac_exeext'
  4545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4546. (eval $ac_try) 2>&5
  4547. ac_status=$?
  4548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4549. (exit $ac_status); }; }; then
  4550. ac_cv_lib_socket_bind=yes
  4551. else
  4552. echo "$as_me: failed program was:" >&5
  4553. sed 's/^/| /' conftest.$ac_ext >&5
  4554. ac_cv_lib_socket_bind=no
  4555. fi
  4556. rm -f conftest.err conftest.$ac_objext \
  4557. conftest$ac_exeext conftest.$ac_ext
  4558. LIBS=$ac_check_lib_save_LIBS
  4559. fi
  4560. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
  4561. echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
  4562. if test $ac_cv_lib_socket_bind = yes; then
  4563. cat >>confdefs.h <<_ACEOF
  4564. #define HAVE_LIBSOCKET 1
  4565. _ACEOF
  4566. LIBS="-lsocket $LIBS"
  4567. fi
  4568. echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
  4569. echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
  4570. if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
  4571. echo $ECHO_N "(cached) $ECHO_C" >&6
  4572. else
  4573. ac_check_lib_save_LIBS=$LIBS
  4574. LIBS="-lnsl $LIBS"
  4575. cat >conftest.$ac_ext <<_ACEOF
  4576. /* confdefs.h. */
  4577. _ACEOF
  4578. cat confdefs.h >>conftest.$ac_ext
  4579. cat >>conftest.$ac_ext <<_ACEOF
  4580. /* end confdefs.h. */
  4581. /* Override any gcc2 internal prototype to avoid an error. */
  4582. #ifdef __cplusplus
  4583. extern "C"
  4584. #endif
  4585. /* We use char because int might match the return type of a gcc2
  4586. builtin and then its argument prototype would still apply. */
  4587. char gethostent ();
  4588. int
  4589. main ()
  4590. {
  4591. gethostent ();
  4592. ;
  4593. return 0;
  4594. }
  4595. _ACEOF
  4596. rm -f conftest.$ac_objext conftest$ac_exeext
  4597. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4598. (eval $ac_link) 2>conftest.er1
  4599. ac_status=$?
  4600. grep -v '^ *+' conftest.er1 >conftest.err
  4601. rm -f conftest.er1
  4602. cat conftest.err >&5
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); } &&
  4605. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4607. (eval $ac_try) 2>&5
  4608. ac_status=$?
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); }; } &&
  4611. { ac_try='test -s conftest$ac_exeext'
  4612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4613. (eval $ac_try) 2>&5
  4614. ac_status=$?
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); }; }; then
  4617. ac_cv_lib_nsl_gethostent=yes
  4618. else
  4619. echo "$as_me: failed program was:" >&5
  4620. sed 's/^/| /' conftest.$ac_ext >&5
  4621. ac_cv_lib_nsl_gethostent=no
  4622. fi
  4623. rm -f conftest.err conftest.$ac_objext \
  4624. conftest$ac_exeext conftest.$ac_ext
  4625. LIBS=$ac_check_lib_save_LIBS
  4626. fi
  4627. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
  4628. echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
  4629. if test $ac_cv_lib_nsl_gethostent = yes; then
  4630. cat >>confdefs.h <<_ACEOF
  4631. #define HAVE_LIBNSL 1
  4632. _ACEOF
  4633. LIBS="-lnsl $LIBS"
  4634. fi
  4635. # -- Functions --
  4636. echo "$as_me:$LINENO: checking for pid_t" >&5
  4637. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4638. if test "${ac_cv_type_pid_t+set}" = set; then
  4639. echo $ECHO_N "(cached) $ECHO_C" >&6
  4640. else
  4641. cat >conftest.$ac_ext <<_ACEOF
  4642. /* confdefs.h. */
  4643. _ACEOF
  4644. cat confdefs.h >>conftest.$ac_ext
  4645. cat >>conftest.$ac_ext <<_ACEOF
  4646. /* end confdefs.h. */
  4647. $ac_includes_default
  4648. int
  4649. main ()
  4650. {
  4651. if ((pid_t *) 0)
  4652. return 0;
  4653. if (sizeof (pid_t))
  4654. return 0;
  4655. ;
  4656. return 0;
  4657. }
  4658. _ACEOF
  4659. rm -f conftest.$ac_objext
  4660. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4661. (eval $ac_compile) 2>conftest.er1
  4662. ac_status=$?
  4663. grep -v '^ *+' conftest.er1 >conftest.err
  4664. rm -f conftest.er1
  4665. cat conftest.err >&5
  4666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4667. (exit $ac_status); } &&
  4668. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4670. (eval $ac_try) 2>&5
  4671. ac_status=$?
  4672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4673. (exit $ac_status); }; } &&
  4674. { ac_try='test -s conftest.$ac_objext'
  4675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4676. (eval $ac_try) 2>&5
  4677. ac_status=$?
  4678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4679. (exit $ac_status); }; }; then
  4680. ac_cv_type_pid_t=yes
  4681. else
  4682. echo "$as_me: failed program was:" >&5
  4683. sed 's/^/| /' conftest.$ac_ext >&5
  4684. ac_cv_type_pid_t=no
  4685. fi
  4686. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4687. fi
  4688. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4689. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4690. if test $ac_cv_type_pid_t = yes; then
  4691. :
  4692. else
  4693. cat >>confdefs.h <<_ACEOF
  4694. #define pid_t int
  4695. _ACEOF
  4696. fi
  4697. for ac_header in unistd.h vfork.h
  4698. do
  4699. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4700. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4701. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4702. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4703. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4704. echo $ECHO_N "(cached) $ECHO_C" >&6
  4705. fi
  4706. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4707. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4708. else
  4709. # Is the header compilable?
  4710. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4711. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4712. cat >conftest.$ac_ext <<_ACEOF
  4713. /* confdefs.h. */
  4714. _ACEOF
  4715. cat confdefs.h >>conftest.$ac_ext
  4716. cat >>conftest.$ac_ext <<_ACEOF
  4717. /* end confdefs.h. */
  4718. $ac_includes_default
  4719. #include <$ac_header>
  4720. _ACEOF
  4721. rm -f conftest.$ac_objext
  4722. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4723. (eval $ac_compile) 2>conftest.er1
  4724. ac_status=$?
  4725. grep -v '^ *+' conftest.er1 >conftest.err
  4726. rm -f conftest.er1
  4727. cat conftest.err >&5
  4728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4729. (exit $ac_status); } &&
  4730. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4732. (eval $ac_try) 2>&5
  4733. ac_status=$?
  4734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4735. (exit $ac_status); }; } &&
  4736. { ac_try='test -s conftest.$ac_objext'
  4737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4738. (eval $ac_try) 2>&5
  4739. ac_status=$?
  4740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4741. (exit $ac_status); }; }; then
  4742. ac_header_compiler=yes
  4743. else
  4744. echo "$as_me: failed program was:" >&5
  4745. sed 's/^/| /' conftest.$ac_ext >&5
  4746. ac_header_compiler=no
  4747. fi
  4748. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4749. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4750. echo "${ECHO_T}$ac_header_compiler" >&6
  4751. # Is the header present?
  4752. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4753. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4754. cat >conftest.$ac_ext <<_ACEOF
  4755. /* confdefs.h. */
  4756. _ACEOF
  4757. cat confdefs.h >>conftest.$ac_ext
  4758. cat >>conftest.$ac_ext <<_ACEOF
  4759. /* end confdefs.h. */
  4760. #include <$ac_header>
  4761. _ACEOF
  4762. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4763. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4764. ac_status=$?
  4765. grep -v '^ *+' conftest.er1 >conftest.err
  4766. rm -f conftest.er1
  4767. cat conftest.err >&5
  4768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4769. (exit $ac_status); } >/dev/null; then
  4770. if test -s conftest.err; then
  4771. ac_cpp_err=$ac_c_preproc_warn_flag
  4772. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4773. else
  4774. ac_cpp_err=
  4775. fi
  4776. else
  4777. ac_cpp_err=yes
  4778. fi
  4779. if test -z "$ac_cpp_err"; then
  4780. ac_header_preproc=yes
  4781. else
  4782. echo "$as_me: failed program was:" >&5
  4783. sed 's/^/| /' conftest.$ac_ext >&5
  4784. ac_header_preproc=no
  4785. fi
  4786. rm -f conftest.err conftest.$ac_ext
  4787. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4788. echo "${ECHO_T}$ac_header_preproc" >&6
  4789. # So? What about this header?
  4790. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4791. yes:no: )
  4792. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4793. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4794. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4795. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4796. ac_header_preproc=yes
  4797. ;;
  4798. no:yes:* )
  4799. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4800. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4802. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4803. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4804. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4805. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4806. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4807. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4808. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4809. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4810. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4811. (
  4812. cat <<\_ASBOX
  4813. ## --------------------------------- ##
  4814. ## Report this to the ngircd lists. ##
  4815. ## --------------------------------- ##
  4816. _ASBOX
  4817. ) |
  4818. sed "s/^/$as_me: WARNING: /" >&2
  4819. ;;
  4820. esac
  4821. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4822. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4823. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4824. echo $ECHO_N "(cached) $ECHO_C" >&6
  4825. else
  4826. eval "$as_ac_Header=\$ac_header_preproc"
  4827. fi
  4828. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4829. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4830. fi
  4831. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4832. cat >>confdefs.h <<_ACEOF
  4833. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4834. _ACEOF
  4835. fi
  4836. done
  4837. for ac_func in fork vfork
  4838. do
  4839. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4840. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4841. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4842. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4843. echo $ECHO_N "(cached) $ECHO_C" >&6
  4844. else
  4845. cat >conftest.$ac_ext <<_ACEOF
  4846. /* confdefs.h. */
  4847. _ACEOF
  4848. cat confdefs.h >>conftest.$ac_ext
  4849. cat >>conftest.$ac_ext <<_ACEOF
  4850. /* end confdefs.h. */
  4851. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4852. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4853. #define $ac_func innocuous_$ac_func
  4854. /* System header to define __stub macros and hopefully few prototypes,
  4855. which can conflict with char $ac_func (); below.
  4856. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4857. <limits.h> exists even on freestanding compilers. */
  4858. #ifdef __STDC__
  4859. # include <limits.h>
  4860. #else
  4861. # include <assert.h>
  4862. #endif
  4863. #undef $ac_func
  4864. /* Override any gcc2 internal prototype to avoid an error. */
  4865. #ifdef __cplusplus
  4866. extern "C"
  4867. {
  4868. #endif
  4869. /* We use char because int might match the return type of a gcc2
  4870. builtin and then its argument prototype would still apply. */
  4871. char $ac_func ();
  4872. /* The GNU C library defines this for functions which it implements
  4873. to always fail with ENOSYS. Some functions are actually named
  4874. something starting with __ and the normal name is an alias. */
  4875. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4876. choke me
  4877. #else
  4878. char (*f) () = $ac_func;
  4879. #endif
  4880. #ifdef __cplusplus
  4881. }
  4882. #endif
  4883. int
  4884. main ()
  4885. {
  4886. return f != $ac_func;
  4887. ;
  4888. return 0;
  4889. }
  4890. _ACEOF
  4891. rm -f conftest.$ac_objext conftest$ac_exeext
  4892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4893. (eval $ac_link) 2>conftest.er1
  4894. ac_status=$?
  4895. grep -v '^ *+' conftest.er1 >conftest.err
  4896. rm -f conftest.er1
  4897. cat conftest.err >&5
  4898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4899. (exit $ac_status); } &&
  4900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4902. (eval $ac_try) 2>&5
  4903. ac_status=$?
  4904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4905. (exit $ac_status); }; } &&
  4906. { ac_try='test -s conftest$ac_exeext'
  4907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4908. (eval $ac_try) 2>&5
  4909. ac_status=$?
  4910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4911. (exit $ac_status); }; }; then
  4912. eval "$as_ac_var=yes"
  4913. else
  4914. echo "$as_me: failed program was:" >&5
  4915. sed 's/^/| /' conftest.$ac_ext >&5
  4916. eval "$as_ac_var=no"
  4917. fi
  4918. rm -f conftest.err conftest.$ac_objext \
  4919. conftest$ac_exeext conftest.$ac_ext
  4920. fi
  4921. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4922. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4923. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4924. cat >>confdefs.h <<_ACEOF
  4925. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4926. _ACEOF
  4927. fi
  4928. done
  4929. if test "x$ac_cv_func_fork" = xyes; then
  4930. echo "$as_me:$LINENO: checking for working fork" >&5
  4931. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  4932. if test "${ac_cv_func_fork_works+set}" = set; then
  4933. echo $ECHO_N "(cached) $ECHO_C" >&6
  4934. else
  4935. if test "$cross_compiling" = yes; then
  4936. ac_cv_func_fork_works=cross
  4937. else
  4938. cat >conftest.$ac_ext <<_ACEOF
  4939. /* By Ruediger Kuhlmann. */
  4940. #include <sys/types.h>
  4941. #if HAVE_UNISTD_H
  4942. # include <unistd.h>
  4943. #endif
  4944. /* Some systems only have a dummy stub for fork() */
  4945. int main ()
  4946. {
  4947. if (fork() < 0)
  4948. exit (1);
  4949. exit (0);
  4950. }
  4951. _ACEOF
  4952. rm -f conftest$ac_exeext
  4953. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4954. (eval $ac_link) 2>&5
  4955. ac_status=$?
  4956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4957. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4959. (eval $ac_try) 2>&5
  4960. ac_status=$?
  4961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4962. (exit $ac_status); }; }; then
  4963. ac_cv_func_fork_works=yes
  4964. else
  4965. echo "$as_me: program exited with status $ac_status" >&5
  4966. echo "$as_me: failed program was:" >&5
  4967. sed 's/^/| /' conftest.$ac_ext >&5
  4968. ( exit $ac_status )
  4969. ac_cv_func_fork_works=no
  4970. fi
  4971. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4972. fi
  4973. fi
  4974. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  4975. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  4976. else
  4977. ac_cv_func_fork_works=$ac_cv_func_fork
  4978. fi
  4979. if test "x$ac_cv_func_fork_works" = xcross; then
  4980. case $host in
  4981. *-*-amigaos* | *-*-msdosdjgpp*)
  4982. # Override, as these systems have only a dummy fork() stub
  4983. ac_cv_func_fork_works=no
  4984. ;;
  4985. *)
  4986. ac_cv_func_fork_works=yes
  4987. ;;
  4988. esac
  4989. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  4990. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  4991. fi
  4992. ac_cv_func_vfork_works=$ac_cv_func_vfork
  4993. if test "x$ac_cv_func_vfork" = xyes; then
  4994. echo "$as_me:$LINENO: checking for working vfork" >&5
  4995. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  4996. if test "${ac_cv_func_vfork_works+set}" = set; then
  4997. echo $ECHO_N "(cached) $ECHO_C" >&6
  4998. else
  4999. if test "$cross_compiling" = yes; then
  5000. ac_cv_func_vfork_works=cross
  5001. else
  5002. cat >conftest.$ac_ext <<_ACEOF
  5003. /* confdefs.h. */
  5004. _ACEOF
  5005. cat confdefs.h >>conftest.$ac_ext
  5006. cat >>conftest.$ac_ext <<_ACEOF
  5007. /* end confdefs.h. */
  5008. /* Thanks to Paul Eggert for this test. */
  5009. #include <stdio.h>
  5010. #include <stdlib.h>
  5011. #include <sys/types.h>
  5012. #include <sys/stat.h>
  5013. #include <sys/wait.h>
  5014. #if HAVE_UNISTD_H
  5015. # include <unistd.h>
  5016. #endif
  5017. #if HAVE_VFORK_H
  5018. # include <vfork.h>
  5019. #endif
  5020. /* On some sparc systems, changes by the child to local and incoming
  5021. argument registers are propagated back to the parent. The compiler
  5022. is told about this with #include <vfork.h>, but some compilers
  5023. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5024. static variable whose address is put into a register that is
  5025. clobbered by the vfork. */
  5026. static void
  5027. #ifdef __cplusplus
  5028. sparc_address_test (int arg)
  5029. # else
  5030. sparc_address_test (arg) int arg;
  5031. #endif
  5032. {
  5033. static pid_t child;
  5034. if (!child) {
  5035. child = vfork ();
  5036. if (child < 0) {
  5037. perror ("vfork");
  5038. _exit(2);
  5039. }
  5040. if (!child) {
  5041. arg = getpid();
  5042. write(-1, "", 0);
  5043. _exit (arg);
  5044. }
  5045. }
  5046. }
  5047. int
  5048. main ()
  5049. {
  5050. pid_t parent = getpid ();
  5051. pid_t child;
  5052. sparc_address_test (0);
  5053. child = vfork ();
  5054. if (child == 0) {
  5055. /* Here is another test for sparc vfork register problems. This
  5056. test uses lots of local variables, at least as many local
  5057. variables as main has allocated so far including compiler
  5058. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5059. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5060. reuse the register of parent for one of the local variables,
  5061. since it will think that parent can't possibly be used any more
  5062. in this routine. Assigning to the local variable will thus
  5063. munge parent in the parent process. */
  5064. pid_t
  5065. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5066. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5067. /* Convince the compiler that p..p7 are live; otherwise, it might
  5068. use the same hardware register for all 8 local variables. */
  5069. if (p != p1 || p != p2 || p != p3 || p != p4
  5070. || p != p5 || p != p6 || p != p7)
  5071. _exit(1);
  5072. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5073. from child file descriptors. If the child closes a descriptor
  5074. before it execs or exits, this munges the parent's descriptor
  5075. as well. Test for this by closing stdout in the child. */
  5076. _exit(close(fileno(stdout)) != 0);
  5077. } else {
  5078. int status;
  5079. struct stat st;
  5080. while (wait(&status) != child)
  5081. ;
  5082. exit(
  5083. /* Was there some problem with vforking? */
  5084. child < 0
  5085. /* Did the child fail? (This shouldn't happen.) */
  5086. || status
  5087. /* Did the vfork/compiler bug occur? */
  5088. || parent != getpid()
  5089. /* Did the file descriptor bug occur? */
  5090. || fstat(fileno(stdout), &st) != 0
  5091. );
  5092. }
  5093. }
  5094. _ACEOF
  5095. rm -f conftest$ac_exeext
  5096. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5097. (eval $ac_link) 2>&5
  5098. ac_status=$?
  5099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5100. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5102. (eval $ac_try) 2>&5
  5103. ac_status=$?
  5104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5105. (exit $ac_status); }; }; then
  5106. ac_cv_func_vfork_works=yes
  5107. else
  5108. echo "$as_me: program exited with status $ac_status" >&5
  5109. echo "$as_me: failed program was:" >&5
  5110. sed 's/^/| /' conftest.$ac_ext >&5
  5111. ( exit $ac_status )
  5112. ac_cv_func_vfork_works=no
  5113. fi
  5114. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5115. fi
  5116. fi
  5117. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  5118. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  5119. fi;
  5120. if test "x$ac_cv_func_fork_works" = xcross; then
  5121. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5122. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5123. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5124. fi
  5125. if test "x$ac_cv_func_vfork_works" = xyes; then
  5126. cat >>confdefs.h <<\_ACEOF
  5127. #define HAVE_WORKING_VFORK 1
  5128. _ACEOF
  5129. else
  5130. cat >>confdefs.h <<\_ACEOF
  5131. #define vfork fork
  5132. _ACEOF
  5133. fi
  5134. if test "x$ac_cv_func_fork_works" = xyes; then
  5135. cat >>confdefs.h <<\_ACEOF
  5136. #define HAVE_WORKING_FORK 1
  5137. _ACEOF
  5138. fi
  5139. for ac_func in strftime
  5140. do
  5141. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5142. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5143. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5144. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5145. echo $ECHO_N "(cached) $ECHO_C" >&6
  5146. else
  5147. cat >conftest.$ac_ext <<_ACEOF
  5148. /* confdefs.h. */
  5149. _ACEOF
  5150. cat confdefs.h >>conftest.$ac_ext
  5151. cat >>conftest.$ac_ext <<_ACEOF
  5152. /* end confdefs.h. */
  5153. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5154. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5155. #define $ac_func innocuous_$ac_func
  5156. /* System header to define __stub macros and hopefully few prototypes,
  5157. which can conflict with char $ac_func (); below.
  5158. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5159. <limits.h> exists even on freestanding compilers. */
  5160. #ifdef __STDC__
  5161. # include <limits.h>
  5162. #else
  5163. # include <assert.h>
  5164. #endif
  5165. #undef $ac_func
  5166. /* Override any gcc2 internal prototype to avoid an error. */
  5167. #ifdef __cplusplus
  5168. extern "C"
  5169. {
  5170. #endif
  5171. /* We use char because int might match the return type of a gcc2
  5172. builtin and then its argument prototype would still apply. */
  5173. char $ac_func ();
  5174. /* The GNU C library defines this for functions which it implements
  5175. to always fail with ENOSYS. Some functions are actually named
  5176. something starting with __ and the normal name is an alias. */
  5177. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5178. choke me
  5179. #else
  5180. char (*f) () = $ac_func;
  5181. #endif
  5182. #ifdef __cplusplus
  5183. }
  5184. #endif
  5185. int
  5186. main ()
  5187. {
  5188. return f != $ac_func;
  5189. ;
  5190. return 0;
  5191. }
  5192. _ACEOF
  5193. rm -f conftest.$ac_objext conftest$ac_exeext
  5194. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5195. (eval $ac_link) 2>conftest.er1
  5196. ac_status=$?
  5197. grep -v '^ *+' conftest.er1 >conftest.err
  5198. rm -f conftest.er1
  5199. cat conftest.err >&5
  5200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5201. (exit $ac_status); } &&
  5202. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5204. (eval $ac_try) 2>&5
  5205. ac_status=$?
  5206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5207. (exit $ac_status); }; } &&
  5208. { ac_try='test -s conftest$ac_exeext'
  5209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5210. (eval $ac_try) 2>&5
  5211. ac_status=$?
  5212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5213. (exit $ac_status); }; }; then
  5214. eval "$as_ac_var=yes"
  5215. else
  5216. echo "$as_me: failed program was:" >&5
  5217. sed 's/^/| /' conftest.$ac_ext >&5
  5218. eval "$as_ac_var=no"
  5219. fi
  5220. rm -f conftest.err conftest.$ac_objext \
  5221. conftest$ac_exeext conftest.$ac_ext
  5222. fi
  5223. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5224. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5225. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5226. cat >>confdefs.h <<_ACEOF
  5227. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5228. _ACEOF
  5229. else
  5230. # strftime is in -lintl on SCO UNIX.
  5231. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  5232. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  5233. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  5234. echo $ECHO_N "(cached) $ECHO_C" >&6
  5235. else
  5236. ac_check_lib_save_LIBS=$LIBS
  5237. LIBS="-lintl $LIBS"
  5238. cat >conftest.$ac_ext <<_ACEOF
  5239. /* confdefs.h. */
  5240. _ACEOF
  5241. cat confdefs.h >>conftest.$ac_ext
  5242. cat >>conftest.$ac_ext <<_ACEOF
  5243. /* end confdefs.h. */
  5244. /* Override any gcc2 internal prototype to avoid an error. */
  5245. #ifdef __cplusplus
  5246. extern "C"
  5247. #endif
  5248. /* We use char because int might match the return type of a gcc2
  5249. builtin and then its argument prototype would still apply. */
  5250. char strftime ();
  5251. int
  5252. main ()
  5253. {
  5254. strftime ();
  5255. ;
  5256. return 0;
  5257. }
  5258. _ACEOF
  5259. rm -f conftest.$ac_objext conftest$ac_exeext
  5260. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5261. (eval $ac_link) 2>conftest.er1
  5262. ac_status=$?
  5263. grep -v '^ *+' conftest.er1 >conftest.err
  5264. rm -f conftest.er1
  5265. cat conftest.err >&5
  5266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5267. (exit $ac_status); } &&
  5268. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5270. (eval $ac_try) 2>&5
  5271. ac_status=$?
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); }; } &&
  5274. { ac_try='test -s conftest$ac_exeext'
  5275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5276. (eval $ac_try) 2>&5
  5277. ac_status=$?
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); }; }; then
  5280. ac_cv_lib_intl_strftime=yes
  5281. else
  5282. echo "$as_me: failed program was:" >&5
  5283. sed 's/^/| /' conftest.$ac_ext >&5
  5284. ac_cv_lib_intl_strftime=no
  5285. fi
  5286. rm -f conftest.err conftest.$ac_objext \
  5287. conftest$ac_exeext conftest.$ac_ext
  5288. LIBS=$ac_check_lib_save_LIBS
  5289. fi
  5290. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  5291. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  5292. if test $ac_cv_lib_intl_strftime = yes; then
  5293. cat >>confdefs.h <<\_ACEOF
  5294. #define HAVE_STRFTIME 1
  5295. _ACEOF
  5296. LIBS="-lintl $LIBS"
  5297. fi
  5298. fi
  5299. done
  5300. for ac_func in \
  5301. bind gethostbyaddr gethostbyname gethostname inet_ntoa malloc memmove \
  5302. memset realloc setsid setsockopt socket strcasecmp strchr strcspn strerror \
  5303. strstr waitpid
  5304. do
  5305. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5306. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5307. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5308. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5309. echo $ECHO_N "(cached) $ECHO_C" >&6
  5310. else
  5311. cat >conftest.$ac_ext <<_ACEOF
  5312. /* confdefs.h. */
  5313. _ACEOF
  5314. cat confdefs.h >>conftest.$ac_ext
  5315. cat >>conftest.$ac_ext <<_ACEOF
  5316. /* end confdefs.h. */
  5317. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5318. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5319. #define $ac_func innocuous_$ac_func
  5320. /* System header to define __stub macros and hopefully few prototypes,
  5321. which can conflict with char $ac_func (); below.
  5322. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5323. <limits.h> exists even on freestanding compilers. */
  5324. #ifdef __STDC__
  5325. # include <limits.h>
  5326. #else
  5327. # include <assert.h>
  5328. #endif
  5329. #undef $ac_func
  5330. /* Override any gcc2 internal prototype to avoid an error. */
  5331. #ifdef __cplusplus
  5332. extern "C"
  5333. {
  5334. #endif
  5335. /* We use char because int might match the return type of a gcc2
  5336. builtin and then its argument prototype would still apply. */
  5337. char $ac_func ();
  5338. /* The GNU C library defines this for functions which it implements
  5339. to always fail with ENOSYS. Some functions are actually named
  5340. something starting with __ and the normal name is an alias. */
  5341. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5342. choke me
  5343. #else
  5344. char (*f) () = $ac_func;
  5345. #endif
  5346. #ifdef __cplusplus
  5347. }
  5348. #endif
  5349. int
  5350. main ()
  5351. {
  5352. return f != $ac_func;
  5353. ;
  5354. return 0;
  5355. }
  5356. _ACEOF
  5357. rm -f conftest.$ac_objext conftest$ac_exeext
  5358. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5359. (eval $ac_link) 2>conftest.er1
  5360. ac_status=$?
  5361. grep -v '^ *+' conftest.er1 >conftest.err
  5362. rm -f conftest.er1
  5363. cat conftest.err >&5
  5364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5365. (exit $ac_status); } &&
  5366. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5368. (eval $ac_try) 2>&5
  5369. ac_status=$?
  5370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5371. (exit $ac_status); }; } &&
  5372. { ac_try='test -s conftest$ac_exeext'
  5373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5374. (eval $ac_try) 2>&5
  5375. ac_status=$?
  5376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5377. (exit $ac_status); }; }; then
  5378. eval "$as_ac_var=yes"
  5379. else
  5380. echo "$as_me: failed program was:" >&5
  5381. sed 's/^/| /' conftest.$ac_ext >&5
  5382. eval "$as_ac_var=no"
  5383. fi
  5384. rm -f conftest.err conftest.$ac_objext \
  5385. conftest$ac_exeext conftest.$ac_ext
  5386. fi
  5387. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5388. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5389. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5390. cat >>confdefs.h <<_ACEOF
  5391. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5392. _ACEOF
  5393. else
  5394. { { echo "$as_me:$LINENO: error: required function missing!" >&5
  5395. echo "$as_me: error: required function missing!" >&2;}
  5396. { (exit 1); exit 1; }; }
  5397. fi
  5398. done
  5399. for ac_func in inet_aton isdigit sigaction snprintf vsnprintf strdup strlcpy strlcat
  5400. do
  5401. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5402. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5403. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5404. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5405. echo $ECHO_N "(cached) $ECHO_C" >&6
  5406. else
  5407. cat >conftest.$ac_ext <<_ACEOF
  5408. /* confdefs.h. */
  5409. _ACEOF
  5410. cat confdefs.h >>conftest.$ac_ext
  5411. cat >>conftest.$ac_ext <<_ACEOF
  5412. /* end confdefs.h. */
  5413. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5414. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5415. #define $ac_func innocuous_$ac_func
  5416. /* System header to define __stub macros and hopefully few prototypes,
  5417. which can conflict with char $ac_func (); below.
  5418. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5419. <limits.h> exists even on freestanding compilers. */
  5420. #ifdef __STDC__
  5421. # include <limits.h>
  5422. #else
  5423. # include <assert.h>
  5424. #endif
  5425. #undef $ac_func
  5426. /* Override any gcc2 internal prototype to avoid an error. */
  5427. #ifdef __cplusplus
  5428. extern "C"
  5429. {
  5430. #endif
  5431. /* We use char because int might match the return type of a gcc2
  5432. builtin and then its argument prototype would still apply. */
  5433. char $ac_func ();
  5434. /* The GNU C library defines this for functions which it implements
  5435. to always fail with ENOSYS. Some functions are actually named
  5436. something starting with __ and the normal name is an alias. */
  5437. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5438. choke me
  5439. #else
  5440. char (*f) () = $ac_func;
  5441. #endif
  5442. #ifdef __cplusplus
  5443. }
  5444. #endif
  5445. int
  5446. main ()
  5447. {
  5448. return f != $ac_func;
  5449. ;
  5450. return 0;
  5451. }
  5452. _ACEOF
  5453. rm -f conftest.$ac_objext conftest$ac_exeext
  5454. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5455. (eval $ac_link) 2>conftest.er1
  5456. ac_status=$?
  5457. grep -v '^ *+' conftest.er1 >conftest.err
  5458. rm -f conftest.er1
  5459. cat conftest.err >&5
  5460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5461. (exit $ac_status); } &&
  5462. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5464. (eval $ac_try) 2>&5
  5465. ac_status=$?
  5466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5467. (exit $ac_status); }; } &&
  5468. { ac_try='test -s conftest$ac_exeext'
  5469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5470. (eval $ac_try) 2>&5
  5471. ac_status=$?
  5472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5473. (exit $ac_status); }; }; then
  5474. eval "$as_ac_var=yes"
  5475. else
  5476. echo "$as_me: failed program was:" >&5
  5477. sed 's/^/| /' conftest.$ac_ext >&5
  5478. eval "$as_ac_var=no"
  5479. fi
  5480. rm -f conftest.err conftest.$ac_objext \
  5481. conftest$ac_exeext conftest.$ac_ext
  5482. fi
  5483. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5484. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5485. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5486. cat >>confdefs.h <<_ACEOF
  5487. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5488. _ACEOF
  5489. fi
  5490. done
  5491. # -- Configuration options --
  5492. # use syslog?
  5493. x_syslog_on=no
  5494. # Check whether --with-syslog or --without-syslog was given.
  5495. if test "${with_syslog+set}" = set; then
  5496. withval="$with_syslog"
  5497. if test "$withval" != "no"; then
  5498. if test "$withval" != "yes"; then
  5499. CFLAGS="-I$withval/include $CFLAGS"
  5500. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5501. LDFLAGS="-L$withval/lib $LDFLAGS"
  5502. fi
  5503. echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  5504. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6
  5505. if test "${ac_cv_lib_be_syslog+set}" = set; then
  5506. echo $ECHO_N "(cached) $ECHO_C" >&6
  5507. else
  5508. ac_check_lib_save_LIBS=$LIBS
  5509. LIBS="-lbe $LIBS"
  5510. cat >conftest.$ac_ext <<_ACEOF
  5511. /* confdefs.h. */
  5512. _ACEOF
  5513. cat confdefs.h >>conftest.$ac_ext
  5514. cat >>conftest.$ac_ext <<_ACEOF
  5515. /* end confdefs.h. */
  5516. /* Override any gcc2 internal prototype to avoid an error. */
  5517. #ifdef __cplusplus
  5518. extern "C"
  5519. #endif
  5520. /* We use char because int might match the return type of a gcc2
  5521. builtin and then its argument prototype would still apply. */
  5522. char syslog ();
  5523. int
  5524. main ()
  5525. {
  5526. syslog ();
  5527. ;
  5528. return 0;
  5529. }
  5530. _ACEOF
  5531. rm -f conftest.$ac_objext conftest$ac_exeext
  5532. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5533. (eval $ac_link) 2>conftest.er1
  5534. ac_status=$?
  5535. grep -v '^ *+' conftest.er1 >conftest.err
  5536. rm -f conftest.er1
  5537. cat conftest.err >&5
  5538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5539. (exit $ac_status); } &&
  5540. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5542. (eval $ac_try) 2>&5
  5543. ac_status=$?
  5544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5545. (exit $ac_status); }; } &&
  5546. { ac_try='test -s conftest$ac_exeext'
  5547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5548. (eval $ac_try) 2>&5
  5549. ac_status=$?
  5550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5551. (exit $ac_status); }; }; then
  5552. ac_cv_lib_be_syslog=yes
  5553. else
  5554. echo "$as_me: failed program was:" >&5
  5555. sed 's/^/| /' conftest.$ac_ext >&5
  5556. ac_cv_lib_be_syslog=no
  5557. fi
  5558. rm -f conftest.err conftest.$ac_objext \
  5559. conftest$ac_exeext conftest.$ac_ext
  5560. LIBS=$ac_check_lib_save_LIBS
  5561. fi
  5562. echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  5563. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6
  5564. if test $ac_cv_lib_be_syslog = yes; then
  5565. cat >>confdefs.h <<_ACEOF
  5566. #define HAVE_LIBBE 1
  5567. _ACEOF
  5568. LIBS="-lbe $LIBS"
  5569. fi
  5570. for ac_func in syslog
  5571. do
  5572. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5573. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5574. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5575. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5576. echo $ECHO_N "(cached) $ECHO_C" >&6
  5577. else
  5578. cat >conftest.$ac_ext <<_ACEOF
  5579. /* confdefs.h. */
  5580. _ACEOF
  5581. cat confdefs.h >>conftest.$ac_ext
  5582. cat >>conftest.$ac_ext <<_ACEOF
  5583. /* end confdefs.h. */
  5584. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5585. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5586. #define $ac_func innocuous_$ac_func
  5587. /* System header to define __stub macros and hopefully few prototypes,
  5588. which can conflict with char $ac_func (); below.
  5589. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5590. <limits.h> exists even on freestanding compilers. */
  5591. #ifdef __STDC__
  5592. # include <limits.h>
  5593. #else
  5594. # include <assert.h>
  5595. #endif
  5596. #undef $ac_func
  5597. /* Override any gcc2 internal prototype to avoid an error. */
  5598. #ifdef __cplusplus
  5599. extern "C"
  5600. {
  5601. #endif
  5602. /* We use char because int might match the return type of a gcc2
  5603. builtin and then its argument prototype would still apply. */
  5604. char $ac_func ();
  5605. /* The GNU C library defines this for functions which it implements
  5606. to always fail with ENOSYS. Some functions are actually named
  5607. something starting with __ and the normal name is an alias. */
  5608. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5609. choke me
  5610. #else
  5611. char (*f) () = $ac_func;
  5612. #endif
  5613. #ifdef __cplusplus
  5614. }
  5615. #endif
  5616. int
  5617. main ()
  5618. {
  5619. return f != $ac_func;
  5620. ;
  5621. return 0;
  5622. }
  5623. _ACEOF
  5624. rm -f conftest.$ac_objext conftest$ac_exeext
  5625. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5626. (eval $ac_link) 2>conftest.er1
  5627. ac_status=$?
  5628. grep -v '^ *+' conftest.er1 >conftest.err
  5629. rm -f conftest.er1
  5630. cat conftest.err >&5
  5631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5632. (exit $ac_status); } &&
  5633. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5635. (eval $ac_try) 2>&5
  5636. ac_status=$?
  5637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5638. (exit $ac_status); }; } &&
  5639. { ac_try='test -s conftest$ac_exeext'
  5640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5641. (eval $ac_try) 2>&5
  5642. ac_status=$?
  5643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5644. (exit $ac_status); }; }; then
  5645. eval "$as_ac_var=yes"
  5646. else
  5647. echo "$as_me: failed program was:" >&5
  5648. sed 's/^/| /' conftest.$ac_ext >&5
  5649. eval "$as_ac_var=no"
  5650. fi
  5651. rm -f conftest.err conftest.$ac_objext \
  5652. conftest$ac_exeext conftest.$ac_ext
  5653. fi
  5654. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5655. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5656. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5657. cat >>confdefs.h <<_ACEOF
  5658. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5659. _ACEOF
  5660. x_syslog_on=yes
  5661. else
  5662. { { echo "$as_me:$LINENO: error: Can't enable syslog!" >&5
  5663. echo "$as_me: error: Can't enable syslog!" >&2;}
  5664. { (exit 1); exit 1; }; }
  5665. fi
  5666. done
  5667. fi
  5668. else
  5669. echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  5670. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6
  5671. if test "${ac_cv_lib_be_syslog+set}" = set; then
  5672. echo $ECHO_N "(cached) $ECHO_C" >&6
  5673. else
  5674. ac_check_lib_save_LIBS=$LIBS
  5675. LIBS="-lbe $LIBS"
  5676. cat >conftest.$ac_ext <<_ACEOF
  5677. /* confdefs.h. */
  5678. _ACEOF
  5679. cat confdefs.h >>conftest.$ac_ext
  5680. cat >>conftest.$ac_ext <<_ACEOF
  5681. /* end confdefs.h. */
  5682. /* Override any gcc2 internal prototype to avoid an error. */
  5683. #ifdef __cplusplus
  5684. extern "C"
  5685. #endif
  5686. /* We use char because int might match the return type of a gcc2
  5687. builtin and then its argument prototype would still apply. */
  5688. char syslog ();
  5689. int
  5690. main ()
  5691. {
  5692. syslog ();
  5693. ;
  5694. return 0;
  5695. }
  5696. _ACEOF
  5697. rm -f conftest.$ac_objext conftest$ac_exeext
  5698. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5699. (eval $ac_link) 2>conftest.er1
  5700. ac_status=$?
  5701. grep -v '^ *+' conftest.er1 >conftest.err
  5702. rm -f conftest.er1
  5703. cat conftest.err >&5
  5704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5705. (exit $ac_status); } &&
  5706. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5708. (eval $ac_try) 2>&5
  5709. ac_status=$?
  5710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711. (exit $ac_status); }; } &&
  5712. { ac_try='test -s conftest$ac_exeext'
  5713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5714. (eval $ac_try) 2>&5
  5715. ac_status=$?
  5716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5717. (exit $ac_status); }; }; then
  5718. ac_cv_lib_be_syslog=yes
  5719. else
  5720. echo "$as_me: failed program was:" >&5
  5721. sed 's/^/| /' conftest.$ac_ext >&5
  5722. ac_cv_lib_be_syslog=no
  5723. fi
  5724. rm -f conftest.err conftest.$ac_objext \
  5725. conftest$ac_exeext conftest.$ac_ext
  5726. LIBS=$ac_check_lib_save_LIBS
  5727. fi
  5728. echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  5729. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6
  5730. if test $ac_cv_lib_be_syslog = yes; then
  5731. cat >>confdefs.h <<_ACEOF
  5732. #define HAVE_LIBBE 1
  5733. _ACEOF
  5734. LIBS="-lbe $LIBS"
  5735. fi
  5736. for ac_func in syslog
  5737. do
  5738. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5739. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5740. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5741. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5742. echo $ECHO_N "(cached) $ECHO_C" >&6
  5743. else
  5744. cat >conftest.$ac_ext <<_ACEOF
  5745. /* confdefs.h. */
  5746. _ACEOF
  5747. cat confdefs.h >>conftest.$ac_ext
  5748. cat >>conftest.$ac_ext <<_ACEOF
  5749. /* end confdefs.h. */
  5750. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5751. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5752. #define $ac_func innocuous_$ac_func
  5753. /* System header to define __stub macros and hopefully few prototypes,
  5754. which can conflict with char $ac_func (); below.
  5755. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5756. <limits.h> exists even on freestanding compilers. */
  5757. #ifdef __STDC__
  5758. # include <limits.h>
  5759. #else
  5760. # include <assert.h>
  5761. #endif
  5762. #undef $ac_func
  5763. /* Override any gcc2 internal prototype to avoid an error. */
  5764. #ifdef __cplusplus
  5765. extern "C"
  5766. {
  5767. #endif
  5768. /* We use char because int might match the return type of a gcc2
  5769. builtin and then its argument prototype would still apply. */
  5770. char $ac_func ();
  5771. /* The GNU C library defines this for functions which it implements
  5772. to always fail with ENOSYS. Some functions are actually named
  5773. something starting with __ and the normal name is an alias. */
  5774. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5775. choke me
  5776. #else
  5777. char (*f) () = $ac_func;
  5778. #endif
  5779. #ifdef __cplusplus
  5780. }
  5781. #endif
  5782. int
  5783. main ()
  5784. {
  5785. return f != $ac_func;
  5786. ;
  5787. return 0;
  5788. }
  5789. _ACEOF
  5790. rm -f conftest.$ac_objext conftest$ac_exeext
  5791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5792. (eval $ac_link) 2>conftest.er1
  5793. ac_status=$?
  5794. grep -v '^ *+' conftest.er1 >conftest.err
  5795. rm -f conftest.er1
  5796. cat conftest.err >&5
  5797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5798. (exit $ac_status); } &&
  5799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5801. (eval $ac_try) 2>&5
  5802. ac_status=$?
  5803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5804. (exit $ac_status); }; } &&
  5805. { ac_try='test -s conftest$ac_exeext'
  5806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5807. (eval $ac_try) 2>&5
  5808. ac_status=$?
  5809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5810. (exit $ac_status); }; }; then
  5811. eval "$as_ac_var=yes"
  5812. else
  5813. echo "$as_me: failed program was:" >&5
  5814. sed 's/^/| /' conftest.$ac_ext >&5
  5815. eval "$as_ac_var=no"
  5816. fi
  5817. rm -f conftest.err conftest.$ac_objext \
  5818. conftest$ac_exeext conftest.$ac_ext
  5819. fi
  5820. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5821. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5822. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5823. cat >>confdefs.h <<_ACEOF
  5824. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5825. _ACEOF
  5826. x_syslog_on=yes
  5827. fi
  5828. done
  5829. fi;
  5830. if test "$x_syslog_on" = "yes"; then
  5831. cat >>confdefs.h <<\_ACEOF
  5832. #define SYSLOG 1
  5833. _ACEOF
  5834. for ac_header in syslog.h
  5835. do
  5836. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5837. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5838. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5839. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5840. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5841. echo $ECHO_N "(cached) $ECHO_C" >&6
  5842. fi
  5843. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5844. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5845. else
  5846. # Is the header compilable?
  5847. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5848. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5849. cat >conftest.$ac_ext <<_ACEOF
  5850. /* confdefs.h. */
  5851. _ACEOF
  5852. cat confdefs.h >>conftest.$ac_ext
  5853. cat >>conftest.$ac_ext <<_ACEOF
  5854. /* end confdefs.h. */
  5855. $ac_includes_default
  5856. #include <$ac_header>
  5857. _ACEOF
  5858. rm -f conftest.$ac_objext
  5859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5860. (eval $ac_compile) 2>conftest.er1
  5861. ac_status=$?
  5862. grep -v '^ *+' conftest.er1 >conftest.err
  5863. rm -f conftest.er1
  5864. cat conftest.err >&5
  5865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5866. (exit $ac_status); } &&
  5867. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5869. (eval $ac_try) 2>&5
  5870. ac_status=$?
  5871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5872. (exit $ac_status); }; } &&
  5873. { ac_try='test -s conftest.$ac_objext'
  5874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5875. (eval $ac_try) 2>&5
  5876. ac_status=$?
  5877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5878. (exit $ac_status); }; }; then
  5879. ac_header_compiler=yes
  5880. else
  5881. echo "$as_me: failed program was:" >&5
  5882. sed 's/^/| /' conftest.$ac_ext >&5
  5883. ac_header_compiler=no
  5884. fi
  5885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5886. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5887. echo "${ECHO_T}$ac_header_compiler" >&6
  5888. # Is the header present?
  5889. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5890. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5891. cat >conftest.$ac_ext <<_ACEOF
  5892. /* confdefs.h. */
  5893. _ACEOF
  5894. cat confdefs.h >>conftest.$ac_ext
  5895. cat >>conftest.$ac_ext <<_ACEOF
  5896. /* end confdefs.h. */
  5897. #include <$ac_header>
  5898. _ACEOF
  5899. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5900. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5901. ac_status=$?
  5902. grep -v '^ *+' conftest.er1 >conftest.err
  5903. rm -f conftest.er1
  5904. cat conftest.err >&5
  5905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5906. (exit $ac_status); } >/dev/null; then
  5907. if test -s conftest.err; then
  5908. ac_cpp_err=$ac_c_preproc_warn_flag
  5909. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5910. else
  5911. ac_cpp_err=
  5912. fi
  5913. else
  5914. ac_cpp_err=yes
  5915. fi
  5916. if test -z "$ac_cpp_err"; then
  5917. ac_header_preproc=yes
  5918. else
  5919. echo "$as_me: failed program was:" >&5
  5920. sed 's/^/| /' conftest.$ac_ext >&5
  5921. ac_header_preproc=no
  5922. fi
  5923. rm -f conftest.err conftest.$ac_ext
  5924. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5925. echo "${ECHO_T}$ac_header_preproc" >&6
  5926. # So? What about this header?
  5927. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5928. yes:no: )
  5929. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5930. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5931. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5932. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5933. ac_header_preproc=yes
  5934. ;;
  5935. no:yes:* )
  5936. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5937. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5938. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5939. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5940. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5941. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5942. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5943. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5944. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5945. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5946. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5947. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5948. (
  5949. cat <<\_ASBOX
  5950. ## --------------------------------- ##
  5951. ## Report this to the ngircd lists. ##
  5952. ## --------------------------------- ##
  5953. _ASBOX
  5954. ) |
  5955. sed "s/^/$as_me: WARNING: /" >&2
  5956. ;;
  5957. esac
  5958. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5959. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5960. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5961. echo $ECHO_N "(cached) $ECHO_C" >&6
  5962. else
  5963. eval "$as_ac_Header=\$ac_header_preproc"
  5964. fi
  5965. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5966. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5967. fi
  5968. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5969. cat >>confdefs.h <<_ACEOF
  5970. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5971. _ACEOF
  5972. else
  5973. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  5974. echo "$as_me: error: required C header missing!" >&2;}
  5975. { (exit 1); exit 1; }; }
  5976. fi
  5977. done
  5978. fi
  5979. # use zlib compression?
  5980. x_zlib_on=no
  5981. # Check whether --with-zlib or --without-zlib was given.
  5982. if test "${with_zlib+set}" = set; then
  5983. withval="$with_zlib"
  5984. if test "$withval" != "no"; then
  5985. if test "$withval" != "yes"; then
  5986. CFLAGS="-I$withval/include $CFLAGS"
  5987. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5988. LDFLAGS="-L$withval/lib $LDFLAGS"
  5989. fi
  5990. echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  5991. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
  5992. if test "${ac_cv_lib_z_deflate+set}" = set; then
  5993. echo $ECHO_N "(cached) $ECHO_C" >&6
  5994. else
  5995. ac_check_lib_save_LIBS=$LIBS
  5996. LIBS="-lz $LIBS"
  5997. cat >conftest.$ac_ext <<_ACEOF
  5998. /* confdefs.h. */
  5999. _ACEOF
  6000. cat confdefs.h >>conftest.$ac_ext
  6001. cat >>conftest.$ac_ext <<_ACEOF
  6002. /* end confdefs.h. */
  6003. /* Override any gcc2 internal prototype to avoid an error. */
  6004. #ifdef __cplusplus
  6005. extern "C"
  6006. #endif
  6007. /* We use char because int might match the return type of a gcc2
  6008. builtin and then its argument prototype would still apply. */
  6009. char deflate ();
  6010. int
  6011. main ()
  6012. {
  6013. deflate ();
  6014. ;
  6015. return 0;
  6016. }
  6017. _ACEOF
  6018. rm -f conftest.$ac_objext conftest$ac_exeext
  6019. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6020. (eval $ac_link) 2>conftest.er1
  6021. ac_status=$?
  6022. grep -v '^ *+' conftest.er1 >conftest.err
  6023. rm -f conftest.er1
  6024. cat conftest.err >&5
  6025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6026. (exit $ac_status); } &&
  6027. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6029. (eval $ac_try) 2>&5
  6030. ac_status=$?
  6031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6032. (exit $ac_status); }; } &&
  6033. { ac_try='test -s conftest$ac_exeext'
  6034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6035. (eval $ac_try) 2>&5
  6036. ac_status=$?
  6037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6038. (exit $ac_status); }; }; then
  6039. ac_cv_lib_z_deflate=yes
  6040. else
  6041. echo "$as_me: failed program was:" >&5
  6042. sed 's/^/| /' conftest.$ac_ext >&5
  6043. ac_cv_lib_z_deflate=no
  6044. fi
  6045. rm -f conftest.err conftest.$ac_objext \
  6046. conftest$ac_exeext conftest.$ac_ext
  6047. LIBS=$ac_check_lib_save_LIBS
  6048. fi
  6049. echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6050. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
  6051. if test $ac_cv_lib_z_deflate = yes; then
  6052. cat >>confdefs.h <<_ACEOF
  6053. #define HAVE_LIBZ 1
  6054. _ACEOF
  6055. LIBS="-lz $LIBS"
  6056. fi
  6057. for ac_func in deflate
  6058. do
  6059. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6060. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6061. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6062. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6063. echo $ECHO_N "(cached) $ECHO_C" >&6
  6064. else
  6065. cat >conftest.$ac_ext <<_ACEOF
  6066. /* confdefs.h. */
  6067. _ACEOF
  6068. cat confdefs.h >>conftest.$ac_ext
  6069. cat >>conftest.$ac_ext <<_ACEOF
  6070. /* end confdefs.h. */
  6071. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6072. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6073. #define $ac_func innocuous_$ac_func
  6074. /* System header to define __stub macros and hopefully few prototypes,
  6075. which can conflict with char $ac_func (); below.
  6076. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6077. <limits.h> exists even on freestanding compilers. */
  6078. #ifdef __STDC__
  6079. # include <limits.h>
  6080. #else
  6081. # include <assert.h>
  6082. #endif
  6083. #undef $ac_func
  6084. /* Override any gcc2 internal prototype to avoid an error. */
  6085. #ifdef __cplusplus
  6086. extern "C"
  6087. {
  6088. #endif
  6089. /* We use char because int might match the return type of a gcc2
  6090. builtin and then its argument prototype would still apply. */
  6091. char $ac_func ();
  6092. /* The GNU C library defines this for functions which it implements
  6093. to always fail with ENOSYS. Some functions are actually named
  6094. something starting with __ and the normal name is an alias. */
  6095. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6096. choke me
  6097. #else
  6098. char (*f) () = $ac_func;
  6099. #endif
  6100. #ifdef __cplusplus
  6101. }
  6102. #endif
  6103. int
  6104. main ()
  6105. {
  6106. return f != $ac_func;
  6107. ;
  6108. return 0;
  6109. }
  6110. _ACEOF
  6111. rm -f conftest.$ac_objext conftest$ac_exeext
  6112. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6113. (eval $ac_link) 2>conftest.er1
  6114. ac_status=$?
  6115. grep -v '^ *+' conftest.er1 >conftest.err
  6116. rm -f conftest.er1
  6117. cat conftest.err >&5
  6118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6119. (exit $ac_status); } &&
  6120. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6122. (eval $ac_try) 2>&5
  6123. ac_status=$?
  6124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6125. (exit $ac_status); }; } &&
  6126. { ac_try='test -s conftest$ac_exeext'
  6127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6128. (eval $ac_try) 2>&5
  6129. ac_status=$?
  6130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6131. (exit $ac_status); }; }; then
  6132. eval "$as_ac_var=yes"
  6133. else
  6134. echo "$as_me: failed program was:" >&5
  6135. sed 's/^/| /' conftest.$ac_ext >&5
  6136. eval "$as_ac_var=no"
  6137. fi
  6138. rm -f conftest.err conftest.$ac_objext \
  6139. conftest$ac_exeext conftest.$ac_ext
  6140. fi
  6141. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6142. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6143. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6144. cat >>confdefs.h <<_ACEOF
  6145. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6146. _ACEOF
  6147. x_zlib_on=yes
  6148. else
  6149. { { echo "$as_me:$LINENO: error: Can't enable zlib!" >&5
  6150. echo "$as_me: error: Can't enable zlib!" >&2;}
  6151. { (exit 1); exit 1; }; }
  6152. fi
  6153. done
  6154. fi
  6155. else
  6156. echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6157. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
  6158. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6159. echo $ECHO_N "(cached) $ECHO_C" >&6
  6160. else
  6161. ac_check_lib_save_LIBS=$LIBS
  6162. LIBS="-lz $LIBS"
  6163. cat >conftest.$ac_ext <<_ACEOF
  6164. /* confdefs.h. */
  6165. _ACEOF
  6166. cat confdefs.h >>conftest.$ac_ext
  6167. cat >>conftest.$ac_ext <<_ACEOF
  6168. /* end confdefs.h. */
  6169. /* Override any gcc2 internal prototype to avoid an error. */
  6170. #ifdef __cplusplus
  6171. extern "C"
  6172. #endif
  6173. /* We use char because int might match the return type of a gcc2
  6174. builtin and then its argument prototype would still apply. */
  6175. char deflate ();
  6176. int
  6177. main ()
  6178. {
  6179. deflate ();
  6180. ;
  6181. return 0;
  6182. }
  6183. _ACEOF
  6184. rm -f conftest.$ac_objext conftest$ac_exeext
  6185. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6186. (eval $ac_link) 2>conftest.er1
  6187. ac_status=$?
  6188. grep -v '^ *+' conftest.er1 >conftest.err
  6189. rm -f conftest.er1
  6190. cat conftest.err >&5
  6191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6192. (exit $ac_status); } &&
  6193. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6195. (eval $ac_try) 2>&5
  6196. ac_status=$?
  6197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6198. (exit $ac_status); }; } &&
  6199. { ac_try='test -s conftest$ac_exeext'
  6200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6201. (eval $ac_try) 2>&5
  6202. ac_status=$?
  6203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6204. (exit $ac_status); }; }; then
  6205. ac_cv_lib_z_deflate=yes
  6206. else
  6207. echo "$as_me: failed program was:" >&5
  6208. sed 's/^/| /' conftest.$ac_ext >&5
  6209. ac_cv_lib_z_deflate=no
  6210. fi
  6211. rm -f conftest.err conftest.$ac_objext \
  6212. conftest$ac_exeext conftest.$ac_ext
  6213. LIBS=$ac_check_lib_save_LIBS
  6214. fi
  6215. echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6216. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
  6217. if test $ac_cv_lib_z_deflate = yes; then
  6218. cat >>confdefs.h <<_ACEOF
  6219. #define HAVE_LIBZ 1
  6220. _ACEOF
  6221. LIBS="-lz $LIBS"
  6222. fi
  6223. for ac_func in deflate
  6224. do
  6225. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6226. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6227. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6228. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6229. echo $ECHO_N "(cached) $ECHO_C" >&6
  6230. else
  6231. cat >conftest.$ac_ext <<_ACEOF
  6232. /* confdefs.h. */
  6233. _ACEOF
  6234. cat confdefs.h >>conftest.$ac_ext
  6235. cat >>conftest.$ac_ext <<_ACEOF
  6236. /* end confdefs.h. */
  6237. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6238. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6239. #define $ac_func innocuous_$ac_func
  6240. /* System header to define __stub macros and hopefully few prototypes,
  6241. which can conflict with char $ac_func (); below.
  6242. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6243. <limits.h> exists even on freestanding compilers. */
  6244. #ifdef __STDC__
  6245. # include <limits.h>
  6246. #else
  6247. # include <assert.h>
  6248. #endif
  6249. #undef $ac_func
  6250. /* Override any gcc2 internal prototype to avoid an error. */
  6251. #ifdef __cplusplus
  6252. extern "C"
  6253. {
  6254. #endif
  6255. /* We use char because int might match the return type of a gcc2
  6256. builtin and then its argument prototype would still apply. */
  6257. char $ac_func ();
  6258. /* The GNU C library defines this for functions which it implements
  6259. to always fail with ENOSYS. Some functions are actually named
  6260. something starting with __ and the normal name is an alias. */
  6261. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6262. choke me
  6263. #else
  6264. char (*f) () = $ac_func;
  6265. #endif
  6266. #ifdef __cplusplus
  6267. }
  6268. #endif
  6269. int
  6270. main ()
  6271. {
  6272. return f != $ac_func;
  6273. ;
  6274. return 0;
  6275. }
  6276. _ACEOF
  6277. rm -f conftest.$ac_objext conftest$ac_exeext
  6278. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6279. (eval $ac_link) 2>conftest.er1
  6280. ac_status=$?
  6281. grep -v '^ *+' conftest.er1 >conftest.err
  6282. rm -f conftest.er1
  6283. cat conftest.err >&5
  6284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6285. (exit $ac_status); } &&
  6286. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6288. (eval $ac_try) 2>&5
  6289. ac_status=$?
  6290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6291. (exit $ac_status); }; } &&
  6292. { ac_try='test -s conftest$ac_exeext'
  6293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6294. (eval $ac_try) 2>&5
  6295. ac_status=$?
  6296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6297. (exit $ac_status); }; }; then
  6298. eval "$as_ac_var=yes"
  6299. else
  6300. echo "$as_me: failed program was:" >&5
  6301. sed 's/^/| /' conftest.$ac_ext >&5
  6302. eval "$as_ac_var=no"
  6303. fi
  6304. rm -f conftest.err conftest.$ac_objext \
  6305. conftest$ac_exeext conftest.$ac_ext
  6306. fi
  6307. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6308. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6309. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6310. cat >>confdefs.h <<_ACEOF
  6311. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6312. _ACEOF
  6313. x_zlib_on=yes
  6314. fi
  6315. done
  6316. fi;
  6317. if test "$x_zlib_on" = "yes"; then
  6318. cat >>confdefs.h <<\_ACEOF
  6319. #define ZLIB 1
  6320. _ACEOF
  6321. for ac_header in zlib.h
  6322. do
  6323. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6324. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6325. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6326. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6328. echo $ECHO_N "(cached) $ECHO_C" >&6
  6329. fi
  6330. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6331. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6332. else
  6333. # Is the header compilable?
  6334. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6335. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6336. cat >conftest.$ac_ext <<_ACEOF
  6337. /* confdefs.h. */
  6338. _ACEOF
  6339. cat confdefs.h >>conftest.$ac_ext
  6340. cat >>conftest.$ac_ext <<_ACEOF
  6341. /* end confdefs.h. */
  6342. $ac_includes_default
  6343. #include <$ac_header>
  6344. _ACEOF
  6345. rm -f conftest.$ac_objext
  6346. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6347. (eval $ac_compile) 2>conftest.er1
  6348. ac_status=$?
  6349. grep -v '^ *+' conftest.er1 >conftest.err
  6350. rm -f conftest.er1
  6351. cat conftest.err >&5
  6352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6353. (exit $ac_status); } &&
  6354. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6356. (eval $ac_try) 2>&5
  6357. ac_status=$?
  6358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6359. (exit $ac_status); }; } &&
  6360. { ac_try='test -s conftest.$ac_objext'
  6361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6362. (eval $ac_try) 2>&5
  6363. ac_status=$?
  6364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6365. (exit $ac_status); }; }; then
  6366. ac_header_compiler=yes
  6367. else
  6368. echo "$as_me: failed program was:" >&5
  6369. sed 's/^/| /' conftest.$ac_ext >&5
  6370. ac_header_compiler=no
  6371. fi
  6372. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6373. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6374. echo "${ECHO_T}$ac_header_compiler" >&6
  6375. # Is the header present?
  6376. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6377. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6378. cat >conftest.$ac_ext <<_ACEOF
  6379. /* confdefs.h. */
  6380. _ACEOF
  6381. cat confdefs.h >>conftest.$ac_ext
  6382. cat >>conftest.$ac_ext <<_ACEOF
  6383. /* end confdefs.h. */
  6384. #include <$ac_header>
  6385. _ACEOF
  6386. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6387. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6388. ac_status=$?
  6389. grep -v '^ *+' conftest.er1 >conftest.err
  6390. rm -f conftest.er1
  6391. cat conftest.err >&5
  6392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6393. (exit $ac_status); } >/dev/null; then
  6394. if test -s conftest.err; then
  6395. ac_cpp_err=$ac_c_preproc_warn_flag
  6396. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6397. else
  6398. ac_cpp_err=
  6399. fi
  6400. else
  6401. ac_cpp_err=yes
  6402. fi
  6403. if test -z "$ac_cpp_err"; then
  6404. ac_header_preproc=yes
  6405. else
  6406. echo "$as_me: failed program was:" >&5
  6407. sed 's/^/| /' conftest.$ac_ext >&5
  6408. ac_header_preproc=no
  6409. fi
  6410. rm -f conftest.err conftest.$ac_ext
  6411. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6412. echo "${ECHO_T}$ac_header_preproc" >&6
  6413. # So? What about this header?
  6414. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6415. yes:no: )
  6416. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6417. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6418. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6419. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6420. ac_header_preproc=yes
  6421. ;;
  6422. no:yes:* )
  6423. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6424. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6425. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6426. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6427. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6428. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6429. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6430. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6431. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6432. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6433. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6434. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6435. (
  6436. cat <<\_ASBOX
  6437. ## --------------------------------- ##
  6438. ## Report this to the ngircd lists. ##
  6439. ## --------------------------------- ##
  6440. _ASBOX
  6441. ) |
  6442. sed "s/^/$as_me: WARNING: /" >&2
  6443. ;;
  6444. esac
  6445. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6446. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6447. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6448. echo $ECHO_N "(cached) $ECHO_C" >&6
  6449. else
  6450. eval "$as_ac_Header=\$ac_header_preproc"
  6451. fi
  6452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6453. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6454. fi
  6455. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6456. cat >>confdefs.h <<_ACEOF
  6457. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6458. _ACEOF
  6459. else
  6460. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6461. echo "$as_me: error: required C header missing!" >&2;}
  6462. { (exit 1); exit 1; }; }
  6463. fi
  6464. done
  6465. fi
  6466. # detect which IO API to use:
  6467. x_io_backend=none
  6468. # Check whether --with-select or --without-select was given.
  6469. if test "${with_select+set}" = set; then
  6470. withval="$with_select"
  6471. if test "$withval" != "no"; then
  6472. if test "$withval" != "yes"; then
  6473. CFLAGS="-I$withval/include $CFLAGS"
  6474. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6475. LDFLAGS="-L$withval/lib $LDFLAGS"
  6476. fi
  6477. for ac_func in select
  6478. do
  6479. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6480. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6481. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6482. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6483. echo $ECHO_N "(cached) $ECHO_C" >&6
  6484. else
  6485. cat >conftest.$ac_ext <<_ACEOF
  6486. /* confdefs.h. */
  6487. _ACEOF
  6488. cat confdefs.h >>conftest.$ac_ext
  6489. cat >>conftest.$ac_ext <<_ACEOF
  6490. /* end confdefs.h. */
  6491. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6492. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6493. #define $ac_func innocuous_$ac_func
  6494. /* System header to define __stub macros and hopefully few prototypes,
  6495. which can conflict with char $ac_func (); below.
  6496. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6497. <limits.h> exists even on freestanding compilers. */
  6498. #ifdef __STDC__
  6499. # include <limits.h>
  6500. #else
  6501. # include <assert.h>
  6502. #endif
  6503. #undef $ac_func
  6504. /* Override any gcc2 internal prototype to avoid an error. */
  6505. #ifdef __cplusplus
  6506. extern "C"
  6507. {
  6508. #endif
  6509. /* We use char because int might match the return type of a gcc2
  6510. builtin and then its argument prototype would still apply. */
  6511. char $ac_func ();
  6512. /* The GNU C library defines this for functions which it implements
  6513. to always fail with ENOSYS. Some functions are actually named
  6514. something starting with __ and the normal name is an alias. */
  6515. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6516. choke me
  6517. #else
  6518. char (*f) () = $ac_func;
  6519. #endif
  6520. #ifdef __cplusplus
  6521. }
  6522. #endif
  6523. int
  6524. main ()
  6525. {
  6526. return f != $ac_func;
  6527. ;
  6528. return 0;
  6529. }
  6530. _ACEOF
  6531. rm -f conftest.$ac_objext conftest$ac_exeext
  6532. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6533. (eval $ac_link) 2>conftest.er1
  6534. ac_status=$?
  6535. grep -v '^ *+' conftest.er1 >conftest.err
  6536. rm -f conftest.er1
  6537. cat conftest.err >&5
  6538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6539. (exit $ac_status); } &&
  6540. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6542. (eval $ac_try) 2>&5
  6543. ac_status=$?
  6544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6545. (exit $ac_status); }; } &&
  6546. { ac_try='test -s conftest$ac_exeext'
  6547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6548. (eval $ac_try) 2>&5
  6549. ac_status=$?
  6550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6551. (exit $ac_status); }; }; then
  6552. eval "$as_ac_var=yes"
  6553. else
  6554. echo "$as_me: failed program was:" >&5
  6555. sed 's/^/| /' conftest.$ac_ext >&5
  6556. eval "$as_ac_var=no"
  6557. fi
  6558. rm -f conftest.err conftest.$ac_objext \
  6559. conftest$ac_exeext conftest.$ac_ext
  6560. fi
  6561. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6562. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6563. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6564. cat >>confdefs.h <<_ACEOF
  6565. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6566. _ACEOF
  6567. x_io_select=yes
  6568. else
  6569. { { echo "$as_me:$LINENO: error: Can't enable select IO support!" >&5
  6570. echo "$as_me: error: Can't enable select IO support!" >&2;}
  6571. { (exit 1); exit 1; }; }
  6572. fi
  6573. done
  6574. fi
  6575. else
  6576. for ac_func in select
  6577. do
  6578. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6579. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6580. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6581. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6582. echo $ECHO_N "(cached) $ECHO_C" >&6
  6583. else
  6584. cat >conftest.$ac_ext <<_ACEOF
  6585. /* confdefs.h. */
  6586. _ACEOF
  6587. cat confdefs.h >>conftest.$ac_ext
  6588. cat >>conftest.$ac_ext <<_ACEOF
  6589. /* end confdefs.h. */
  6590. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6591. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6592. #define $ac_func innocuous_$ac_func
  6593. /* System header to define __stub macros and hopefully few prototypes,
  6594. which can conflict with char $ac_func (); below.
  6595. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6596. <limits.h> exists even on freestanding compilers. */
  6597. #ifdef __STDC__
  6598. # include <limits.h>
  6599. #else
  6600. # include <assert.h>
  6601. #endif
  6602. #undef $ac_func
  6603. /* Override any gcc2 internal prototype to avoid an error. */
  6604. #ifdef __cplusplus
  6605. extern "C"
  6606. {
  6607. #endif
  6608. /* We use char because int might match the return type of a gcc2
  6609. builtin and then its argument prototype would still apply. */
  6610. char $ac_func ();
  6611. /* The GNU C library defines this for functions which it implements
  6612. to always fail with ENOSYS. Some functions are actually named
  6613. something starting with __ and the normal name is an alias. */
  6614. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6615. choke me
  6616. #else
  6617. char (*f) () = $ac_func;
  6618. #endif
  6619. #ifdef __cplusplus
  6620. }
  6621. #endif
  6622. int
  6623. main ()
  6624. {
  6625. return f != $ac_func;
  6626. ;
  6627. return 0;
  6628. }
  6629. _ACEOF
  6630. rm -f conftest.$ac_objext conftest$ac_exeext
  6631. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6632. (eval $ac_link) 2>conftest.er1
  6633. ac_status=$?
  6634. grep -v '^ *+' conftest.er1 >conftest.err
  6635. rm -f conftest.er1
  6636. cat conftest.err >&5
  6637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6638. (exit $ac_status); } &&
  6639. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6641. (eval $ac_try) 2>&5
  6642. ac_status=$?
  6643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6644. (exit $ac_status); }; } &&
  6645. { ac_try='test -s conftest$ac_exeext'
  6646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6647. (eval $ac_try) 2>&5
  6648. ac_status=$?
  6649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6650. (exit $ac_status); }; }; then
  6651. eval "$as_ac_var=yes"
  6652. else
  6653. echo "$as_me: failed program was:" >&5
  6654. sed 's/^/| /' conftest.$ac_ext >&5
  6655. eval "$as_ac_var=no"
  6656. fi
  6657. rm -f conftest.err conftest.$ac_objext \
  6658. conftest$ac_exeext conftest.$ac_ext
  6659. fi
  6660. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6661. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6662. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6663. cat >>confdefs.h <<_ACEOF
  6664. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6665. _ACEOF
  6666. x_io_select=yes
  6667. fi
  6668. done
  6669. fi;
  6670. # Check whether --with-poll or --without-poll was given.
  6671. if test "${with_poll+set}" = set; then
  6672. withval="$with_poll"
  6673. if test "$withval" != "no"; then
  6674. if test "$withval" != "yes"; then
  6675. CFLAGS="-I$withval/include $CFLAGS"
  6676. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6677. LDFLAGS="-L$withval/lib $LDFLAGS"
  6678. fi
  6679. for ac_func in poll
  6680. do
  6681. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6682. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6683. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6684. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6685. echo $ECHO_N "(cached) $ECHO_C" >&6
  6686. else
  6687. cat >conftest.$ac_ext <<_ACEOF
  6688. /* confdefs.h. */
  6689. _ACEOF
  6690. cat confdefs.h >>conftest.$ac_ext
  6691. cat >>conftest.$ac_ext <<_ACEOF
  6692. /* end confdefs.h. */
  6693. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6694. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6695. #define $ac_func innocuous_$ac_func
  6696. /* System header to define __stub macros and hopefully few prototypes,
  6697. which can conflict with char $ac_func (); below.
  6698. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6699. <limits.h> exists even on freestanding compilers. */
  6700. #ifdef __STDC__
  6701. # include <limits.h>
  6702. #else
  6703. # include <assert.h>
  6704. #endif
  6705. #undef $ac_func
  6706. /* Override any gcc2 internal prototype to avoid an error. */
  6707. #ifdef __cplusplus
  6708. extern "C"
  6709. {
  6710. #endif
  6711. /* We use char because int might match the return type of a gcc2
  6712. builtin and then its argument prototype would still apply. */
  6713. char $ac_func ();
  6714. /* The GNU C library defines this for functions which it implements
  6715. to always fail with ENOSYS. Some functions are actually named
  6716. something starting with __ and the normal name is an alias. */
  6717. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6718. choke me
  6719. #else
  6720. char (*f) () = $ac_func;
  6721. #endif
  6722. #ifdef __cplusplus
  6723. }
  6724. #endif
  6725. int
  6726. main ()
  6727. {
  6728. return f != $ac_func;
  6729. ;
  6730. return 0;
  6731. }
  6732. _ACEOF
  6733. rm -f conftest.$ac_objext conftest$ac_exeext
  6734. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6735. (eval $ac_link) 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_exeext'
  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. eval "$as_ac_var=yes"
  6755. else
  6756. echo "$as_me: failed program was:" >&5
  6757. sed 's/^/| /' conftest.$ac_ext >&5
  6758. eval "$as_ac_var=no"
  6759. fi
  6760. rm -f conftest.err conftest.$ac_objext \
  6761. conftest$ac_exeext conftest.$ac_ext
  6762. fi
  6763. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6764. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6765. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6766. cat >>confdefs.h <<_ACEOF
  6767. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6768. _ACEOF
  6769. x_io_backend=poll\(\)
  6770. else
  6771. { { echo "$as_me:$LINENO: error: Can't enable poll IO support!" >&5
  6772. echo "$as_me: error: Can't enable poll IO support!" >&2;}
  6773. { (exit 1); exit 1; }; }
  6774. fi
  6775. done
  6776. fi
  6777. else
  6778. for ac_func in poll
  6779. do
  6780. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6781. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6782. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6783. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6784. echo $ECHO_N "(cached) $ECHO_C" >&6
  6785. else
  6786. cat >conftest.$ac_ext <<_ACEOF
  6787. /* confdefs.h. */
  6788. _ACEOF
  6789. cat confdefs.h >>conftest.$ac_ext
  6790. cat >>conftest.$ac_ext <<_ACEOF
  6791. /* end confdefs.h. */
  6792. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6793. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6794. #define $ac_func innocuous_$ac_func
  6795. /* System header to define __stub macros and hopefully few prototypes,
  6796. which can conflict with char $ac_func (); below.
  6797. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6798. <limits.h> exists even on freestanding compilers. */
  6799. #ifdef __STDC__
  6800. # include <limits.h>
  6801. #else
  6802. # include <assert.h>
  6803. #endif
  6804. #undef $ac_func
  6805. /* Override any gcc2 internal prototype to avoid an error. */
  6806. #ifdef __cplusplus
  6807. extern "C"
  6808. {
  6809. #endif
  6810. /* We use char because int might match the return type of a gcc2
  6811. builtin and then its argument prototype would still apply. */
  6812. char $ac_func ();
  6813. /* The GNU C library defines this for functions which it implements
  6814. to always fail with ENOSYS. Some functions are actually named
  6815. something starting with __ and the normal name is an alias. */
  6816. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6817. choke me
  6818. #else
  6819. char (*f) () = $ac_func;
  6820. #endif
  6821. #ifdef __cplusplus
  6822. }
  6823. #endif
  6824. int
  6825. main ()
  6826. {
  6827. return f != $ac_func;
  6828. ;
  6829. return 0;
  6830. }
  6831. _ACEOF
  6832. rm -f conftest.$ac_objext conftest$ac_exeext
  6833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6834. (eval $ac_link) 2>conftest.er1
  6835. ac_status=$?
  6836. grep -v '^ *+' conftest.er1 >conftest.err
  6837. rm -f conftest.er1
  6838. cat conftest.err >&5
  6839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6840. (exit $ac_status); } &&
  6841. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6843. (eval $ac_try) 2>&5
  6844. ac_status=$?
  6845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6846. (exit $ac_status); }; } &&
  6847. { ac_try='test -s conftest$ac_exeext'
  6848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6849. (eval $ac_try) 2>&5
  6850. ac_status=$?
  6851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6852. (exit $ac_status); }; }; then
  6853. eval "$as_ac_var=yes"
  6854. else
  6855. echo "$as_me: failed program was:" >&5
  6856. sed 's/^/| /' conftest.$ac_ext >&5
  6857. eval "$as_ac_var=no"
  6858. fi
  6859. rm -f conftest.err conftest.$ac_objext \
  6860. conftest$ac_exeext conftest.$ac_ext
  6861. fi
  6862. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6863. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6864. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6865. cat >>confdefs.h <<_ACEOF
  6866. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6867. _ACEOF
  6868. x_io_backend=poll\(\)
  6869. fi
  6870. done
  6871. fi;
  6872. # Check whether --with-devpoll or --without-devpoll was given.
  6873. if test "${with_devpoll+set}" = set; then
  6874. withval="$with_devpoll"
  6875. if test "$withval" != "no"; then
  6876. if test "$withval" != "yes"; then
  6877. CFLAGS="-I$withval/include $CFLAGS"
  6878. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6879. LDFLAGS="-L$withval/lib $LDFLAGS"
  6880. fi
  6881. for ac_header in sys/devpoll.h
  6882. do
  6883. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6884. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6885. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6886. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6887. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6888. echo $ECHO_N "(cached) $ECHO_C" >&6
  6889. fi
  6890. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6891. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6892. else
  6893. # Is the header compilable?
  6894. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6895. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6896. cat >conftest.$ac_ext <<_ACEOF
  6897. /* confdefs.h. */
  6898. _ACEOF
  6899. cat confdefs.h >>conftest.$ac_ext
  6900. cat >>conftest.$ac_ext <<_ACEOF
  6901. /* end confdefs.h. */
  6902. $ac_includes_default
  6903. #include <$ac_header>
  6904. _ACEOF
  6905. rm -f conftest.$ac_objext
  6906. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6907. (eval $ac_compile) 2>conftest.er1
  6908. ac_status=$?
  6909. grep -v '^ *+' conftest.er1 >conftest.err
  6910. rm -f conftest.er1
  6911. cat conftest.err >&5
  6912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6913. (exit $ac_status); } &&
  6914. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6916. (eval $ac_try) 2>&5
  6917. ac_status=$?
  6918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6919. (exit $ac_status); }; } &&
  6920. { ac_try='test -s conftest.$ac_objext'
  6921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6922. (eval $ac_try) 2>&5
  6923. ac_status=$?
  6924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6925. (exit $ac_status); }; }; then
  6926. ac_header_compiler=yes
  6927. else
  6928. echo "$as_me: failed program was:" >&5
  6929. sed 's/^/| /' conftest.$ac_ext >&5
  6930. ac_header_compiler=no
  6931. fi
  6932. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6933. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6934. echo "${ECHO_T}$ac_header_compiler" >&6
  6935. # Is the header present?
  6936. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6937. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6938. cat >conftest.$ac_ext <<_ACEOF
  6939. /* confdefs.h. */
  6940. _ACEOF
  6941. cat confdefs.h >>conftest.$ac_ext
  6942. cat >>conftest.$ac_ext <<_ACEOF
  6943. /* end confdefs.h. */
  6944. #include <$ac_header>
  6945. _ACEOF
  6946. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6947. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6948. ac_status=$?
  6949. grep -v '^ *+' conftest.er1 >conftest.err
  6950. rm -f conftest.er1
  6951. cat conftest.err >&5
  6952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6953. (exit $ac_status); } >/dev/null; then
  6954. if test -s conftest.err; then
  6955. ac_cpp_err=$ac_c_preproc_warn_flag
  6956. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6957. else
  6958. ac_cpp_err=
  6959. fi
  6960. else
  6961. ac_cpp_err=yes
  6962. fi
  6963. if test -z "$ac_cpp_err"; then
  6964. ac_header_preproc=yes
  6965. else
  6966. echo "$as_me: failed program was:" >&5
  6967. sed 's/^/| /' conftest.$ac_ext >&5
  6968. ac_header_preproc=no
  6969. fi
  6970. rm -f conftest.err conftest.$ac_ext
  6971. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6972. echo "${ECHO_T}$ac_header_preproc" >&6
  6973. # So? What about this header?
  6974. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6975. yes:no: )
  6976. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6977. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6978. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6979. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6980. ac_header_preproc=yes
  6981. ;;
  6982. no:yes:* )
  6983. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6984. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6985. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6986. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6987. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6988. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6989. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6990. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6991. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6992. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6993. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6994. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6995. (
  6996. cat <<\_ASBOX
  6997. ## --------------------------------- ##
  6998. ## Report this to the ngircd lists. ##
  6999. ## --------------------------------- ##
  7000. _ASBOX
  7001. ) |
  7002. sed "s/^/$as_me: WARNING: /" >&2
  7003. ;;
  7004. esac
  7005. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7006. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7007. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7008. echo $ECHO_N "(cached) $ECHO_C" >&6
  7009. else
  7010. eval "$as_ac_Header=\$ac_header_preproc"
  7011. fi
  7012. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7013. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7014. fi
  7015. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7016. cat >>confdefs.h <<_ACEOF
  7017. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7018. _ACEOF
  7019. else
  7020. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7021. echo "$as_me: error: required C header missing!" >&2;}
  7022. { (exit 1); exit 1; }; }
  7023. fi
  7024. done
  7025. fi
  7026. else
  7027. for ac_header in sys/devpoll.h
  7028. do
  7029. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7030. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7031. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7032. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7033. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7034. echo $ECHO_N "(cached) $ECHO_C" >&6
  7035. fi
  7036. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7037. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7038. else
  7039. # Is the header compilable?
  7040. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7041. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7042. cat >conftest.$ac_ext <<_ACEOF
  7043. /* confdefs.h. */
  7044. _ACEOF
  7045. cat confdefs.h >>conftest.$ac_ext
  7046. cat >>conftest.$ac_ext <<_ACEOF
  7047. /* end confdefs.h. */
  7048. $ac_includes_default
  7049. #include <$ac_header>
  7050. _ACEOF
  7051. rm -f conftest.$ac_objext
  7052. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7053. (eval $ac_compile) 2>conftest.er1
  7054. ac_status=$?
  7055. grep -v '^ *+' conftest.er1 >conftest.err
  7056. rm -f conftest.er1
  7057. cat conftest.err >&5
  7058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7059. (exit $ac_status); } &&
  7060. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7062. (eval $ac_try) 2>&5
  7063. ac_status=$?
  7064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7065. (exit $ac_status); }; } &&
  7066. { ac_try='test -s conftest.$ac_objext'
  7067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7068. (eval $ac_try) 2>&5
  7069. ac_status=$?
  7070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7071. (exit $ac_status); }; }; then
  7072. ac_header_compiler=yes
  7073. else
  7074. echo "$as_me: failed program was:" >&5
  7075. sed 's/^/| /' conftest.$ac_ext >&5
  7076. ac_header_compiler=no
  7077. fi
  7078. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7079. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7080. echo "${ECHO_T}$ac_header_compiler" >&6
  7081. # Is the header present?
  7082. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7083. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7084. cat >conftest.$ac_ext <<_ACEOF
  7085. /* confdefs.h. */
  7086. _ACEOF
  7087. cat confdefs.h >>conftest.$ac_ext
  7088. cat >>conftest.$ac_ext <<_ACEOF
  7089. /* end confdefs.h. */
  7090. #include <$ac_header>
  7091. _ACEOF
  7092. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7093. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7094. ac_status=$?
  7095. grep -v '^ *+' conftest.er1 >conftest.err
  7096. rm -f conftest.er1
  7097. cat conftest.err >&5
  7098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7099. (exit $ac_status); } >/dev/null; then
  7100. if test -s conftest.err; then
  7101. ac_cpp_err=$ac_c_preproc_warn_flag
  7102. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7103. else
  7104. ac_cpp_err=
  7105. fi
  7106. else
  7107. ac_cpp_err=yes
  7108. fi
  7109. if test -z "$ac_cpp_err"; then
  7110. ac_header_preproc=yes
  7111. else
  7112. echo "$as_me: failed program was:" >&5
  7113. sed 's/^/| /' conftest.$ac_ext >&5
  7114. ac_header_preproc=no
  7115. fi
  7116. rm -f conftest.err conftest.$ac_ext
  7117. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7118. echo "${ECHO_T}$ac_header_preproc" >&6
  7119. # So? What about this header?
  7120. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7121. yes:no: )
  7122. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7123. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7124. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7125. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7126. ac_header_preproc=yes
  7127. ;;
  7128. no:yes:* )
  7129. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7130. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7131. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7132. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7133. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7134. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7135. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7136. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7137. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7138. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7139. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7140. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7141. (
  7142. cat <<\_ASBOX
  7143. ## --------------------------------- ##
  7144. ## Report this to the ngircd lists. ##
  7145. ## --------------------------------- ##
  7146. _ASBOX
  7147. ) |
  7148. sed "s/^/$as_me: WARNING: /" >&2
  7149. ;;
  7150. esac
  7151. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7152. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7153. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7154. echo $ECHO_N "(cached) $ECHO_C" >&6
  7155. else
  7156. eval "$as_ac_Header=\$ac_header_preproc"
  7157. fi
  7158. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7159. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7160. fi
  7161. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7162. cat >>confdefs.h <<_ACEOF
  7163. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7164. _ACEOF
  7165. x_io_backend=/dev/poll
  7166. fi
  7167. done
  7168. fi;
  7169. # Check whether --with-epoll or --without-epoll was given.
  7170. if test "${with_epoll+set}" = set; then
  7171. withval="$with_epoll"
  7172. if test "$withval" != "no"; then
  7173. if test "$withval" != "yes"; then
  7174. CFLAGS="-I$withval/include $CFLAGS"
  7175. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7176. LDFLAGS="-L$withval/lib $LDFLAGS"
  7177. fi
  7178. for ac_func in epoll_create
  7179. do
  7180. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7181. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7182. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7183. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7184. echo $ECHO_N "(cached) $ECHO_C" >&6
  7185. else
  7186. cat >conftest.$ac_ext <<_ACEOF
  7187. /* confdefs.h. */
  7188. _ACEOF
  7189. cat confdefs.h >>conftest.$ac_ext
  7190. cat >>conftest.$ac_ext <<_ACEOF
  7191. /* end confdefs.h. */
  7192. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7193. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7194. #define $ac_func innocuous_$ac_func
  7195. /* System header to define __stub macros and hopefully few prototypes,
  7196. which can conflict with char $ac_func (); below.
  7197. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7198. <limits.h> exists even on freestanding compilers. */
  7199. #ifdef __STDC__
  7200. # include <limits.h>
  7201. #else
  7202. # include <assert.h>
  7203. #endif
  7204. #undef $ac_func
  7205. /* Override any gcc2 internal prototype to avoid an error. */
  7206. #ifdef __cplusplus
  7207. extern "C"
  7208. {
  7209. #endif
  7210. /* We use char because int might match the return type of a gcc2
  7211. builtin and then its argument prototype would still apply. */
  7212. char $ac_func ();
  7213. /* The GNU C library defines this for functions which it implements
  7214. to always fail with ENOSYS. Some functions are actually named
  7215. something starting with __ and the normal name is an alias. */
  7216. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7217. choke me
  7218. #else
  7219. char (*f) () = $ac_func;
  7220. #endif
  7221. #ifdef __cplusplus
  7222. }
  7223. #endif
  7224. int
  7225. main ()
  7226. {
  7227. return f != $ac_func;
  7228. ;
  7229. return 0;
  7230. }
  7231. _ACEOF
  7232. rm -f conftest.$ac_objext conftest$ac_exeext
  7233. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7234. (eval $ac_link) 2>conftest.er1
  7235. ac_status=$?
  7236. grep -v '^ *+' conftest.er1 >conftest.err
  7237. rm -f conftest.er1
  7238. cat conftest.err >&5
  7239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7240. (exit $ac_status); } &&
  7241. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7243. (eval $ac_try) 2>&5
  7244. ac_status=$?
  7245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. (exit $ac_status); }; } &&
  7247. { ac_try='test -s conftest$ac_exeext'
  7248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7249. (eval $ac_try) 2>&5
  7250. ac_status=$?
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. (exit $ac_status); }; }; then
  7253. eval "$as_ac_var=yes"
  7254. else
  7255. echo "$as_me: failed program was:" >&5
  7256. sed 's/^/| /' conftest.$ac_ext >&5
  7257. eval "$as_ac_var=no"
  7258. fi
  7259. rm -f conftest.err conftest.$ac_objext \
  7260. conftest$ac_exeext conftest.$ac_ext
  7261. fi
  7262. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7263. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7264. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7265. cat >>confdefs.h <<_ACEOF
  7266. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7267. _ACEOF
  7268. x_io_epoll=yes
  7269. else
  7270. { { echo "$as_me:$LINENO: error: Can't enable epoll IO support!" >&5
  7271. echo "$as_me: error: Can't enable epoll IO support!" >&2;}
  7272. { (exit 1); exit 1; }; }
  7273. fi
  7274. done
  7275. fi
  7276. else
  7277. for ac_func in epoll_create
  7278. do
  7279. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7280. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7281. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7282. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7283. echo $ECHO_N "(cached) $ECHO_C" >&6
  7284. else
  7285. cat >conftest.$ac_ext <<_ACEOF
  7286. /* confdefs.h. */
  7287. _ACEOF
  7288. cat confdefs.h >>conftest.$ac_ext
  7289. cat >>conftest.$ac_ext <<_ACEOF
  7290. /* end confdefs.h. */
  7291. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7292. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7293. #define $ac_func innocuous_$ac_func
  7294. /* System header to define __stub macros and hopefully few prototypes,
  7295. which can conflict with char $ac_func (); below.
  7296. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7297. <limits.h> exists even on freestanding compilers. */
  7298. #ifdef __STDC__
  7299. # include <limits.h>
  7300. #else
  7301. # include <assert.h>
  7302. #endif
  7303. #undef $ac_func
  7304. /* Override any gcc2 internal prototype to avoid an error. */
  7305. #ifdef __cplusplus
  7306. extern "C"
  7307. {
  7308. #endif
  7309. /* We use char because int might match the return type of a gcc2
  7310. builtin and then its argument prototype would still apply. */
  7311. char $ac_func ();
  7312. /* The GNU C library defines this for functions which it implements
  7313. to always fail with ENOSYS. Some functions are actually named
  7314. something starting with __ and the normal name is an alias. */
  7315. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7316. choke me
  7317. #else
  7318. char (*f) () = $ac_func;
  7319. #endif
  7320. #ifdef __cplusplus
  7321. }
  7322. #endif
  7323. int
  7324. main ()
  7325. {
  7326. return f != $ac_func;
  7327. ;
  7328. return 0;
  7329. }
  7330. _ACEOF
  7331. rm -f conftest.$ac_objext conftest$ac_exeext
  7332. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7333. (eval $ac_link) 2>conftest.er1
  7334. ac_status=$?
  7335. grep -v '^ *+' conftest.er1 >conftest.err
  7336. rm -f conftest.er1
  7337. cat conftest.err >&5
  7338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7339. (exit $ac_status); } &&
  7340. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7342. (eval $ac_try) 2>&5
  7343. ac_status=$?
  7344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7345. (exit $ac_status); }; } &&
  7346. { ac_try='test -s conftest$ac_exeext'
  7347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7348. (eval $ac_try) 2>&5
  7349. ac_status=$?
  7350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7351. (exit $ac_status); }; }; then
  7352. eval "$as_ac_var=yes"
  7353. else
  7354. echo "$as_me: failed program was:" >&5
  7355. sed 's/^/| /' conftest.$ac_ext >&5
  7356. eval "$as_ac_var=no"
  7357. fi
  7358. rm -f conftest.err conftest.$ac_objext \
  7359. conftest$ac_exeext conftest.$ac_ext
  7360. fi
  7361. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7362. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7363. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7364. cat >>confdefs.h <<_ACEOF
  7365. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7366. _ACEOF
  7367. x_io_epoll=yes
  7368. fi
  7369. done
  7370. fi;
  7371. # Check whether --with-kqueue or --without-kqueue was given.
  7372. if test "${with_kqueue+set}" = set; then
  7373. withval="$with_kqueue"
  7374. if test "$withval" != "no"; then
  7375. if test "$withval" != "yes"; then
  7376. CFLAGS="-I$withval/include $CFLAGS"
  7377. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7378. LDFLAGS="-L$withval/lib $LDFLAGS"
  7379. fi
  7380. for ac_func in kqueue
  7381. do
  7382. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7383. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7384. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7385. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7386. echo $ECHO_N "(cached) $ECHO_C" >&6
  7387. else
  7388. cat >conftest.$ac_ext <<_ACEOF
  7389. /* confdefs.h. */
  7390. _ACEOF
  7391. cat confdefs.h >>conftest.$ac_ext
  7392. cat >>conftest.$ac_ext <<_ACEOF
  7393. /* end confdefs.h. */
  7394. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7395. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7396. #define $ac_func innocuous_$ac_func
  7397. /* System header to define __stub macros and hopefully few prototypes,
  7398. which can conflict with char $ac_func (); below.
  7399. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7400. <limits.h> exists even on freestanding compilers. */
  7401. #ifdef __STDC__
  7402. # include <limits.h>
  7403. #else
  7404. # include <assert.h>
  7405. #endif
  7406. #undef $ac_func
  7407. /* Override any gcc2 internal prototype to avoid an error. */
  7408. #ifdef __cplusplus
  7409. extern "C"
  7410. {
  7411. #endif
  7412. /* We use char because int might match the return type of a gcc2
  7413. builtin and then its argument prototype would still apply. */
  7414. char $ac_func ();
  7415. /* The GNU C library defines this for functions which it implements
  7416. to always fail with ENOSYS. Some functions are actually named
  7417. something starting with __ and the normal name is an alias. */
  7418. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7419. choke me
  7420. #else
  7421. char (*f) () = $ac_func;
  7422. #endif
  7423. #ifdef __cplusplus
  7424. }
  7425. #endif
  7426. int
  7427. main ()
  7428. {
  7429. return f != $ac_func;
  7430. ;
  7431. return 0;
  7432. }
  7433. _ACEOF
  7434. rm -f conftest.$ac_objext conftest$ac_exeext
  7435. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7436. (eval $ac_link) 2>conftest.er1
  7437. ac_status=$?
  7438. grep -v '^ *+' conftest.er1 >conftest.err
  7439. rm -f conftest.er1
  7440. cat conftest.err >&5
  7441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7442. (exit $ac_status); } &&
  7443. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7444. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7445. (eval $ac_try) 2>&5
  7446. ac_status=$?
  7447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7448. (exit $ac_status); }; } &&
  7449. { ac_try='test -s conftest$ac_exeext'
  7450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7451. (eval $ac_try) 2>&5
  7452. ac_status=$?
  7453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7454. (exit $ac_status); }; }; then
  7455. eval "$as_ac_var=yes"
  7456. else
  7457. echo "$as_me: failed program was:" >&5
  7458. sed 's/^/| /' conftest.$ac_ext >&5
  7459. eval "$as_ac_var=no"
  7460. fi
  7461. rm -f conftest.err conftest.$ac_objext \
  7462. conftest$ac_exeext conftest.$ac_ext
  7463. fi
  7464. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7465. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7466. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7467. cat >>confdefs.h <<_ACEOF
  7468. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7469. _ACEOF
  7470. x_io_backend=kqueue\(\)
  7471. else
  7472. { { echo "$as_me:$LINENO: error: Can't enable kqueue IO support!" >&5
  7473. echo "$as_me: error: Can't enable kqueue IO support!" >&2;}
  7474. { (exit 1); exit 1; }; }
  7475. fi
  7476. done
  7477. fi
  7478. else
  7479. for ac_func in kqueue
  7480. do
  7481. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7482. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7483. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7484. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7485. echo $ECHO_N "(cached) $ECHO_C" >&6
  7486. else
  7487. cat >conftest.$ac_ext <<_ACEOF
  7488. /* confdefs.h. */
  7489. _ACEOF
  7490. cat confdefs.h >>conftest.$ac_ext
  7491. cat >>conftest.$ac_ext <<_ACEOF
  7492. /* end confdefs.h. */
  7493. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7494. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7495. #define $ac_func innocuous_$ac_func
  7496. /* System header to define __stub macros and hopefully few prototypes,
  7497. which can conflict with char $ac_func (); below.
  7498. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7499. <limits.h> exists even on freestanding compilers. */
  7500. #ifdef __STDC__
  7501. # include <limits.h>
  7502. #else
  7503. # include <assert.h>
  7504. #endif
  7505. #undef $ac_func
  7506. /* Override any gcc2 internal prototype to avoid an error. */
  7507. #ifdef __cplusplus
  7508. extern "C"
  7509. {
  7510. #endif
  7511. /* We use char because int might match the return type of a gcc2
  7512. builtin and then its argument prototype would still apply. */
  7513. char $ac_func ();
  7514. /* The GNU C library defines this for functions which it implements
  7515. to always fail with ENOSYS. Some functions are actually named
  7516. something starting with __ and the normal name is an alias. */
  7517. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7518. choke me
  7519. #else
  7520. char (*f) () = $ac_func;
  7521. #endif
  7522. #ifdef __cplusplus
  7523. }
  7524. #endif
  7525. int
  7526. main ()
  7527. {
  7528. return f != $ac_func;
  7529. ;
  7530. return 0;
  7531. }
  7532. _ACEOF
  7533. rm -f conftest.$ac_objext conftest$ac_exeext
  7534. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7535. (eval $ac_link) 2>conftest.er1
  7536. ac_status=$?
  7537. grep -v '^ *+' conftest.er1 >conftest.err
  7538. rm -f conftest.er1
  7539. cat conftest.err >&5
  7540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7541. (exit $ac_status); } &&
  7542. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7544. (eval $ac_try) 2>&5
  7545. ac_status=$?
  7546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7547. (exit $ac_status); }; } &&
  7548. { ac_try='test -s conftest$ac_exeext'
  7549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7550. (eval $ac_try) 2>&5
  7551. ac_status=$?
  7552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7553. (exit $ac_status); }; }; then
  7554. eval "$as_ac_var=yes"
  7555. else
  7556. echo "$as_me: failed program was:" >&5
  7557. sed 's/^/| /' conftest.$ac_ext >&5
  7558. eval "$as_ac_var=no"
  7559. fi
  7560. rm -f conftest.err conftest.$ac_objext \
  7561. conftest$ac_exeext conftest.$ac_ext
  7562. fi
  7563. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7564. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7565. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7566. cat >>confdefs.h <<_ACEOF
  7567. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7568. _ACEOF
  7569. x_io_backend=kqueue\(\)
  7570. fi
  7571. done
  7572. fi;
  7573. if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
  7574. # when epoll() and select() are available, we'll use both!
  7575. x_io_backend="epoll(), select()"
  7576. else
  7577. if test "$x_io_epoll" = "yes"; then
  7578. # we prefere epoll() if it is available
  7579. x_io_backend="epoll()"
  7580. else
  7581. if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
  7582. # we'll use select, when available and no "better"
  7583. # interface has been detected ...
  7584. x_io_backend="select()"
  7585. fi
  7586. fi
  7587. fi
  7588. if test "$x_io_backend" = "none"; then
  7589. { { echo "$as_me:$LINENO: error: No useabe IO API activated/found!?" >&5
  7590. echo "$as_me: error: No useabe IO API activated/found!?" >&2;}
  7591. { (exit 1); exit 1; }; }
  7592. fi
  7593. # use TCP wrappers?
  7594. x_tcpwrap_on=no
  7595. # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
  7596. if test "${with_tcp_wrappers+set}" = set; then
  7597. withval="$with_tcp_wrappers"
  7598. if test "$withval" != "no"; then
  7599. if test "$withval" != "yes"; then
  7600. CFLAGS="-I$withval/include $CFLAGS"
  7601. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7602. LDFLAGS="-L$withval/lib $LDFLAGS"
  7603. fi
  7604. echo "$as_me:$LINENO: checking for hosts_access" >&5
  7605. echo $ECHO_N "checking for hosts_access... $ECHO_C" >&6
  7606. LIBS="-lwrap $LIBS"
  7607. cat >conftest.$ac_ext <<_ACEOF
  7608. /* confdefs.h. */
  7609. _ACEOF
  7610. cat confdefs.h >>conftest.$ac_ext
  7611. cat >>conftest.$ac_ext <<_ACEOF
  7612. /* end confdefs.h. */
  7613. #include <tcpd.h>
  7614. int allow_severity = 0;
  7615. int deny_severity = 0;
  7616. int
  7617. main ()
  7618. {
  7619. tcpd_warn("link test");
  7620. ;
  7621. return 0;
  7622. }
  7623. _ACEOF
  7624. rm -f conftest.$ac_objext conftest$ac_exeext
  7625. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7626. (eval $ac_link) 2>conftest.er1
  7627. ac_status=$?
  7628. grep -v '^ *+' conftest.er1 >conftest.err
  7629. rm -f conftest.er1
  7630. cat conftest.err >&5
  7631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7632. (exit $ac_status); } &&
  7633. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7635. (eval $ac_try) 2>&5
  7636. ac_status=$?
  7637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. (exit $ac_status); }; } &&
  7639. { ac_try='test -s conftest$ac_exeext'
  7640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7641. (eval $ac_try) 2>&5
  7642. ac_status=$?
  7643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7644. (exit $ac_status); }; }; then
  7645. echo "$as_me:$LINENO: result: yes" >&5
  7646. echo "${ECHO_T}yes" >&6
  7647. cat >>confdefs.h <<\_ACEOF
  7648. #define TCPWRAP 1
  7649. _ACEOF
  7650. x_tcpwrap_on=yes
  7651. else
  7652. echo "$as_me: failed program was:" >&5
  7653. sed 's/^/| /' conftest.$ac_ext >&5
  7654. echo "$as_me:$LINENO: result: no" >&5
  7655. echo "${ECHO_T}no" >&6
  7656. { { echo "$as_me:$LINENO: error: Can't enable TCP wrappers!" >&5
  7657. echo "$as_me: error: Can't enable TCP wrappers!" >&2;}
  7658. { (exit 1); exit 1; }; }
  7659. fi
  7660. rm -f conftest.err conftest.$ac_objext \
  7661. conftest$ac_exeext conftest.$ac_ext
  7662. fi
  7663. fi;
  7664. # include support for "zeroconf"?
  7665. x_zeroconf_on=no
  7666. # Check whether --with-zeroconf or --without-zeroconf was given.
  7667. if test "${with_zeroconf+set}" = set; then
  7668. withval="$with_zeroconf"
  7669. if test "$withval" != "no"; then
  7670. if test "$withval" != "yes"; then
  7671. CFLAGS="-I$withval/include $CFLAGS"
  7672. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7673. LDFLAGS="-L$withval/lib $LDFLAGS"
  7674. fi
  7675. for ac_func in DNSServiceRegistrationCreate
  7676. do
  7677. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7678. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7679. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7680. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7681. echo $ECHO_N "(cached) $ECHO_C" >&6
  7682. else
  7683. cat >conftest.$ac_ext <<_ACEOF
  7684. /* confdefs.h. */
  7685. _ACEOF
  7686. cat confdefs.h >>conftest.$ac_ext
  7687. cat >>conftest.$ac_ext <<_ACEOF
  7688. /* end confdefs.h. */
  7689. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7690. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7691. #define $ac_func innocuous_$ac_func
  7692. /* System header to define __stub macros and hopefully few prototypes,
  7693. which can conflict with char $ac_func (); below.
  7694. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7695. <limits.h> exists even on freestanding compilers. */
  7696. #ifdef __STDC__
  7697. # include <limits.h>
  7698. #else
  7699. # include <assert.h>
  7700. #endif
  7701. #undef $ac_func
  7702. /* Override any gcc2 internal prototype to avoid an error. */
  7703. #ifdef __cplusplus
  7704. extern "C"
  7705. {
  7706. #endif
  7707. /* We use char because int might match the return type of a gcc2
  7708. builtin and then its argument prototype would still apply. */
  7709. char $ac_func ();
  7710. /* The GNU C library defines this for functions which it implements
  7711. to always fail with ENOSYS. Some functions are actually named
  7712. something starting with __ and the normal name is an alias. */
  7713. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7714. choke me
  7715. #else
  7716. char (*f) () = $ac_func;
  7717. #endif
  7718. #ifdef __cplusplus
  7719. }
  7720. #endif
  7721. int
  7722. main ()
  7723. {
  7724. return f != $ac_func;
  7725. ;
  7726. return 0;
  7727. }
  7728. _ACEOF
  7729. rm -f conftest.$ac_objext conftest$ac_exeext
  7730. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7731. (eval $ac_link) 2>conftest.er1
  7732. ac_status=$?
  7733. grep -v '^ *+' conftest.er1 >conftest.err
  7734. rm -f conftest.er1
  7735. cat conftest.err >&5
  7736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7737. (exit $ac_status); } &&
  7738. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7740. (eval $ac_try) 2>&5
  7741. ac_status=$?
  7742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7743. (exit $ac_status); }; } &&
  7744. { ac_try='test -s conftest$ac_exeext'
  7745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7746. (eval $ac_try) 2>&5
  7747. ac_status=$?
  7748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7749. (exit $ac_status); }; }; then
  7750. eval "$as_ac_var=yes"
  7751. else
  7752. echo "$as_me: failed program was:" >&5
  7753. sed 's/^/| /' conftest.$ac_ext >&5
  7754. eval "$as_ac_var=no"
  7755. fi
  7756. rm -f conftest.err conftest.$ac_objext \
  7757. conftest$ac_exeext conftest.$ac_ext
  7758. fi
  7759. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7760. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7761. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7762. cat >>confdefs.h <<_ACEOF
  7763. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7764. _ACEOF
  7765. x_zeroconf_on=osx
  7766. else
  7767. echo "$as_me:$LINENO: checking for pthread_mutexattr_init in -lpthread" >&5
  7768. echo $ECHO_N "checking for pthread_mutexattr_init in -lpthread... $ECHO_C" >&6
  7769. if test "${ac_cv_lib_pthread_pthread_mutexattr_init+set}" = set; then
  7770. echo $ECHO_N "(cached) $ECHO_C" >&6
  7771. else
  7772. ac_check_lib_save_LIBS=$LIBS
  7773. LIBS="-lpthread $LIBS"
  7774. cat >conftest.$ac_ext <<_ACEOF
  7775. /* confdefs.h. */
  7776. _ACEOF
  7777. cat confdefs.h >>conftest.$ac_ext
  7778. cat >>conftest.$ac_ext <<_ACEOF
  7779. /* end confdefs.h. */
  7780. /* Override any gcc2 internal prototype to avoid an error. */
  7781. #ifdef __cplusplus
  7782. extern "C"
  7783. #endif
  7784. /* We use char because int might match the return type of a gcc2
  7785. builtin and then its argument prototype would still apply. */
  7786. char pthread_mutexattr_init ();
  7787. int
  7788. main ()
  7789. {
  7790. pthread_mutexattr_init ();
  7791. ;
  7792. return 0;
  7793. }
  7794. _ACEOF
  7795. rm -f conftest.$ac_objext conftest$ac_exeext
  7796. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7797. (eval $ac_link) 2>conftest.er1
  7798. ac_status=$?
  7799. grep -v '^ *+' conftest.er1 >conftest.err
  7800. rm -f conftest.er1
  7801. cat conftest.err >&5
  7802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7803. (exit $ac_status); } &&
  7804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7806. (eval $ac_try) 2>&5
  7807. ac_status=$?
  7808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7809. (exit $ac_status); }; } &&
  7810. { ac_try='test -s conftest$ac_exeext'
  7811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7812. (eval $ac_try) 2>&5
  7813. ac_status=$?
  7814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7815. (exit $ac_status); }; }; then
  7816. ac_cv_lib_pthread_pthread_mutexattr_init=yes
  7817. else
  7818. echo "$as_me: failed program was:" >&5
  7819. sed 's/^/| /' conftest.$ac_ext >&5
  7820. ac_cv_lib_pthread_pthread_mutexattr_init=no
  7821. fi
  7822. rm -f conftest.err conftest.$ac_objext \
  7823. conftest$ac_exeext conftest.$ac_ext
  7824. LIBS=$ac_check_lib_save_LIBS
  7825. fi
  7826. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_init" >&5
  7827. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_init" >&6
  7828. if test $ac_cv_lib_pthread_pthread_mutexattr_init = yes; then
  7829. cat >>confdefs.h <<_ACEOF
  7830. #define HAVE_LIBPTHREAD 1
  7831. _ACEOF
  7832. LIBS="-lpthread $LIBS"
  7833. fi
  7834. echo "$as_me:$LINENO: checking for sw_discovery_init in -lhowl" >&5
  7835. echo $ECHO_N "checking for sw_discovery_init in -lhowl... $ECHO_C" >&6
  7836. if test "${ac_cv_lib_howl_sw_discovery_init+set}" = set; then
  7837. echo $ECHO_N "(cached) $ECHO_C" >&6
  7838. else
  7839. ac_check_lib_save_LIBS=$LIBS
  7840. LIBS="-lhowl $LIBS"
  7841. cat >conftest.$ac_ext <<_ACEOF
  7842. /* confdefs.h. */
  7843. _ACEOF
  7844. cat confdefs.h >>conftest.$ac_ext
  7845. cat >>conftest.$ac_ext <<_ACEOF
  7846. /* end confdefs.h. */
  7847. /* Override any gcc2 internal prototype to avoid an error. */
  7848. #ifdef __cplusplus
  7849. extern "C"
  7850. #endif
  7851. /* We use char because int might match the return type of a gcc2
  7852. builtin and then its argument prototype would still apply. */
  7853. char sw_discovery_init ();
  7854. int
  7855. main ()
  7856. {
  7857. sw_discovery_init ();
  7858. ;
  7859. return 0;
  7860. }
  7861. _ACEOF
  7862. rm -f conftest.$ac_objext conftest$ac_exeext
  7863. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7864. (eval $ac_link) 2>conftest.er1
  7865. ac_status=$?
  7866. grep -v '^ *+' conftest.er1 >conftest.err
  7867. rm -f conftest.er1
  7868. cat conftest.err >&5
  7869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7870. (exit $ac_status); } &&
  7871. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7873. (eval $ac_try) 2>&5
  7874. ac_status=$?
  7875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7876. (exit $ac_status); }; } &&
  7877. { ac_try='test -s conftest$ac_exeext'
  7878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7879. (eval $ac_try) 2>&5
  7880. ac_status=$?
  7881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7882. (exit $ac_status); }; }; then
  7883. ac_cv_lib_howl_sw_discovery_init=yes
  7884. else
  7885. echo "$as_me: failed program was:" >&5
  7886. sed 's/^/| /' conftest.$ac_ext >&5
  7887. ac_cv_lib_howl_sw_discovery_init=no
  7888. fi
  7889. rm -f conftest.err conftest.$ac_objext \
  7890. conftest$ac_exeext conftest.$ac_ext
  7891. LIBS=$ac_check_lib_save_LIBS
  7892. fi
  7893. echo "$as_me:$LINENO: result: $ac_cv_lib_howl_sw_discovery_init" >&5
  7894. echo "${ECHO_T}$ac_cv_lib_howl_sw_discovery_init" >&6
  7895. if test $ac_cv_lib_howl_sw_discovery_init = yes; then
  7896. cat >>confdefs.h <<_ACEOF
  7897. #define HAVE_LIBHOWL 1
  7898. _ACEOF
  7899. LIBS="-lhowl $LIBS"
  7900. fi
  7901. for ac_func in sw_discovery_init
  7902. do
  7903. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7904. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7905. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7906. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7907. echo $ECHO_N "(cached) $ECHO_C" >&6
  7908. else
  7909. cat >conftest.$ac_ext <<_ACEOF
  7910. /* confdefs.h. */
  7911. _ACEOF
  7912. cat confdefs.h >>conftest.$ac_ext
  7913. cat >>conftest.$ac_ext <<_ACEOF
  7914. /* end confdefs.h. */
  7915. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7916. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7917. #define $ac_func innocuous_$ac_func
  7918. /* System header to define __stub macros and hopefully few prototypes,
  7919. which can conflict with char $ac_func (); below.
  7920. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7921. <limits.h> exists even on freestanding compilers. */
  7922. #ifdef __STDC__
  7923. # include <limits.h>
  7924. #else
  7925. # include <assert.h>
  7926. #endif
  7927. #undef $ac_func
  7928. /* Override any gcc2 internal prototype to avoid an error. */
  7929. #ifdef __cplusplus
  7930. extern "C"
  7931. {
  7932. #endif
  7933. /* We use char because int might match the return type of a gcc2
  7934. builtin and then its argument prototype would still apply. */
  7935. char $ac_func ();
  7936. /* The GNU C library defines this for functions which it implements
  7937. to always fail with ENOSYS. Some functions are actually named
  7938. something starting with __ and the normal name is an alias. */
  7939. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7940. choke me
  7941. #else
  7942. char (*f) () = $ac_func;
  7943. #endif
  7944. #ifdef __cplusplus
  7945. }
  7946. #endif
  7947. int
  7948. main ()
  7949. {
  7950. return f != $ac_func;
  7951. ;
  7952. return 0;
  7953. }
  7954. _ACEOF
  7955. rm -f conftest.$ac_objext conftest$ac_exeext
  7956. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7957. (eval $ac_link) 2>conftest.er1
  7958. ac_status=$?
  7959. grep -v '^ *+' conftest.er1 >conftest.err
  7960. rm -f conftest.er1
  7961. cat conftest.err >&5
  7962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7963. (exit $ac_status); } &&
  7964. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7966. (eval $ac_try) 2>&5
  7967. ac_status=$?
  7968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7969. (exit $ac_status); }; } &&
  7970. { ac_try='test -s conftest$ac_exeext'
  7971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7972. (eval $ac_try) 2>&5
  7973. ac_status=$?
  7974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7975. (exit $ac_status); }; }; then
  7976. eval "$as_ac_var=yes"
  7977. else
  7978. echo "$as_me: failed program was:" >&5
  7979. sed 's/^/| /' conftest.$ac_ext >&5
  7980. eval "$as_ac_var=no"
  7981. fi
  7982. rm -f conftest.err conftest.$ac_objext \
  7983. conftest$ac_exeext conftest.$ac_ext
  7984. fi
  7985. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7986. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7987. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7988. cat >>confdefs.h <<_ACEOF
  7989. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7990. _ACEOF
  7991. \
  7992. x_zeroconf_on=howl
  7993. else
  7994. \
  7995. { { echo "$as_me:$LINENO: error: Can't enable Zeroconf!" >&5
  7996. echo "$as_me: error: Can't enable Zeroconf!" >&2;}
  7997. { (exit 1); exit 1; }; }
  7998. fi
  7999. done
  8000. fi
  8001. done
  8002. fi
  8003. fi;
  8004. if test "$x_zeroconf_on" = "osx"; then
  8005. for ac_header in DNSServiceDiscovery/DNSServiceDiscovery.h \
  8006. mach/port.h
  8007. do
  8008. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8009. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8010. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8011. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8012. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8013. echo $ECHO_N "(cached) $ECHO_C" >&6
  8014. fi
  8015. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8016. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8017. else
  8018. # Is the header compilable?
  8019. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8020. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8021. cat >conftest.$ac_ext <<_ACEOF
  8022. /* confdefs.h. */
  8023. _ACEOF
  8024. cat confdefs.h >>conftest.$ac_ext
  8025. cat >>conftest.$ac_ext <<_ACEOF
  8026. /* end confdefs.h. */
  8027. $ac_includes_default
  8028. #include <$ac_header>
  8029. _ACEOF
  8030. rm -f conftest.$ac_objext
  8031. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8032. (eval $ac_compile) 2>conftest.er1
  8033. ac_status=$?
  8034. grep -v '^ *+' conftest.er1 >conftest.err
  8035. rm -f conftest.er1
  8036. cat conftest.err >&5
  8037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8038. (exit $ac_status); } &&
  8039. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8041. (eval $ac_try) 2>&5
  8042. ac_status=$?
  8043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8044. (exit $ac_status); }; } &&
  8045. { ac_try='test -s conftest.$ac_objext'
  8046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8047. (eval $ac_try) 2>&5
  8048. ac_status=$?
  8049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8050. (exit $ac_status); }; }; then
  8051. ac_header_compiler=yes
  8052. else
  8053. echo "$as_me: failed program was:" >&5
  8054. sed 's/^/| /' conftest.$ac_ext >&5
  8055. ac_header_compiler=no
  8056. fi
  8057. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8058. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8059. echo "${ECHO_T}$ac_header_compiler" >&6
  8060. # Is the header present?
  8061. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8062. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8063. cat >conftest.$ac_ext <<_ACEOF
  8064. /* confdefs.h. */
  8065. _ACEOF
  8066. cat confdefs.h >>conftest.$ac_ext
  8067. cat >>conftest.$ac_ext <<_ACEOF
  8068. /* end confdefs.h. */
  8069. #include <$ac_header>
  8070. _ACEOF
  8071. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8072. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8073. ac_status=$?
  8074. grep -v '^ *+' conftest.er1 >conftest.err
  8075. rm -f conftest.er1
  8076. cat conftest.err >&5
  8077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8078. (exit $ac_status); } >/dev/null; then
  8079. if test -s conftest.err; then
  8080. ac_cpp_err=$ac_c_preproc_warn_flag
  8081. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8082. else
  8083. ac_cpp_err=
  8084. fi
  8085. else
  8086. ac_cpp_err=yes
  8087. fi
  8088. if test -z "$ac_cpp_err"; then
  8089. ac_header_preproc=yes
  8090. else
  8091. echo "$as_me: failed program was:" >&5
  8092. sed 's/^/| /' conftest.$ac_ext >&5
  8093. ac_header_preproc=no
  8094. fi
  8095. rm -f conftest.err conftest.$ac_ext
  8096. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8097. echo "${ECHO_T}$ac_header_preproc" >&6
  8098. # So? What about this header?
  8099. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8100. yes:no: )
  8101. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8102. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8103. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8104. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8105. ac_header_preproc=yes
  8106. ;;
  8107. no:yes:* )
  8108. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8109. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8110. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8111. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8112. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8113. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8114. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8115. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8116. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8117. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8118. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8119. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8120. (
  8121. cat <<\_ASBOX
  8122. ## --------------------------------- ##
  8123. ## Report this to the ngircd lists. ##
  8124. ## --------------------------------- ##
  8125. _ASBOX
  8126. ) |
  8127. sed "s/^/$as_me: WARNING: /" >&2
  8128. ;;
  8129. esac
  8130. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8131. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8132. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8133. echo $ECHO_N "(cached) $ECHO_C" >&6
  8134. else
  8135. eval "$as_ac_Header=\$ac_header_preproc"
  8136. fi
  8137. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8138. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8139. fi
  8140. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8141. cat >>confdefs.h <<_ACEOF
  8142. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8143. _ACEOF
  8144. else
  8145. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  8146. echo "$as_me: error: required C header missing!" >&2;}
  8147. { (exit 1); exit 1; }; }
  8148. fi
  8149. done
  8150. cat >>confdefs.h <<\_ACEOF
  8151. #define ZEROCONF 1
  8152. _ACEOF
  8153. fi
  8154. if test "$x_zeroconf_on" = "howl"; then
  8155. for dir in /usr/local/include /usr/local/include/howl* \
  8156. /usr/include /usr/include/howl* \
  8157. /usr/local/include/avahi* /usr/include/avahi*; do
  8158. test -d "$dir" || continue
  8159. echo "$as_me:$LINENO: checking for Howl headers in $dir" >&5
  8160. echo $ECHO_N "checking for Howl headers in $dir... $ECHO_C" >&6
  8161. if test -f "$dir/rendezvous/rendezvous.h"; then
  8162. if test "$dir" != "/usr/local/include" -a \
  8163. "$dir" != "/usr/include"; then
  8164. CFLAGS="-I$dir $CFLAGS"
  8165. CPPFLAGS="-I$dir $CPPFLAGS"
  8166. fi
  8167. echo "$as_me:$LINENO: result: yes" >&5
  8168. echo "${ECHO_T}yes" >&6
  8169. break
  8170. else
  8171. echo "$as_me:$LINENO: result: no" >&5
  8172. echo "${ECHO_T}no" >&6
  8173. fi
  8174. done
  8175. for ac_header in rendezvous/rendezvous.h
  8176. do
  8177. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8178. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8179. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8180. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8181. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8182. echo $ECHO_N "(cached) $ECHO_C" >&6
  8183. fi
  8184. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8185. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8186. else
  8187. # Is the header compilable?
  8188. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8189. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8190. cat >conftest.$ac_ext <<_ACEOF
  8191. /* confdefs.h. */
  8192. _ACEOF
  8193. cat confdefs.h >>conftest.$ac_ext
  8194. cat >>conftest.$ac_ext <<_ACEOF
  8195. /* end confdefs.h. */
  8196. $ac_includes_default
  8197. #include <$ac_header>
  8198. _ACEOF
  8199. rm -f conftest.$ac_objext
  8200. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8201. (eval $ac_compile) 2>conftest.er1
  8202. ac_status=$?
  8203. grep -v '^ *+' conftest.er1 >conftest.err
  8204. rm -f conftest.er1
  8205. cat conftest.err >&5
  8206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8207. (exit $ac_status); } &&
  8208. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8210. (eval $ac_try) 2>&5
  8211. ac_status=$?
  8212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8213. (exit $ac_status); }; } &&
  8214. { ac_try='test -s conftest.$ac_objext'
  8215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8216. (eval $ac_try) 2>&5
  8217. ac_status=$?
  8218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8219. (exit $ac_status); }; }; then
  8220. ac_header_compiler=yes
  8221. else
  8222. echo "$as_me: failed program was:" >&5
  8223. sed 's/^/| /' conftest.$ac_ext >&5
  8224. ac_header_compiler=no
  8225. fi
  8226. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8227. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8228. echo "${ECHO_T}$ac_header_compiler" >&6
  8229. # Is the header present?
  8230. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8231. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8232. cat >conftest.$ac_ext <<_ACEOF
  8233. /* confdefs.h. */
  8234. _ACEOF
  8235. cat confdefs.h >>conftest.$ac_ext
  8236. cat >>conftest.$ac_ext <<_ACEOF
  8237. /* end confdefs.h. */
  8238. #include <$ac_header>
  8239. _ACEOF
  8240. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8241. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8242. ac_status=$?
  8243. grep -v '^ *+' conftest.er1 >conftest.err
  8244. rm -f conftest.er1
  8245. cat conftest.err >&5
  8246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8247. (exit $ac_status); } >/dev/null; then
  8248. if test -s conftest.err; then
  8249. ac_cpp_err=$ac_c_preproc_warn_flag
  8250. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8251. else
  8252. ac_cpp_err=
  8253. fi
  8254. else
  8255. ac_cpp_err=yes
  8256. fi
  8257. if test -z "$ac_cpp_err"; then
  8258. ac_header_preproc=yes
  8259. else
  8260. echo "$as_me: failed program was:" >&5
  8261. sed 's/^/| /' conftest.$ac_ext >&5
  8262. ac_header_preproc=no
  8263. fi
  8264. rm -f conftest.err conftest.$ac_ext
  8265. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8266. echo "${ECHO_T}$ac_header_preproc" >&6
  8267. # So? What about this header?
  8268. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8269. yes:no: )
  8270. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8271. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8272. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8273. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8274. ac_header_preproc=yes
  8275. ;;
  8276. no:yes:* )
  8277. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8278. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8279. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8280. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8281. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8282. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8283. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8284. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8285. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8286. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8287. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8288. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8289. (
  8290. cat <<\_ASBOX
  8291. ## --------------------------------- ##
  8292. ## Report this to the ngircd lists. ##
  8293. ## --------------------------------- ##
  8294. _ASBOX
  8295. ) |
  8296. sed "s/^/$as_me: WARNING: /" >&2
  8297. ;;
  8298. esac
  8299. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8300. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8301. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8302. echo $ECHO_N "(cached) $ECHO_C" >&6
  8303. else
  8304. eval "$as_ac_Header=\$ac_header_preproc"
  8305. fi
  8306. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8307. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8308. fi
  8309. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8310. cat >>confdefs.h <<_ACEOF
  8311. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8312. _ACEOF
  8313. else
  8314. \
  8315. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  8316. echo "$as_me: error: required C header missing!" >&2;}
  8317. { (exit 1); exit 1; }; }
  8318. fi
  8319. done
  8320. cat >>confdefs.h <<\_ACEOF
  8321. #define ZEROCONF 1
  8322. _ACEOF
  8323. fi
  8324. # do IDENT requests using libident?
  8325. x_identauth_on=no
  8326. # Check whether --with-ident or --without-ident was given.
  8327. if test "${with_ident+set}" = set; then
  8328. withval="$with_ident"
  8329. if test "$withval" != "no"; then
  8330. if test "$withval" != "yes"; then
  8331. CFLAGS="-I$withval/include $CFLAGS"
  8332. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8333. LDFLAGS="-L$withval/lib $LDFLAGS"
  8334. fi
  8335. echo "$as_me:$LINENO: checking for ident_id in -lident" >&5
  8336. echo $ECHO_N "checking for ident_id in -lident... $ECHO_C" >&6
  8337. if test "${ac_cv_lib_ident_ident_id+set}" = set; then
  8338. echo $ECHO_N "(cached) $ECHO_C" >&6
  8339. else
  8340. ac_check_lib_save_LIBS=$LIBS
  8341. LIBS="-lident $LIBS"
  8342. cat >conftest.$ac_ext <<_ACEOF
  8343. /* confdefs.h. */
  8344. _ACEOF
  8345. cat confdefs.h >>conftest.$ac_ext
  8346. cat >>conftest.$ac_ext <<_ACEOF
  8347. /* end confdefs.h. */
  8348. /* Override any gcc2 internal prototype to avoid an error. */
  8349. #ifdef __cplusplus
  8350. extern "C"
  8351. #endif
  8352. /* We use char because int might match the return type of a gcc2
  8353. builtin and then its argument prototype would still apply. */
  8354. char ident_id ();
  8355. int
  8356. main ()
  8357. {
  8358. ident_id ();
  8359. ;
  8360. return 0;
  8361. }
  8362. _ACEOF
  8363. rm -f conftest.$ac_objext conftest$ac_exeext
  8364. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8365. (eval $ac_link) 2>conftest.er1
  8366. ac_status=$?
  8367. grep -v '^ *+' conftest.er1 >conftest.err
  8368. rm -f conftest.er1
  8369. cat conftest.err >&5
  8370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8371. (exit $ac_status); } &&
  8372. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8374. (eval $ac_try) 2>&5
  8375. ac_status=$?
  8376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8377. (exit $ac_status); }; } &&
  8378. { ac_try='test -s conftest$ac_exeext'
  8379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8380. (eval $ac_try) 2>&5
  8381. ac_status=$?
  8382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8383. (exit $ac_status); }; }; then
  8384. ac_cv_lib_ident_ident_id=yes
  8385. else
  8386. echo "$as_me: failed program was:" >&5
  8387. sed 's/^/| /' conftest.$ac_ext >&5
  8388. ac_cv_lib_ident_ident_id=no
  8389. fi
  8390. rm -f conftest.err conftest.$ac_objext \
  8391. conftest$ac_exeext conftest.$ac_ext
  8392. LIBS=$ac_check_lib_save_LIBS
  8393. fi
  8394. echo "$as_me:$LINENO: result: $ac_cv_lib_ident_ident_id" >&5
  8395. echo "${ECHO_T}$ac_cv_lib_ident_ident_id" >&6
  8396. if test $ac_cv_lib_ident_ident_id = yes; then
  8397. cat >>confdefs.h <<_ACEOF
  8398. #define HAVE_LIBIDENT 1
  8399. _ACEOF
  8400. LIBS="-lident $LIBS"
  8401. fi
  8402. for ac_func in ident_id
  8403. do
  8404. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8405. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8406. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8407. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8408. echo $ECHO_N "(cached) $ECHO_C" >&6
  8409. else
  8410. cat >conftest.$ac_ext <<_ACEOF
  8411. /* confdefs.h. */
  8412. _ACEOF
  8413. cat confdefs.h >>conftest.$ac_ext
  8414. cat >>conftest.$ac_ext <<_ACEOF
  8415. /* end confdefs.h. */
  8416. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8417. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8418. #define $ac_func innocuous_$ac_func
  8419. /* System header to define __stub macros and hopefully few prototypes,
  8420. which can conflict with char $ac_func (); below.
  8421. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8422. <limits.h> exists even on freestanding compilers. */
  8423. #ifdef __STDC__
  8424. # include <limits.h>
  8425. #else
  8426. # include <assert.h>
  8427. #endif
  8428. #undef $ac_func
  8429. /* Override any gcc2 internal prototype to avoid an error. */
  8430. #ifdef __cplusplus
  8431. extern "C"
  8432. {
  8433. #endif
  8434. /* We use char because int might match the return type of a gcc2
  8435. builtin and then its argument prototype would still apply. */
  8436. char $ac_func ();
  8437. /* The GNU C library defines this for functions which it implements
  8438. to always fail with ENOSYS. Some functions are actually named
  8439. something starting with __ and the normal name is an alias. */
  8440. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8441. choke me
  8442. #else
  8443. char (*f) () = $ac_func;
  8444. #endif
  8445. #ifdef __cplusplus
  8446. }
  8447. #endif
  8448. int
  8449. main ()
  8450. {
  8451. return f != $ac_func;
  8452. ;
  8453. return 0;
  8454. }
  8455. _ACEOF
  8456. rm -f conftest.$ac_objext conftest$ac_exeext
  8457. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8458. (eval $ac_link) 2>conftest.er1
  8459. ac_status=$?
  8460. grep -v '^ *+' conftest.er1 >conftest.err
  8461. rm -f conftest.er1
  8462. cat conftest.err >&5
  8463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8464. (exit $ac_status); } &&
  8465. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8467. (eval $ac_try) 2>&5
  8468. ac_status=$?
  8469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8470. (exit $ac_status); }; } &&
  8471. { ac_try='test -s conftest$ac_exeext'
  8472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8473. (eval $ac_try) 2>&5
  8474. ac_status=$?
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. (exit $ac_status); }; }; then
  8477. eval "$as_ac_var=yes"
  8478. else
  8479. echo "$as_me: failed program was:" >&5
  8480. sed 's/^/| /' conftest.$ac_ext >&5
  8481. eval "$as_ac_var=no"
  8482. fi
  8483. rm -f conftest.err conftest.$ac_objext \
  8484. conftest$ac_exeext conftest.$ac_ext
  8485. fi
  8486. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8487. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8488. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8489. cat >>confdefs.h <<_ACEOF
  8490. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8491. _ACEOF
  8492. x_identauth_on=yes
  8493. else
  8494. { { echo "$as_me:$LINENO: error: Can't enable IDENT support!" >&5
  8495. echo "$as_me: error: Can't enable IDENT support!" >&2;}
  8496. { (exit 1); exit 1; }; }
  8497. fi
  8498. done
  8499. fi
  8500. fi;
  8501. if test "$x_identauth_on" = "yes"; then
  8502. cat >>confdefs.h <<\_ACEOF
  8503. #define IDENTAUTH 1
  8504. _ACEOF
  8505. for ac_header in ident.h
  8506. do
  8507. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8508. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8509. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8510. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8511. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8512. echo $ECHO_N "(cached) $ECHO_C" >&6
  8513. fi
  8514. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8515. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8516. else
  8517. # Is the header compilable?
  8518. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8519. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8520. cat >conftest.$ac_ext <<_ACEOF
  8521. /* confdefs.h. */
  8522. _ACEOF
  8523. cat confdefs.h >>conftest.$ac_ext
  8524. cat >>conftest.$ac_ext <<_ACEOF
  8525. /* end confdefs.h. */
  8526. $ac_includes_default
  8527. #include <$ac_header>
  8528. _ACEOF
  8529. rm -f conftest.$ac_objext
  8530. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8531. (eval $ac_compile) 2>conftest.er1
  8532. ac_status=$?
  8533. grep -v '^ *+' conftest.er1 >conftest.err
  8534. rm -f conftest.er1
  8535. cat conftest.err >&5
  8536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8537. (exit $ac_status); } &&
  8538. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8540. (eval $ac_try) 2>&5
  8541. ac_status=$?
  8542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8543. (exit $ac_status); }; } &&
  8544. { ac_try='test -s conftest.$ac_objext'
  8545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8546. (eval $ac_try) 2>&5
  8547. ac_status=$?
  8548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8549. (exit $ac_status); }; }; then
  8550. ac_header_compiler=yes
  8551. else
  8552. echo "$as_me: failed program was:" >&5
  8553. sed 's/^/| /' conftest.$ac_ext >&5
  8554. ac_header_compiler=no
  8555. fi
  8556. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8557. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8558. echo "${ECHO_T}$ac_header_compiler" >&6
  8559. # Is the header present?
  8560. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8561. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8562. cat >conftest.$ac_ext <<_ACEOF
  8563. /* confdefs.h. */
  8564. _ACEOF
  8565. cat confdefs.h >>conftest.$ac_ext
  8566. cat >>conftest.$ac_ext <<_ACEOF
  8567. /* end confdefs.h. */
  8568. #include <$ac_header>
  8569. _ACEOF
  8570. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8571. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8572. ac_status=$?
  8573. grep -v '^ *+' conftest.er1 >conftest.err
  8574. rm -f conftest.er1
  8575. cat conftest.err >&5
  8576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8577. (exit $ac_status); } >/dev/null; then
  8578. if test -s conftest.err; then
  8579. ac_cpp_err=$ac_c_preproc_warn_flag
  8580. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8581. else
  8582. ac_cpp_err=
  8583. fi
  8584. else
  8585. ac_cpp_err=yes
  8586. fi
  8587. if test -z "$ac_cpp_err"; then
  8588. ac_header_preproc=yes
  8589. else
  8590. echo "$as_me: failed program was:" >&5
  8591. sed 's/^/| /' conftest.$ac_ext >&5
  8592. ac_header_preproc=no
  8593. fi
  8594. rm -f conftest.err conftest.$ac_ext
  8595. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8596. echo "${ECHO_T}$ac_header_preproc" >&6
  8597. # So? What about this header?
  8598. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8599. yes:no: )
  8600. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8601. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8602. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8603. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8604. ac_header_preproc=yes
  8605. ;;
  8606. no:yes:* )
  8607. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8608. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8609. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8610. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8611. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8612. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8613. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8614. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8615. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8616. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8617. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8618. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8619. (
  8620. cat <<\_ASBOX
  8621. ## --------------------------------- ##
  8622. ## Report this to the ngircd lists. ##
  8623. ## --------------------------------- ##
  8624. _ASBOX
  8625. ) |
  8626. sed "s/^/$as_me: WARNING: /" >&2
  8627. ;;
  8628. esac
  8629. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8630. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8631. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8632. echo $ECHO_N "(cached) $ECHO_C" >&6
  8633. else
  8634. eval "$as_ac_Header=\$ac_header_preproc"
  8635. fi
  8636. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8637. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8638. fi
  8639. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8640. cat >>confdefs.h <<_ACEOF
  8641. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8642. _ACEOF
  8643. else
  8644. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  8645. echo "$as_me: error: required C header missing!" >&2;}
  8646. { (exit 1); exit 1; }; }
  8647. fi
  8648. done
  8649. fi
  8650. # compile in IRC+ protocol support?
  8651. x_ircplus_on=yes
  8652. # Check whether --enable-ircplus or --disable-ircplus was given.
  8653. if test "${enable_ircplus+set}" = set; then
  8654. enableval="$enable_ircplus"
  8655. if test "$enableval" = "no"; then x_ircplus_on=no; fi
  8656. fi;
  8657. if test "$x_ircplus_on" = "yes"; then
  8658. cat >>confdefs.h <<\_ACEOF
  8659. #define IRCPLUS 1
  8660. _ACEOF
  8661. fi
  8662. # compile in IRC "sniffer"?
  8663. x_sniffer_on=no; x_debug_on=no
  8664. # Check whether --enable-sniffer or --disable-sniffer was given.
  8665. if test "${enable_sniffer+set}" = set; then
  8666. enableval="$enable_sniffer"
  8667. if test "$enableval" = "yes"; then
  8668. cat >>confdefs.h <<\_ACEOF
  8669. #define SNIFFER 1
  8670. _ACEOF
  8671. x_sniffer_on=yes; x_debug_on=yes
  8672. fi
  8673. fi;
  8674. # enable additional debugging code?
  8675. # Check whether --enable-debug or --disable-debug was given.
  8676. if test "${enable_debug+set}" = set; then
  8677. enableval="$enable_debug"
  8678. if test "$enableval" = "yes"; then x_debug_on=yes; fi
  8679. fi;
  8680. if test "$x_debug_on" = "yes"; then
  8681. cat >>confdefs.h <<\_ACEOF
  8682. #define DEBUG 1
  8683. _ACEOF
  8684. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  8685. fi
  8686. # enable "strict RFC rules"?
  8687. x_strict_rfc_on=no
  8688. # Check whether --enable-strict-rfc or --disable-strict-rfc was given.
  8689. if test "${enable_strict_rfc+set}" = set; then
  8690. enableval="$enable_strict_rfc"
  8691. if test "$enableval" = "yes"; then
  8692. cat >>confdefs.h <<\_ACEOF
  8693. #define STRICT_RFC 1
  8694. _ACEOF
  8695. x_strict_rfc_on=yes
  8696. fi
  8697. fi;
  8698. # -- Definitions --
  8699. cat >>confdefs.h <<_ACEOF
  8700. #define TARGET_CPU "$target_cpu"
  8701. _ACEOF
  8702. cat >>confdefs.h <<_ACEOF
  8703. #define TARGET_VENDOR "$target_vendor"
  8704. _ACEOF
  8705. cat >>confdefs.h <<_ACEOF
  8706. #define TARGET_OS "$target_os"
  8707. _ACEOF
  8708. # Add additional CFLAGS, eventually specified on the command line, but after
  8709. # running this configure script. Useful for "-Werror" for example.
  8710. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  8711. # -- Generate files --
  8712. ac_config_files="$ac_config_files Makefile doc/Makefile doc/src/Makefile src/Makefile src/portab/Makefile src/tool/Makefile src/ngircd/Makefile src/testsuite/Makefile man/Makefile contrib/Makefile contrib/Debian/Makefile contrib/MacOSX/Makefile"
  8713. cat >confcache <<\_ACEOF
  8714. # This file is a shell script that caches the results of configure
  8715. # tests run on this system so they can be shared between configure
  8716. # scripts and configure runs, see configure's option --config-cache.
  8717. # It is not useful on other systems. If it contains results you don't
  8718. # want to keep, you may remove or edit it.
  8719. #
  8720. # config.status only pays attention to the cache file if you give it
  8721. # the --recheck option to rerun configure.
  8722. #
  8723. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8724. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8725. # following values.
  8726. _ACEOF
  8727. # The following way of writing the cache mishandles newlines in values,
  8728. # but we know of no workaround that is simple, portable, and efficient.
  8729. # So, don't put newlines in cache variables' values.
  8730. # Ultrix sh set writes to stderr and can't be redirected directly,
  8731. # and sets the high bit in the cache file unless we assign to the vars.
  8732. {
  8733. (set) 2>&1 |
  8734. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8735. *ac_space=\ *)
  8736. # `set' does not quote correctly, so add quotes (double-quote
  8737. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8738. sed -n \
  8739. "s/'/'\\\\''/g;
  8740. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8741. ;;
  8742. *)
  8743. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8744. sed -n \
  8745. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8746. ;;
  8747. esac;
  8748. } |
  8749. sed '
  8750. t clear
  8751. : clear
  8752. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8753. t end
  8754. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8755. : end' >>confcache
  8756. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8757. if test -w $cache_file; then
  8758. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8759. cat confcache >$cache_file
  8760. else
  8761. echo "not updating unwritable cache $cache_file"
  8762. fi
  8763. fi
  8764. rm -f confcache
  8765. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8766. # Let make expand exec_prefix.
  8767. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8768. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  8769. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8770. # trailing colons and then remove the whole line if VPATH becomes empty
  8771. # (actually we leave an empty line to preserve line numbers).
  8772. if test "x$srcdir" = x.; then
  8773. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8774. s/:*\$(srcdir):*/:/;
  8775. s/:*\${srcdir}:*/:/;
  8776. s/:*@srcdir@:*/:/;
  8777. s/^\([^=]*=[ ]*\):*/\1/;
  8778. s/:*$//;
  8779. s/^[^=]*=[ ]*$//;
  8780. }'
  8781. fi
  8782. DEFS=-DHAVE_CONFIG_H
  8783. ac_libobjs=
  8784. ac_ltlibobjs=
  8785. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8786. # 1. Remove the extension, and $U if already installed.
  8787. ac_i=`echo "$ac_i" |
  8788. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8789. # 2. Add them.
  8790. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8791. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8792. done
  8793. LIBOBJS=$ac_libobjs
  8794. LTLIBOBJS=$ac_ltlibobjs
  8795. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8796. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8797. Usually this means the macro was only invoked conditionally." >&5
  8798. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8799. Usually this means the macro was only invoked conditionally." >&2;}
  8800. { (exit 1); exit 1; }; }
  8801. fi
  8802. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8803. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8804. Usually this means the macro was only invoked conditionally." >&5
  8805. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8806. Usually this means the macro was only invoked conditionally." >&2;}
  8807. { (exit 1); exit 1; }; }
  8808. fi
  8809. : ${CONFIG_STATUS=./config.status}
  8810. ac_clean_files_save=$ac_clean_files
  8811. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8812. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8813. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8814. cat >$CONFIG_STATUS <<_ACEOF
  8815. #! $SHELL
  8816. # Generated by $as_me.
  8817. # Run this file to recreate the current configuration.
  8818. # Compiler output produced by configure, useful for debugging
  8819. # configure, is in config.log if it exists.
  8820. debug=false
  8821. ac_cs_recheck=false
  8822. ac_cs_silent=false
  8823. SHELL=\${CONFIG_SHELL-$SHELL}
  8824. _ACEOF
  8825. cat >>$CONFIG_STATUS <<\_ACEOF
  8826. ## --------------------- ##
  8827. ## M4sh Initialization. ##
  8828. ## --------------------- ##
  8829. # Be Bourne compatible
  8830. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8831. emulate sh
  8832. NULLCMD=:
  8833. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8834. # is contrary to our usage. Disable this feature.
  8835. alias -g '${1+"$@"}'='"$@"'
  8836. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8837. set -o posix
  8838. fi
  8839. DUALCASE=1; export DUALCASE # for MKS sh
  8840. # Support unset when possible.
  8841. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8842. as_unset=unset
  8843. else
  8844. as_unset=false
  8845. fi
  8846. # Work around bugs in pre-3.0 UWIN ksh.
  8847. $as_unset ENV MAIL MAILPATH
  8848. PS1='$ '
  8849. PS2='> '
  8850. PS4='+ '
  8851. # NLS nuisances.
  8852. for as_var in \
  8853. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8854. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8855. LC_TELEPHONE LC_TIME
  8856. do
  8857. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8858. eval $as_var=C; export $as_var
  8859. else
  8860. $as_unset $as_var
  8861. fi
  8862. done
  8863. # Required to use basename.
  8864. if expr a : '\(a\)' >/dev/null 2>&1; then
  8865. as_expr=expr
  8866. else
  8867. as_expr=false
  8868. fi
  8869. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8870. as_basename=basename
  8871. else
  8872. as_basename=false
  8873. fi
  8874. # Name of the executable.
  8875. as_me=`$as_basename "$0" ||
  8876. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8877. X"$0" : 'X\(//\)$' \| \
  8878. X"$0" : 'X\(/\)$' \| \
  8879. . : '\(.\)' 2>/dev/null ||
  8880. echo X/"$0" |
  8881. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8882. /^X\/\(\/\/\)$/{ s//\1/; q; }
  8883. /^X\/\(\/\).*/{ s//\1/; q; }
  8884. s/.*/./; q'`
  8885. # PATH needs CR, and LINENO needs CR and PATH.
  8886. # Avoid depending upon Character Ranges.
  8887. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8888. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8889. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8890. as_cr_digits='0123456789'
  8891. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8892. # The user is always right.
  8893. if test "${PATH_SEPARATOR+set}" != set; then
  8894. echo "#! /bin/sh" >conf$$.sh
  8895. echo "exit 0" >>conf$$.sh
  8896. chmod +x conf$$.sh
  8897. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8898. PATH_SEPARATOR=';'
  8899. else
  8900. PATH_SEPARATOR=:
  8901. fi
  8902. rm -f conf$$.sh
  8903. fi
  8904. as_lineno_1=$LINENO
  8905. as_lineno_2=$LINENO
  8906. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8907. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8908. test "x$as_lineno_3" = "x$as_lineno_2" || {
  8909. # Find who we are. Look in the path if we contain no path at all
  8910. # relative or not.
  8911. case $0 in
  8912. *[\\/]* ) as_myself=$0 ;;
  8913. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8914. for as_dir in $PATH
  8915. do
  8916. IFS=$as_save_IFS
  8917. test -z "$as_dir" && as_dir=.
  8918. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8919. done
  8920. ;;
  8921. esac
  8922. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8923. # in which case we are not to be found in the path.
  8924. if test "x$as_myself" = x; then
  8925. as_myself=$0
  8926. fi
  8927. if test ! -f "$as_myself"; then
  8928. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8929. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8930. { (exit 1); exit 1; }; }
  8931. fi
  8932. case $CONFIG_SHELL in
  8933. '')
  8934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8935. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8936. do
  8937. IFS=$as_save_IFS
  8938. test -z "$as_dir" && as_dir=.
  8939. for as_base in sh bash ksh sh5; do
  8940. case $as_dir in
  8941. /*)
  8942. if ("$as_dir/$as_base" -c '
  8943. as_lineno_1=$LINENO
  8944. as_lineno_2=$LINENO
  8945. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8946. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8947. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8948. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8949. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8950. CONFIG_SHELL=$as_dir/$as_base
  8951. export CONFIG_SHELL
  8952. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8953. fi;;
  8954. esac
  8955. done
  8956. done
  8957. ;;
  8958. esac
  8959. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8960. # uniformly replaced by the line number. The first 'sed' inserts a
  8961. # line-number line before each line; the second 'sed' does the real
  8962. # work. The second script uses 'N' to pair each line-number line
  8963. # with the numbered line, and appends trailing '-' during
  8964. # substitution so that $LINENO is not a special case at line end.
  8965. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8966. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8967. sed '=' <$as_myself |
  8968. sed '
  8969. N
  8970. s,$,-,
  8971. : loop
  8972. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8973. t loop
  8974. s,-$,,
  8975. s,^['$as_cr_digits']*\n,,
  8976. ' >$as_me.lineno &&
  8977. chmod +x $as_me.lineno ||
  8978. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8979. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8980. { (exit 1); exit 1; }; }
  8981. # Don't try to exec as it changes $[0], causing all sort of problems
  8982. # (the dirname of $[0] is not the place where we might find the
  8983. # original and so on. Autoconf is especially sensible to this).
  8984. . ./$as_me.lineno
  8985. # Exit status is that of the last command.
  8986. exit
  8987. }
  8988. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8989. *c*,-n*) ECHO_N= ECHO_C='
  8990. ' ECHO_T=' ' ;;
  8991. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8992. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8993. esac
  8994. if expr a : '\(a\)' >/dev/null 2>&1; then
  8995. as_expr=expr
  8996. else
  8997. as_expr=false
  8998. fi
  8999. rm -f conf$$ conf$$.exe conf$$.file
  9000. echo >conf$$.file
  9001. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9002. # We could just check for DJGPP; but this test a) works b) is more generic
  9003. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9004. if test -f conf$$.exe; then
  9005. # Don't use ln at all; we don't have any links
  9006. as_ln_s='cp -p'
  9007. else
  9008. as_ln_s='ln -s'
  9009. fi
  9010. elif ln conf$$.file conf$$ 2>/dev/null; then
  9011. as_ln_s=ln
  9012. else
  9013. as_ln_s='cp -p'
  9014. fi
  9015. rm -f conf$$ conf$$.exe conf$$.file
  9016. if mkdir -p . 2>/dev/null; then
  9017. as_mkdir_p=:
  9018. else
  9019. test -d ./-p && rmdir ./-p
  9020. as_mkdir_p=false
  9021. fi
  9022. as_executable_p="test -f"
  9023. # Sed expression to map a string onto a valid CPP name.
  9024. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9025. # Sed expression to map a string onto a valid variable name.
  9026. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9027. # IFS
  9028. # We need space, tab and new line, in precisely that order.
  9029. as_nl='
  9030. '
  9031. IFS=" $as_nl"
  9032. # CDPATH.
  9033. $as_unset CDPATH
  9034. exec 6>&1
  9035. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9036. # report actual input values of CONFIG_FILES etc. instead of their
  9037. # values after options handling. Logging --version etc. is OK.
  9038. exec 5>>config.log
  9039. {
  9040. echo
  9041. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9042. ## Running $as_me. ##
  9043. _ASBOX
  9044. } >&5
  9045. cat >&5 <<_CSEOF
  9046. This file was extended by ngircd $as_me 0.10.3, which was
  9047. generated by GNU Autoconf 2.59. Invocation command line was
  9048. CONFIG_FILES = $CONFIG_FILES
  9049. CONFIG_HEADERS = $CONFIG_HEADERS
  9050. CONFIG_LINKS = $CONFIG_LINKS
  9051. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9052. $ $0 $@
  9053. _CSEOF
  9054. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9055. echo >&5
  9056. _ACEOF
  9057. # Files that config.status was made for.
  9058. if test -n "$ac_config_files"; then
  9059. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9060. fi
  9061. if test -n "$ac_config_headers"; then
  9062. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9063. fi
  9064. if test -n "$ac_config_links"; then
  9065. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9066. fi
  9067. if test -n "$ac_config_commands"; then
  9068. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9069. fi
  9070. cat >>$CONFIG_STATUS <<\_ACEOF
  9071. ac_cs_usage="\
  9072. \`$as_me' instantiates files from templates according to the
  9073. current configuration.
  9074. Usage: $0 [OPTIONS] [FILE]...
  9075. -h, --help print this help, then exit
  9076. -V, --version print version number, then exit
  9077. -q, --quiet do not print progress messages
  9078. -d, --debug don't remove temporary files
  9079. --recheck update $as_me by reconfiguring in the same conditions
  9080. --file=FILE[:TEMPLATE]
  9081. instantiate the configuration file FILE
  9082. --header=FILE[:TEMPLATE]
  9083. instantiate the configuration header FILE
  9084. Configuration files:
  9085. $config_files
  9086. Configuration headers:
  9087. $config_headers
  9088. Configuration commands:
  9089. $config_commands
  9090. Report bugs to <bug-autoconf@gnu.org>."
  9091. _ACEOF
  9092. cat >>$CONFIG_STATUS <<_ACEOF
  9093. ac_cs_version="\\
  9094. ngircd config.status 0.10.3
  9095. configured by $0, generated by GNU Autoconf 2.59,
  9096. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9097. Copyright (C) 2003 Free Software Foundation, Inc.
  9098. This config.status script is free software; the Free Software Foundation
  9099. gives unlimited permission to copy, distribute and modify it."
  9100. srcdir=$srcdir
  9101. INSTALL="$INSTALL"
  9102. _ACEOF
  9103. cat >>$CONFIG_STATUS <<\_ACEOF
  9104. # If no file are specified by the user, then we need to provide default
  9105. # value. By we need to know if files were specified by the user.
  9106. ac_need_defaults=:
  9107. while test $# != 0
  9108. do
  9109. case $1 in
  9110. --*=*)
  9111. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9112. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9113. ac_shift=:
  9114. ;;
  9115. -*)
  9116. ac_option=$1
  9117. ac_optarg=$2
  9118. ac_shift=shift
  9119. ;;
  9120. *) # This is not an option, so the user has probably given explicit
  9121. # arguments.
  9122. ac_option=$1
  9123. ac_need_defaults=false;;
  9124. esac
  9125. case $ac_option in
  9126. # Handling of the options.
  9127. _ACEOF
  9128. cat >>$CONFIG_STATUS <<\_ACEOF
  9129. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9130. ac_cs_recheck=: ;;
  9131. --version | --vers* | -V )
  9132. echo "$ac_cs_version"; exit 0 ;;
  9133. --he | --h)
  9134. # Conflict between --help and --header
  9135. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  9136. Try \`$0 --help' for more information." >&5
  9137. echo "$as_me: error: ambiguous option: $1
  9138. Try \`$0 --help' for more information." >&2;}
  9139. { (exit 1); exit 1; }; };;
  9140. --help | --hel | -h )
  9141. echo "$ac_cs_usage"; exit 0 ;;
  9142. --debug | --d* | -d )
  9143. debug=: ;;
  9144. --file | --fil | --fi | --f )
  9145. $ac_shift
  9146. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  9147. ac_need_defaults=false;;
  9148. --header | --heade | --head | --hea )
  9149. $ac_shift
  9150. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  9151. ac_need_defaults=false;;
  9152. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9153. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9154. ac_cs_silent=: ;;
  9155. # This is an error.
  9156. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  9157. Try \`$0 --help' for more information." >&5
  9158. echo "$as_me: error: unrecognized option: $1
  9159. Try \`$0 --help' for more information." >&2;}
  9160. { (exit 1); exit 1; }; } ;;
  9161. *) ac_config_targets="$ac_config_targets $1" ;;
  9162. esac
  9163. shift
  9164. done
  9165. ac_configure_extra_args=
  9166. if $ac_cs_silent; then
  9167. exec 6>/dev/null
  9168. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9169. fi
  9170. _ACEOF
  9171. cat >>$CONFIG_STATUS <<_ACEOF
  9172. if \$ac_cs_recheck; then
  9173. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  9174. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9175. fi
  9176. _ACEOF
  9177. cat >>$CONFIG_STATUS <<_ACEOF
  9178. #
  9179. # INIT-COMMANDS section.
  9180. #
  9181. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9182. _ACEOF
  9183. cat >>$CONFIG_STATUS <<\_ACEOF
  9184. for ac_config_target in $ac_config_targets
  9185. do
  9186. case "$ac_config_target" in
  9187. # Handling of arguments.
  9188. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9189. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  9190. "doc/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  9191. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9192. "src/portab/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  9193. "src/tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  9194. "src/ngircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  9195. "src/testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  9196. "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9197. "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  9198. "contrib/Debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  9199. "contrib/MacOSX/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  9200. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9201. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  9202. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9203. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9204. { (exit 1); exit 1; }; };;
  9205. esac
  9206. done
  9207. # If the user did not use the arguments to specify the items to instantiate,
  9208. # then the envvar interface is used. Set only those that are not.
  9209. # We use the long form for the default assignment because of an extremely
  9210. # bizarre bug on SunOS 4.1.3.
  9211. if $ac_need_defaults; then
  9212. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9213. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9214. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9215. fi
  9216. # Have a temporary directory for convenience. Make it in the build tree
  9217. # simply because there is no reason to put it here, and in addition,
  9218. # creating and moving files from /tmp can sometimes cause problems.
  9219. # Create a temporary directory, and hook for its removal unless debugging.
  9220. $debug ||
  9221. {
  9222. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  9223. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9224. }
  9225. # Create a (secure) tmp directory for tmp files.
  9226. {
  9227. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  9228. test -n "$tmp" && test -d "$tmp"
  9229. } ||
  9230. {
  9231. tmp=./confstat$$-$RANDOM
  9232. (umask 077 && mkdir $tmp)
  9233. } ||
  9234. {
  9235. echo "$me: cannot create a temporary directory in ." >&2
  9236. { (exit 1); exit 1; }
  9237. }
  9238. _ACEOF
  9239. cat >>$CONFIG_STATUS <<_ACEOF
  9240. #
  9241. # CONFIG_FILES section.
  9242. #
  9243. # No need to generate the scripts if there are no CONFIG_FILES.
  9244. # This happens for instance when ./config.status config.h
  9245. if test -n "\$CONFIG_FILES"; then
  9246. # Protect against being on the right side of a sed subst in config.status.
  9247. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  9248. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  9249. s,@SHELL@,$SHELL,;t t
  9250. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  9251. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  9252. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  9253. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9254. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9255. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9256. s,@exec_prefix@,$exec_prefix,;t t
  9257. s,@prefix@,$prefix,;t t
  9258. s,@program_transform_name@,$program_transform_name,;t t
  9259. s,@bindir@,$bindir,;t t
  9260. s,@sbindir@,$sbindir,;t t
  9261. s,@libexecdir@,$libexecdir,;t t
  9262. s,@datadir@,$datadir,;t t
  9263. s,@sysconfdir@,$sysconfdir,;t t
  9264. s,@sharedstatedir@,$sharedstatedir,;t t
  9265. s,@localstatedir@,$localstatedir,;t t
  9266. s,@libdir@,$libdir,;t t
  9267. s,@includedir@,$includedir,;t t
  9268. s,@oldincludedir@,$oldincludedir,;t t
  9269. s,@infodir@,$infodir,;t t
  9270. s,@mandir@,$mandir,;t t
  9271. s,@build_alias@,$build_alias,;t t
  9272. s,@host_alias@,$host_alias,;t t
  9273. s,@target_alias@,$target_alias,;t t
  9274. s,@DEFS@,$DEFS,;t t
  9275. s,@ECHO_C@,$ECHO_C,;t t
  9276. s,@ECHO_N@,$ECHO_N,;t t
  9277. s,@ECHO_T@,$ECHO_T,;t t
  9278. s,@LIBS@,$LIBS,;t t
  9279. s,@build@,$build,;t t
  9280. s,@build_cpu@,$build_cpu,;t t
  9281. s,@build_vendor@,$build_vendor,;t t
  9282. s,@build_os@,$build_os,;t t
  9283. s,@host@,$host,;t t
  9284. s,@host_cpu@,$host_cpu,;t t
  9285. s,@host_vendor@,$host_vendor,;t t
  9286. s,@host_os@,$host_os,;t t
  9287. s,@target@,$target,;t t
  9288. s,@target_cpu@,$target_cpu,;t t
  9289. s,@target_vendor@,$target_vendor,;t t
  9290. s,@target_os@,$target_os,;t t
  9291. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9292. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9293. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9294. s,@CYGPATH_W@,$CYGPATH_W,;t t
  9295. s,@PACKAGE@,$PACKAGE,;t t
  9296. s,@VERSION@,$VERSION,;t t
  9297. s,@ACLOCAL@,$ACLOCAL,;t t
  9298. s,@AUTOCONF@,$AUTOCONF,;t t
  9299. s,@AUTOMAKE@,$AUTOMAKE,;t t
  9300. s,@AUTOHEADER@,$AUTOHEADER,;t t
  9301. s,@MAKEINFO@,$MAKEINFO,;t t
  9302. s,@install_sh@,$install_sh,;t t
  9303. s,@STRIP@,$STRIP,;t t
  9304. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  9305. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  9306. s,@mkdir_p@,$mkdir_p,;t t
  9307. s,@AWK@,$AWK,;t t
  9308. s,@SET_MAKE@,$SET_MAKE,;t t
  9309. s,@am__leading_dot@,$am__leading_dot,;t t
  9310. s,@AMTAR@,$AMTAR,;t t
  9311. s,@am__tar@,$am__tar,;t t
  9312. s,@am__untar@,$am__untar,;t t
  9313. s,@CC@,$CC,;t t
  9314. s,@CFLAGS@,$CFLAGS,;t t
  9315. s,@LDFLAGS@,$LDFLAGS,;t t
  9316. s,@CPPFLAGS@,$CPPFLAGS,;t t
  9317. s,@ac_ct_CC@,$ac_ct_CC,;t t
  9318. s,@EXEEXT@,$EXEEXT,;t t
  9319. s,@OBJEXT@,$OBJEXT,;t t
  9320. s,@DEPDIR@,$DEPDIR,;t t
  9321. s,@am__include@,$am__include,;t t
  9322. s,@am__quote@,$am__quote,;t t
  9323. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  9324. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  9325. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  9326. s,@CCDEPMODE@,$CCDEPMODE,;t t
  9327. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  9328. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  9329. s,@LN_S@,$LN_S,;t t
  9330. s,@RANLIB@,$RANLIB,;t t
  9331. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9332. s,@CPP@,$CPP,;t t
  9333. s,@EGREP@,$EGREP,;t t
  9334. s,@U@,$U,;t t
  9335. s,@ANSI2KNR@,$ANSI2KNR,;t t
  9336. s,@LIBOBJS@,$LIBOBJS,;t t
  9337. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9338. CEOF
  9339. _ACEOF
  9340. cat >>$CONFIG_STATUS <<\_ACEOF
  9341. # Split the substitutions into bite-sized pieces for seds with
  9342. # small command number limits, like on Digital OSF/1 and HP-UX.
  9343. ac_max_sed_lines=48
  9344. ac_sed_frag=1 # Number of current file.
  9345. ac_beg=1 # First line for current file.
  9346. ac_end=$ac_max_sed_lines # Line after last line for current file.
  9347. ac_more_lines=:
  9348. ac_sed_cmds=
  9349. while $ac_more_lines; do
  9350. if test $ac_beg -gt 1; then
  9351. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9352. else
  9353. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9354. fi
  9355. if test ! -s $tmp/subs.frag; then
  9356. ac_more_lines=false
  9357. else
  9358. # The purpose of the label and of the branching condition is to
  9359. # speed up the sed processing (if there are no `@' at all, there
  9360. # is no need to browse any of the substitutions).
  9361. # These are the two extra sed commands mentioned above.
  9362. (echo ':t
  9363. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9364. if test -z "$ac_sed_cmds"; then
  9365. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9366. else
  9367. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9368. fi
  9369. ac_sed_frag=`expr $ac_sed_frag + 1`
  9370. ac_beg=$ac_end
  9371. ac_end=`expr $ac_end + $ac_max_sed_lines`
  9372. fi
  9373. done
  9374. if test -z "$ac_sed_cmds"; then
  9375. ac_sed_cmds=cat
  9376. fi
  9377. fi # test -n "$CONFIG_FILES"
  9378. _ACEOF
  9379. cat >>$CONFIG_STATUS <<\_ACEOF
  9380. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9381. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9382. case $ac_file in
  9383. - | *:- | *:-:* ) # input from stdin
  9384. cat >$tmp/stdin
  9385. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9386. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9387. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9388. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9389. * ) ac_file_in=$ac_file.in ;;
  9390. esac
  9391. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9392. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9393. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9394. X"$ac_file" : 'X\(//\)[^/]' \| \
  9395. X"$ac_file" : 'X\(//\)$' \| \
  9396. X"$ac_file" : 'X\(/\)' \| \
  9397. . : '\(.\)' 2>/dev/null ||
  9398. echo X"$ac_file" |
  9399. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9400. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9401. /^X\(\/\/\)$/{ s//\1/; q; }
  9402. /^X\(\/\).*/{ s//\1/; q; }
  9403. s/.*/./; q'`
  9404. { if $as_mkdir_p; then
  9405. mkdir -p "$ac_dir"
  9406. else
  9407. as_dir="$ac_dir"
  9408. as_dirs=
  9409. while test ! -d "$as_dir"; do
  9410. as_dirs="$as_dir $as_dirs"
  9411. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9412. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9413. X"$as_dir" : 'X\(//\)[^/]' \| \
  9414. X"$as_dir" : 'X\(//\)$' \| \
  9415. X"$as_dir" : 'X\(/\)' \| \
  9416. . : '\(.\)' 2>/dev/null ||
  9417. echo X"$as_dir" |
  9418. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9419. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9420. /^X\(\/\/\)$/{ s//\1/; q; }
  9421. /^X\(\/\).*/{ s//\1/; q; }
  9422. s/.*/./; q'`
  9423. done
  9424. test ! -n "$as_dirs" || mkdir $as_dirs
  9425. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9426. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9427. { (exit 1); exit 1; }; }; }
  9428. ac_builddir=.
  9429. if test "$ac_dir" != .; then
  9430. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9431. # A "../" for each directory in $ac_dir_suffix.
  9432. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9433. else
  9434. ac_dir_suffix= ac_top_builddir=
  9435. fi
  9436. case $srcdir in
  9437. .) # No --srcdir option. We are building in place.
  9438. ac_srcdir=.
  9439. if test -z "$ac_top_builddir"; then
  9440. ac_top_srcdir=.
  9441. else
  9442. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9443. fi ;;
  9444. [\\/]* | ?:[\\/]* ) # Absolute path.
  9445. ac_srcdir=$srcdir$ac_dir_suffix;
  9446. ac_top_srcdir=$srcdir ;;
  9447. *) # Relative path.
  9448. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9449. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9450. esac
  9451. # Do not use `cd foo && pwd` to compute absolute paths, because
  9452. # the directories may not exist.
  9453. case `pwd` in
  9454. .) ac_abs_builddir="$ac_dir";;
  9455. *)
  9456. case "$ac_dir" in
  9457. .) ac_abs_builddir=`pwd`;;
  9458. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9459. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9460. esac;;
  9461. esac
  9462. case $ac_abs_builddir in
  9463. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9464. *)
  9465. case ${ac_top_builddir}. in
  9466. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9467. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9468. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9469. esac;;
  9470. esac
  9471. case $ac_abs_builddir in
  9472. .) ac_abs_srcdir=$ac_srcdir;;
  9473. *)
  9474. case $ac_srcdir in
  9475. .) ac_abs_srcdir=$ac_abs_builddir;;
  9476. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9477. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9478. esac;;
  9479. esac
  9480. case $ac_abs_builddir in
  9481. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9482. *)
  9483. case $ac_top_srcdir in
  9484. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9485. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9486. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9487. esac;;
  9488. esac
  9489. case $INSTALL in
  9490. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9491. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9492. esac
  9493. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9494. # use $as_me), people would be surprised to read:
  9495. # /* config.h. Generated by config.status. */
  9496. if test x"$ac_file" = x-; then
  9497. configure_input=
  9498. else
  9499. configure_input="$ac_file. "
  9500. fi
  9501. configure_input=$configure_input"Generated from `echo $ac_file_in |
  9502. sed 's,.*/,,'` by configure."
  9503. # First look for the input files in the build tree, otherwise in the
  9504. # src tree.
  9505. ac_file_inputs=`IFS=:
  9506. for f in $ac_file_in; do
  9507. case $f in
  9508. -) echo $tmp/stdin ;;
  9509. [\\/$]*)
  9510. # Absolute (can't be DOS-style, as IFS=:)
  9511. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9512. echo "$as_me: error: cannot find input file: $f" >&2;}
  9513. { (exit 1); exit 1; }; }
  9514. echo "$f";;
  9515. *) # Relative
  9516. if test -f "$f"; then
  9517. # Build tree
  9518. echo "$f"
  9519. elif test -f "$srcdir/$f"; then
  9520. # Source tree
  9521. echo "$srcdir/$f"
  9522. else
  9523. # /dev/null tree
  9524. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9525. echo "$as_me: error: cannot find input file: $f" >&2;}
  9526. { (exit 1); exit 1; }; }
  9527. fi;;
  9528. esac
  9529. done` || { (exit 1); exit 1; }
  9530. if test x"$ac_file" != x-; then
  9531. { echo "$as_me:$LINENO: creating $ac_file" >&5
  9532. echo "$as_me: creating $ac_file" >&6;}
  9533. rm -f "$ac_file"
  9534. fi
  9535. _ACEOF
  9536. cat >>$CONFIG_STATUS <<_ACEOF
  9537. sed "$ac_vpsub
  9538. $extrasub
  9539. _ACEOF
  9540. cat >>$CONFIG_STATUS <<\_ACEOF
  9541. :t
  9542. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9543. s,@configure_input@,$configure_input,;t t
  9544. s,@srcdir@,$ac_srcdir,;t t
  9545. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9546. s,@top_srcdir@,$ac_top_srcdir,;t t
  9547. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9548. s,@builddir@,$ac_builddir,;t t
  9549. s,@abs_builddir@,$ac_abs_builddir,;t t
  9550. s,@top_builddir@,$ac_top_builddir,;t t
  9551. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9552. s,@INSTALL@,$ac_INSTALL,;t t
  9553. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9554. rm -f $tmp/stdin
  9555. if test x"$ac_file" != x-; then
  9556. mv $tmp/out $ac_file
  9557. else
  9558. cat $tmp/out
  9559. rm -f $tmp/out
  9560. fi
  9561. done
  9562. _ACEOF
  9563. cat >>$CONFIG_STATUS <<\_ACEOF
  9564. #
  9565. # CONFIG_HEADER section.
  9566. #
  9567. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9568. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9569. #
  9570. # ac_d sets the value in "#define NAME VALUE" lines.
  9571. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9572. ac_dB='[ ].*$,\1#\2'
  9573. ac_dC=' '
  9574. ac_dD=',;t'
  9575. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9576. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9577. ac_uB='$,\1#\2define\3'
  9578. ac_uC=' '
  9579. ac_uD=',;t'
  9580. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9581. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9582. case $ac_file in
  9583. - | *:- | *:-:* ) # input from stdin
  9584. cat >$tmp/stdin
  9585. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9586. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9587. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9588. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9589. * ) ac_file_in=$ac_file.in ;;
  9590. esac
  9591. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9592. echo "$as_me: creating $ac_file" >&6;}
  9593. # First look for the input files in the build tree, otherwise in the
  9594. # src tree.
  9595. ac_file_inputs=`IFS=:
  9596. for f in $ac_file_in; do
  9597. case $f in
  9598. -) echo $tmp/stdin ;;
  9599. [\\/$]*)
  9600. # Absolute (can't be DOS-style, as IFS=:)
  9601. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9602. echo "$as_me: error: cannot find input file: $f" >&2;}
  9603. { (exit 1); exit 1; }; }
  9604. # Do quote $f, to prevent DOS paths from being IFS'd.
  9605. echo "$f";;
  9606. *) # Relative
  9607. if test -f "$f"; then
  9608. # Build tree
  9609. echo "$f"
  9610. elif test -f "$srcdir/$f"; then
  9611. # Source tree
  9612. echo "$srcdir/$f"
  9613. else
  9614. # /dev/null tree
  9615. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9616. echo "$as_me: error: cannot find input file: $f" >&2;}
  9617. { (exit 1); exit 1; }; }
  9618. fi;;
  9619. esac
  9620. done` || { (exit 1); exit 1; }
  9621. # Remove the trailing spaces.
  9622. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9623. _ACEOF
  9624. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  9625. # `conftest.undefs', that substitutes the proper values into
  9626. # config.h.in to produce config.h. The first handles `#define'
  9627. # templates, and the second `#undef' templates.
  9628. # And first: Protect against being on the right side of a sed subst in
  9629. # config.status. Protect against being in an unquoted here document
  9630. # in config.status.
  9631. rm -f conftest.defines conftest.undefs
  9632. # Using a here document instead of a string reduces the quoting nightmare.
  9633. # Putting comments in sed scripts is not portable.
  9634. #
  9635. # `end' is used to avoid that the second main sed command (meant for
  9636. # 0-ary CPP macros) applies to n-ary macro definitions.
  9637. # See the Autoconf documentation for `clear'.
  9638. cat >confdef2sed.sed <<\_ACEOF
  9639. s/[\\&,]/\\&/g
  9640. s,[\\$`],\\&,g
  9641. t clear
  9642. : clear
  9643. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9644. t end
  9645. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9646. : end
  9647. _ACEOF
  9648. # If some macros were called several times there might be several times
  9649. # the same #defines, which is useless. Nevertheless, we may not want to
  9650. # sort them, since we want the *last* AC-DEFINE to be honored.
  9651. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9652. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9653. rm -f confdef2sed.sed
  9654. # This sed command replaces #undef with comments. This is necessary, for
  9655. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9656. # on some systems where configure will not decide to define it.
  9657. cat >>conftest.undefs <<\_ACEOF
  9658. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9659. _ACEOF
  9660. # Break up conftest.defines because some shells have a limit on the size
  9661. # of here documents, and old seds have small limits too (100 cmds).
  9662. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9663. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9664. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9665. echo ' :' >>$CONFIG_STATUS
  9666. rm -f conftest.tail
  9667. while grep . conftest.defines >/dev/null
  9668. do
  9669. # Write a limited-size here document to $tmp/defines.sed.
  9670. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9671. # Speed up: don't consider the non `#define' lines.
  9672. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9673. # Work around the forget-to-reset-the-flag bug.
  9674. echo 't clr' >>$CONFIG_STATUS
  9675. echo ': clr' >>$CONFIG_STATUS
  9676. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9677. echo 'CEOF
  9678. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9679. rm -f $tmp/in
  9680. mv $tmp/out $tmp/in
  9681. ' >>$CONFIG_STATUS
  9682. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9683. rm -f conftest.defines
  9684. mv conftest.tail conftest.defines
  9685. done
  9686. rm -f conftest.defines
  9687. echo ' fi # grep' >>$CONFIG_STATUS
  9688. echo >>$CONFIG_STATUS
  9689. # Break up conftest.undefs because some shells have a limit on the size
  9690. # of here documents, and old seds have small limits too (100 cmds).
  9691. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9692. rm -f conftest.tail
  9693. while grep . conftest.undefs >/dev/null
  9694. do
  9695. # Write a limited-size here document to $tmp/undefs.sed.
  9696. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9697. # Speed up: don't consider the non `#undef'
  9698. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9699. # Work around the forget-to-reset-the-flag bug.
  9700. echo 't clr' >>$CONFIG_STATUS
  9701. echo ': clr' >>$CONFIG_STATUS
  9702. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9703. echo 'CEOF
  9704. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9705. rm -f $tmp/in
  9706. mv $tmp/out $tmp/in
  9707. ' >>$CONFIG_STATUS
  9708. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9709. rm -f conftest.undefs
  9710. mv conftest.tail conftest.undefs
  9711. done
  9712. rm -f conftest.undefs
  9713. cat >>$CONFIG_STATUS <<\_ACEOF
  9714. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9715. # use $as_me), people would be surprised to read:
  9716. # /* config.h. Generated by config.status. */
  9717. if test x"$ac_file" = x-; then
  9718. echo "/* Generated by configure. */" >$tmp/config.h
  9719. else
  9720. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9721. fi
  9722. cat $tmp/in >>$tmp/config.h
  9723. rm -f $tmp/in
  9724. if test x"$ac_file" != x-; then
  9725. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9726. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9727. echo "$as_me: $ac_file is unchanged" >&6;}
  9728. else
  9729. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9730. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9731. X"$ac_file" : 'X\(//\)[^/]' \| \
  9732. X"$ac_file" : 'X\(//\)$' \| \
  9733. X"$ac_file" : 'X\(/\)' \| \
  9734. . : '\(.\)' 2>/dev/null ||
  9735. echo X"$ac_file" |
  9736. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9737. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9738. /^X\(\/\/\)$/{ s//\1/; q; }
  9739. /^X\(\/\).*/{ s//\1/; q; }
  9740. s/.*/./; q'`
  9741. { if $as_mkdir_p; then
  9742. mkdir -p "$ac_dir"
  9743. else
  9744. as_dir="$ac_dir"
  9745. as_dirs=
  9746. while test ! -d "$as_dir"; do
  9747. as_dirs="$as_dir $as_dirs"
  9748. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9749. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9750. X"$as_dir" : 'X\(//\)[^/]' \| \
  9751. X"$as_dir" : 'X\(//\)$' \| \
  9752. X"$as_dir" : 'X\(/\)' \| \
  9753. . : '\(.\)' 2>/dev/null ||
  9754. echo X"$as_dir" |
  9755. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9756. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9757. /^X\(\/\/\)$/{ s//\1/; q; }
  9758. /^X\(\/\).*/{ s//\1/; q; }
  9759. s/.*/./; q'`
  9760. done
  9761. test ! -n "$as_dirs" || mkdir $as_dirs
  9762. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9763. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9764. { (exit 1); exit 1; }; }; }
  9765. rm -f $ac_file
  9766. mv $tmp/config.h $ac_file
  9767. fi
  9768. else
  9769. cat $tmp/config.h
  9770. rm -f $tmp/config.h
  9771. fi
  9772. # Compute $ac_file's index in $config_headers.
  9773. _am_stamp_count=1
  9774. for _am_header in $config_headers :; do
  9775. case $_am_header in
  9776. $ac_file | $ac_file:* )
  9777. break ;;
  9778. * )
  9779. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9780. esac
  9781. done
  9782. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  9783. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9784. X$ac_file : 'X\(//\)[^/]' \| \
  9785. X$ac_file : 'X\(//\)$' \| \
  9786. X$ac_file : 'X\(/\)' \| \
  9787. . : '\(.\)' 2>/dev/null ||
  9788. echo X$ac_file |
  9789. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9790. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9791. /^X\(\/\/\)$/{ s//\1/; q; }
  9792. /^X\(\/\).*/{ s//\1/; q; }
  9793. s/.*/./; q'`/stamp-h$_am_stamp_count
  9794. done
  9795. _ACEOF
  9796. cat >>$CONFIG_STATUS <<\_ACEOF
  9797. #
  9798. # CONFIG_COMMANDS section.
  9799. #
  9800. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9801. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9802. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9803. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9804. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9805. X"$ac_dest" : 'X\(//\)[^/]' \| \
  9806. X"$ac_dest" : 'X\(//\)$' \| \
  9807. X"$ac_dest" : 'X\(/\)' \| \
  9808. . : '\(.\)' 2>/dev/null ||
  9809. echo X"$ac_dest" |
  9810. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9811. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9812. /^X\(\/\/\)$/{ s//\1/; q; }
  9813. /^X\(\/\).*/{ s//\1/; q; }
  9814. s/.*/./; q'`
  9815. { if $as_mkdir_p; then
  9816. mkdir -p "$ac_dir"
  9817. else
  9818. as_dir="$ac_dir"
  9819. as_dirs=
  9820. while test ! -d "$as_dir"; do
  9821. as_dirs="$as_dir $as_dirs"
  9822. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9823. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9824. X"$as_dir" : 'X\(//\)[^/]' \| \
  9825. X"$as_dir" : 'X\(//\)$' \| \
  9826. X"$as_dir" : 'X\(/\)' \| \
  9827. . : '\(.\)' 2>/dev/null ||
  9828. echo X"$as_dir" |
  9829. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9830. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9831. /^X\(\/\/\)$/{ s//\1/; q; }
  9832. /^X\(\/\).*/{ s//\1/; q; }
  9833. s/.*/./; q'`
  9834. done
  9835. test ! -n "$as_dirs" || mkdir $as_dirs
  9836. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9837. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9838. { (exit 1); exit 1; }; }; }
  9839. ac_builddir=.
  9840. if test "$ac_dir" != .; then
  9841. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9842. # A "../" for each directory in $ac_dir_suffix.
  9843. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9844. else
  9845. ac_dir_suffix= ac_top_builddir=
  9846. fi
  9847. case $srcdir in
  9848. .) # No --srcdir option. We are building in place.
  9849. ac_srcdir=.
  9850. if test -z "$ac_top_builddir"; then
  9851. ac_top_srcdir=.
  9852. else
  9853. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9854. fi ;;
  9855. [\\/]* | ?:[\\/]* ) # Absolute path.
  9856. ac_srcdir=$srcdir$ac_dir_suffix;
  9857. ac_top_srcdir=$srcdir ;;
  9858. *) # Relative path.
  9859. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9860. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9861. esac
  9862. # Do not use `cd foo && pwd` to compute absolute paths, because
  9863. # the directories may not exist.
  9864. case `pwd` in
  9865. .) ac_abs_builddir="$ac_dir";;
  9866. *)
  9867. case "$ac_dir" in
  9868. .) ac_abs_builddir=`pwd`;;
  9869. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9870. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9871. esac;;
  9872. esac
  9873. case $ac_abs_builddir in
  9874. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9875. *)
  9876. case ${ac_top_builddir}. in
  9877. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9878. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9879. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9880. esac;;
  9881. esac
  9882. case $ac_abs_builddir in
  9883. .) ac_abs_srcdir=$ac_srcdir;;
  9884. *)
  9885. case $ac_srcdir in
  9886. .) ac_abs_srcdir=$ac_abs_builddir;;
  9887. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9888. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9889. esac;;
  9890. esac
  9891. case $ac_abs_builddir in
  9892. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9893. *)
  9894. case $ac_top_srcdir in
  9895. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9896. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9897. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9898. esac;;
  9899. esac
  9900. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9901. echo "$as_me: executing $ac_dest commands" >&6;}
  9902. case $ac_dest in
  9903. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  9904. # Strip MF so we end up with the name of the file.
  9905. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9906. # Check whether this is an Automake generated Makefile or not.
  9907. # We used to match only the files named `Makefile.in', but
  9908. # some people rename them; so instead we look at the file content.
  9909. # Grep'ing the first line is not enough: some people post-process
  9910. # each Makefile.in and add a new line on top of each file to say so.
  9911. # So let's grep whole file.
  9912. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  9913. dirpart=`(dirname "$mf") 2>/dev/null ||
  9914. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9915. X"$mf" : 'X\(//\)[^/]' \| \
  9916. X"$mf" : 'X\(//\)$' \| \
  9917. X"$mf" : 'X\(/\)' \| \
  9918. . : '\(.\)' 2>/dev/null ||
  9919. echo X"$mf" |
  9920. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9921. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9922. /^X\(\/\/\)$/{ s//\1/; q; }
  9923. /^X\(\/\).*/{ s//\1/; q; }
  9924. s/.*/./; q'`
  9925. else
  9926. continue
  9927. fi
  9928. # Extract the definition of DEPDIR, am__include, and am__quote
  9929. # from the Makefile without running `make'.
  9930. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  9931. test -z "$DEPDIR" && continue
  9932. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  9933. test -z "am__include" && continue
  9934. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  9935. # When using ansi2knr, U may be empty or an underscore; expand it
  9936. U=`sed -n 's/^U = //p' < "$mf"`
  9937. # Find all dependency output files, they are included files with
  9938. # $(DEPDIR) in their names. We invoke sed twice because it is the
  9939. # simplest approach to changing $(DEPDIR) to its actual value in the
  9940. # expansion.
  9941. for file in `sed -n "
  9942. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  9943. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  9944. # Make sure the directory exists.
  9945. test -f "$dirpart/$file" && continue
  9946. fdir=`(dirname "$file") 2>/dev/null ||
  9947. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9948. X"$file" : 'X\(//\)[^/]' \| \
  9949. X"$file" : 'X\(//\)$' \| \
  9950. X"$file" : 'X\(/\)' \| \
  9951. . : '\(.\)' 2>/dev/null ||
  9952. echo X"$file" |
  9953. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9954. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9955. /^X\(\/\/\)$/{ s//\1/; q; }
  9956. /^X\(\/\).*/{ s//\1/; q; }
  9957. s/.*/./; q'`
  9958. { if $as_mkdir_p; then
  9959. mkdir -p $dirpart/$fdir
  9960. else
  9961. as_dir=$dirpart/$fdir
  9962. as_dirs=
  9963. while test ! -d "$as_dir"; do
  9964. as_dirs="$as_dir $as_dirs"
  9965. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9966. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9967. X"$as_dir" : 'X\(//\)[^/]' \| \
  9968. X"$as_dir" : 'X\(//\)$' \| \
  9969. X"$as_dir" : 'X\(/\)' \| \
  9970. . : '\(.\)' 2>/dev/null ||
  9971. echo X"$as_dir" |
  9972. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9973. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9974. /^X\(\/\/\)$/{ s//\1/; q; }
  9975. /^X\(\/\).*/{ s//\1/; q; }
  9976. s/.*/./; q'`
  9977. done
  9978. test ! -n "$as_dirs" || mkdir $as_dirs
  9979. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  9980. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  9981. { (exit 1); exit 1; }; }; }
  9982. # echo "creating $dirpart/$file"
  9983. echo '# dummy' > "$dirpart/$file"
  9984. done
  9985. done
  9986. ;;
  9987. esac
  9988. done
  9989. _ACEOF
  9990. cat >>$CONFIG_STATUS <<\_ACEOF
  9991. { (exit 0); exit 0; }
  9992. _ACEOF
  9993. chmod +x $CONFIG_STATUS
  9994. ac_clean_files=$ac_clean_files_save
  9995. # configure is writing to config.log, and then calls config.status.
  9996. # config.status does its own redirection, appending to config.log.
  9997. # Unfortunately, on DOS this fails, as config.log is still kept open
  9998. # by configure, so config.status won't be able to write to it; its
  9999. # output is simply discarded. So we exec the FD to /dev/null,
  10000. # effectively closing config.log, so it can be properly (re)opened and
  10001. # appended to by config.status. When coming back to configure, we
  10002. # need to make the FD available again.
  10003. if test "$no_create" != yes; then
  10004. ac_cs_success=:
  10005. ac_config_status_args=
  10006. test "$silent" = yes &&
  10007. ac_config_status_args="$ac_config_status_args --quiet"
  10008. exec 5>/dev/null
  10009. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10010. exec 5>>config.log
  10011. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10012. # would make configure fail if this is the last instruction.
  10013. $ac_cs_success || { (exit 1); exit 1; }
  10014. fi
  10015. type dpkg >/dev/null 2>&1
  10016. if test $? -eq 0; then
  10017. # Generate debian/ link if the dpkg command exists
  10018. # (read: if we are running on a debian compatible system)
  10019. echo "creating Debian-specific links ..."
  10020. test -f debian/rules || ln -s contrib/Debian debian
  10021. fi
  10022. # -- Result --
  10023. echo
  10024. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  10025. echo
  10026. # Someone please show me a better way :) [borrowed by OpenSSH]
  10027. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  10028. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  10029. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  10030. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  10031. D=`eval echo ${datadir}/doc/${PACKAGE}` ; D=`eval echo ${D}`
  10032. echo " Target: ${target}"
  10033. test "$target" != "$host" && echo " Host: ${host}"
  10034. echo " Compiler: ${CC}"
  10035. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  10036. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  10037. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  10038. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  10039. echo
  10040. echo " 'ngircd' binary: $S"
  10041. echo " Configuration file: $C"
  10042. echo " Manual pages: $M"
  10043. echo " Documentation: $D"
  10044. echo
  10045. echo $ECHO_N " Syslog support: $ECHO_C"
  10046. test "$x_syslog_on" = "yes" \
  10047. && echo $ECHO_N "yes $ECHO_C" \
  10048. || echo $ECHO_N "no $ECHO_C"
  10049. echo $ECHO_N " Enable debug code: $ECHO_C"
  10050. test "$x_debug_on" = "yes" \
  10051. && echo "yes" \
  10052. || echo "no"
  10053. echo $ECHO_N " zlib compression: $ECHO_C"
  10054. test "$x_zlib_on" = "yes" \
  10055. && echo $ECHO_N "yes $ECHO_C" \
  10056. || echo $ECHO_N "no $ECHO_C"
  10057. echo $ECHO_N " IRC sniffer: $ECHO_C"
  10058. test "$x_sniffer_on" = "yes" \
  10059. && echo "yes" \
  10060. || echo "no"
  10061. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  10062. test "$x_tcpwrap_on" = "yes" \
  10063. && echo $ECHO_N "yes $ECHO_C" \
  10064. || echo $ECHO_N "no $ECHO_C"
  10065. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  10066. test "$x_strict_rfc_on" = "yes" \
  10067. && echo "yes" \
  10068. || echo "no"
  10069. echo $ECHO_N " Zeroconf support: $ECHO_C"
  10070. case "$x_zeroconf_on" in
  10071. osx)
  10072. echo $ECHO_N "Apple $ECHO_C"
  10073. ;;
  10074. howl)
  10075. echo $ECHO_N "Howl $ECHO_C"
  10076. ;;
  10077. *)
  10078. echo $ECHO_N "no $ECHO_C"
  10079. ;;
  10080. esac
  10081. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  10082. test "$x_ircplus_on" = "yes" \
  10083. && echo "yes" \
  10084. || echo "no"
  10085. echo $ECHO_N " IDENT support: $ECHO_C"
  10086. test "$x_identauth_on" = "yes" \
  10087. && echo $ECHO_N "yes $ECHO_C" \
  10088. || echo $ECHO_N "no $ECHO_C"
  10089. echo $ECHO_N " I/O backend: $ECHO_C"
  10090. echo "\"$x_io_backend\""
  10091. echo
  10092. # -eof-