configure 307 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for ngircd 0.10.0.
  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.0'
  237. PACKAGE_STRING='ngircd 0.10.0'
  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.0 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.0:";;
  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-epoll disable epoll support (autodetected by default)
  758. --without-kqueue disable kqueue support (autodetected by default)
  759. --with-tcp-wrappers enable TCP wrappers support
  760. --with-zeroconf enable support for "Zeroconf"
  761. --with-ident enable "IDENT" ("AUTH") protocol support
  762. Some influential environment variables:
  763. CC C compiler command
  764. CFLAGS C compiler flags
  765. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  766. nonstandard directory <lib dir>
  767. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  768. headers in a nonstandard directory <include dir>
  769. CPP C preprocessor
  770. Use these variables to override the choices made by `configure' or to help
  771. it to find libraries and programs with nonstandard names/locations.
  772. _ACEOF
  773. fi
  774. if test "$ac_init_help" = "recursive"; then
  775. # If there are subdirs, report their specific --help.
  776. ac_popdir=`pwd`
  777. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  778. test -d $ac_dir || continue
  779. ac_builddir=.
  780. if test "$ac_dir" != .; then
  781. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  782. # A "../" for each directory in $ac_dir_suffix.
  783. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  784. else
  785. ac_dir_suffix= ac_top_builddir=
  786. fi
  787. case $srcdir in
  788. .) # No --srcdir option. We are building in place.
  789. ac_srcdir=.
  790. if test -z "$ac_top_builddir"; then
  791. ac_top_srcdir=.
  792. else
  793. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  794. fi ;;
  795. [\\/]* | ?:[\\/]* ) # Absolute path.
  796. ac_srcdir=$srcdir$ac_dir_suffix;
  797. ac_top_srcdir=$srcdir ;;
  798. *) # Relative path.
  799. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  800. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  801. esac
  802. # Do not use `cd foo && pwd` to compute absolute paths, because
  803. # the directories may not exist.
  804. case `pwd` in
  805. .) ac_abs_builddir="$ac_dir";;
  806. *)
  807. case "$ac_dir" in
  808. .) ac_abs_builddir=`pwd`;;
  809. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  810. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  811. esac;;
  812. esac
  813. case $ac_abs_builddir in
  814. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  815. *)
  816. case ${ac_top_builddir}. in
  817. .) ac_abs_top_builddir=$ac_abs_builddir;;
  818. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  819. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  820. esac;;
  821. esac
  822. case $ac_abs_builddir in
  823. .) ac_abs_srcdir=$ac_srcdir;;
  824. *)
  825. case $ac_srcdir in
  826. .) ac_abs_srcdir=$ac_abs_builddir;;
  827. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  828. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  829. esac;;
  830. esac
  831. case $ac_abs_builddir in
  832. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  833. *)
  834. case $ac_top_srcdir in
  835. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  836. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  837. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  838. esac;;
  839. esac
  840. cd $ac_dir
  841. # Check for guested configure; otherwise get Cygnus style configure.
  842. if test -f $ac_srcdir/configure.gnu; then
  843. echo
  844. $SHELL $ac_srcdir/configure.gnu --help=recursive
  845. elif test -f $ac_srcdir/configure; then
  846. echo
  847. $SHELL $ac_srcdir/configure --help=recursive
  848. elif test -f $ac_srcdir/configure.ac ||
  849. test -f $ac_srcdir/configure.in; then
  850. echo
  851. $ac_configure --help
  852. else
  853. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  854. fi
  855. cd "$ac_popdir"
  856. done
  857. fi
  858. test -n "$ac_init_help" && exit 0
  859. if $ac_init_version; then
  860. cat <<\_ACEOF
  861. ngircd configure 0.10.0
  862. generated by GNU Autoconf 2.59
  863. Copyright (C) 2003 Free Software Foundation, Inc.
  864. This configure script is free software; the Free Software Foundation
  865. gives unlimited permission to copy, distribute and modify it.
  866. _ACEOF
  867. exit 0
  868. fi
  869. exec 5>config.log
  870. cat >&5 <<_ACEOF
  871. This file contains any messages produced by compilers while
  872. running configure, to aid debugging if configure makes a mistake.
  873. It was created by ngircd $as_me 0.10.0, which was
  874. generated by GNU Autoconf 2.59. Invocation command line was
  875. $ $0 $@
  876. _ACEOF
  877. {
  878. cat <<_ASUNAME
  879. ## --------- ##
  880. ## Platform. ##
  881. ## --------- ##
  882. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  883. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  884. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  885. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  886. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  887. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  888. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  889. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  890. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  891. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  892. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  893. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  894. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  895. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  896. _ASUNAME
  897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  898. for as_dir in $PATH
  899. do
  900. IFS=$as_save_IFS
  901. test -z "$as_dir" && as_dir=.
  902. echo "PATH: $as_dir"
  903. done
  904. } >&5
  905. cat >&5 <<_ACEOF
  906. ## ----------- ##
  907. ## Core tests. ##
  908. ## ----------- ##
  909. _ACEOF
  910. # Keep a trace of the command line.
  911. # Strip out --no-create and --no-recursion so they do not pile up.
  912. # Strip out --silent because we don't want to record it for future runs.
  913. # Also quote any args containing shell meta-characters.
  914. # Make two passes to allow for proper duplicate-argument suppression.
  915. ac_configure_args=
  916. ac_configure_args0=
  917. ac_configure_args1=
  918. ac_sep=
  919. ac_must_keep_next=false
  920. for ac_pass in 1 2
  921. do
  922. for ac_arg
  923. do
  924. case $ac_arg in
  925. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  926. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  927. | -silent | --silent | --silen | --sile | --sil)
  928. continue ;;
  929. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  930. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  931. esac
  932. case $ac_pass in
  933. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  934. 2)
  935. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  936. if test $ac_must_keep_next = true; then
  937. ac_must_keep_next=false # Got value, back to normal.
  938. else
  939. case $ac_arg in
  940. *=* | --config-cache | -C | -disable-* | --disable-* \
  941. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  942. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  943. | -with-* | --with-* | -without-* | --without-* | --x)
  944. case "$ac_configure_args0 " in
  945. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  946. esac
  947. ;;
  948. -* ) ac_must_keep_next=true ;;
  949. esac
  950. fi
  951. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  952. # Get rid of the leading space.
  953. ac_sep=" "
  954. ;;
  955. esac
  956. done
  957. done
  958. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  959. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  960. # When interrupted or exit'd, cleanup temporary files, and complete
  961. # config.log. We remove comments because anyway the quotes in there
  962. # would cause problems or look ugly.
  963. # WARNING: Be sure not to use single quotes in there, as some shells,
  964. # such as our DU 5.0 friend, will then `close' the trap.
  965. trap 'exit_status=$?
  966. # Save into config.log some information that might help in debugging.
  967. {
  968. echo
  969. cat <<\_ASBOX
  970. ## ---------------- ##
  971. ## Cache variables. ##
  972. ## ---------------- ##
  973. _ASBOX
  974. echo
  975. # The following way of writing the cache mishandles newlines in values,
  976. {
  977. (set) 2>&1 |
  978. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  979. *ac_space=\ *)
  980. sed -n \
  981. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  982. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  983. ;;
  984. *)
  985. sed -n \
  986. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  987. ;;
  988. esac;
  989. }
  990. echo
  991. cat <<\_ASBOX
  992. ## ----------------- ##
  993. ## Output variables. ##
  994. ## ----------------- ##
  995. _ASBOX
  996. echo
  997. for ac_var in $ac_subst_vars
  998. do
  999. eval ac_val=$`echo $ac_var`
  1000. echo "$ac_var='"'"'$ac_val'"'"'"
  1001. done | sort
  1002. echo
  1003. if test -n "$ac_subst_files"; then
  1004. cat <<\_ASBOX
  1005. ## ------------- ##
  1006. ## Output files. ##
  1007. ## ------------- ##
  1008. _ASBOX
  1009. echo
  1010. for ac_var in $ac_subst_files
  1011. do
  1012. eval ac_val=$`echo $ac_var`
  1013. echo "$ac_var='"'"'$ac_val'"'"'"
  1014. done | sort
  1015. echo
  1016. fi
  1017. if test -s confdefs.h; then
  1018. cat <<\_ASBOX
  1019. ## ----------- ##
  1020. ## confdefs.h. ##
  1021. ## ----------- ##
  1022. _ASBOX
  1023. echo
  1024. sed "/^$/d" confdefs.h | sort
  1025. echo
  1026. fi
  1027. test "$ac_signal" != 0 &&
  1028. echo "$as_me: caught signal $ac_signal"
  1029. echo "$as_me: exit $exit_status"
  1030. } >&5
  1031. rm -f core *.core &&
  1032. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1033. exit $exit_status
  1034. ' 0
  1035. for ac_signal in 1 2 13 15; do
  1036. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1037. done
  1038. ac_signal=0
  1039. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1040. rm -rf conftest* confdefs.h
  1041. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1042. echo >confdefs.h
  1043. # Predefined preprocessor variables.
  1044. cat >>confdefs.h <<_ACEOF
  1045. #define PACKAGE_NAME "$PACKAGE_NAME"
  1046. _ACEOF
  1047. cat >>confdefs.h <<_ACEOF
  1048. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1049. _ACEOF
  1050. cat >>confdefs.h <<_ACEOF
  1051. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1052. _ACEOF
  1053. cat >>confdefs.h <<_ACEOF
  1054. #define PACKAGE_STRING "$PACKAGE_STRING"
  1055. _ACEOF
  1056. cat >>confdefs.h <<_ACEOF
  1057. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1058. _ACEOF
  1059. # Let the site file select an alternate cache file if it wants to.
  1060. # Prefer explicitly selected file to automatically selected ones.
  1061. if test -z "$CONFIG_SITE"; then
  1062. if test "x$prefix" != xNONE; then
  1063. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1064. else
  1065. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1066. fi
  1067. fi
  1068. for ac_site_file in $CONFIG_SITE; do
  1069. if test -r "$ac_site_file"; then
  1070. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1071. echo "$as_me: loading site script $ac_site_file" >&6;}
  1072. sed 's/^/| /' "$ac_site_file" >&5
  1073. . "$ac_site_file"
  1074. fi
  1075. done
  1076. if test -r "$cache_file"; then
  1077. # Some versions of bash will fail to source /dev/null (special
  1078. # files actually), so we avoid doing that.
  1079. if test -f "$cache_file"; then
  1080. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1081. echo "$as_me: loading cache $cache_file" >&6;}
  1082. case $cache_file in
  1083. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1084. *) . ./$cache_file;;
  1085. esac
  1086. fi
  1087. else
  1088. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1089. echo "$as_me: creating cache $cache_file" >&6;}
  1090. >$cache_file
  1091. fi
  1092. # Check that the precious variables saved in the cache have kept the same
  1093. # value.
  1094. ac_cache_corrupted=false
  1095. for ac_var in `(set) 2>&1 |
  1096. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1097. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1098. eval ac_new_set=\$ac_env_${ac_var}_set
  1099. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1100. eval ac_new_val="\$ac_env_${ac_var}_value"
  1101. case $ac_old_set,$ac_new_set in
  1102. set,)
  1103. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1104. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1105. ac_cache_corrupted=: ;;
  1106. ,set)
  1107. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1108. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1109. ac_cache_corrupted=: ;;
  1110. ,);;
  1111. *)
  1112. if test "x$ac_old_val" != "x$ac_new_val"; then
  1113. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1114. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1115. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1116. echo "$as_me: former value: $ac_old_val" >&2;}
  1117. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1118. echo "$as_me: current value: $ac_new_val" >&2;}
  1119. ac_cache_corrupted=:
  1120. fi;;
  1121. esac
  1122. # Pass precious variables to config.status.
  1123. if test "$ac_new_set" = set; then
  1124. case $ac_new_val in
  1125. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1126. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1127. *) ac_arg=$ac_var=$ac_new_val ;;
  1128. esac
  1129. case " $ac_configure_args " in
  1130. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1131. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1132. esac
  1133. fi
  1134. done
  1135. if $ac_cache_corrupted; then
  1136. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1137. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1138. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1139. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1140. { (exit 1); exit 1; }; }
  1141. fi
  1142. ac_ext=c
  1143. ac_cpp='$CPP $CPPFLAGS'
  1144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1147. ac_aux_dir=
  1148. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1149. if test -f $ac_dir/install-sh; then
  1150. ac_aux_dir=$ac_dir
  1151. ac_install_sh="$ac_aux_dir/install-sh -c"
  1152. break
  1153. elif test -f $ac_dir/install.sh; then
  1154. ac_aux_dir=$ac_dir
  1155. ac_install_sh="$ac_aux_dir/install.sh -c"
  1156. break
  1157. elif test -f $ac_dir/shtool; then
  1158. ac_aux_dir=$ac_dir
  1159. ac_install_sh="$ac_aux_dir/shtool install -c"
  1160. break
  1161. fi
  1162. done
  1163. if test -z "$ac_aux_dir"; then
  1164. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1165. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1166. { (exit 1); exit 1; }; }
  1167. fi
  1168. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1169. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1170. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1171. # Make sure we can run config.sub.
  1172. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1173. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1174. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1175. { (exit 1); exit 1; }; }
  1176. echo "$as_me:$LINENO: checking build system type" >&5
  1177. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1178. if test "${ac_cv_build+set}" = set; then
  1179. echo $ECHO_N "(cached) $ECHO_C" >&6
  1180. else
  1181. ac_cv_build_alias=$build_alias
  1182. test -z "$ac_cv_build_alias" &&
  1183. ac_cv_build_alias=`$ac_config_guess`
  1184. test -z "$ac_cv_build_alias" &&
  1185. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1186. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1187. { (exit 1); exit 1; }; }
  1188. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1189. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1190. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1191. { (exit 1); exit 1; }; }
  1192. fi
  1193. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1194. echo "${ECHO_T}$ac_cv_build" >&6
  1195. build=$ac_cv_build
  1196. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1197. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1198. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1199. echo "$as_me:$LINENO: checking host system type" >&5
  1200. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1201. if test "${ac_cv_host+set}" = set; then
  1202. echo $ECHO_N "(cached) $ECHO_C" >&6
  1203. else
  1204. ac_cv_host_alias=$host_alias
  1205. test -z "$ac_cv_host_alias" &&
  1206. ac_cv_host_alias=$ac_cv_build_alias
  1207. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1208. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1209. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1210. { (exit 1); exit 1; }; }
  1211. fi
  1212. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1213. echo "${ECHO_T}$ac_cv_host" >&6
  1214. host=$ac_cv_host
  1215. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1216. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1217. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1218. echo "$as_me:$LINENO: checking target system type" >&5
  1219. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1220. if test "${ac_cv_target+set}" = set; then
  1221. echo $ECHO_N "(cached) $ECHO_C" >&6
  1222. else
  1223. ac_cv_target_alias=$target_alias
  1224. test "x$ac_cv_target_alias" = "x" &&
  1225. ac_cv_target_alias=$ac_cv_host_alias
  1226. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1227. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1228. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1229. { (exit 1); exit 1; }; }
  1230. fi
  1231. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1232. echo "${ECHO_T}$ac_cv_target" >&6
  1233. target=$ac_cv_target
  1234. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1235. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1236. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1237. # The aliases save the names the user supplied, while $host etc.
  1238. # will get canonicalized.
  1239. test -n "$target_alias" &&
  1240. test "$program_prefix$program_suffix$program_transform_name" = \
  1241. NONENONEs,x,x, &&
  1242. program_prefix=${target_alias}-
  1243. am__api_version="1.9"
  1244. # Find a good install program. We prefer a C program (faster),
  1245. # so one script is as good as another. But avoid the broken or
  1246. # incompatible versions:
  1247. # SysV /etc/install, /usr/sbin/install
  1248. # SunOS /usr/etc/install
  1249. # IRIX /sbin/install
  1250. # AIX /bin/install
  1251. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1252. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1253. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1254. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1255. # OS/2's system install, which has a completely different semantic
  1256. # ./install, which can be erroneously created by make from ./install.sh.
  1257. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1258. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1259. if test -z "$INSTALL"; then
  1260. if test "${ac_cv_path_install+set}" = set; then
  1261. echo $ECHO_N "(cached) $ECHO_C" >&6
  1262. else
  1263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1264. for as_dir in $PATH
  1265. do
  1266. IFS=$as_save_IFS
  1267. test -z "$as_dir" && as_dir=.
  1268. # Account for people who put trailing slashes in PATH elements.
  1269. case $as_dir/ in
  1270. ./ | .// | /cC/* | \
  1271. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1272. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1273. /usr/ucb/* ) ;;
  1274. *)
  1275. # OSF1 and SCO ODT 3.0 have their own names for install.
  1276. # Don't use installbsd from OSF since it installs stuff as root
  1277. # by default.
  1278. for ac_prog in ginstall scoinst install; do
  1279. for ac_exec_ext in '' $ac_executable_extensions; do
  1280. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1281. if test $ac_prog = install &&
  1282. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1283. # AIX install. It has an incompatible calling convention.
  1284. :
  1285. elif test $ac_prog = install &&
  1286. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1287. # program-specific install script used by HP pwplus--don't use.
  1288. :
  1289. else
  1290. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1291. break 3
  1292. fi
  1293. fi
  1294. done
  1295. done
  1296. ;;
  1297. esac
  1298. done
  1299. fi
  1300. if test "${ac_cv_path_install+set}" = set; then
  1301. INSTALL=$ac_cv_path_install
  1302. else
  1303. # As a last resort, use the slow shell script. We don't cache a
  1304. # path for INSTALL within a source directory, because that will
  1305. # break other packages using the cache if that directory is
  1306. # removed, or if the path is relative.
  1307. INSTALL=$ac_install_sh
  1308. fi
  1309. fi
  1310. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1311. echo "${ECHO_T}$INSTALL" >&6
  1312. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1313. # It thinks the first close brace ends the variable substitution.
  1314. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1315. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1316. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1317. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1318. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1319. # Just in case
  1320. sleep 1
  1321. echo timestamp > conftest.file
  1322. # Do `set' in a subshell so we don't clobber the current shell's
  1323. # arguments. Must try -L first in case configure is actually a
  1324. # symlink; some systems play weird games with the mod time of symlinks
  1325. # (eg FreeBSD returns the mod time of the symlink's containing
  1326. # directory).
  1327. if (
  1328. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1329. if test "$*" = "X"; then
  1330. # -L didn't work.
  1331. set X `ls -t $srcdir/configure conftest.file`
  1332. fi
  1333. rm -f conftest.file
  1334. if test "$*" != "X $srcdir/configure conftest.file" \
  1335. && test "$*" != "X conftest.file $srcdir/configure"; then
  1336. # If neither matched, then we have a broken ls. This can happen
  1337. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1338. # broken ls alias from the environment. This has actually
  1339. # happened. Such a system could not be considered "sane".
  1340. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1341. alias in your environment" >&5
  1342. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1343. alias in your environment" >&2;}
  1344. { (exit 1); exit 1; }; }
  1345. fi
  1346. test "$2" = conftest.file
  1347. )
  1348. then
  1349. # Ok.
  1350. :
  1351. else
  1352. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1353. Check your system clock" >&5
  1354. echo "$as_me: error: newly created file is older than distributed files!
  1355. Check your system clock" >&2;}
  1356. { (exit 1); exit 1; }; }
  1357. fi
  1358. echo "$as_me:$LINENO: result: yes" >&5
  1359. echo "${ECHO_T}yes" >&6
  1360. test "$program_prefix" != NONE &&
  1361. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1362. # Use a double $ so make ignores it.
  1363. test "$program_suffix" != NONE &&
  1364. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1365. # Double any \ or $. echo might interpret backslashes.
  1366. # By default was `s,x,x', remove it if useless.
  1367. cat <<\_ACEOF >conftest.sed
  1368. s/[\\$]/&&/g;s/;s,x,x,$//
  1369. _ACEOF
  1370. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1371. rm conftest.sed
  1372. # expand $ac_aux_dir to an absolute path
  1373. am_aux_dir=`cd $ac_aux_dir && pwd`
  1374. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1375. # Use eval to expand $SHELL
  1376. if eval "$MISSING --run true"; then
  1377. am_missing_run="$MISSING --run "
  1378. else
  1379. am_missing_run=
  1380. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1381. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1382. fi
  1383. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1384. # We used to keeping the `.' as first argument, in order to
  1385. # allow $(mkdir_p) to be used without argument. As in
  1386. # $(mkdir_p) $(somedir)
  1387. # where $(somedir) is conditionally defined. However this is wrong
  1388. # for two reasons:
  1389. # 1. if the package is installed by a user who cannot write `.'
  1390. # make install will fail,
  1391. # 2. the above comment should most certainly read
  1392. # $(mkdir_p) $(DESTDIR)$(somedir)
  1393. # so it does not work when $(somedir) is undefined and
  1394. # $(DESTDIR) is not.
  1395. # To support the latter case, we have to write
  1396. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1397. # so the `.' trick is pointless.
  1398. mkdir_p='mkdir -p --'
  1399. else
  1400. # On NextStep and OpenStep, the `mkdir' command does not
  1401. # recognize any option. It will interpret all options as
  1402. # directories to create, and then abort because `.' already
  1403. # exists.
  1404. for d in ./-p ./--version;
  1405. do
  1406. test -d $d && rmdir $d
  1407. done
  1408. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1409. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1410. mkdir_p='$(mkinstalldirs)'
  1411. else
  1412. mkdir_p='$(install_sh) -d'
  1413. fi
  1414. fi
  1415. for ac_prog in gawk mawk nawk awk
  1416. do
  1417. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1418. set dummy $ac_prog; ac_word=$2
  1419. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1420. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1421. if test "${ac_cv_prog_AWK+set}" = set; then
  1422. echo $ECHO_N "(cached) $ECHO_C" >&6
  1423. else
  1424. if test -n "$AWK"; then
  1425. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1426. else
  1427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1428. for as_dir in $PATH
  1429. do
  1430. IFS=$as_save_IFS
  1431. test -z "$as_dir" && as_dir=.
  1432. for ac_exec_ext in '' $ac_executable_extensions; do
  1433. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1434. ac_cv_prog_AWK="$ac_prog"
  1435. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1436. break 2
  1437. fi
  1438. done
  1439. done
  1440. fi
  1441. fi
  1442. AWK=$ac_cv_prog_AWK
  1443. if test -n "$AWK"; then
  1444. echo "$as_me:$LINENO: result: $AWK" >&5
  1445. echo "${ECHO_T}$AWK" >&6
  1446. else
  1447. echo "$as_me:$LINENO: result: no" >&5
  1448. echo "${ECHO_T}no" >&6
  1449. fi
  1450. test -n "$AWK" && break
  1451. done
  1452. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1453. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1454. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1455. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1456. echo $ECHO_N "(cached) $ECHO_C" >&6
  1457. else
  1458. cat >conftest.make <<\_ACEOF
  1459. all:
  1460. @echo 'ac_maketemp="$(MAKE)"'
  1461. _ACEOF
  1462. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1463. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1464. if test -n "$ac_maketemp"; then
  1465. eval ac_cv_prog_make_${ac_make}_set=yes
  1466. else
  1467. eval ac_cv_prog_make_${ac_make}_set=no
  1468. fi
  1469. rm -f conftest.make
  1470. fi
  1471. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1472. echo "$as_me:$LINENO: result: yes" >&5
  1473. echo "${ECHO_T}yes" >&6
  1474. SET_MAKE=
  1475. else
  1476. echo "$as_me:$LINENO: result: no" >&5
  1477. echo "${ECHO_T}no" >&6
  1478. SET_MAKE="MAKE=${MAKE-make}"
  1479. fi
  1480. rm -rf .tst 2>/dev/null
  1481. mkdir .tst 2>/dev/null
  1482. if test -d .tst; then
  1483. am__leading_dot=.
  1484. else
  1485. am__leading_dot=_
  1486. fi
  1487. rmdir .tst 2>/dev/null
  1488. # test to see if srcdir already configured
  1489. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1490. test -f $srcdir/config.status; then
  1491. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1492. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1493. { (exit 1); exit 1; }; }
  1494. fi
  1495. # test whether we have cygpath
  1496. if test -z "$CYGPATH_W"; then
  1497. if (cygpath --version) >/dev/null 2>/dev/null; then
  1498. CYGPATH_W='cygpath -w'
  1499. else
  1500. CYGPATH_W=echo
  1501. fi
  1502. fi
  1503. # Define the identity of the package.
  1504. PACKAGE='ngircd'
  1505. VERSION='0.10.0'
  1506. cat >>confdefs.h <<_ACEOF
  1507. #define PACKAGE "$PACKAGE"
  1508. _ACEOF
  1509. cat >>confdefs.h <<_ACEOF
  1510. #define VERSION "$VERSION"
  1511. _ACEOF
  1512. # Some tools Automake needs.
  1513. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1514. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1515. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1516. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1517. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1518. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1519. # Installed binaries are usually stripped using `strip' when the user
  1520. # run `make install-strip'. However `strip' might not be the right
  1521. # tool to use in cross-compilation environments, therefore Automake
  1522. # will honor the `STRIP' environment variable to overrule this program.
  1523. if test "$cross_compiling" != no; then
  1524. if test -n "$ac_tool_prefix"; then
  1525. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1526. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1527. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1528. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1529. if test "${ac_cv_prog_STRIP+set}" = set; then
  1530. echo $ECHO_N "(cached) $ECHO_C" >&6
  1531. else
  1532. if test -n "$STRIP"; then
  1533. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1534. else
  1535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1536. for as_dir in $PATH
  1537. do
  1538. IFS=$as_save_IFS
  1539. test -z "$as_dir" && as_dir=.
  1540. for ac_exec_ext in '' $ac_executable_extensions; do
  1541. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1542. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1543. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1544. break 2
  1545. fi
  1546. done
  1547. done
  1548. fi
  1549. fi
  1550. STRIP=$ac_cv_prog_STRIP
  1551. if test -n "$STRIP"; then
  1552. echo "$as_me:$LINENO: result: $STRIP" >&5
  1553. echo "${ECHO_T}$STRIP" >&6
  1554. else
  1555. echo "$as_me:$LINENO: result: no" >&5
  1556. echo "${ECHO_T}no" >&6
  1557. fi
  1558. fi
  1559. if test -z "$ac_cv_prog_STRIP"; then
  1560. ac_ct_STRIP=$STRIP
  1561. # Extract the first word of "strip", so it can be a program name with args.
  1562. set dummy strip; ac_word=$2
  1563. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1564. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1565. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1566. echo $ECHO_N "(cached) $ECHO_C" >&6
  1567. else
  1568. if test -n "$ac_ct_STRIP"; then
  1569. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1570. else
  1571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1572. for as_dir in $PATH
  1573. do
  1574. IFS=$as_save_IFS
  1575. test -z "$as_dir" && as_dir=.
  1576. for ac_exec_ext in '' $ac_executable_extensions; do
  1577. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1578. ac_cv_prog_ac_ct_STRIP="strip"
  1579. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1580. break 2
  1581. fi
  1582. done
  1583. done
  1584. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1585. fi
  1586. fi
  1587. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1588. if test -n "$ac_ct_STRIP"; then
  1589. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1590. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1591. else
  1592. echo "$as_me:$LINENO: result: no" >&5
  1593. echo "${ECHO_T}no" >&6
  1594. fi
  1595. STRIP=$ac_ct_STRIP
  1596. else
  1597. STRIP="$ac_cv_prog_STRIP"
  1598. fi
  1599. fi
  1600. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1601. # We need awk for the "check" target. The system "awk" is bad on
  1602. # some platforms.
  1603. # Always define AMTAR for backward compatibility.
  1604. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1605. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1606. ac_config_headers="$ac_config_headers src/config.h"
  1607. # -- Templates for config.h --
  1608. # -- C Compiler --
  1609. ac_ext=c
  1610. ac_cpp='$CPP $CPPFLAGS'
  1611. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1612. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1613. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1614. if test -n "$ac_tool_prefix"; then
  1615. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1616. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1617. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1618. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1619. if test "${ac_cv_prog_CC+set}" = set; then
  1620. echo $ECHO_N "(cached) $ECHO_C" >&6
  1621. else
  1622. if test -n "$CC"; then
  1623. ac_cv_prog_CC="$CC" # Let the user override the test.
  1624. else
  1625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1626. for as_dir in $PATH
  1627. do
  1628. IFS=$as_save_IFS
  1629. test -z "$as_dir" && as_dir=.
  1630. for ac_exec_ext in '' $ac_executable_extensions; do
  1631. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1632. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1633. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1634. break 2
  1635. fi
  1636. done
  1637. done
  1638. fi
  1639. fi
  1640. CC=$ac_cv_prog_CC
  1641. if test -n "$CC"; then
  1642. echo "$as_me:$LINENO: result: $CC" >&5
  1643. echo "${ECHO_T}$CC" >&6
  1644. else
  1645. echo "$as_me:$LINENO: result: no" >&5
  1646. echo "${ECHO_T}no" >&6
  1647. fi
  1648. fi
  1649. if test -z "$ac_cv_prog_CC"; then
  1650. ac_ct_CC=$CC
  1651. # Extract the first word of "gcc", so it can be a program name with args.
  1652. set dummy gcc; ac_word=$2
  1653. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1654. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1655. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1656. echo $ECHO_N "(cached) $ECHO_C" >&6
  1657. else
  1658. if test -n "$ac_ct_CC"; then
  1659. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1660. else
  1661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1662. for as_dir in $PATH
  1663. do
  1664. IFS=$as_save_IFS
  1665. test -z "$as_dir" && as_dir=.
  1666. for ac_exec_ext in '' $ac_executable_extensions; do
  1667. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1668. ac_cv_prog_ac_ct_CC="gcc"
  1669. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1670. break 2
  1671. fi
  1672. done
  1673. done
  1674. fi
  1675. fi
  1676. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1677. if test -n "$ac_ct_CC"; then
  1678. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1679. echo "${ECHO_T}$ac_ct_CC" >&6
  1680. else
  1681. echo "$as_me:$LINENO: result: no" >&5
  1682. echo "${ECHO_T}no" >&6
  1683. fi
  1684. CC=$ac_ct_CC
  1685. else
  1686. CC="$ac_cv_prog_CC"
  1687. fi
  1688. if test -z "$CC"; then
  1689. if test -n "$ac_tool_prefix"; then
  1690. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1691. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1692. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1693. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1694. if test "${ac_cv_prog_CC+set}" = set; then
  1695. echo $ECHO_N "(cached) $ECHO_C" >&6
  1696. else
  1697. if test -n "$CC"; then
  1698. ac_cv_prog_CC="$CC" # Let the user override the test.
  1699. else
  1700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1701. for as_dir in $PATH
  1702. do
  1703. IFS=$as_save_IFS
  1704. test -z "$as_dir" && as_dir=.
  1705. for ac_exec_ext in '' $ac_executable_extensions; do
  1706. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1707. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1708. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1709. break 2
  1710. fi
  1711. done
  1712. done
  1713. fi
  1714. fi
  1715. CC=$ac_cv_prog_CC
  1716. if test -n "$CC"; then
  1717. echo "$as_me:$LINENO: result: $CC" >&5
  1718. echo "${ECHO_T}$CC" >&6
  1719. else
  1720. echo "$as_me:$LINENO: result: no" >&5
  1721. echo "${ECHO_T}no" >&6
  1722. fi
  1723. fi
  1724. if test -z "$ac_cv_prog_CC"; then
  1725. ac_ct_CC=$CC
  1726. # Extract the first word of "cc", so it can be a program name with args.
  1727. set dummy cc; ac_word=$2
  1728. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1729. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1730. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1731. echo $ECHO_N "(cached) $ECHO_C" >&6
  1732. else
  1733. if test -n "$ac_ct_CC"; then
  1734. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1735. else
  1736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1737. for as_dir in $PATH
  1738. do
  1739. IFS=$as_save_IFS
  1740. test -z "$as_dir" && as_dir=.
  1741. for ac_exec_ext in '' $ac_executable_extensions; do
  1742. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1743. ac_cv_prog_ac_ct_CC="cc"
  1744. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1745. break 2
  1746. fi
  1747. done
  1748. done
  1749. fi
  1750. fi
  1751. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1752. if test -n "$ac_ct_CC"; then
  1753. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1754. echo "${ECHO_T}$ac_ct_CC" >&6
  1755. else
  1756. echo "$as_me:$LINENO: result: no" >&5
  1757. echo "${ECHO_T}no" >&6
  1758. fi
  1759. CC=$ac_ct_CC
  1760. else
  1761. CC="$ac_cv_prog_CC"
  1762. fi
  1763. fi
  1764. if test -z "$CC"; then
  1765. # Extract the first word of "cc", so it can be a program name with args.
  1766. set dummy cc; ac_word=$2
  1767. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1768. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1769. if test "${ac_cv_prog_CC+set}" = set; then
  1770. echo $ECHO_N "(cached) $ECHO_C" >&6
  1771. else
  1772. if test -n "$CC"; then
  1773. ac_cv_prog_CC="$CC" # Let the user override the test.
  1774. else
  1775. ac_prog_rejected=no
  1776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1777. for as_dir in $PATH
  1778. do
  1779. IFS=$as_save_IFS
  1780. test -z "$as_dir" && as_dir=.
  1781. for ac_exec_ext in '' $ac_executable_extensions; do
  1782. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1783. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1784. ac_prog_rejected=yes
  1785. continue
  1786. fi
  1787. ac_cv_prog_CC="cc"
  1788. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1789. break 2
  1790. fi
  1791. done
  1792. done
  1793. if test $ac_prog_rejected = yes; then
  1794. # We found a bogon in the path, so make sure we never use it.
  1795. set dummy $ac_cv_prog_CC
  1796. shift
  1797. if test $# != 0; then
  1798. # We chose a different compiler from the bogus one.
  1799. # However, it has the same basename, so the bogon will be chosen
  1800. # first if we set CC to just the basename; use the full file name.
  1801. shift
  1802. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1803. fi
  1804. fi
  1805. fi
  1806. fi
  1807. CC=$ac_cv_prog_CC
  1808. if test -n "$CC"; then
  1809. echo "$as_me:$LINENO: result: $CC" >&5
  1810. echo "${ECHO_T}$CC" >&6
  1811. else
  1812. echo "$as_me:$LINENO: result: no" >&5
  1813. echo "${ECHO_T}no" >&6
  1814. fi
  1815. fi
  1816. if test -z "$CC"; then
  1817. if test -n "$ac_tool_prefix"; then
  1818. for ac_prog in cl
  1819. do
  1820. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1821. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1822. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1823. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1824. if test "${ac_cv_prog_CC+set}" = set; then
  1825. echo $ECHO_N "(cached) $ECHO_C" >&6
  1826. else
  1827. if test -n "$CC"; then
  1828. ac_cv_prog_CC="$CC" # Let the user override the test.
  1829. else
  1830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1831. for as_dir in $PATH
  1832. do
  1833. IFS=$as_save_IFS
  1834. test -z "$as_dir" && as_dir=.
  1835. for ac_exec_ext in '' $ac_executable_extensions; do
  1836. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1837. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1838. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1839. break 2
  1840. fi
  1841. done
  1842. done
  1843. fi
  1844. fi
  1845. CC=$ac_cv_prog_CC
  1846. if test -n "$CC"; then
  1847. echo "$as_me:$LINENO: result: $CC" >&5
  1848. echo "${ECHO_T}$CC" >&6
  1849. else
  1850. echo "$as_me:$LINENO: result: no" >&5
  1851. echo "${ECHO_T}no" >&6
  1852. fi
  1853. test -n "$CC" && break
  1854. done
  1855. fi
  1856. if test -z "$CC"; then
  1857. ac_ct_CC=$CC
  1858. for ac_prog in cl
  1859. do
  1860. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1861. set dummy $ac_prog; ac_word=$2
  1862. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1863. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1864. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1865. echo $ECHO_N "(cached) $ECHO_C" >&6
  1866. else
  1867. if test -n "$ac_ct_CC"; then
  1868. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1869. else
  1870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1871. for as_dir in $PATH
  1872. do
  1873. IFS=$as_save_IFS
  1874. test -z "$as_dir" && as_dir=.
  1875. for ac_exec_ext in '' $ac_executable_extensions; do
  1876. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1877. ac_cv_prog_ac_ct_CC="$ac_prog"
  1878. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1879. break 2
  1880. fi
  1881. done
  1882. done
  1883. fi
  1884. fi
  1885. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1886. if test -n "$ac_ct_CC"; then
  1887. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1888. echo "${ECHO_T}$ac_ct_CC" >&6
  1889. else
  1890. echo "$as_me:$LINENO: result: no" >&5
  1891. echo "${ECHO_T}no" >&6
  1892. fi
  1893. test -n "$ac_ct_CC" && break
  1894. done
  1895. CC=$ac_ct_CC
  1896. fi
  1897. fi
  1898. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1899. See \`config.log' for more details." >&5
  1900. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1901. See \`config.log' for more details." >&2;}
  1902. { (exit 1); exit 1; }; }
  1903. # Provide some information about the compiler.
  1904. echo "$as_me:$LINENO:" \
  1905. "checking for C compiler version" >&5
  1906. ac_compiler=`set X $ac_compile; echo $2`
  1907. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1908. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1909. ac_status=$?
  1910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1911. (exit $ac_status); }
  1912. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1913. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1914. ac_status=$?
  1915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1916. (exit $ac_status); }
  1917. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1918. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1919. ac_status=$?
  1920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1921. (exit $ac_status); }
  1922. cat >conftest.$ac_ext <<_ACEOF
  1923. /* confdefs.h. */
  1924. _ACEOF
  1925. cat confdefs.h >>conftest.$ac_ext
  1926. cat >>conftest.$ac_ext <<_ACEOF
  1927. /* end confdefs.h. */
  1928. int
  1929. main ()
  1930. {
  1931. ;
  1932. return 0;
  1933. }
  1934. _ACEOF
  1935. ac_clean_files_save=$ac_clean_files
  1936. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1937. # Try to create an executable without -o first, disregard a.out.
  1938. # It will help us diagnose broken compilers, and finding out an intuition
  1939. # of exeext.
  1940. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1941. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1942. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1943. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1944. (eval $ac_link_default) 2>&5
  1945. ac_status=$?
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); }; then
  1948. # Find the output, starting from the most likely. This scheme is
  1949. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1950. # resort.
  1951. # Be careful to initialize this variable, since it used to be cached.
  1952. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1953. ac_cv_exeext=
  1954. # b.out is created by i960 compilers.
  1955. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1956. do
  1957. test -f "$ac_file" || continue
  1958. case $ac_file in
  1959. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1960. ;;
  1961. conftest.$ac_ext )
  1962. # This is the source file.
  1963. ;;
  1964. [ab].out )
  1965. # We found the default executable, but exeext='' is most
  1966. # certainly right.
  1967. break;;
  1968. *.* )
  1969. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1970. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1971. # but it would be cool to find out if it's true. Does anybody
  1972. # maintain Libtool? --akim.
  1973. export ac_cv_exeext
  1974. break;;
  1975. * )
  1976. break;;
  1977. esac
  1978. done
  1979. else
  1980. echo "$as_me: failed program was:" >&5
  1981. sed 's/^/| /' conftest.$ac_ext >&5
  1982. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1983. See \`config.log' for more details." >&5
  1984. echo "$as_me: error: C compiler cannot create executables
  1985. See \`config.log' for more details." >&2;}
  1986. { (exit 77); exit 77; }; }
  1987. fi
  1988. ac_exeext=$ac_cv_exeext
  1989. echo "$as_me:$LINENO: result: $ac_file" >&5
  1990. echo "${ECHO_T}$ac_file" >&6
  1991. # Check the compiler produces executables we can run. If not, either
  1992. # the compiler is broken, or we cross compile.
  1993. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1994. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1995. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1996. # If not cross compiling, check that we can run a simple program.
  1997. if test "$cross_compiling" != yes; then
  1998. if { ac_try='./$ac_file'
  1999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2000. (eval $ac_try) 2>&5
  2001. ac_status=$?
  2002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2003. (exit $ac_status); }; }; then
  2004. cross_compiling=no
  2005. else
  2006. if test "$cross_compiling" = maybe; then
  2007. cross_compiling=yes
  2008. else
  2009. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2010. If you meant to cross compile, use \`--host'.
  2011. See \`config.log' for more details." >&5
  2012. echo "$as_me: error: cannot run C compiled programs.
  2013. If you meant to cross compile, use \`--host'.
  2014. See \`config.log' for more details." >&2;}
  2015. { (exit 1); exit 1; }; }
  2016. fi
  2017. fi
  2018. fi
  2019. echo "$as_me:$LINENO: result: yes" >&5
  2020. echo "${ECHO_T}yes" >&6
  2021. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2022. ac_clean_files=$ac_clean_files_save
  2023. # Check the compiler produces executables we can run. If not, either
  2024. # the compiler is broken, or we cross compile.
  2025. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2026. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2027. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2028. echo "${ECHO_T}$cross_compiling" >&6
  2029. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2030. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2031. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2032. (eval $ac_link) 2>&5
  2033. ac_status=$?
  2034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2035. (exit $ac_status); }; then
  2036. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2037. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2038. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2039. # `rm'.
  2040. for ac_file in conftest.exe conftest conftest.*; do
  2041. test -f "$ac_file" || continue
  2042. case $ac_file in
  2043. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2044. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2045. export ac_cv_exeext
  2046. break;;
  2047. * ) break;;
  2048. esac
  2049. done
  2050. else
  2051. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2052. See \`config.log' for more details." >&5
  2053. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2054. See \`config.log' for more details." >&2;}
  2055. { (exit 1); exit 1; }; }
  2056. fi
  2057. rm -f conftest$ac_cv_exeext
  2058. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2059. echo "${ECHO_T}$ac_cv_exeext" >&6
  2060. rm -f conftest.$ac_ext
  2061. EXEEXT=$ac_cv_exeext
  2062. ac_exeext=$EXEEXT
  2063. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2064. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2065. if test "${ac_cv_objext+set}" = set; then
  2066. echo $ECHO_N "(cached) $ECHO_C" >&6
  2067. else
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. int
  2075. main ()
  2076. {
  2077. ;
  2078. return 0;
  2079. }
  2080. _ACEOF
  2081. rm -f conftest.o conftest.obj
  2082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2083. (eval $ac_compile) 2>&5
  2084. ac_status=$?
  2085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2086. (exit $ac_status); }; then
  2087. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2088. case $ac_file in
  2089. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2090. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2091. break;;
  2092. esac
  2093. done
  2094. else
  2095. echo "$as_me: failed program was:" >&5
  2096. sed 's/^/| /' conftest.$ac_ext >&5
  2097. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2098. See \`config.log' for more details." >&5
  2099. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2100. See \`config.log' for more details." >&2;}
  2101. { (exit 1); exit 1; }; }
  2102. fi
  2103. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2104. fi
  2105. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2106. echo "${ECHO_T}$ac_cv_objext" >&6
  2107. OBJEXT=$ac_cv_objext
  2108. ac_objext=$OBJEXT
  2109. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2110. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2111. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2112. echo $ECHO_N "(cached) $ECHO_C" >&6
  2113. else
  2114. cat >conftest.$ac_ext <<_ACEOF
  2115. /* confdefs.h. */
  2116. _ACEOF
  2117. cat confdefs.h >>conftest.$ac_ext
  2118. cat >>conftest.$ac_ext <<_ACEOF
  2119. /* end confdefs.h. */
  2120. int
  2121. main ()
  2122. {
  2123. #ifndef __GNUC__
  2124. choke me
  2125. #endif
  2126. ;
  2127. return 0;
  2128. }
  2129. _ACEOF
  2130. rm -f conftest.$ac_objext
  2131. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2132. (eval $ac_compile) 2>conftest.er1
  2133. ac_status=$?
  2134. grep -v '^ *+' conftest.er1 >conftest.err
  2135. rm -f conftest.er1
  2136. cat conftest.err >&5
  2137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2138. (exit $ac_status); } &&
  2139. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2141. (eval $ac_try) 2>&5
  2142. ac_status=$?
  2143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2144. (exit $ac_status); }; } &&
  2145. { ac_try='test -s conftest.$ac_objext'
  2146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2147. (eval $ac_try) 2>&5
  2148. ac_status=$?
  2149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2150. (exit $ac_status); }; }; then
  2151. ac_compiler_gnu=yes
  2152. else
  2153. echo "$as_me: failed program was:" >&5
  2154. sed 's/^/| /' conftest.$ac_ext >&5
  2155. ac_compiler_gnu=no
  2156. fi
  2157. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2158. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2159. fi
  2160. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2161. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2162. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2163. ac_test_CFLAGS=${CFLAGS+set}
  2164. ac_save_CFLAGS=$CFLAGS
  2165. CFLAGS="-g"
  2166. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2167. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2168. if test "${ac_cv_prog_cc_g+set}" = set; then
  2169. echo $ECHO_N "(cached) $ECHO_C" >&6
  2170. else
  2171. cat >conftest.$ac_ext <<_ACEOF
  2172. /* confdefs.h. */
  2173. _ACEOF
  2174. cat confdefs.h >>conftest.$ac_ext
  2175. cat >>conftest.$ac_ext <<_ACEOF
  2176. /* end confdefs.h. */
  2177. int
  2178. main ()
  2179. {
  2180. ;
  2181. return 0;
  2182. }
  2183. _ACEOF
  2184. rm -f conftest.$ac_objext
  2185. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2186. (eval $ac_compile) 2>conftest.er1
  2187. ac_status=$?
  2188. grep -v '^ *+' conftest.er1 >conftest.err
  2189. rm -f conftest.er1
  2190. cat conftest.err >&5
  2191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2192. (exit $ac_status); } &&
  2193. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2195. (eval $ac_try) 2>&5
  2196. ac_status=$?
  2197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2198. (exit $ac_status); }; } &&
  2199. { ac_try='test -s conftest.$ac_objext'
  2200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2201. (eval $ac_try) 2>&5
  2202. ac_status=$?
  2203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2204. (exit $ac_status); }; }; then
  2205. ac_cv_prog_cc_g=yes
  2206. else
  2207. echo "$as_me: failed program was:" >&5
  2208. sed 's/^/| /' conftest.$ac_ext >&5
  2209. ac_cv_prog_cc_g=no
  2210. fi
  2211. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2212. fi
  2213. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2214. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2215. if test "$ac_test_CFLAGS" = set; then
  2216. CFLAGS=$ac_save_CFLAGS
  2217. elif test $ac_cv_prog_cc_g = yes; then
  2218. if test "$GCC" = yes; then
  2219. CFLAGS="-g -O2"
  2220. else
  2221. CFLAGS="-g"
  2222. fi
  2223. else
  2224. if test "$GCC" = yes; then
  2225. CFLAGS="-O2"
  2226. else
  2227. CFLAGS=
  2228. fi
  2229. fi
  2230. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2231. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2232. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2233. echo $ECHO_N "(cached) $ECHO_C" >&6
  2234. else
  2235. ac_cv_prog_cc_stdc=no
  2236. ac_save_CC=$CC
  2237. cat >conftest.$ac_ext <<_ACEOF
  2238. /* confdefs.h. */
  2239. _ACEOF
  2240. cat confdefs.h >>conftest.$ac_ext
  2241. cat >>conftest.$ac_ext <<_ACEOF
  2242. /* end confdefs.h. */
  2243. #include <stdarg.h>
  2244. #include <stdio.h>
  2245. #include <sys/types.h>
  2246. #include <sys/stat.h>
  2247. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2248. struct buf { int x; };
  2249. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2250. static char *e (p, i)
  2251. char **p;
  2252. int i;
  2253. {
  2254. return p[i];
  2255. }
  2256. static char *f (char * (*g) (char **, int), char **p, ...)
  2257. {
  2258. char *s;
  2259. va_list v;
  2260. va_start (v,p);
  2261. s = g (p, va_arg (v,int));
  2262. va_end (v);
  2263. return s;
  2264. }
  2265. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2266. function prototypes and stuff, but not '\xHH' hex character constants.
  2267. These don't provoke an error unfortunately, instead are silently treated
  2268. as 'x'. The following induces an error, until -std1 is added to get
  2269. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2270. array size at least. It's necessary to write '\x00'==0 to get something
  2271. that's true only with -std1. */
  2272. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2273. int test (int i, double x);
  2274. struct s1 {int (*f) (int a);};
  2275. struct s2 {int (*f) (double a);};
  2276. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2277. int argc;
  2278. char **argv;
  2279. int
  2280. main ()
  2281. {
  2282. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2283. ;
  2284. return 0;
  2285. }
  2286. _ACEOF
  2287. # Don't try gcc -ansi; that turns off useful extensions and
  2288. # breaks some systems' header files.
  2289. # AIX -qlanglvl=ansi
  2290. # Ultrix and OSF/1 -std1
  2291. # HP-UX 10.20 and later -Ae
  2292. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2293. # SVR4 -Xc -D__EXTENSIONS__
  2294. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2295. do
  2296. CC="$ac_save_CC $ac_arg"
  2297. rm -f conftest.$ac_objext
  2298. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2299. (eval $ac_compile) 2>conftest.er1
  2300. ac_status=$?
  2301. grep -v '^ *+' conftest.er1 >conftest.err
  2302. rm -f conftest.er1
  2303. cat conftest.err >&5
  2304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2305. (exit $ac_status); } &&
  2306. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2308. (eval $ac_try) 2>&5
  2309. ac_status=$?
  2310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2311. (exit $ac_status); }; } &&
  2312. { ac_try='test -s conftest.$ac_objext'
  2313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2314. (eval $ac_try) 2>&5
  2315. ac_status=$?
  2316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2317. (exit $ac_status); }; }; then
  2318. ac_cv_prog_cc_stdc=$ac_arg
  2319. break
  2320. else
  2321. echo "$as_me: failed program was:" >&5
  2322. sed 's/^/| /' conftest.$ac_ext >&5
  2323. fi
  2324. rm -f conftest.err conftest.$ac_objext
  2325. done
  2326. rm -f conftest.$ac_ext conftest.$ac_objext
  2327. CC=$ac_save_CC
  2328. fi
  2329. case "x$ac_cv_prog_cc_stdc" in
  2330. x|xno)
  2331. echo "$as_me:$LINENO: result: none needed" >&5
  2332. echo "${ECHO_T}none needed" >&6 ;;
  2333. *)
  2334. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2335. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2336. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2337. esac
  2338. # Some people use a C++ compiler to compile C. Since we use `exit',
  2339. # in C++ we need to declare it. In case someone uses the same compiler
  2340. # for both compiling C and C++ we need to have the C++ compiler decide
  2341. # the declaration of exit, since it's the most demanding environment.
  2342. cat >conftest.$ac_ext <<_ACEOF
  2343. #ifndef __cplusplus
  2344. choke me
  2345. #endif
  2346. _ACEOF
  2347. rm -f conftest.$ac_objext
  2348. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2349. (eval $ac_compile) 2>conftest.er1
  2350. ac_status=$?
  2351. grep -v '^ *+' conftest.er1 >conftest.err
  2352. rm -f conftest.er1
  2353. cat conftest.err >&5
  2354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2355. (exit $ac_status); } &&
  2356. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2358. (eval $ac_try) 2>&5
  2359. ac_status=$?
  2360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2361. (exit $ac_status); }; } &&
  2362. { ac_try='test -s conftest.$ac_objext'
  2363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2364. (eval $ac_try) 2>&5
  2365. ac_status=$?
  2366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2367. (exit $ac_status); }; }; then
  2368. for ac_declaration in \
  2369. '' \
  2370. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2371. 'extern "C" void std::exit (int); using std::exit;' \
  2372. 'extern "C" void exit (int) throw ();' \
  2373. 'extern "C" void exit (int);' \
  2374. 'void exit (int);'
  2375. do
  2376. cat >conftest.$ac_ext <<_ACEOF
  2377. /* confdefs.h. */
  2378. _ACEOF
  2379. cat confdefs.h >>conftest.$ac_ext
  2380. cat >>conftest.$ac_ext <<_ACEOF
  2381. /* end confdefs.h. */
  2382. $ac_declaration
  2383. #include <stdlib.h>
  2384. int
  2385. main ()
  2386. {
  2387. exit (42);
  2388. ;
  2389. return 0;
  2390. }
  2391. _ACEOF
  2392. rm -f conftest.$ac_objext
  2393. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2394. (eval $ac_compile) 2>conftest.er1
  2395. ac_status=$?
  2396. grep -v '^ *+' conftest.er1 >conftest.err
  2397. rm -f conftest.er1
  2398. cat conftest.err >&5
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); } &&
  2401. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2403. (eval $ac_try) 2>&5
  2404. ac_status=$?
  2405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2406. (exit $ac_status); }; } &&
  2407. { ac_try='test -s conftest.$ac_objext'
  2408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2409. (eval $ac_try) 2>&5
  2410. ac_status=$?
  2411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2412. (exit $ac_status); }; }; then
  2413. :
  2414. else
  2415. echo "$as_me: failed program was:" >&5
  2416. sed 's/^/| /' conftest.$ac_ext >&5
  2417. continue
  2418. fi
  2419. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2420. cat >conftest.$ac_ext <<_ACEOF
  2421. /* confdefs.h. */
  2422. _ACEOF
  2423. cat confdefs.h >>conftest.$ac_ext
  2424. cat >>conftest.$ac_ext <<_ACEOF
  2425. /* end confdefs.h. */
  2426. $ac_declaration
  2427. int
  2428. main ()
  2429. {
  2430. exit (42);
  2431. ;
  2432. return 0;
  2433. }
  2434. _ACEOF
  2435. rm -f conftest.$ac_objext
  2436. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2437. (eval $ac_compile) 2>conftest.er1
  2438. ac_status=$?
  2439. grep -v '^ *+' conftest.er1 >conftest.err
  2440. rm -f conftest.er1
  2441. cat conftest.err >&5
  2442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2443. (exit $ac_status); } &&
  2444. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2446. (eval $ac_try) 2>&5
  2447. ac_status=$?
  2448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2449. (exit $ac_status); }; } &&
  2450. { ac_try='test -s conftest.$ac_objext'
  2451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2452. (eval $ac_try) 2>&5
  2453. ac_status=$?
  2454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2455. (exit $ac_status); }; }; then
  2456. break
  2457. else
  2458. echo "$as_me: failed program was:" >&5
  2459. sed 's/^/| /' conftest.$ac_ext >&5
  2460. fi
  2461. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2462. done
  2463. rm -f conftest*
  2464. if test -n "$ac_declaration"; then
  2465. echo '#ifdef __cplusplus' >>confdefs.h
  2466. echo $ac_declaration >>confdefs.h
  2467. echo '#endif' >>confdefs.h
  2468. fi
  2469. else
  2470. echo "$as_me: failed program was:" >&5
  2471. sed 's/^/| /' conftest.$ac_ext >&5
  2472. fi
  2473. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2474. ac_ext=c
  2475. ac_cpp='$CPP $CPPFLAGS'
  2476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2479. DEPDIR="${am__leading_dot}deps"
  2480. ac_config_commands="$ac_config_commands depfiles"
  2481. am_make=${MAKE-make}
  2482. cat > confinc << 'END'
  2483. am__doit:
  2484. @echo done
  2485. .PHONY: am__doit
  2486. END
  2487. # If we don't find an include directive, just comment out the code.
  2488. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2489. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2490. am__include="#"
  2491. am__quote=
  2492. _am_result=none
  2493. # First try GNU make style include.
  2494. echo "include confinc" > confmf
  2495. # We grep out `Entering directory' and `Leaving directory'
  2496. # messages which can occur if `w' ends up in MAKEFLAGS.
  2497. # In particular we don't look at `^make:' because GNU make might
  2498. # be invoked under some other name (usually "gmake"), in which
  2499. # case it prints its new name instead of `make'.
  2500. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2501. am__include=include
  2502. am__quote=
  2503. _am_result=GNU
  2504. fi
  2505. # Now try BSD make style include.
  2506. if test "$am__include" = "#"; then
  2507. echo '.include "confinc"' > confmf
  2508. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2509. am__include=.include
  2510. am__quote="\""
  2511. _am_result=BSD
  2512. fi
  2513. fi
  2514. echo "$as_me:$LINENO: result: $_am_result" >&5
  2515. echo "${ECHO_T}$_am_result" >&6
  2516. rm -f confinc confmf
  2517. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2518. if test "${enable_dependency_tracking+set}" = set; then
  2519. enableval="$enable_dependency_tracking"
  2520. fi;
  2521. if test "x$enable_dependency_tracking" != xno; then
  2522. am_depcomp="$ac_aux_dir/depcomp"
  2523. AMDEPBACKSLASH='\'
  2524. fi
  2525. if test "x$enable_dependency_tracking" != xno; then
  2526. AMDEP_TRUE=
  2527. AMDEP_FALSE='#'
  2528. else
  2529. AMDEP_TRUE='#'
  2530. AMDEP_FALSE=
  2531. fi
  2532. depcc="$CC" am_compiler_list=
  2533. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2534. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2535. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2536. echo $ECHO_N "(cached) $ECHO_C" >&6
  2537. else
  2538. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2539. # We make a subdir and do the tests there. Otherwise we can end up
  2540. # making bogus files that we don't know about and never remove. For
  2541. # instance it was reported that on HP-UX the gcc test will end up
  2542. # making a dummy file named `D' -- because `-MD' means `put the output
  2543. # in D'.
  2544. mkdir conftest.dir
  2545. # Copy depcomp to subdir because otherwise we won't find it if we're
  2546. # using a relative directory.
  2547. cp "$am_depcomp" conftest.dir
  2548. cd conftest.dir
  2549. # We will build objects and dependencies in a subdirectory because
  2550. # it helps to detect inapplicable dependency modes. For instance
  2551. # both Tru64's cc and ICC support -MD to output dependencies as a
  2552. # side effect of compilation, but ICC will put the dependencies in
  2553. # the current directory while Tru64 will put them in the object
  2554. # directory.
  2555. mkdir sub
  2556. am_cv_CC_dependencies_compiler_type=none
  2557. if test "$am_compiler_list" = ""; then
  2558. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2559. fi
  2560. for depmode in $am_compiler_list; do
  2561. # Setup a source with many dependencies, because some compilers
  2562. # like to wrap large dependency lists on column 80 (with \), and
  2563. # we should not choose a depcomp mode which is confused by this.
  2564. #
  2565. # We need to recreate these files for each test, as the compiler may
  2566. # overwrite some of them when testing with obscure command lines.
  2567. # This happens at least with the AIX C compiler.
  2568. : > sub/conftest.c
  2569. for i in 1 2 3 4 5 6; do
  2570. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2571. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2572. # Solaris 8's {/usr,}/bin/sh.
  2573. touch sub/conftst$i.h
  2574. done
  2575. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2576. case $depmode in
  2577. nosideeffect)
  2578. # after this tag, mechanisms are not by side-effect, so they'll
  2579. # only be used when explicitly requested
  2580. if test "x$enable_dependency_tracking" = xyes; then
  2581. continue
  2582. else
  2583. break
  2584. fi
  2585. ;;
  2586. none) break ;;
  2587. esac
  2588. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2589. # mode. It turns out that the SunPro C++ compiler does not properly
  2590. # handle `-M -o', and we need to detect this.
  2591. if depmode=$depmode \
  2592. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2593. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2594. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2595. >/dev/null 2>conftest.err &&
  2596. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2597. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2598. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2599. # icc doesn't choke on unknown options, it will just issue warnings
  2600. # or remarks (even with -Werror). So we grep stderr for any message
  2601. # that says an option was ignored or not supported.
  2602. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2603. # icc: Command line warning: ignoring option '-M'; no argument required
  2604. # The diagnosis changed in icc 8.0:
  2605. # icc: Command line remark: option '-MP' not supported
  2606. if (grep 'ignoring option' conftest.err ||
  2607. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2608. am_cv_CC_dependencies_compiler_type=$depmode
  2609. break
  2610. fi
  2611. fi
  2612. done
  2613. cd ..
  2614. rm -rf conftest.dir
  2615. else
  2616. am_cv_CC_dependencies_compiler_type=none
  2617. fi
  2618. fi
  2619. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2620. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2621. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2622. if
  2623. test "x$enable_dependency_tracking" != xno \
  2624. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2625. am__fastdepCC_TRUE=
  2626. am__fastdepCC_FALSE='#'
  2627. else
  2628. am__fastdepCC_TRUE='#'
  2629. am__fastdepCC_FALSE=
  2630. fi
  2631. # -- Helper programs --
  2632. for ac_prog in gawk mawk nawk awk
  2633. do
  2634. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2635. set dummy $ac_prog; ac_word=$2
  2636. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2637. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2638. if test "${ac_cv_prog_AWK+set}" = set; then
  2639. echo $ECHO_N "(cached) $ECHO_C" >&6
  2640. else
  2641. if test -n "$AWK"; then
  2642. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2643. else
  2644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2645. for as_dir in $PATH
  2646. do
  2647. IFS=$as_save_IFS
  2648. test -z "$as_dir" && as_dir=.
  2649. for ac_exec_ext in '' $ac_executable_extensions; do
  2650. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2651. ac_cv_prog_AWK="$ac_prog"
  2652. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2653. break 2
  2654. fi
  2655. done
  2656. done
  2657. fi
  2658. fi
  2659. AWK=$ac_cv_prog_AWK
  2660. if test -n "$AWK"; then
  2661. echo "$as_me:$LINENO: result: $AWK" >&5
  2662. echo "${ECHO_T}$AWK" >&6
  2663. else
  2664. echo "$as_me:$LINENO: result: no" >&5
  2665. echo "${ECHO_T}no" >&6
  2666. fi
  2667. test -n "$AWK" && break
  2668. done
  2669. # Find a good install program. We prefer a C program (faster),
  2670. # so one script is as good as another. But avoid the broken or
  2671. # incompatible versions:
  2672. # SysV /etc/install, /usr/sbin/install
  2673. # SunOS /usr/etc/install
  2674. # IRIX /sbin/install
  2675. # AIX /bin/install
  2676. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2677. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2678. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2679. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2680. # OS/2's system install, which has a completely different semantic
  2681. # ./install, which can be erroneously created by make from ./install.sh.
  2682. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2683. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2684. if test -z "$INSTALL"; then
  2685. if test "${ac_cv_path_install+set}" = set; then
  2686. echo $ECHO_N "(cached) $ECHO_C" >&6
  2687. else
  2688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2689. for as_dir in $PATH
  2690. do
  2691. IFS=$as_save_IFS
  2692. test -z "$as_dir" && as_dir=.
  2693. # Account for people who put trailing slashes in PATH elements.
  2694. case $as_dir/ in
  2695. ./ | .// | /cC/* | \
  2696. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2697. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2698. /usr/ucb/* ) ;;
  2699. *)
  2700. # OSF1 and SCO ODT 3.0 have their own names for install.
  2701. # Don't use installbsd from OSF since it installs stuff as root
  2702. # by default.
  2703. for ac_prog in ginstall scoinst install; do
  2704. for ac_exec_ext in '' $ac_executable_extensions; do
  2705. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2706. if test $ac_prog = install &&
  2707. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2708. # AIX install. It has an incompatible calling convention.
  2709. :
  2710. elif test $ac_prog = install &&
  2711. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2712. # program-specific install script used by HP pwplus--don't use.
  2713. :
  2714. else
  2715. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2716. break 3
  2717. fi
  2718. fi
  2719. done
  2720. done
  2721. ;;
  2722. esac
  2723. done
  2724. fi
  2725. if test "${ac_cv_path_install+set}" = set; then
  2726. INSTALL=$ac_cv_path_install
  2727. else
  2728. # As a last resort, use the slow shell script. We don't cache a
  2729. # path for INSTALL within a source directory, because that will
  2730. # break other packages using the cache if that directory is
  2731. # removed, or if the path is relative.
  2732. INSTALL=$ac_install_sh
  2733. fi
  2734. fi
  2735. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2736. echo "${ECHO_T}$INSTALL" >&6
  2737. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2738. # It thinks the first close brace ends the variable substitution.
  2739. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2740. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2741. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2742. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2743. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2744. LN_S=$as_ln_s
  2745. if test "$LN_S" = "ln -s"; then
  2746. echo "$as_me:$LINENO: result: yes" >&5
  2747. echo "${ECHO_T}yes" >&6
  2748. else
  2749. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2750. echo "${ECHO_T}no, using $LN_S" >&6
  2751. fi
  2752. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2753. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2754. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2755. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2756. echo $ECHO_N "(cached) $ECHO_C" >&6
  2757. else
  2758. cat >conftest.make <<\_ACEOF
  2759. all:
  2760. @echo 'ac_maketemp="$(MAKE)"'
  2761. _ACEOF
  2762. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2763. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2764. if test -n "$ac_maketemp"; then
  2765. eval ac_cv_prog_make_${ac_make}_set=yes
  2766. else
  2767. eval ac_cv_prog_make_${ac_make}_set=no
  2768. fi
  2769. rm -f conftest.make
  2770. fi
  2771. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2772. echo "$as_me:$LINENO: result: yes" >&5
  2773. echo "${ECHO_T}yes" >&6
  2774. SET_MAKE=
  2775. else
  2776. echo "$as_me:$LINENO: result: no" >&5
  2777. echo "${ECHO_T}no" >&6
  2778. SET_MAKE="MAKE=${MAKE-make}"
  2779. fi
  2780. if test -n "$ac_tool_prefix"; then
  2781. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2782. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2783. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2784. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2785. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2786. echo $ECHO_N "(cached) $ECHO_C" >&6
  2787. else
  2788. if test -n "$RANLIB"; then
  2789. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2790. else
  2791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792. for as_dir in $PATH
  2793. do
  2794. IFS=$as_save_IFS
  2795. test -z "$as_dir" && as_dir=.
  2796. for ac_exec_ext in '' $ac_executable_extensions; do
  2797. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2798. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2799. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2800. break 2
  2801. fi
  2802. done
  2803. done
  2804. fi
  2805. fi
  2806. RANLIB=$ac_cv_prog_RANLIB
  2807. if test -n "$RANLIB"; then
  2808. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2809. echo "${ECHO_T}$RANLIB" >&6
  2810. else
  2811. echo "$as_me:$LINENO: result: no" >&5
  2812. echo "${ECHO_T}no" >&6
  2813. fi
  2814. fi
  2815. if test -z "$ac_cv_prog_RANLIB"; then
  2816. ac_ct_RANLIB=$RANLIB
  2817. # Extract the first word of "ranlib", so it can be a program name with args.
  2818. set dummy ranlib; ac_word=$2
  2819. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2820. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2821. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2822. echo $ECHO_N "(cached) $ECHO_C" >&6
  2823. else
  2824. if test -n "$ac_ct_RANLIB"; then
  2825. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2826. else
  2827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2828. for as_dir in $PATH
  2829. do
  2830. IFS=$as_save_IFS
  2831. test -z "$as_dir" && as_dir=.
  2832. for ac_exec_ext in '' $ac_executable_extensions; do
  2833. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2834. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2835. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2836. break 2
  2837. fi
  2838. done
  2839. done
  2840. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2841. fi
  2842. fi
  2843. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2844. if test -n "$ac_ct_RANLIB"; then
  2845. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2846. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2847. else
  2848. echo "$as_me:$LINENO: result: no" >&5
  2849. echo "${ECHO_T}no" >&6
  2850. fi
  2851. RANLIB=$ac_ct_RANLIB
  2852. else
  2853. RANLIB="$ac_cv_prog_RANLIB"
  2854. fi
  2855. # -- Compiler Features --
  2856. echo "$as_me:$LINENO: checking for function prototypes" >&5
  2857. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  2858. if test "$ac_cv_prog_cc_stdc" != no; then
  2859. echo "$as_me:$LINENO: result: yes" >&5
  2860. echo "${ECHO_T}yes" >&6
  2861. cat >>confdefs.h <<\_ACEOF
  2862. #define PROTOTYPES 1
  2863. _ACEOF
  2864. cat >>confdefs.h <<\_ACEOF
  2865. #define __PROTOTYPES 1
  2866. _ACEOF
  2867. else
  2868. echo "$as_me:$LINENO: result: no" >&5
  2869. echo "${ECHO_T}no" >&6
  2870. fi
  2871. ac_ext=c
  2872. ac_cpp='$CPP $CPPFLAGS'
  2873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2876. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2877. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2878. # On Suns, sometimes $CPP names a directory.
  2879. if test -n "$CPP" && test -d "$CPP"; then
  2880. CPP=
  2881. fi
  2882. if test -z "$CPP"; then
  2883. if test "${ac_cv_prog_CPP+set}" = set; then
  2884. echo $ECHO_N "(cached) $ECHO_C" >&6
  2885. else
  2886. # Double quotes because CPP needs to be expanded
  2887. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2888. do
  2889. ac_preproc_ok=false
  2890. for ac_c_preproc_warn_flag in '' yes
  2891. do
  2892. # Use a header file that comes with gcc, so configuring glibc
  2893. # with a fresh cross-compiler works.
  2894. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2895. # <limits.h> exists even on freestanding compilers.
  2896. # On the NeXT, cc -E runs the code through the compiler's parser,
  2897. # not just through cpp. "Syntax error" is here to catch this case.
  2898. cat >conftest.$ac_ext <<_ACEOF
  2899. /* confdefs.h. */
  2900. _ACEOF
  2901. cat confdefs.h >>conftest.$ac_ext
  2902. cat >>conftest.$ac_ext <<_ACEOF
  2903. /* end confdefs.h. */
  2904. #ifdef __STDC__
  2905. # include <limits.h>
  2906. #else
  2907. # include <assert.h>
  2908. #endif
  2909. Syntax error
  2910. _ACEOF
  2911. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2912. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2913. ac_status=$?
  2914. grep -v '^ *+' conftest.er1 >conftest.err
  2915. rm -f conftest.er1
  2916. cat conftest.err >&5
  2917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2918. (exit $ac_status); } >/dev/null; then
  2919. if test -s conftest.err; then
  2920. ac_cpp_err=$ac_c_preproc_warn_flag
  2921. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2922. else
  2923. ac_cpp_err=
  2924. fi
  2925. else
  2926. ac_cpp_err=yes
  2927. fi
  2928. if test -z "$ac_cpp_err"; then
  2929. :
  2930. else
  2931. echo "$as_me: failed program was:" >&5
  2932. sed 's/^/| /' conftest.$ac_ext >&5
  2933. # Broken: fails on valid input.
  2934. continue
  2935. fi
  2936. rm -f conftest.err conftest.$ac_ext
  2937. # OK, works on sane cases. Now check whether non-existent headers
  2938. # can be detected and how.
  2939. cat >conftest.$ac_ext <<_ACEOF
  2940. /* confdefs.h. */
  2941. _ACEOF
  2942. cat confdefs.h >>conftest.$ac_ext
  2943. cat >>conftest.$ac_ext <<_ACEOF
  2944. /* end confdefs.h. */
  2945. #include <ac_nonexistent.h>
  2946. _ACEOF
  2947. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2948. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2949. ac_status=$?
  2950. grep -v '^ *+' conftest.er1 >conftest.err
  2951. rm -f conftest.er1
  2952. cat conftest.err >&5
  2953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2954. (exit $ac_status); } >/dev/null; then
  2955. if test -s conftest.err; then
  2956. ac_cpp_err=$ac_c_preproc_warn_flag
  2957. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2958. else
  2959. ac_cpp_err=
  2960. fi
  2961. else
  2962. ac_cpp_err=yes
  2963. fi
  2964. if test -z "$ac_cpp_err"; then
  2965. # Broken: success on invalid input.
  2966. continue
  2967. else
  2968. echo "$as_me: failed program was:" >&5
  2969. sed 's/^/| /' conftest.$ac_ext >&5
  2970. # Passes both tests.
  2971. ac_preproc_ok=:
  2972. break
  2973. fi
  2974. rm -f conftest.err conftest.$ac_ext
  2975. done
  2976. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2977. rm -f conftest.err conftest.$ac_ext
  2978. if $ac_preproc_ok; then
  2979. break
  2980. fi
  2981. done
  2982. ac_cv_prog_CPP=$CPP
  2983. fi
  2984. CPP=$ac_cv_prog_CPP
  2985. else
  2986. ac_cv_prog_CPP=$CPP
  2987. fi
  2988. echo "$as_me:$LINENO: result: $CPP" >&5
  2989. echo "${ECHO_T}$CPP" >&6
  2990. ac_preproc_ok=false
  2991. for ac_c_preproc_warn_flag in '' yes
  2992. do
  2993. # Use a header file that comes with gcc, so configuring glibc
  2994. # with a fresh cross-compiler works.
  2995. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2996. # <limits.h> exists even on freestanding compilers.
  2997. # On the NeXT, cc -E runs the code through the compiler's parser,
  2998. # not just through cpp. "Syntax error" is here to catch this case.
  2999. cat >conftest.$ac_ext <<_ACEOF
  3000. /* confdefs.h. */
  3001. _ACEOF
  3002. cat confdefs.h >>conftest.$ac_ext
  3003. cat >>conftest.$ac_ext <<_ACEOF
  3004. /* end confdefs.h. */
  3005. #ifdef __STDC__
  3006. # include <limits.h>
  3007. #else
  3008. # include <assert.h>
  3009. #endif
  3010. Syntax error
  3011. _ACEOF
  3012. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3013. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3014. ac_status=$?
  3015. grep -v '^ *+' conftest.er1 >conftest.err
  3016. rm -f conftest.er1
  3017. cat conftest.err >&5
  3018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3019. (exit $ac_status); } >/dev/null; then
  3020. if test -s conftest.err; then
  3021. ac_cpp_err=$ac_c_preproc_warn_flag
  3022. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3023. else
  3024. ac_cpp_err=
  3025. fi
  3026. else
  3027. ac_cpp_err=yes
  3028. fi
  3029. if test -z "$ac_cpp_err"; then
  3030. :
  3031. else
  3032. echo "$as_me: failed program was:" >&5
  3033. sed 's/^/| /' conftest.$ac_ext >&5
  3034. # Broken: fails on valid input.
  3035. continue
  3036. fi
  3037. rm -f conftest.err conftest.$ac_ext
  3038. # OK, works on sane cases. Now check whether non-existent headers
  3039. # can be detected and how.
  3040. cat >conftest.$ac_ext <<_ACEOF
  3041. /* confdefs.h. */
  3042. _ACEOF
  3043. cat confdefs.h >>conftest.$ac_ext
  3044. cat >>conftest.$ac_ext <<_ACEOF
  3045. /* end confdefs.h. */
  3046. #include <ac_nonexistent.h>
  3047. _ACEOF
  3048. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3049. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3050. ac_status=$?
  3051. grep -v '^ *+' conftest.er1 >conftest.err
  3052. rm -f conftest.er1
  3053. cat conftest.err >&5
  3054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3055. (exit $ac_status); } >/dev/null; then
  3056. if test -s conftest.err; then
  3057. ac_cpp_err=$ac_c_preproc_warn_flag
  3058. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3059. else
  3060. ac_cpp_err=
  3061. fi
  3062. else
  3063. ac_cpp_err=yes
  3064. fi
  3065. if test -z "$ac_cpp_err"; then
  3066. # Broken: success on invalid input.
  3067. continue
  3068. else
  3069. echo "$as_me: failed program was:" >&5
  3070. sed 's/^/| /' conftest.$ac_ext >&5
  3071. # Passes both tests.
  3072. ac_preproc_ok=:
  3073. break
  3074. fi
  3075. rm -f conftest.err conftest.$ac_ext
  3076. done
  3077. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3078. rm -f conftest.err conftest.$ac_ext
  3079. if $ac_preproc_ok; then
  3080. :
  3081. else
  3082. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3083. See \`config.log' for more details." >&5
  3084. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3085. See \`config.log' for more details." >&2;}
  3086. { (exit 1); exit 1; }; }
  3087. fi
  3088. ac_ext=c
  3089. ac_cpp='$CPP $CPPFLAGS'
  3090. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3091. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3092. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3093. echo "$as_me:$LINENO: checking for egrep" >&5
  3094. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3095. if test "${ac_cv_prog_egrep+set}" = set; then
  3096. echo $ECHO_N "(cached) $ECHO_C" >&6
  3097. else
  3098. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3099. then ac_cv_prog_egrep='grep -E'
  3100. else ac_cv_prog_egrep='egrep'
  3101. fi
  3102. fi
  3103. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3104. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3105. EGREP=$ac_cv_prog_egrep
  3106. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3107. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3108. if test "${ac_cv_header_stdc+set}" = set; then
  3109. echo $ECHO_N "(cached) $ECHO_C" >&6
  3110. else
  3111. cat >conftest.$ac_ext <<_ACEOF
  3112. /* confdefs.h. */
  3113. _ACEOF
  3114. cat confdefs.h >>conftest.$ac_ext
  3115. cat >>conftest.$ac_ext <<_ACEOF
  3116. /* end confdefs.h. */
  3117. #include <stdlib.h>
  3118. #include <stdarg.h>
  3119. #include <string.h>
  3120. #include <float.h>
  3121. int
  3122. main ()
  3123. {
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. rm -f conftest.$ac_objext
  3129. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3130. (eval $ac_compile) 2>conftest.er1
  3131. ac_status=$?
  3132. grep -v '^ *+' conftest.er1 >conftest.err
  3133. rm -f conftest.er1
  3134. cat conftest.err >&5
  3135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3136. (exit $ac_status); } &&
  3137. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3139. (eval $ac_try) 2>&5
  3140. ac_status=$?
  3141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3142. (exit $ac_status); }; } &&
  3143. { ac_try='test -s conftest.$ac_objext'
  3144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3145. (eval $ac_try) 2>&5
  3146. ac_status=$?
  3147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3148. (exit $ac_status); }; }; then
  3149. ac_cv_header_stdc=yes
  3150. else
  3151. echo "$as_me: failed program was:" >&5
  3152. sed 's/^/| /' conftest.$ac_ext >&5
  3153. ac_cv_header_stdc=no
  3154. fi
  3155. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3156. if test $ac_cv_header_stdc = yes; then
  3157. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3158. cat >conftest.$ac_ext <<_ACEOF
  3159. /* confdefs.h. */
  3160. _ACEOF
  3161. cat confdefs.h >>conftest.$ac_ext
  3162. cat >>conftest.$ac_ext <<_ACEOF
  3163. /* end confdefs.h. */
  3164. #include <string.h>
  3165. _ACEOF
  3166. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3167. $EGREP "memchr" >/dev/null 2>&1; then
  3168. :
  3169. else
  3170. ac_cv_header_stdc=no
  3171. fi
  3172. rm -f conftest*
  3173. fi
  3174. if test $ac_cv_header_stdc = yes; then
  3175. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3176. cat >conftest.$ac_ext <<_ACEOF
  3177. /* confdefs.h. */
  3178. _ACEOF
  3179. cat confdefs.h >>conftest.$ac_ext
  3180. cat >>conftest.$ac_ext <<_ACEOF
  3181. /* end confdefs.h. */
  3182. #include <stdlib.h>
  3183. _ACEOF
  3184. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3185. $EGREP "free" >/dev/null 2>&1; then
  3186. :
  3187. else
  3188. ac_cv_header_stdc=no
  3189. fi
  3190. rm -f conftest*
  3191. fi
  3192. if test $ac_cv_header_stdc = yes; then
  3193. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3194. if test "$cross_compiling" = yes; then
  3195. :
  3196. else
  3197. cat >conftest.$ac_ext <<_ACEOF
  3198. /* confdefs.h. */
  3199. _ACEOF
  3200. cat confdefs.h >>conftest.$ac_ext
  3201. cat >>conftest.$ac_ext <<_ACEOF
  3202. /* end confdefs.h. */
  3203. #include <ctype.h>
  3204. #if ((' ' & 0x0FF) == 0x020)
  3205. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3206. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3207. #else
  3208. # define ISLOWER(c) \
  3209. (('a' <= (c) && (c) <= 'i') \
  3210. || ('j' <= (c) && (c) <= 'r') \
  3211. || ('s' <= (c) && (c) <= 'z'))
  3212. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3213. #endif
  3214. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3215. int
  3216. main ()
  3217. {
  3218. int i;
  3219. for (i = 0; i < 256; i++)
  3220. if (XOR (islower (i), ISLOWER (i))
  3221. || toupper (i) != TOUPPER (i))
  3222. exit(2);
  3223. exit (0);
  3224. }
  3225. _ACEOF
  3226. rm -f conftest$ac_exeext
  3227. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3228. (eval $ac_link) 2>&5
  3229. ac_status=$?
  3230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3231. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3233. (eval $ac_try) 2>&5
  3234. ac_status=$?
  3235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3236. (exit $ac_status); }; }; then
  3237. :
  3238. else
  3239. echo "$as_me: program exited with status $ac_status" >&5
  3240. echo "$as_me: failed program was:" >&5
  3241. sed 's/^/| /' conftest.$ac_ext >&5
  3242. ( exit $ac_status )
  3243. ac_cv_header_stdc=no
  3244. fi
  3245. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3246. fi
  3247. fi
  3248. fi
  3249. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3250. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3251. if test $ac_cv_header_stdc = yes; then
  3252. cat >>confdefs.h <<\_ACEOF
  3253. #define STDC_HEADERS 1
  3254. _ACEOF
  3255. fi
  3256. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3257. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3258. inttypes.h stdint.h unistd.h
  3259. do
  3260. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3261. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3262. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3263. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3264. echo $ECHO_N "(cached) $ECHO_C" >&6
  3265. else
  3266. cat >conftest.$ac_ext <<_ACEOF
  3267. /* confdefs.h. */
  3268. _ACEOF
  3269. cat confdefs.h >>conftest.$ac_ext
  3270. cat >>conftest.$ac_ext <<_ACEOF
  3271. /* end confdefs.h. */
  3272. $ac_includes_default
  3273. #include <$ac_header>
  3274. _ACEOF
  3275. rm -f conftest.$ac_objext
  3276. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3277. (eval $ac_compile) 2>conftest.er1
  3278. ac_status=$?
  3279. grep -v '^ *+' conftest.er1 >conftest.err
  3280. rm -f conftest.er1
  3281. cat conftest.err >&5
  3282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283. (exit $ac_status); } &&
  3284. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3286. (eval $ac_try) 2>&5
  3287. ac_status=$?
  3288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3289. (exit $ac_status); }; } &&
  3290. { ac_try='test -s conftest.$ac_objext'
  3291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3292. (eval $ac_try) 2>&5
  3293. ac_status=$?
  3294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3295. (exit $ac_status); }; }; then
  3296. eval "$as_ac_Header=yes"
  3297. else
  3298. echo "$as_me: failed program was:" >&5
  3299. sed 's/^/| /' conftest.$ac_ext >&5
  3300. eval "$as_ac_Header=no"
  3301. fi
  3302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3303. fi
  3304. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3305. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3306. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3307. cat >>confdefs.h <<_ACEOF
  3308. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3309. _ACEOF
  3310. fi
  3311. done
  3312. if test "$ac_cv_prog_cc_stdc" != no; then
  3313. U= ANSI2KNR=
  3314. else
  3315. U=_ ANSI2KNR=./ansi2knr
  3316. fi
  3317. # Ensure some checks needed by ansi2knr itself.
  3318. for ac_header in string.h
  3319. do
  3320. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3321. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3322. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3323. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3324. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3325. echo $ECHO_N "(cached) $ECHO_C" >&6
  3326. fi
  3327. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3328. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3329. else
  3330. # Is the header compilable?
  3331. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3332. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3333. cat >conftest.$ac_ext <<_ACEOF
  3334. /* confdefs.h. */
  3335. _ACEOF
  3336. cat confdefs.h >>conftest.$ac_ext
  3337. cat >>conftest.$ac_ext <<_ACEOF
  3338. /* end confdefs.h. */
  3339. $ac_includes_default
  3340. #include <$ac_header>
  3341. _ACEOF
  3342. rm -f conftest.$ac_objext
  3343. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3344. (eval $ac_compile) 2>conftest.er1
  3345. ac_status=$?
  3346. grep -v '^ *+' conftest.er1 >conftest.err
  3347. rm -f conftest.er1
  3348. cat conftest.err >&5
  3349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3350. (exit $ac_status); } &&
  3351. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3353. (eval $ac_try) 2>&5
  3354. ac_status=$?
  3355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3356. (exit $ac_status); }; } &&
  3357. { ac_try='test -s conftest.$ac_objext'
  3358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3359. (eval $ac_try) 2>&5
  3360. ac_status=$?
  3361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3362. (exit $ac_status); }; }; then
  3363. ac_header_compiler=yes
  3364. else
  3365. echo "$as_me: failed program was:" >&5
  3366. sed 's/^/| /' conftest.$ac_ext >&5
  3367. ac_header_compiler=no
  3368. fi
  3369. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3370. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3371. echo "${ECHO_T}$ac_header_compiler" >&6
  3372. # Is the header present?
  3373. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3374. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3375. cat >conftest.$ac_ext <<_ACEOF
  3376. /* confdefs.h. */
  3377. _ACEOF
  3378. cat confdefs.h >>conftest.$ac_ext
  3379. cat >>conftest.$ac_ext <<_ACEOF
  3380. /* end confdefs.h. */
  3381. #include <$ac_header>
  3382. _ACEOF
  3383. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3384. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3385. ac_status=$?
  3386. grep -v '^ *+' conftest.er1 >conftest.err
  3387. rm -f conftest.er1
  3388. cat conftest.err >&5
  3389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3390. (exit $ac_status); } >/dev/null; then
  3391. if test -s conftest.err; then
  3392. ac_cpp_err=$ac_c_preproc_warn_flag
  3393. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3394. else
  3395. ac_cpp_err=
  3396. fi
  3397. else
  3398. ac_cpp_err=yes
  3399. fi
  3400. if test -z "$ac_cpp_err"; then
  3401. ac_header_preproc=yes
  3402. else
  3403. echo "$as_me: failed program was:" >&5
  3404. sed 's/^/| /' conftest.$ac_ext >&5
  3405. ac_header_preproc=no
  3406. fi
  3407. rm -f conftest.err conftest.$ac_ext
  3408. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3409. echo "${ECHO_T}$ac_header_preproc" >&6
  3410. # So? What about this header?
  3411. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3412. yes:no: )
  3413. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3414. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3415. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3416. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3417. ac_header_preproc=yes
  3418. ;;
  3419. no:yes:* )
  3420. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3421. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3422. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3423. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3424. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3425. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3426. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3427. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3428. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3429. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3430. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3431. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3432. (
  3433. cat <<\_ASBOX
  3434. ## --------------------------------- ##
  3435. ## Report this to the ngircd lists. ##
  3436. ## --------------------------------- ##
  3437. _ASBOX
  3438. ) |
  3439. sed "s/^/$as_me: WARNING: /" >&2
  3440. ;;
  3441. esac
  3442. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3443. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3444. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3445. echo $ECHO_N "(cached) $ECHO_C" >&6
  3446. else
  3447. eval "$as_ac_Header=\$ac_header_preproc"
  3448. fi
  3449. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3450. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3451. fi
  3452. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3453. cat >>confdefs.h <<_ACEOF
  3454. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3455. _ACEOF
  3456. fi
  3457. done
  3458. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3459. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3460. if test "${ac_cv_c_const+set}" = set; then
  3461. echo $ECHO_N "(cached) $ECHO_C" >&6
  3462. else
  3463. cat >conftest.$ac_ext <<_ACEOF
  3464. /* confdefs.h. */
  3465. _ACEOF
  3466. cat confdefs.h >>conftest.$ac_ext
  3467. cat >>conftest.$ac_ext <<_ACEOF
  3468. /* end confdefs.h. */
  3469. int
  3470. main ()
  3471. {
  3472. /* FIXME: Include the comments suggested by Paul. */
  3473. #ifndef __cplusplus
  3474. /* Ultrix mips cc rejects this. */
  3475. typedef int charset[2];
  3476. const charset x;
  3477. /* SunOS 4.1.1 cc rejects this. */
  3478. char const *const *ccp;
  3479. char **p;
  3480. /* NEC SVR4.0.2 mips cc rejects this. */
  3481. struct point {int x, y;};
  3482. static struct point const zero = {0,0};
  3483. /* AIX XL C 1.02.0.0 rejects this.
  3484. It does not let you subtract one const X* pointer from another in
  3485. an arm of an if-expression whose if-part is not a constant
  3486. expression */
  3487. const char *g = "string";
  3488. ccp = &g + (g ? g-g : 0);
  3489. /* HPUX 7.0 cc rejects these. */
  3490. ++ccp;
  3491. p = (char**) ccp;
  3492. ccp = (char const *const *) p;
  3493. { /* SCO 3.2v4 cc rejects this. */
  3494. char *t;
  3495. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3496. *t++ = 0;
  3497. }
  3498. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3499. int x[] = {25, 17};
  3500. const int *foo = &x[0];
  3501. ++foo;
  3502. }
  3503. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3504. typedef const int *iptr;
  3505. iptr p = 0;
  3506. ++p;
  3507. }
  3508. { /* AIX XL C 1.02.0.0 rejects this saying
  3509. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3510. struct s { int j; const int *ap[3]; };
  3511. struct s *b; b->j = 5;
  3512. }
  3513. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3514. const int foo = 10;
  3515. }
  3516. #endif
  3517. ;
  3518. return 0;
  3519. }
  3520. _ACEOF
  3521. rm -f conftest.$ac_objext
  3522. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3523. (eval $ac_compile) 2>conftest.er1
  3524. ac_status=$?
  3525. grep -v '^ *+' conftest.er1 >conftest.err
  3526. rm -f conftest.er1
  3527. cat conftest.err >&5
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); } &&
  3530. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3532. (eval $ac_try) 2>&5
  3533. ac_status=$?
  3534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. (exit $ac_status); }; } &&
  3536. { ac_try='test -s conftest.$ac_objext'
  3537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3538. (eval $ac_try) 2>&5
  3539. ac_status=$?
  3540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3541. (exit $ac_status); }; }; then
  3542. ac_cv_c_const=yes
  3543. else
  3544. echo "$as_me: failed program was:" >&5
  3545. sed 's/^/| /' conftest.$ac_ext >&5
  3546. ac_cv_c_const=no
  3547. fi
  3548. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3549. fi
  3550. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3551. echo "${ECHO_T}$ac_cv_c_const" >&6
  3552. if test $ac_cv_c_const = no; then
  3553. cat >>confdefs.h <<\_ACEOF
  3554. #define const
  3555. _ACEOF
  3556. fi
  3557. # -- Hard coded system and compiler dependencies/features/options ... --
  3558. if test "$GCC" = "yes"; then
  3559. # We are using the GNU C compiler. Good!
  3560. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  3561. ssp_cc=yes
  3562. # we use -fstack-protector-all for the test to enfoce the use of the guard variable
  3563. echo "$as_me:$LINENO: checking whether ${CC} accepts -fstack-protector" >&5
  3564. echo $ECHO_N "checking whether ${CC} accepts -fstack-protector... $ECHO_C" >&6
  3565. ssp_old_cflags="$CFLAGS"
  3566. CFLAGS="$CFLAGS -fstack-protector-all"
  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. int
  3574. main ()
  3575. {
  3576. ;
  3577. return 0;
  3578. }
  3579. _ACEOF
  3580. rm -f conftest.$ac_objext conftest$ac_exeext
  3581. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3582. (eval $ac_link) 2>conftest.er1
  3583. ac_status=$?
  3584. grep -v '^ *+' conftest.er1 >conftest.err
  3585. rm -f conftest.er1
  3586. cat conftest.err >&5
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); } &&
  3589. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3591. (eval $ac_try) 2>&5
  3592. ac_status=$?
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); }; } &&
  3595. { ac_try='test -s conftest$ac_exeext'
  3596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3597. (eval $ac_try) 2>&5
  3598. ac_status=$?
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); }; }; then
  3601. :
  3602. else
  3603. echo "$as_me: failed program was:" >&5
  3604. sed 's/^/| /' conftest.$ac_ext >&5
  3605. ssp_cc=no
  3606. fi
  3607. rm -f conftest.err conftest.$ac_objext \
  3608. conftest$ac_exeext conftest.$ac_ext
  3609. echo $ssp_cc
  3610. CFLAGS="$ssp_old_cflags"
  3611. if test "X$ssp_cc" = "Xyes"; then
  3612. CFLAGS="$CFLAGS -fstack-protector"
  3613. cat >>confdefs.h <<\_ACEOF
  3614. #define ENABLE_SSP_CC 1
  3615. _ACEOF
  3616. fi
  3617. fi
  3618. case "$target_os" in
  3619. hpux*)
  3620. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  3621. # (tested with HP/UX 11.11)
  3622. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  3623. ;;
  3624. esac
  3625. # Add additional CFLAGS, eventually specified on the command line:
  3626. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  3627. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
  3628. # -- Headers --
  3629. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3630. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3631. if test "${ac_cv_header_stdc+set}" = set; then
  3632. echo $ECHO_N "(cached) $ECHO_C" >&6
  3633. else
  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. #include <stdlib.h>
  3641. #include <stdarg.h>
  3642. #include <string.h>
  3643. #include <float.h>
  3644. int
  3645. main ()
  3646. {
  3647. ;
  3648. return 0;
  3649. }
  3650. _ACEOF
  3651. rm -f conftest.$ac_objext
  3652. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3653. (eval $ac_compile) 2>conftest.er1
  3654. ac_status=$?
  3655. grep -v '^ *+' conftest.er1 >conftest.err
  3656. rm -f conftest.er1
  3657. cat conftest.err >&5
  3658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3659. (exit $ac_status); } &&
  3660. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3662. (eval $ac_try) 2>&5
  3663. ac_status=$?
  3664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3665. (exit $ac_status); }; } &&
  3666. { ac_try='test -s conftest.$ac_objext'
  3667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3668. (eval $ac_try) 2>&5
  3669. ac_status=$?
  3670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. (exit $ac_status); }; }; then
  3672. ac_cv_header_stdc=yes
  3673. else
  3674. echo "$as_me: failed program was:" >&5
  3675. sed 's/^/| /' conftest.$ac_ext >&5
  3676. ac_cv_header_stdc=no
  3677. fi
  3678. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3679. if test $ac_cv_header_stdc = yes; then
  3680. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3681. cat >conftest.$ac_ext <<_ACEOF
  3682. /* confdefs.h. */
  3683. _ACEOF
  3684. cat confdefs.h >>conftest.$ac_ext
  3685. cat >>conftest.$ac_ext <<_ACEOF
  3686. /* end confdefs.h. */
  3687. #include <string.h>
  3688. _ACEOF
  3689. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3690. $EGREP "memchr" >/dev/null 2>&1; then
  3691. :
  3692. else
  3693. ac_cv_header_stdc=no
  3694. fi
  3695. rm -f conftest*
  3696. fi
  3697. if test $ac_cv_header_stdc = yes; then
  3698. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3699. cat >conftest.$ac_ext <<_ACEOF
  3700. /* confdefs.h. */
  3701. _ACEOF
  3702. cat confdefs.h >>conftest.$ac_ext
  3703. cat >>conftest.$ac_ext <<_ACEOF
  3704. /* end confdefs.h. */
  3705. #include <stdlib.h>
  3706. _ACEOF
  3707. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3708. $EGREP "free" >/dev/null 2>&1; then
  3709. :
  3710. else
  3711. ac_cv_header_stdc=no
  3712. fi
  3713. rm -f conftest*
  3714. fi
  3715. if test $ac_cv_header_stdc = yes; then
  3716. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3717. if test "$cross_compiling" = yes; then
  3718. :
  3719. else
  3720. cat >conftest.$ac_ext <<_ACEOF
  3721. /* confdefs.h. */
  3722. _ACEOF
  3723. cat confdefs.h >>conftest.$ac_ext
  3724. cat >>conftest.$ac_ext <<_ACEOF
  3725. /* end confdefs.h. */
  3726. #include <ctype.h>
  3727. #if ((' ' & 0x0FF) == 0x020)
  3728. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3729. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3730. #else
  3731. # define ISLOWER(c) \
  3732. (('a' <= (c) && (c) <= 'i') \
  3733. || ('j' <= (c) && (c) <= 'r') \
  3734. || ('s' <= (c) && (c) <= 'z'))
  3735. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3736. #endif
  3737. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3738. int
  3739. main ()
  3740. {
  3741. int i;
  3742. for (i = 0; i < 256; i++)
  3743. if (XOR (islower (i), ISLOWER (i))
  3744. || toupper (i) != TOUPPER (i))
  3745. exit(2);
  3746. exit (0);
  3747. }
  3748. _ACEOF
  3749. rm -f conftest$ac_exeext
  3750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3751. (eval $ac_link) 2>&5
  3752. ac_status=$?
  3753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3754. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3756. (eval $ac_try) 2>&5
  3757. ac_status=$?
  3758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3759. (exit $ac_status); }; }; then
  3760. :
  3761. else
  3762. echo "$as_me: program exited with status $ac_status" >&5
  3763. echo "$as_me: failed program was:" >&5
  3764. sed 's/^/| /' conftest.$ac_ext >&5
  3765. ( exit $ac_status )
  3766. ac_cv_header_stdc=no
  3767. fi
  3768. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3769. fi
  3770. fi
  3771. fi
  3772. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3773. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3774. if test $ac_cv_header_stdc = yes; then
  3775. cat >>confdefs.h <<\_ACEOF
  3776. #define STDC_HEADERS 1
  3777. _ACEOF
  3778. fi
  3779. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  3780. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3781. if test "${ac_cv_header_time+set}" = set; then
  3782. echo $ECHO_N "(cached) $ECHO_C" >&6
  3783. else
  3784. cat >conftest.$ac_ext <<_ACEOF
  3785. /* confdefs.h. */
  3786. _ACEOF
  3787. cat confdefs.h >>conftest.$ac_ext
  3788. cat >>conftest.$ac_ext <<_ACEOF
  3789. /* end confdefs.h. */
  3790. #include <sys/types.h>
  3791. #include <sys/time.h>
  3792. #include <time.h>
  3793. int
  3794. main ()
  3795. {
  3796. if ((struct tm *) 0)
  3797. return 0;
  3798. ;
  3799. return 0;
  3800. }
  3801. _ACEOF
  3802. rm -f conftest.$ac_objext
  3803. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3804. (eval $ac_compile) 2>conftest.er1
  3805. ac_status=$?
  3806. grep -v '^ *+' conftest.er1 >conftest.err
  3807. rm -f conftest.er1
  3808. cat conftest.err >&5
  3809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3810. (exit $ac_status); } &&
  3811. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3813. (eval $ac_try) 2>&5
  3814. ac_status=$?
  3815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3816. (exit $ac_status); }; } &&
  3817. { ac_try='test -s conftest.$ac_objext'
  3818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3819. (eval $ac_try) 2>&5
  3820. ac_status=$?
  3821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3822. (exit $ac_status); }; }; then
  3823. ac_cv_header_time=yes
  3824. else
  3825. echo "$as_me: failed program was:" >&5
  3826. sed 's/^/| /' conftest.$ac_ext >&5
  3827. ac_cv_header_time=no
  3828. fi
  3829. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3830. fi
  3831. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  3832. echo "${ECHO_T}$ac_cv_header_time" >&6
  3833. if test $ac_cv_header_time = yes; then
  3834. cat >>confdefs.h <<\_ACEOF
  3835. #define TIME_WITH_SYS_TIME 1
  3836. _ACEOF
  3837. fi
  3838. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3839. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3840. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3841. echo $ECHO_N "(cached) $ECHO_C" >&6
  3842. else
  3843. cat >conftest.$ac_ext <<_ACEOF
  3844. /* confdefs.h. */
  3845. _ACEOF
  3846. cat confdefs.h >>conftest.$ac_ext
  3847. cat >>conftest.$ac_ext <<_ACEOF
  3848. /* end confdefs.h. */
  3849. #include <sys/types.h>
  3850. #include <sys/wait.h>
  3851. #ifndef WEXITSTATUS
  3852. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3853. #endif
  3854. #ifndef WIFEXITED
  3855. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3856. #endif
  3857. int
  3858. main ()
  3859. {
  3860. int s;
  3861. wait (&s);
  3862. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3863. ;
  3864. return 0;
  3865. }
  3866. _ACEOF
  3867. rm -f conftest.$ac_objext
  3868. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3869. (eval $ac_compile) 2>conftest.er1
  3870. ac_status=$?
  3871. grep -v '^ *+' conftest.er1 >conftest.err
  3872. rm -f conftest.er1
  3873. cat conftest.err >&5
  3874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3875. (exit $ac_status); } &&
  3876. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3878. (eval $ac_try) 2>&5
  3879. ac_status=$?
  3880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3881. (exit $ac_status); }; } &&
  3882. { ac_try='test -s conftest.$ac_objext'
  3883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3884. (eval $ac_try) 2>&5
  3885. ac_status=$?
  3886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3887. (exit $ac_status); }; }; then
  3888. ac_cv_header_sys_wait_h=yes
  3889. else
  3890. echo "$as_me: failed program was:" >&5
  3891. sed 's/^/| /' conftest.$ac_ext >&5
  3892. ac_cv_header_sys_wait_h=no
  3893. fi
  3894. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3895. fi
  3896. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  3897. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3898. if test $ac_cv_header_sys_wait_h = yes; then
  3899. cat >>confdefs.h <<\_ACEOF
  3900. #define HAVE_SYS_WAIT_H 1
  3901. _ACEOF
  3902. fi
  3903. for ac_header in \
  3904. ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \
  3905. strings.h sys/socket.h sys/time.h unistd.h \
  3906. do
  3907. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3908. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3909. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3910. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3911. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3912. echo $ECHO_N "(cached) $ECHO_C" >&6
  3913. fi
  3914. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3915. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3916. else
  3917. # Is the header compilable?
  3918. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3919. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3920. cat >conftest.$ac_ext <<_ACEOF
  3921. /* confdefs.h. */
  3922. _ACEOF
  3923. cat confdefs.h >>conftest.$ac_ext
  3924. cat >>conftest.$ac_ext <<_ACEOF
  3925. /* end confdefs.h. */
  3926. $ac_includes_default
  3927. #include <$ac_header>
  3928. _ACEOF
  3929. rm -f conftest.$ac_objext
  3930. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3931. (eval $ac_compile) 2>conftest.er1
  3932. ac_status=$?
  3933. grep -v '^ *+' conftest.er1 >conftest.err
  3934. rm -f conftest.er1
  3935. cat conftest.err >&5
  3936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3937. (exit $ac_status); } &&
  3938. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3940. (eval $ac_try) 2>&5
  3941. ac_status=$?
  3942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3943. (exit $ac_status); }; } &&
  3944. { ac_try='test -s conftest.$ac_objext'
  3945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3946. (eval $ac_try) 2>&5
  3947. ac_status=$?
  3948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3949. (exit $ac_status); }; }; then
  3950. ac_header_compiler=yes
  3951. else
  3952. echo "$as_me: failed program was:" >&5
  3953. sed 's/^/| /' conftest.$ac_ext >&5
  3954. ac_header_compiler=no
  3955. fi
  3956. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3957. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3958. echo "${ECHO_T}$ac_header_compiler" >&6
  3959. # Is the header present?
  3960. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3961. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3962. cat >conftest.$ac_ext <<_ACEOF
  3963. /* confdefs.h. */
  3964. _ACEOF
  3965. cat confdefs.h >>conftest.$ac_ext
  3966. cat >>conftest.$ac_ext <<_ACEOF
  3967. /* end confdefs.h. */
  3968. #include <$ac_header>
  3969. _ACEOF
  3970. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3971. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3972. ac_status=$?
  3973. grep -v '^ *+' conftest.er1 >conftest.err
  3974. rm -f conftest.er1
  3975. cat conftest.err >&5
  3976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3977. (exit $ac_status); } >/dev/null; then
  3978. if test -s conftest.err; then
  3979. ac_cpp_err=$ac_c_preproc_warn_flag
  3980. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3981. else
  3982. ac_cpp_err=
  3983. fi
  3984. else
  3985. ac_cpp_err=yes
  3986. fi
  3987. if test -z "$ac_cpp_err"; then
  3988. ac_header_preproc=yes
  3989. else
  3990. echo "$as_me: failed program was:" >&5
  3991. sed 's/^/| /' conftest.$ac_ext >&5
  3992. ac_header_preproc=no
  3993. fi
  3994. rm -f conftest.err conftest.$ac_ext
  3995. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3996. echo "${ECHO_T}$ac_header_preproc" >&6
  3997. # So? What about this header?
  3998. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3999. yes:no: )
  4000. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4001. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4002. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4003. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4004. ac_header_preproc=yes
  4005. ;;
  4006. no:yes:* )
  4007. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4008. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4009. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4010. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4011. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4012. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4013. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4014. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4015. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4016. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4017. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4018. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4019. (
  4020. cat <<\_ASBOX
  4021. ## --------------------------------- ##
  4022. ## Report this to the ngircd lists. ##
  4023. ## --------------------------------- ##
  4024. _ASBOX
  4025. ) |
  4026. sed "s/^/$as_me: WARNING: /" >&2
  4027. ;;
  4028. esac
  4029. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4030. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4031. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4032. echo $ECHO_N "(cached) $ECHO_C" >&6
  4033. else
  4034. eval "$as_ac_Header=\$ac_header_preproc"
  4035. fi
  4036. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4037. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4038. fi
  4039. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4040. cat >>confdefs.h <<_ACEOF
  4041. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4042. _ACEOF
  4043. else
  4044. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  4045. echo "$as_me: error: required C header missing!" >&2;}
  4046. { (exit 1); exit 1; }; }
  4047. fi
  4048. done
  4049. for ac_header in arpa/inet.h ctype.h malloc.h stdbool.h stddef.h varargs.h
  4050. do
  4051. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4052. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4053. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4054. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4055. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4056. echo $ECHO_N "(cached) $ECHO_C" >&6
  4057. fi
  4058. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4059. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4060. else
  4061. # Is the header compilable?
  4062. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4063. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4064. cat >conftest.$ac_ext <<_ACEOF
  4065. /* confdefs.h. */
  4066. _ACEOF
  4067. cat confdefs.h >>conftest.$ac_ext
  4068. cat >>conftest.$ac_ext <<_ACEOF
  4069. /* end confdefs.h. */
  4070. $ac_includes_default
  4071. #include <$ac_header>
  4072. _ACEOF
  4073. rm -f conftest.$ac_objext
  4074. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4075. (eval $ac_compile) 2>conftest.er1
  4076. ac_status=$?
  4077. grep -v '^ *+' conftest.er1 >conftest.err
  4078. rm -f conftest.er1
  4079. cat conftest.err >&5
  4080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4081. (exit $ac_status); } &&
  4082. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4084. (eval $ac_try) 2>&5
  4085. ac_status=$?
  4086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4087. (exit $ac_status); }; } &&
  4088. { ac_try='test -s conftest.$ac_objext'
  4089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4090. (eval $ac_try) 2>&5
  4091. ac_status=$?
  4092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4093. (exit $ac_status); }; }; then
  4094. ac_header_compiler=yes
  4095. else
  4096. echo "$as_me: failed program was:" >&5
  4097. sed 's/^/| /' conftest.$ac_ext >&5
  4098. ac_header_compiler=no
  4099. fi
  4100. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4101. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4102. echo "${ECHO_T}$ac_header_compiler" >&6
  4103. # Is the header present?
  4104. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4105. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4106. cat >conftest.$ac_ext <<_ACEOF
  4107. /* confdefs.h. */
  4108. _ACEOF
  4109. cat confdefs.h >>conftest.$ac_ext
  4110. cat >>conftest.$ac_ext <<_ACEOF
  4111. /* end confdefs.h. */
  4112. #include <$ac_header>
  4113. _ACEOF
  4114. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4115. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4116. ac_status=$?
  4117. grep -v '^ *+' conftest.er1 >conftest.err
  4118. rm -f conftest.er1
  4119. cat conftest.err >&5
  4120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4121. (exit $ac_status); } >/dev/null; then
  4122. if test -s conftest.err; then
  4123. ac_cpp_err=$ac_c_preproc_warn_flag
  4124. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4125. else
  4126. ac_cpp_err=
  4127. fi
  4128. else
  4129. ac_cpp_err=yes
  4130. fi
  4131. if test -z "$ac_cpp_err"; then
  4132. ac_header_preproc=yes
  4133. else
  4134. echo "$as_me: failed program was:" >&5
  4135. sed 's/^/| /' conftest.$ac_ext >&5
  4136. ac_header_preproc=no
  4137. fi
  4138. rm -f conftest.err conftest.$ac_ext
  4139. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4140. echo "${ECHO_T}$ac_header_preproc" >&6
  4141. # So? What about this header?
  4142. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4143. yes:no: )
  4144. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4145. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4146. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4147. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4148. ac_header_preproc=yes
  4149. ;;
  4150. no:yes:* )
  4151. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4152. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4153. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4154. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4155. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4156. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4157. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4158. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4159. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4160. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4161. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4162. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4163. (
  4164. cat <<\_ASBOX
  4165. ## --------------------------------- ##
  4166. ## Report this to the ngircd lists. ##
  4167. ## --------------------------------- ##
  4168. _ASBOX
  4169. ) |
  4170. sed "s/^/$as_me: WARNING: /" >&2
  4171. ;;
  4172. esac
  4173. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4174. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4175. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4176. echo $ECHO_N "(cached) $ECHO_C" >&6
  4177. else
  4178. eval "$as_ac_Header=\$ac_header_preproc"
  4179. fi
  4180. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4181. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4182. fi
  4183. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4184. cat >>confdefs.h <<_ACEOF
  4185. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4186. _ACEOF
  4187. fi
  4188. done
  4189. # -- Datatypes --
  4190. echo "$as_me:$LINENO: checking whether socklen_t exists" >&5
  4191. echo $ECHO_N "checking whether socklen_t exists... $ECHO_C" >&6
  4192. cat >conftest.$ac_ext <<_ACEOF
  4193. /* confdefs.h. */
  4194. _ACEOF
  4195. cat confdefs.h >>conftest.$ac_ext
  4196. cat >>conftest.$ac_ext <<_ACEOF
  4197. /* end confdefs.h. */
  4198. #include <sys/types.h>
  4199. #include <sys/socket.h>
  4200. int
  4201. main ()
  4202. {
  4203. socklen_t a, b;
  4204. a = 2; b = 4; a += b;
  4205. ;
  4206. return 0;
  4207. }
  4208. _ACEOF
  4209. rm -f conftest.$ac_objext
  4210. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4211. (eval $ac_compile) 2>conftest.er1
  4212. ac_status=$?
  4213. grep -v '^ *+' conftest.er1 >conftest.err
  4214. rm -f conftest.er1
  4215. cat conftest.err >&5
  4216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4217. (exit $ac_status); } &&
  4218. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4220. (eval $ac_try) 2>&5
  4221. ac_status=$?
  4222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); }; } &&
  4224. { ac_try='test -s conftest.$ac_objext'
  4225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4226. (eval $ac_try) 2>&5
  4227. ac_status=$?
  4228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4229. (exit $ac_status); }; }; then
  4230. cat >>confdefs.h <<\_ACEOF
  4231. #define HAVE_socklen_t 1
  4232. _ACEOF
  4233. echo "$as_me:$LINENO: result: yes" >&5
  4234. echo "${ECHO_T}yes" >&6
  4235. else
  4236. echo "$as_me: failed program was:" >&5
  4237. sed 's/^/| /' conftest.$ac_ext >&5
  4238. echo "$as_me:$LINENO: result: no" >&5
  4239. echo "${ECHO_T}no" >&6
  4240. fi
  4241. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4242. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  4243. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  4244. if test "${ac_cv_type_signal+set}" = set; then
  4245. echo $ECHO_N "(cached) $ECHO_C" >&6
  4246. else
  4247. cat >conftest.$ac_ext <<_ACEOF
  4248. /* confdefs.h. */
  4249. _ACEOF
  4250. cat confdefs.h >>conftest.$ac_ext
  4251. cat >>conftest.$ac_ext <<_ACEOF
  4252. /* end confdefs.h. */
  4253. #include <sys/types.h>
  4254. #include <signal.h>
  4255. #ifdef signal
  4256. # undef signal
  4257. #endif
  4258. #ifdef __cplusplus
  4259. extern "C" void (*signal (int, void (*)(int)))(int);
  4260. #else
  4261. void (*signal ()) ();
  4262. #endif
  4263. int
  4264. main ()
  4265. {
  4266. int i;
  4267. ;
  4268. return 0;
  4269. }
  4270. _ACEOF
  4271. rm -f conftest.$ac_objext
  4272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4273. (eval $ac_compile) 2>conftest.er1
  4274. ac_status=$?
  4275. grep -v '^ *+' conftest.er1 >conftest.err
  4276. rm -f conftest.er1
  4277. cat conftest.err >&5
  4278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4279. (exit $ac_status); } &&
  4280. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4282. (eval $ac_try) 2>&5
  4283. ac_status=$?
  4284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285. (exit $ac_status); }; } &&
  4286. { ac_try='test -s conftest.$ac_objext'
  4287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4288. (eval $ac_try) 2>&5
  4289. ac_status=$?
  4290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4291. (exit $ac_status); }; }; then
  4292. ac_cv_type_signal=void
  4293. else
  4294. echo "$as_me: failed program was:" >&5
  4295. sed 's/^/| /' conftest.$ac_ext >&5
  4296. ac_cv_type_signal=int
  4297. fi
  4298. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4299. fi
  4300. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  4301. echo "${ECHO_T}$ac_cv_type_signal" >&6
  4302. cat >>confdefs.h <<_ACEOF
  4303. #define RETSIGTYPE $ac_cv_type_signal
  4304. _ACEOF
  4305. echo "$as_me:$LINENO: checking for size_t" >&5
  4306. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4307. if test "${ac_cv_type_size_t+set}" = set; then
  4308. echo $ECHO_N "(cached) $ECHO_C" >&6
  4309. else
  4310. cat >conftest.$ac_ext <<_ACEOF
  4311. /* confdefs.h. */
  4312. _ACEOF
  4313. cat confdefs.h >>conftest.$ac_ext
  4314. cat >>conftest.$ac_ext <<_ACEOF
  4315. /* end confdefs.h. */
  4316. $ac_includes_default
  4317. int
  4318. main ()
  4319. {
  4320. if ((size_t *) 0)
  4321. return 0;
  4322. if (sizeof (size_t))
  4323. return 0;
  4324. ;
  4325. return 0;
  4326. }
  4327. _ACEOF
  4328. rm -f conftest.$ac_objext
  4329. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4330. (eval $ac_compile) 2>conftest.er1
  4331. ac_status=$?
  4332. grep -v '^ *+' conftest.er1 >conftest.err
  4333. rm -f conftest.er1
  4334. cat conftest.err >&5
  4335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4336. (exit $ac_status); } &&
  4337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4339. (eval $ac_try) 2>&5
  4340. ac_status=$?
  4341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4342. (exit $ac_status); }; } &&
  4343. { ac_try='test -s conftest.$ac_objext'
  4344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4345. (eval $ac_try) 2>&5
  4346. ac_status=$?
  4347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4348. (exit $ac_status); }; }; then
  4349. ac_cv_type_size_t=yes
  4350. else
  4351. echo "$as_me: failed program was:" >&5
  4352. sed 's/^/| /' conftest.$ac_ext >&5
  4353. ac_cv_type_size_t=no
  4354. fi
  4355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4356. fi
  4357. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4358. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4359. if test $ac_cv_type_size_t = yes; then
  4360. :
  4361. else
  4362. cat >>confdefs.h <<_ACEOF
  4363. #define size_t unsigned
  4364. _ACEOF
  4365. fi
  4366. # -- Libraries --
  4367. echo "$as_me:$LINENO: checking for memmove in -lUTIL" >&5
  4368. echo $ECHO_N "checking for memmove in -lUTIL... $ECHO_C" >&6
  4369. if test "${ac_cv_lib_UTIL_memmove+set}" = set; then
  4370. echo $ECHO_N "(cached) $ECHO_C" >&6
  4371. else
  4372. ac_check_lib_save_LIBS=$LIBS
  4373. LIBS="-lUTIL $LIBS"
  4374. cat >conftest.$ac_ext <<_ACEOF
  4375. /* confdefs.h. */
  4376. _ACEOF
  4377. cat confdefs.h >>conftest.$ac_ext
  4378. cat >>conftest.$ac_ext <<_ACEOF
  4379. /* end confdefs.h. */
  4380. /* Override any gcc2 internal prototype to avoid an error. */
  4381. #ifdef __cplusplus
  4382. extern "C"
  4383. #endif
  4384. /* We use char because int might match the return type of a gcc2
  4385. builtin and then its argument prototype would still apply. */
  4386. char memmove ();
  4387. int
  4388. main ()
  4389. {
  4390. memmove ();
  4391. ;
  4392. return 0;
  4393. }
  4394. _ACEOF
  4395. rm -f conftest.$ac_objext conftest$ac_exeext
  4396. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4397. (eval $ac_link) 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_exeext'
  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_lib_UTIL_memmove=yes
  4417. else
  4418. echo "$as_me: failed program was:" >&5
  4419. sed 's/^/| /' conftest.$ac_ext >&5
  4420. ac_cv_lib_UTIL_memmove=no
  4421. fi
  4422. rm -f conftest.err conftest.$ac_objext \
  4423. conftest$ac_exeext conftest.$ac_ext
  4424. LIBS=$ac_check_lib_save_LIBS
  4425. fi
  4426. echo "$as_me:$LINENO: result: $ac_cv_lib_UTIL_memmove" >&5
  4427. echo "${ECHO_T}$ac_cv_lib_UTIL_memmove" >&6
  4428. if test $ac_cv_lib_UTIL_memmove = yes; then
  4429. cat >>confdefs.h <<_ACEOF
  4430. #define HAVE_LIBUTIL 1
  4431. _ACEOF
  4432. LIBS="-lUTIL $LIBS"
  4433. fi
  4434. echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
  4435. echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
  4436. if test "${ac_cv_lib_socket_bind+set}" = set; then
  4437. echo $ECHO_N "(cached) $ECHO_C" >&6
  4438. else
  4439. ac_check_lib_save_LIBS=$LIBS
  4440. LIBS="-lsocket $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 bind ();
  4454. int
  4455. main ()
  4456. {
  4457. bind ();
  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_socket_bind=yes
  4484. else
  4485. echo "$as_me: failed program was:" >&5
  4486. sed 's/^/| /' conftest.$ac_ext >&5
  4487. ac_cv_lib_socket_bind=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_socket_bind" >&5
  4494. echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
  4495. if test $ac_cv_lib_socket_bind = yes; then
  4496. cat >>confdefs.h <<_ACEOF
  4497. #define HAVE_LIBSOCKET 1
  4498. _ACEOF
  4499. LIBS="-lsocket $LIBS"
  4500. fi
  4501. echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
  4502. echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
  4503. if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
  4504. echo $ECHO_N "(cached) $ECHO_C" >&6
  4505. else
  4506. ac_check_lib_save_LIBS=$LIBS
  4507. LIBS="-lnsl $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 gethostent ();
  4521. int
  4522. main ()
  4523. {
  4524. gethostent ();
  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_nsl_gethostent=yes
  4551. else
  4552. echo "$as_me: failed program was:" >&5
  4553. sed 's/^/| /' conftest.$ac_ext >&5
  4554. ac_cv_lib_nsl_gethostent=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_nsl_gethostent" >&5
  4561. echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
  4562. if test $ac_cv_lib_nsl_gethostent = yes; then
  4563. cat >>confdefs.h <<_ACEOF
  4564. #define HAVE_LIBNSL 1
  4565. _ACEOF
  4566. LIBS="-lnsl $LIBS"
  4567. fi
  4568. # -- Functions --
  4569. echo "$as_me:$LINENO: checking for pid_t" >&5
  4570. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4571. if test "${ac_cv_type_pid_t+set}" = set; then
  4572. echo $ECHO_N "(cached) $ECHO_C" >&6
  4573. else
  4574. cat >conftest.$ac_ext <<_ACEOF
  4575. /* confdefs.h. */
  4576. _ACEOF
  4577. cat confdefs.h >>conftest.$ac_ext
  4578. cat >>conftest.$ac_ext <<_ACEOF
  4579. /* end confdefs.h. */
  4580. $ac_includes_default
  4581. int
  4582. main ()
  4583. {
  4584. if ((pid_t *) 0)
  4585. return 0;
  4586. if (sizeof (pid_t))
  4587. return 0;
  4588. ;
  4589. return 0;
  4590. }
  4591. _ACEOF
  4592. rm -f conftest.$ac_objext
  4593. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4594. (eval $ac_compile) 2>conftest.er1
  4595. ac_status=$?
  4596. grep -v '^ *+' conftest.er1 >conftest.err
  4597. rm -f conftest.er1
  4598. cat conftest.err >&5
  4599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4600. (exit $ac_status); } &&
  4601. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4603. (eval $ac_try) 2>&5
  4604. ac_status=$?
  4605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4606. (exit $ac_status); }; } &&
  4607. { ac_try='test -s conftest.$ac_objext'
  4608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4609. (eval $ac_try) 2>&5
  4610. ac_status=$?
  4611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4612. (exit $ac_status); }; }; then
  4613. ac_cv_type_pid_t=yes
  4614. else
  4615. echo "$as_me: failed program was:" >&5
  4616. sed 's/^/| /' conftest.$ac_ext >&5
  4617. ac_cv_type_pid_t=no
  4618. fi
  4619. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4620. fi
  4621. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4622. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4623. if test $ac_cv_type_pid_t = yes; then
  4624. :
  4625. else
  4626. cat >>confdefs.h <<_ACEOF
  4627. #define pid_t int
  4628. _ACEOF
  4629. fi
  4630. for ac_header in unistd.h vfork.h
  4631. do
  4632. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4633. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4634. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4635. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4636. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4637. echo $ECHO_N "(cached) $ECHO_C" >&6
  4638. fi
  4639. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4640. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4641. else
  4642. # Is the header compilable?
  4643. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4644. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4645. cat >conftest.$ac_ext <<_ACEOF
  4646. /* confdefs.h. */
  4647. _ACEOF
  4648. cat confdefs.h >>conftest.$ac_ext
  4649. cat >>conftest.$ac_ext <<_ACEOF
  4650. /* end confdefs.h. */
  4651. $ac_includes_default
  4652. #include <$ac_header>
  4653. _ACEOF
  4654. rm -f conftest.$ac_objext
  4655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4656. (eval $ac_compile) 2>conftest.er1
  4657. ac_status=$?
  4658. grep -v '^ *+' conftest.er1 >conftest.err
  4659. rm -f conftest.er1
  4660. cat conftest.err >&5
  4661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4662. (exit $ac_status); } &&
  4663. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4665. (eval $ac_try) 2>&5
  4666. ac_status=$?
  4667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4668. (exit $ac_status); }; } &&
  4669. { ac_try='test -s conftest.$ac_objext'
  4670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4671. (eval $ac_try) 2>&5
  4672. ac_status=$?
  4673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4674. (exit $ac_status); }; }; then
  4675. ac_header_compiler=yes
  4676. else
  4677. echo "$as_me: failed program was:" >&5
  4678. sed 's/^/| /' conftest.$ac_ext >&5
  4679. ac_header_compiler=no
  4680. fi
  4681. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4682. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4683. echo "${ECHO_T}$ac_header_compiler" >&6
  4684. # Is the header present?
  4685. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4686. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4687. cat >conftest.$ac_ext <<_ACEOF
  4688. /* confdefs.h. */
  4689. _ACEOF
  4690. cat confdefs.h >>conftest.$ac_ext
  4691. cat >>conftest.$ac_ext <<_ACEOF
  4692. /* end confdefs.h. */
  4693. #include <$ac_header>
  4694. _ACEOF
  4695. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4696. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4697. ac_status=$?
  4698. grep -v '^ *+' conftest.er1 >conftest.err
  4699. rm -f conftest.er1
  4700. cat conftest.err >&5
  4701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4702. (exit $ac_status); } >/dev/null; then
  4703. if test -s conftest.err; then
  4704. ac_cpp_err=$ac_c_preproc_warn_flag
  4705. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4706. else
  4707. ac_cpp_err=
  4708. fi
  4709. else
  4710. ac_cpp_err=yes
  4711. fi
  4712. if test -z "$ac_cpp_err"; then
  4713. ac_header_preproc=yes
  4714. else
  4715. echo "$as_me: failed program was:" >&5
  4716. sed 's/^/| /' conftest.$ac_ext >&5
  4717. ac_header_preproc=no
  4718. fi
  4719. rm -f conftest.err conftest.$ac_ext
  4720. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4721. echo "${ECHO_T}$ac_header_preproc" >&6
  4722. # So? What about this header?
  4723. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4724. yes:no: )
  4725. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4726. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4727. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4728. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4729. ac_header_preproc=yes
  4730. ;;
  4731. no:yes:* )
  4732. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4733. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4734. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4735. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4736. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4737. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4738. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4739. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4740. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4741. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4742. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4743. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4744. (
  4745. cat <<\_ASBOX
  4746. ## --------------------------------- ##
  4747. ## Report this to the ngircd lists. ##
  4748. ## --------------------------------- ##
  4749. _ASBOX
  4750. ) |
  4751. sed "s/^/$as_me: WARNING: /" >&2
  4752. ;;
  4753. esac
  4754. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4755. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4756. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4757. echo $ECHO_N "(cached) $ECHO_C" >&6
  4758. else
  4759. eval "$as_ac_Header=\$ac_header_preproc"
  4760. fi
  4761. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4762. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4763. fi
  4764. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4765. cat >>confdefs.h <<_ACEOF
  4766. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4767. _ACEOF
  4768. fi
  4769. done
  4770. for ac_func in fork vfork
  4771. do
  4772. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4773. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4774. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4775. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4776. echo $ECHO_N "(cached) $ECHO_C" >&6
  4777. else
  4778. cat >conftest.$ac_ext <<_ACEOF
  4779. /* confdefs.h. */
  4780. _ACEOF
  4781. cat confdefs.h >>conftest.$ac_ext
  4782. cat >>conftest.$ac_ext <<_ACEOF
  4783. /* end confdefs.h. */
  4784. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4785. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4786. #define $ac_func innocuous_$ac_func
  4787. /* System header to define __stub macros and hopefully few prototypes,
  4788. which can conflict with char $ac_func (); below.
  4789. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4790. <limits.h> exists even on freestanding compilers. */
  4791. #ifdef __STDC__
  4792. # include <limits.h>
  4793. #else
  4794. # include <assert.h>
  4795. #endif
  4796. #undef $ac_func
  4797. /* Override any gcc2 internal prototype to avoid an error. */
  4798. #ifdef __cplusplus
  4799. extern "C"
  4800. {
  4801. #endif
  4802. /* We use char because int might match the return type of a gcc2
  4803. builtin and then its argument prototype would still apply. */
  4804. char $ac_func ();
  4805. /* The GNU C library defines this for functions which it implements
  4806. to always fail with ENOSYS. Some functions are actually named
  4807. something starting with __ and the normal name is an alias. */
  4808. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4809. choke me
  4810. #else
  4811. char (*f) () = $ac_func;
  4812. #endif
  4813. #ifdef __cplusplus
  4814. }
  4815. #endif
  4816. int
  4817. main ()
  4818. {
  4819. return f != $ac_func;
  4820. ;
  4821. return 0;
  4822. }
  4823. _ACEOF
  4824. rm -f conftest.$ac_objext conftest$ac_exeext
  4825. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4826. (eval $ac_link) 2>conftest.er1
  4827. ac_status=$?
  4828. grep -v '^ *+' conftest.er1 >conftest.err
  4829. rm -f conftest.er1
  4830. cat conftest.err >&5
  4831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. (exit $ac_status); } &&
  4833. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4835. (eval $ac_try) 2>&5
  4836. ac_status=$?
  4837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4838. (exit $ac_status); }; } &&
  4839. { ac_try='test -s conftest$ac_exeext'
  4840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4841. (eval $ac_try) 2>&5
  4842. ac_status=$?
  4843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4844. (exit $ac_status); }; }; then
  4845. eval "$as_ac_var=yes"
  4846. else
  4847. echo "$as_me: failed program was:" >&5
  4848. sed 's/^/| /' conftest.$ac_ext >&5
  4849. eval "$as_ac_var=no"
  4850. fi
  4851. rm -f conftest.err conftest.$ac_objext \
  4852. conftest$ac_exeext conftest.$ac_ext
  4853. fi
  4854. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4855. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4856. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4857. cat >>confdefs.h <<_ACEOF
  4858. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4859. _ACEOF
  4860. fi
  4861. done
  4862. if test "x$ac_cv_func_fork" = xyes; then
  4863. echo "$as_me:$LINENO: checking for working fork" >&5
  4864. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  4865. if test "${ac_cv_func_fork_works+set}" = set; then
  4866. echo $ECHO_N "(cached) $ECHO_C" >&6
  4867. else
  4868. if test "$cross_compiling" = yes; then
  4869. ac_cv_func_fork_works=cross
  4870. else
  4871. cat >conftest.$ac_ext <<_ACEOF
  4872. /* By Ruediger Kuhlmann. */
  4873. #include <sys/types.h>
  4874. #if HAVE_UNISTD_H
  4875. # include <unistd.h>
  4876. #endif
  4877. /* Some systems only have a dummy stub for fork() */
  4878. int main ()
  4879. {
  4880. if (fork() < 0)
  4881. exit (1);
  4882. exit (0);
  4883. }
  4884. _ACEOF
  4885. rm -f conftest$ac_exeext
  4886. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4887. (eval $ac_link) 2>&5
  4888. ac_status=$?
  4889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4892. (eval $ac_try) 2>&5
  4893. ac_status=$?
  4894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4895. (exit $ac_status); }; }; then
  4896. ac_cv_func_fork_works=yes
  4897. else
  4898. echo "$as_me: program exited with status $ac_status" >&5
  4899. echo "$as_me: failed program was:" >&5
  4900. sed 's/^/| /' conftest.$ac_ext >&5
  4901. ( exit $ac_status )
  4902. ac_cv_func_fork_works=no
  4903. fi
  4904. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4905. fi
  4906. fi
  4907. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  4908. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  4909. else
  4910. ac_cv_func_fork_works=$ac_cv_func_fork
  4911. fi
  4912. if test "x$ac_cv_func_fork_works" = xcross; then
  4913. case $host in
  4914. *-*-amigaos* | *-*-msdosdjgpp*)
  4915. # Override, as these systems have only a dummy fork() stub
  4916. ac_cv_func_fork_works=no
  4917. ;;
  4918. *)
  4919. ac_cv_func_fork_works=yes
  4920. ;;
  4921. esac
  4922. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  4923. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  4924. fi
  4925. ac_cv_func_vfork_works=$ac_cv_func_vfork
  4926. if test "x$ac_cv_func_vfork" = xyes; then
  4927. echo "$as_me:$LINENO: checking for working vfork" >&5
  4928. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  4929. if test "${ac_cv_func_vfork_works+set}" = set; then
  4930. echo $ECHO_N "(cached) $ECHO_C" >&6
  4931. else
  4932. if test "$cross_compiling" = yes; then
  4933. ac_cv_func_vfork_works=cross
  4934. else
  4935. cat >conftest.$ac_ext <<_ACEOF
  4936. /* confdefs.h. */
  4937. _ACEOF
  4938. cat confdefs.h >>conftest.$ac_ext
  4939. cat >>conftest.$ac_ext <<_ACEOF
  4940. /* end confdefs.h. */
  4941. /* Thanks to Paul Eggert for this test. */
  4942. #include <stdio.h>
  4943. #include <stdlib.h>
  4944. #include <sys/types.h>
  4945. #include <sys/stat.h>
  4946. #include <sys/wait.h>
  4947. #if HAVE_UNISTD_H
  4948. # include <unistd.h>
  4949. #endif
  4950. #if HAVE_VFORK_H
  4951. # include <vfork.h>
  4952. #endif
  4953. /* On some sparc systems, changes by the child to local and incoming
  4954. argument registers are propagated back to the parent. The compiler
  4955. is told about this with #include <vfork.h>, but some compilers
  4956. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  4957. static variable whose address is put into a register that is
  4958. clobbered by the vfork. */
  4959. static void
  4960. #ifdef __cplusplus
  4961. sparc_address_test (int arg)
  4962. # else
  4963. sparc_address_test (arg) int arg;
  4964. #endif
  4965. {
  4966. static pid_t child;
  4967. if (!child) {
  4968. child = vfork ();
  4969. if (child < 0) {
  4970. perror ("vfork");
  4971. _exit(2);
  4972. }
  4973. if (!child) {
  4974. arg = getpid();
  4975. write(-1, "", 0);
  4976. _exit (arg);
  4977. }
  4978. }
  4979. }
  4980. int
  4981. main ()
  4982. {
  4983. pid_t parent = getpid ();
  4984. pid_t child;
  4985. sparc_address_test (0);
  4986. child = vfork ();
  4987. if (child == 0) {
  4988. /* Here is another test for sparc vfork register problems. This
  4989. test uses lots of local variables, at least as many local
  4990. variables as main has allocated so far including compiler
  4991. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  4992. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  4993. reuse the register of parent for one of the local variables,
  4994. since it will think that parent can't possibly be used any more
  4995. in this routine. Assigning to the local variable will thus
  4996. munge parent in the parent process. */
  4997. pid_t
  4998. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  4999. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5000. /* Convince the compiler that p..p7 are live; otherwise, it might
  5001. use the same hardware register for all 8 local variables. */
  5002. if (p != p1 || p != p2 || p != p3 || p != p4
  5003. || p != p5 || p != p6 || p != p7)
  5004. _exit(1);
  5005. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5006. from child file descriptors. If the child closes a descriptor
  5007. before it execs or exits, this munges the parent's descriptor
  5008. as well. Test for this by closing stdout in the child. */
  5009. _exit(close(fileno(stdout)) != 0);
  5010. } else {
  5011. int status;
  5012. struct stat st;
  5013. while (wait(&status) != child)
  5014. ;
  5015. exit(
  5016. /* Was there some problem with vforking? */
  5017. child < 0
  5018. /* Did the child fail? (This shouldn't happen.) */
  5019. || status
  5020. /* Did the vfork/compiler bug occur? */
  5021. || parent != getpid()
  5022. /* Did the file descriptor bug occur? */
  5023. || fstat(fileno(stdout), &st) != 0
  5024. );
  5025. }
  5026. }
  5027. _ACEOF
  5028. rm -f conftest$ac_exeext
  5029. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5030. (eval $ac_link) 2>&5
  5031. ac_status=$?
  5032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5033. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5035. (eval $ac_try) 2>&5
  5036. ac_status=$?
  5037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5038. (exit $ac_status); }; }; then
  5039. ac_cv_func_vfork_works=yes
  5040. else
  5041. echo "$as_me: program exited with status $ac_status" >&5
  5042. echo "$as_me: failed program was:" >&5
  5043. sed 's/^/| /' conftest.$ac_ext >&5
  5044. ( exit $ac_status )
  5045. ac_cv_func_vfork_works=no
  5046. fi
  5047. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5048. fi
  5049. fi
  5050. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  5051. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  5052. fi;
  5053. if test "x$ac_cv_func_fork_works" = xcross; then
  5054. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5055. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5056. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5057. fi
  5058. if test "x$ac_cv_func_vfork_works" = xyes; then
  5059. cat >>confdefs.h <<\_ACEOF
  5060. #define HAVE_WORKING_VFORK 1
  5061. _ACEOF
  5062. else
  5063. cat >>confdefs.h <<\_ACEOF
  5064. #define vfork fork
  5065. _ACEOF
  5066. fi
  5067. if test "x$ac_cv_func_fork_works" = xyes; then
  5068. cat >>confdefs.h <<\_ACEOF
  5069. #define HAVE_WORKING_FORK 1
  5070. _ACEOF
  5071. fi
  5072. for ac_func in strftime
  5073. do
  5074. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5075. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5076. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5077. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5078. echo $ECHO_N "(cached) $ECHO_C" >&6
  5079. else
  5080. cat >conftest.$ac_ext <<_ACEOF
  5081. /* confdefs.h. */
  5082. _ACEOF
  5083. cat confdefs.h >>conftest.$ac_ext
  5084. cat >>conftest.$ac_ext <<_ACEOF
  5085. /* end confdefs.h. */
  5086. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5087. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5088. #define $ac_func innocuous_$ac_func
  5089. /* System header to define __stub macros and hopefully few prototypes,
  5090. which can conflict with char $ac_func (); below.
  5091. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5092. <limits.h> exists even on freestanding compilers. */
  5093. #ifdef __STDC__
  5094. # include <limits.h>
  5095. #else
  5096. # include <assert.h>
  5097. #endif
  5098. #undef $ac_func
  5099. /* Override any gcc2 internal prototype to avoid an error. */
  5100. #ifdef __cplusplus
  5101. extern "C"
  5102. {
  5103. #endif
  5104. /* We use char because int might match the return type of a gcc2
  5105. builtin and then its argument prototype would still apply. */
  5106. char $ac_func ();
  5107. /* The GNU C library defines this for functions which it implements
  5108. to always fail with ENOSYS. Some functions are actually named
  5109. something starting with __ and the normal name is an alias. */
  5110. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5111. choke me
  5112. #else
  5113. char (*f) () = $ac_func;
  5114. #endif
  5115. #ifdef __cplusplus
  5116. }
  5117. #endif
  5118. int
  5119. main ()
  5120. {
  5121. return f != $ac_func;
  5122. ;
  5123. return 0;
  5124. }
  5125. _ACEOF
  5126. rm -f conftest.$ac_objext conftest$ac_exeext
  5127. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5128. (eval $ac_link) 2>conftest.er1
  5129. ac_status=$?
  5130. grep -v '^ *+' conftest.er1 >conftest.err
  5131. rm -f conftest.er1
  5132. cat conftest.err >&5
  5133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5134. (exit $ac_status); } &&
  5135. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5137. (eval $ac_try) 2>&5
  5138. ac_status=$?
  5139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5140. (exit $ac_status); }; } &&
  5141. { ac_try='test -s conftest$ac_exeext'
  5142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5143. (eval $ac_try) 2>&5
  5144. ac_status=$?
  5145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5146. (exit $ac_status); }; }; then
  5147. eval "$as_ac_var=yes"
  5148. else
  5149. echo "$as_me: failed program was:" >&5
  5150. sed 's/^/| /' conftest.$ac_ext >&5
  5151. eval "$as_ac_var=no"
  5152. fi
  5153. rm -f conftest.err conftest.$ac_objext \
  5154. conftest$ac_exeext conftest.$ac_ext
  5155. fi
  5156. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5157. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5158. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5159. cat >>confdefs.h <<_ACEOF
  5160. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5161. _ACEOF
  5162. else
  5163. # strftime is in -lintl on SCO UNIX.
  5164. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  5165. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  5166. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  5167. echo $ECHO_N "(cached) $ECHO_C" >&6
  5168. else
  5169. ac_check_lib_save_LIBS=$LIBS
  5170. LIBS="-lintl $LIBS"
  5171. cat >conftest.$ac_ext <<_ACEOF
  5172. /* confdefs.h. */
  5173. _ACEOF
  5174. cat confdefs.h >>conftest.$ac_ext
  5175. cat >>conftest.$ac_ext <<_ACEOF
  5176. /* end confdefs.h. */
  5177. /* Override any gcc2 internal prototype to avoid an error. */
  5178. #ifdef __cplusplus
  5179. extern "C"
  5180. #endif
  5181. /* We use char because int might match the return type of a gcc2
  5182. builtin and then its argument prototype would still apply. */
  5183. char strftime ();
  5184. int
  5185. main ()
  5186. {
  5187. strftime ();
  5188. ;
  5189. return 0;
  5190. }
  5191. _ACEOF
  5192. rm -f conftest.$ac_objext conftest$ac_exeext
  5193. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5194. (eval $ac_link) 2>conftest.er1
  5195. ac_status=$?
  5196. grep -v '^ *+' conftest.er1 >conftest.err
  5197. rm -f conftest.er1
  5198. cat conftest.err >&5
  5199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5200. (exit $ac_status); } &&
  5201. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5203. (eval $ac_try) 2>&5
  5204. ac_status=$?
  5205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5206. (exit $ac_status); }; } &&
  5207. { ac_try='test -s conftest$ac_exeext'
  5208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5209. (eval $ac_try) 2>&5
  5210. ac_status=$?
  5211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5212. (exit $ac_status); }; }; then
  5213. ac_cv_lib_intl_strftime=yes
  5214. else
  5215. echo "$as_me: failed program was:" >&5
  5216. sed 's/^/| /' conftest.$ac_ext >&5
  5217. ac_cv_lib_intl_strftime=no
  5218. fi
  5219. rm -f conftest.err conftest.$ac_objext \
  5220. conftest$ac_exeext conftest.$ac_ext
  5221. LIBS=$ac_check_lib_save_LIBS
  5222. fi
  5223. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  5224. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  5225. if test $ac_cv_lib_intl_strftime = yes; then
  5226. cat >>confdefs.h <<\_ACEOF
  5227. #define HAVE_STRFTIME 1
  5228. _ACEOF
  5229. LIBS="-lintl $LIBS"
  5230. fi
  5231. fi
  5232. done
  5233. for ac_func in \
  5234. bind gethostbyaddr gethostbyname gethostname inet_ntoa malloc memmove \
  5235. memset realloc setsid setsockopt socket strcasecmp strchr strerror \
  5236. strstr waitpid
  5237. do
  5238. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5239. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5240. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5241. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5242. echo $ECHO_N "(cached) $ECHO_C" >&6
  5243. else
  5244. cat >conftest.$ac_ext <<_ACEOF
  5245. /* confdefs.h. */
  5246. _ACEOF
  5247. cat confdefs.h >>conftest.$ac_ext
  5248. cat >>conftest.$ac_ext <<_ACEOF
  5249. /* end confdefs.h. */
  5250. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5251. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5252. #define $ac_func innocuous_$ac_func
  5253. /* System header to define __stub macros and hopefully few prototypes,
  5254. which can conflict with char $ac_func (); below.
  5255. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5256. <limits.h> exists even on freestanding compilers. */
  5257. #ifdef __STDC__
  5258. # include <limits.h>
  5259. #else
  5260. # include <assert.h>
  5261. #endif
  5262. #undef $ac_func
  5263. /* Override any gcc2 internal prototype to avoid an error. */
  5264. #ifdef __cplusplus
  5265. extern "C"
  5266. {
  5267. #endif
  5268. /* We use char because int might match the return type of a gcc2
  5269. builtin and then its argument prototype would still apply. */
  5270. char $ac_func ();
  5271. /* The GNU C library defines this for functions which it implements
  5272. to always fail with ENOSYS. Some functions are actually named
  5273. something starting with __ and the normal name is an alias. */
  5274. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5275. choke me
  5276. #else
  5277. char (*f) () = $ac_func;
  5278. #endif
  5279. #ifdef __cplusplus
  5280. }
  5281. #endif
  5282. int
  5283. main ()
  5284. {
  5285. return f != $ac_func;
  5286. ;
  5287. return 0;
  5288. }
  5289. _ACEOF
  5290. rm -f conftest.$ac_objext conftest$ac_exeext
  5291. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5292. (eval $ac_link) 2>conftest.er1
  5293. ac_status=$?
  5294. grep -v '^ *+' conftest.er1 >conftest.err
  5295. rm -f conftest.er1
  5296. cat conftest.err >&5
  5297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5298. (exit $ac_status); } &&
  5299. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5301. (eval $ac_try) 2>&5
  5302. ac_status=$?
  5303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5304. (exit $ac_status); }; } &&
  5305. { ac_try='test -s conftest$ac_exeext'
  5306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5307. (eval $ac_try) 2>&5
  5308. ac_status=$?
  5309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5310. (exit $ac_status); }; }; then
  5311. eval "$as_ac_var=yes"
  5312. else
  5313. echo "$as_me: failed program was:" >&5
  5314. sed 's/^/| /' conftest.$ac_ext >&5
  5315. eval "$as_ac_var=no"
  5316. fi
  5317. rm -f conftest.err conftest.$ac_objext \
  5318. conftest$ac_exeext conftest.$ac_ext
  5319. fi
  5320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5321. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5322. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5323. cat >>confdefs.h <<_ACEOF
  5324. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5325. _ACEOF
  5326. else
  5327. { { echo "$as_me:$LINENO: error: required function missing!" >&5
  5328. echo "$as_me: error: required function missing!" >&2;}
  5329. { (exit 1); exit 1; }; }
  5330. fi
  5331. done
  5332. for ac_func in inet_aton isdigit sigaction snprintf vsnprintf strdup strlcpy strlcat
  5333. do
  5334. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5335. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5336. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5337. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5338. echo $ECHO_N "(cached) $ECHO_C" >&6
  5339. else
  5340. cat >conftest.$ac_ext <<_ACEOF
  5341. /* confdefs.h. */
  5342. _ACEOF
  5343. cat confdefs.h >>conftest.$ac_ext
  5344. cat >>conftest.$ac_ext <<_ACEOF
  5345. /* end confdefs.h. */
  5346. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5347. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5348. #define $ac_func innocuous_$ac_func
  5349. /* System header to define __stub macros and hopefully few prototypes,
  5350. which can conflict with char $ac_func (); below.
  5351. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5352. <limits.h> exists even on freestanding compilers. */
  5353. #ifdef __STDC__
  5354. # include <limits.h>
  5355. #else
  5356. # include <assert.h>
  5357. #endif
  5358. #undef $ac_func
  5359. /* Override any gcc2 internal prototype to avoid an error. */
  5360. #ifdef __cplusplus
  5361. extern "C"
  5362. {
  5363. #endif
  5364. /* We use char because int might match the return type of a gcc2
  5365. builtin and then its argument prototype would still apply. */
  5366. char $ac_func ();
  5367. /* The GNU C library defines this for functions which it implements
  5368. to always fail with ENOSYS. Some functions are actually named
  5369. something starting with __ and the normal name is an alias. */
  5370. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5371. choke me
  5372. #else
  5373. char (*f) () = $ac_func;
  5374. #endif
  5375. #ifdef __cplusplus
  5376. }
  5377. #endif
  5378. int
  5379. main ()
  5380. {
  5381. return f != $ac_func;
  5382. ;
  5383. return 0;
  5384. }
  5385. _ACEOF
  5386. rm -f conftest.$ac_objext conftest$ac_exeext
  5387. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5388. (eval $ac_link) 2>conftest.er1
  5389. ac_status=$?
  5390. grep -v '^ *+' conftest.er1 >conftest.err
  5391. rm -f conftest.er1
  5392. cat conftest.err >&5
  5393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5394. (exit $ac_status); } &&
  5395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5397. (eval $ac_try) 2>&5
  5398. ac_status=$?
  5399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5400. (exit $ac_status); }; } &&
  5401. { ac_try='test -s conftest$ac_exeext'
  5402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5403. (eval $ac_try) 2>&5
  5404. ac_status=$?
  5405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5406. (exit $ac_status); }; }; then
  5407. eval "$as_ac_var=yes"
  5408. else
  5409. echo "$as_me: failed program was:" >&5
  5410. sed 's/^/| /' conftest.$ac_ext >&5
  5411. eval "$as_ac_var=no"
  5412. fi
  5413. rm -f conftest.err conftest.$ac_objext \
  5414. conftest$ac_exeext conftest.$ac_ext
  5415. fi
  5416. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5417. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5418. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5419. cat >>confdefs.h <<_ACEOF
  5420. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5421. _ACEOF
  5422. fi
  5423. done
  5424. for ac_func in select
  5425. do
  5426. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5427. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5428. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5429. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5430. echo $ECHO_N "(cached) $ECHO_C" >&6
  5431. else
  5432. cat >conftest.$ac_ext <<_ACEOF
  5433. /* confdefs.h. */
  5434. _ACEOF
  5435. cat confdefs.h >>conftest.$ac_ext
  5436. cat >>conftest.$ac_ext <<_ACEOF
  5437. /* end confdefs.h. */
  5438. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5439. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5440. #define $ac_func innocuous_$ac_func
  5441. /* System header to define __stub macros and hopefully few prototypes,
  5442. which can conflict with char $ac_func (); below.
  5443. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5444. <limits.h> exists even on freestanding compilers. */
  5445. #ifdef __STDC__
  5446. # include <limits.h>
  5447. #else
  5448. # include <assert.h>
  5449. #endif
  5450. #undef $ac_func
  5451. /* Override any gcc2 internal prototype to avoid an error. */
  5452. #ifdef __cplusplus
  5453. extern "C"
  5454. {
  5455. #endif
  5456. /* We use char because int might match the return type of a gcc2
  5457. builtin and then its argument prototype would still apply. */
  5458. char $ac_func ();
  5459. /* The GNU C library defines this for functions which it implements
  5460. to always fail with ENOSYS. Some functions are actually named
  5461. something starting with __ and the normal name is an alias. */
  5462. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5463. choke me
  5464. #else
  5465. char (*f) () = $ac_func;
  5466. #endif
  5467. #ifdef __cplusplus
  5468. }
  5469. #endif
  5470. int
  5471. main ()
  5472. {
  5473. return f != $ac_func;
  5474. ;
  5475. return 0;
  5476. }
  5477. _ACEOF
  5478. rm -f conftest.$ac_objext conftest$ac_exeext
  5479. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5480. (eval $ac_link) 2>conftest.er1
  5481. ac_status=$?
  5482. grep -v '^ *+' conftest.er1 >conftest.err
  5483. rm -f conftest.er1
  5484. cat conftest.err >&5
  5485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5486. (exit $ac_status); } &&
  5487. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5489. (eval $ac_try) 2>&5
  5490. ac_status=$?
  5491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5492. (exit $ac_status); }; } &&
  5493. { ac_try='test -s conftest$ac_exeext'
  5494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5495. (eval $ac_try) 2>&5
  5496. ac_status=$?
  5497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5498. (exit $ac_status); }; }; then
  5499. eval "$as_ac_var=yes"
  5500. else
  5501. echo "$as_me: failed program was:" >&5
  5502. sed 's/^/| /' conftest.$ac_ext >&5
  5503. eval "$as_ac_var=no"
  5504. fi
  5505. rm -f conftest.err conftest.$ac_objext \
  5506. conftest$ac_exeext conftest.$ac_ext
  5507. fi
  5508. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5509. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5510. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5511. cat >>confdefs.h <<_ACEOF
  5512. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5513. _ACEOF
  5514. for ac_header in sys/select.h
  5515. do
  5516. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5517. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5518. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5519. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5520. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5521. echo $ECHO_N "(cached) $ECHO_C" >&6
  5522. fi
  5523. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5524. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5525. else
  5526. # Is the header compilable?
  5527. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5528. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5529. cat >conftest.$ac_ext <<_ACEOF
  5530. /* confdefs.h. */
  5531. _ACEOF
  5532. cat confdefs.h >>conftest.$ac_ext
  5533. cat >>conftest.$ac_ext <<_ACEOF
  5534. /* end confdefs.h. */
  5535. $ac_includes_default
  5536. #include <$ac_header>
  5537. _ACEOF
  5538. rm -f conftest.$ac_objext
  5539. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5540. (eval $ac_compile) 2>conftest.er1
  5541. ac_status=$?
  5542. grep -v '^ *+' conftest.er1 >conftest.err
  5543. rm -f conftest.er1
  5544. cat conftest.err >&5
  5545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5546. (exit $ac_status); } &&
  5547. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5549. (eval $ac_try) 2>&5
  5550. ac_status=$?
  5551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5552. (exit $ac_status); }; } &&
  5553. { ac_try='test -s conftest.$ac_objext'
  5554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5555. (eval $ac_try) 2>&5
  5556. ac_status=$?
  5557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5558. (exit $ac_status); }; }; then
  5559. ac_header_compiler=yes
  5560. else
  5561. echo "$as_me: failed program was:" >&5
  5562. sed 's/^/| /' conftest.$ac_ext >&5
  5563. ac_header_compiler=no
  5564. fi
  5565. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5566. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5567. echo "${ECHO_T}$ac_header_compiler" >&6
  5568. # Is the header present?
  5569. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5570. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5571. cat >conftest.$ac_ext <<_ACEOF
  5572. /* confdefs.h. */
  5573. _ACEOF
  5574. cat confdefs.h >>conftest.$ac_ext
  5575. cat >>conftest.$ac_ext <<_ACEOF
  5576. /* end confdefs.h. */
  5577. #include <$ac_header>
  5578. _ACEOF
  5579. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5580. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5581. ac_status=$?
  5582. grep -v '^ *+' conftest.er1 >conftest.err
  5583. rm -f conftest.er1
  5584. cat conftest.err >&5
  5585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5586. (exit $ac_status); } >/dev/null; then
  5587. if test -s conftest.err; then
  5588. ac_cpp_err=$ac_c_preproc_warn_flag
  5589. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5590. else
  5591. ac_cpp_err=
  5592. fi
  5593. else
  5594. ac_cpp_err=yes
  5595. fi
  5596. if test -z "$ac_cpp_err"; then
  5597. ac_header_preproc=yes
  5598. else
  5599. echo "$as_me: failed program was:" >&5
  5600. sed 's/^/| /' conftest.$ac_ext >&5
  5601. ac_header_preproc=no
  5602. fi
  5603. rm -f conftest.err conftest.$ac_ext
  5604. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5605. echo "${ECHO_T}$ac_header_preproc" >&6
  5606. # So? What about this header?
  5607. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5608. yes:no: )
  5609. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5610. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5611. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5612. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5613. ac_header_preproc=yes
  5614. ;;
  5615. no:yes:* )
  5616. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5617. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5618. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5619. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5620. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5621. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5622. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5623. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5624. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5625. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5626. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5627. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5628. (
  5629. cat <<\_ASBOX
  5630. ## --------------------------------- ##
  5631. ## Report this to the ngircd lists. ##
  5632. ## --------------------------------- ##
  5633. _ASBOX
  5634. ) |
  5635. sed "s/^/$as_me: WARNING: /" >&2
  5636. ;;
  5637. esac
  5638. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5639. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5640. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5641. echo $ECHO_N "(cached) $ECHO_C" >&6
  5642. else
  5643. eval "$as_ac_Header=\$ac_header_preproc"
  5644. fi
  5645. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5646. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5647. fi
  5648. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5649. cat >>confdefs.h <<_ACEOF
  5650. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5651. _ACEOF
  5652. fi
  5653. done
  5654. else
  5655. { { echo "$as_me:$LINENO: error: required function select() is missing!" >&5
  5656. echo "$as_me: error: required function select() is missing!" >&2;}
  5657. { (exit 1); exit 1; }; }
  5658. fi
  5659. done
  5660. # -- Configuration options --
  5661. x_syslog_on=no
  5662. # Check whether --with-syslog or --without-syslog was given.
  5663. if test "${with_syslog+set}" = set; then
  5664. withval="$with_syslog"
  5665. if test "$withval" != "no"; then
  5666. if test "$withval" != "yes"; then
  5667. CFLAGS="-I$withval/include $CFLAGS"
  5668. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5669. LDFLAGS="-L$withval/lib $LDFLAGS"
  5670. fi
  5671. echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  5672. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6
  5673. if test "${ac_cv_lib_be_syslog+set}" = set; then
  5674. echo $ECHO_N "(cached) $ECHO_C" >&6
  5675. else
  5676. ac_check_lib_save_LIBS=$LIBS
  5677. LIBS="-lbe $LIBS"
  5678. cat >conftest.$ac_ext <<_ACEOF
  5679. /* confdefs.h. */
  5680. _ACEOF
  5681. cat confdefs.h >>conftest.$ac_ext
  5682. cat >>conftest.$ac_ext <<_ACEOF
  5683. /* end confdefs.h. */
  5684. /* Override any gcc2 internal prototype to avoid an error. */
  5685. #ifdef __cplusplus
  5686. extern "C"
  5687. #endif
  5688. /* We use char because int might match the return type of a gcc2
  5689. builtin and then its argument prototype would still apply. */
  5690. char syslog ();
  5691. int
  5692. main ()
  5693. {
  5694. syslog ();
  5695. ;
  5696. return 0;
  5697. }
  5698. _ACEOF
  5699. rm -f conftest.$ac_objext conftest$ac_exeext
  5700. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5701. (eval $ac_link) 2>conftest.er1
  5702. ac_status=$?
  5703. grep -v '^ *+' conftest.er1 >conftest.err
  5704. rm -f conftest.er1
  5705. cat conftest.err >&5
  5706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5707. (exit $ac_status); } &&
  5708. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5710. (eval $ac_try) 2>&5
  5711. ac_status=$?
  5712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5713. (exit $ac_status); }; } &&
  5714. { ac_try='test -s conftest$ac_exeext'
  5715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5716. (eval $ac_try) 2>&5
  5717. ac_status=$?
  5718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5719. (exit $ac_status); }; }; then
  5720. ac_cv_lib_be_syslog=yes
  5721. else
  5722. echo "$as_me: failed program was:" >&5
  5723. sed 's/^/| /' conftest.$ac_ext >&5
  5724. ac_cv_lib_be_syslog=no
  5725. fi
  5726. rm -f conftest.err conftest.$ac_objext \
  5727. conftest$ac_exeext conftest.$ac_ext
  5728. LIBS=$ac_check_lib_save_LIBS
  5729. fi
  5730. echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  5731. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6
  5732. if test $ac_cv_lib_be_syslog = yes; then
  5733. cat >>confdefs.h <<_ACEOF
  5734. #define HAVE_LIBBE 1
  5735. _ACEOF
  5736. LIBS="-lbe $LIBS"
  5737. fi
  5738. for ac_func in syslog
  5739. do
  5740. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5741. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5742. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5743. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5744. echo $ECHO_N "(cached) $ECHO_C" >&6
  5745. else
  5746. cat >conftest.$ac_ext <<_ACEOF
  5747. /* confdefs.h. */
  5748. _ACEOF
  5749. cat confdefs.h >>conftest.$ac_ext
  5750. cat >>conftest.$ac_ext <<_ACEOF
  5751. /* end confdefs.h. */
  5752. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5753. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5754. #define $ac_func innocuous_$ac_func
  5755. /* System header to define __stub macros and hopefully few prototypes,
  5756. which can conflict with char $ac_func (); below.
  5757. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5758. <limits.h> exists even on freestanding compilers. */
  5759. #ifdef __STDC__
  5760. # include <limits.h>
  5761. #else
  5762. # include <assert.h>
  5763. #endif
  5764. #undef $ac_func
  5765. /* Override any gcc2 internal prototype to avoid an error. */
  5766. #ifdef __cplusplus
  5767. extern "C"
  5768. {
  5769. #endif
  5770. /* We use char because int might match the return type of a gcc2
  5771. builtin and then its argument prototype would still apply. */
  5772. char $ac_func ();
  5773. /* The GNU C library defines this for functions which it implements
  5774. to always fail with ENOSYS. Some functions are actually named
  5775. something starting with __ and the normal name is an alias. */
  5776. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5777. choke me
  5778. #else
  5779. char (*f) () = $ac_func;
  5780. #endif
  5781. #ifdef __cplusplus
  5782. }
  5783. #endif
  5784. int
  5785. main ()
  5786. {
  5787. return f != $ac_func;
  5788. ;
  5789. return 0;
  5790. }
  5791. _ACEOF
  5792. rm -f conftest.$ac_objext conftest$ac_exeext
  5793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5794. (eval $ac_link) 2>conftest.er1
  5795. ac_status=$?
  5796. grep -v '^ *+' conftest.er1 >conftest.err
  5797. rm -f conftest.er1
  5798. cat conftest.err >&5
  5799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5800. (exit $ac_status); } &&
  5801. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5803. (eval $ac_try) 2>&5
  5804. ac_status=$?
  5805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5806. (exit $ac_status); }; } &&
  5807. { ac_try='test -s conftest$ac_exeext'
  5808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5809. (eval $ac_try) 2>&5
  5810. ac_status=$?
  5811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5812. (exit $ac_status); }; }; then
  5813. eval "$as_ac_var=yes"
  5814. else
  5815. echo "$as_me: failed program was:" >&5
  5816. sed 's/^/| /' conftest.$ac_ext >&5
  5817. eval "$as_ac_var=no"
  5818. fi
  5819. rm -f conftest.err conftest.$ac_objext \
  5820. conftest$ac_exeext conftest.$ac_ext
  5821. fi
  5822. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5823. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5824. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5825. cat >>confdefs.h <<_ACEOF
  5826. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5827. _ACEOF
  5828. x_syslog_on=yes
  5829. else
  5830. { { echo "$as_me:$LINENO: error: Can't enable syslog!" >&5
  5831. echo "$as_me: error: Can't enable syslog!" >&2;}
  5832. { (exit 1); exit 1; }; }
  5833. fi
  5834. done
  5835. fi
  5836. else
  5837. echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  5838. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6
  5839. if test "${ac_cv_lib_be_syslog+set}" = set; then
  5840. echo $ECHO_N "(cached) $ECHO_C" >&6
  5841. else
  5842. ac_check_lib_save_LIBS=$LIBS
  5843. LIBS="-lbe $LIBS"
  5844. cat >conftest.$ac_ext <<_ACEOF
  5845. /* confdefs.h. */
  5846. _ACEOF
  5847. cat confdefs.h >>conftest.$ac_ext
  5848. cat >>conftest.$ac_ext <<_ACEOF
  5849. /* end confdefs.h. */
  5850. /* Override any gcc2 internal prototype to avoid an error. */
  5851. #ifdef __cplusplus
  5852. extern "C"
  5853. #endif
  5854. /* We use char because int might match the return type of a gcc2
  5855. builtin and then its argument prototype would still apply. */
  5856. char syslog ();
  5857. int
  5858. main ()
  5859. {
  5860. syslog ();
  5861. ;
  5862. return 0;
  5863. }
  5864. _ACEOF
  5865. rm -f conftest.$ac_objext conftest$ac_exeext
  5866. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5867. (eval $ac_link) 2>conftest.er1
  5868. ac_status=$?
  5869. grep -v '^ *+' conftest.er1 >conftest.err
  5870. rm -f conftest.er1
  5871. cat conftest.err >&5
  5872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873. (exit $ac_status); } &&
  5874. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5876. (eval $ac_try) 2>&5
  5877. ac_status=$?
  5878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5879. (exit $ac_status); }; } &&
  5880. { ac_try='test -s conftest$ac_exeext'
  5881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5882. (eval $ac_try) 2>&5
  5883. ac_status=$?
  5884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5885. (exit $ac_status); }; }; then
  5886. ac_cv_lib_be_syslog=yes
  5887. else
  5888. echo "$as_me: failed program was:" >&5
  5889. sed 's/^/| /' conftest.$ac_ext >&5
  5890. ac_cv_lib_be_syslog=no
  5891. fi
  5892. rm -f conftest.err conftest.$ac_objext \
  5893. conftest$ac_exeext conftest.$ac_ext
  5894. LIBS=$ac_check_lib_save_LIBS
  5895. fi
  5896. echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  5897. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6
  5898. if test $ac_cv_lib_be_syslog = yes; then
  5899. cat >>confdefs.h <<_ACEOF
  5900. #define HAVE_LIBBE 1
  5901. _ACEOF
  5902. LIBS="-lbe $LIBS"
  5903. fi
  5904. for ac_func in syslog
  5905. do
  5906. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5907. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5908. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5909. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5910. echo $ECHO_N "(cached) $ECHO_C" >&6
  5911. else
  5912. cat >conftest.$ac_ext <<_ACEOF
  5913. /* confdefs.h. */
  5914. _ACEOF
  5915. cat confdefs.h >>conftest.$ac_ext
  5916. cat >>conftest.$ac_ext <<_ACEOF
  5917. /* end confdefs.h. */
  5918. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5919. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5920. #define $ac_func innocuous_$ac_func
  5921. /* System header to define __stub macros and hopefully few prototypes,
  5922. which can conflict with char $ac_func (); below.
  5923. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5924. <limits.h> exists even on freestanding compilers. */
  5925. #ifdef __STDC__
  5926. # include <limits.h>
  5927. #else
  5928. # include <assert.h>
  5929. #endif
  5930. #undef $ac_func
  5931. /* Override any gcc2 internal prototype to avoid an error. */
  5932. #ifdef __cplusplus
  5933. extern "C"
  5934. {
  5935. #endif
  5936. /* We use char because int might match the return type of a gcc2
  5937. builtin and then its argument prototype would still apply. */
  5938. char $ac_func ();
  5939. /* The GNU C library defines this for functions which it implements
  5940. to always fail with ENOSYS. Some functions are actually named
  5941. something starting with __ and the normal name is an alias. */
  5942. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5943. choke me
  5944. #else
  5945. char (*f) () = $ac_func;
  5946. #endif
  5947. #ifdef __cplusplus
  5948. }
  5949. #endif
  5950. int
  5951. main ()
  5952. {
  5953. return f != $ac_func;
  5954. ;
  5955. return 0;
  5956. }
  5957. _ACEOF
  5958. rm -f conftest.$ac_objext conftest$ac_exeext
  5959. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5960. (eval $ac_link) 2>conftest.er1
  5961. ac_status=$?
  5962. grep -v '^ *+' conftest.er1 >conftest.err
  5963. rm -f conftest.er1
  5964. cat conftest.err >&5
  5965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5966. (exit $ac_status); } &&
  5967. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5969. (eval $ac_try) 2>&5
  5970. ac_status=$?
  5971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5972. (exit $ac_status); }; } &&
  5973. { ac_try='test -s conftest$ac_exeext'
  5974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5975. (eval $ac_try) 2>&5
  5976. ac_status=$?
  5977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5978. (exit $ac_status); }; }; then
  5979. eval "$as_ac_var=yes"
  5980. else
  5981. echo "$as_me: failed program was:" >&5
  5982. sed 's/^/| /' conftest.$ac_ext >&5
  5983. eval "$as_ac_var=no"
  5984. fi
  5985. rm -f conftest.err conftest.$ac_objext \
  5986. conftest$ac_exeext conftest.$ac_ext
  5987. fi
  5988. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5989. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5990. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5991. cat >>confdefs.h <<_ACEOF
  5992. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5993. _ACEOF
  5994. x_syslog_on=yes
  5995. fi
  5996. done
  5997. fi;
  5998. if test "$x_syslog_on" = "yes"; then
  5999. cat >>confdefs.h <<\_ACEOF
  6000. #define SYSLOG 1
  6001. _ACEOF
  6002. for ac_header in syslog.h
  6003. do
  6004. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6005. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6006. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6007. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6008. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6009. echo $ECHO_N "(cached) $ECHO_C" >&6
  6010. fi
  6011. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6012. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6013. else
  6014. # Is the header compilable?
  6015. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6016. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6017. cat >conftest.$ac_ext <<_ACEOF
  6018. /* confdefs.h. */
  6019. _ACEOF
  6020. cat confdefs.h >>conftest.$ac_ext
  6021. cat >>conftest.$ac_ext <<_ACEOF
  6022. /* end confdefs.h. */
  6023. $ac_includes_default
  6024. #include <$ac_header>
  6025. _ACEOF
  6026. rm -f conftest.$ac_objext
  6027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6028. (eval $ac_compile) 2>conftest.er1
  6029. ac_status=$?
  6030. grep -v '^ *+' conftest.er1 >conftest.err
  6031. rm -f conftest.er1
  6032. cat conftest.err >&5
  6033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6034. (exit $ac_status); } &&
  6035. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6037. (eval $ac_try) 2>&5
  6038. ac_status=$?
  6039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6040. (exit $ac_status); }; } &&
  6041. { ac_try='test -s conftest.$ac_objext'
  6042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6043. (eval $ac_try) 2>&5
  6044. ac_status=$?
  6045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6046. (exit $ac_status); }; }; then
  6047. ac_header_compiler=yes
  6048. else
  6049. echo "$as_me: failed program was:" >&5
  6050. sed 's/^/| /' conftest.$ac_ext >&5
  6051. ac_header_compiler=no
  6052. fi
  6053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6054. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6055. echo "${ECHO_T}$ac_header_compiler" >&6
  6056. # Is the header present?
  6057. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6058. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6059. cat >conftest.$ac_ext <<_ACEOF
  6060. /* confdefs.h. */
  6061. _ACEOF
  6062. cat confdefs.h >>conftest.$ac_ext
  6063. cat >>conftest.$ac_ext <<_ACEOF
  6064. /* end confdefs.h. */
  6065. #include <$ac_header>
  6066. _ACEOF
  6067. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6068. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6069. ac_status=$?
  6070. grep -v '^ *+' conftest.er1 >conftest.err
  6071. rm -f conftest.er1
  6072. cat conftest.err >&5
  6073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6074. (exit $ac_status); } >/dev/null; then
  6075. if test -s conftest.err; then
  6076. ac_cpp_err=$ac_c_preproc_warn_flag
  6077. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6078. else
  6079. ac_cpp_err=
  6080. fi
  6081. else
  6082. ac_cpp_err=yes
  6083. fi
  6084. if test -z "$ac_cpp_err"; then
  6085. ac_header_preproc=yes
  6086. else
  6087. echo "$as_me: failed program was:" >&5
  6088. sed 's/^/| /' conftest.$ac_ext >&5
  6089. ac_header_preproc=no
  6090. fi
  6091. rm -f conftest.err conftest.$ac_ext
  6092. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6093. echo "${ECHO_T}$ac_header_preproc" >&6
  6094. # So? What about this header?
  6095. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6096. yes:no: )
  6097. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6098. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6099. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6100. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6101. ac_header_preproc=yes
  6102. ;;
  6103. no:yes:* )
  6104. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6105. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6106. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6107. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6108. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6109. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6110. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6111. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6112. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6113. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6114. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6115. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6116. (
  6117. cat <<\_ASBOX
  6118. ## --------------------------------- ##
  6119. ## Report this to the ngircd lists. ##
  6120. ## --------------------------------- ##
  6121. _ASBOX
  6122. ) |
  6123. sed "s/^/$as_me: WARNING: /" >&2
  6124. ;;
  6125. esac
  6126. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6127. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6128. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6129. echo $ECHO_N "(cached) $ECHO_C" >&6
  6130. else
  6131. eval "$as_ac_Header=\$ac_header_preproc"
  6132. fi
  6133. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6134. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6135. fi
  6136. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6137. cat >>confdefs.h <<_ACEOF
  6138. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6139. _ACEOF
  6140. else
  6141. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6142. echo "$as_me: error: required C header missing!" >&2;}
  6143. { (exit 1); exit 1; }; }
  6144. fi
  6145. done
  6146. fi
  6147. x_zlib_on=no
  6148. # Check whether --with-zlib or --without-zlib was given.
  6149. if test "${with_zlib+set}" = set; then
  6150. withval="$with_zlib"
  6151. if test "$withval" != "no"; then
  6152. if test "$withval" != "yes"; then
  6153. CFLAGS="-I$withval/include $CFLAGS"
  6154. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6155. LDFLAGS="-L$withval/lib $LDFLAGS"
  6156. fi
  6157. echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6158. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
  6159. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6160. echo $ECHO_N "(cached) $ECHO_C" >&6
  6161. else
  6162. ac_check_lib_save_LIBS=$LIBS
  6163. LIBS="-lz $LIBS"
  6164. cat >conftest.$ac_ext <<_ACEOF
  6165. /* confdefs.h. */
  6166. _ACEOF
  6167. cat confdefs.h >>conftest.$ac_ext
  6168. cat >>conftest.$ac_ext <<_ACEOF
  6169. /* end confdefs.h. */
  6170. /* Override any gcc2 internal prototype to avoid an error. */
  6171. #ifdef __cplusplus
  6172. extern "C"
  6173. #endif
  6174. /* We use char because int might match the return type of a gcc2
  6175. builtin and then its argument prototype would still apply. */
  6176. char deflate ();
  6177. int
  6178. main ()
  6179. {
  6180. deflate ();
  6181. ;
  6182. return 0;
  6183. }
  6184. _ACEOF
  6185. rm -f conftest.$ac_objext conftest$ac_exeext
  6186. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6187. (eval $ac_link) 2>conftest.er1
  6188. ac_status=$?
  6189. grep -v '^ *+' conftest.er1 >conftest.err
  6190. rm -f conftest.er1
  6191. cat conftest.err >&5
  6192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6193. (exit $ac_status); } &&
  6194. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6196. (eval $ac_try) 2>&5
  6197. ac_status=$?
  6198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6199. (exit $ac_status); }; } &&
  6200. { ac_try='test -s conftest$ac_exeext'
  6201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6202. (eval $ac_try) 2>&5
  6203. ac_status=$?
  6204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6205. (exit $ac_status); }; }; then
  6206. ac_cv_lib_z_deflate=yes
  6207. else
  6208. echo "$as_me: failed program was:" >&5
  6209. sed 's/^/| /' conftest.$ac_ext >&5
  6210. ac_cv_lib_z_deflate=no
  6211. fi
  6212. rm -f conftest.err conftest.$ac_objext \
  6213. conftest$ac_exeext conftest.$ac_ext
  6214. LIBS=$ac_check_lib_save_LIBS
  6215. fi
  6216. echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6217. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
  6218. if test $ac_cv_lib_z_deflate = yes; then
  6219. cat >>confdefs.h <<_ACEOF
  6220. #define HAVE_LIBZ 1
  6221. _ACEOF
  6222. LIBS="-lz $LIBS"
  6223. fi
  6224. for ac_func in deflate
  6225. do
  6226. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6227. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6228. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6229. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6230. echo $ECHO_N "(cached) $ECHO_C" >&6
  6231. else
  6232. cat >conftest.$ac_ext <<_ACEOF
  6233. /* confdefs.h. */
  6234. _ACEOF
  6235. cat confdefs.h >>conftest.$ac_ext
  6236. cat >>conftest.$ac_ext <<_ACEOF
  6237. /* end confdefs.h. */
  6238. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6239. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6240. #define $ac_func innocuous_$ac_func
  6241. /* System header to define __stub macros and hopefully few prototypes,
  6242. which can conflict with char $ac_func (); below.
  6243. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6244. <limits.h> exists even on freestanding compilers. */
  6245. #ifdef __STDC__
  6246. # include <limits.h>
  6247. #else
  6248. # include <assert.h>
  6249. #endif
  6250. #undef $ac_func
  6251. /* Override any gcc2 internal prototype to avoid an error. */
  6252. #ifdef __cplusplus
  6253. extern "C"
  6254. {
  6255. #endif
  6256. /* We use char because int might match the return type of a gcc2
  6257. builtin and then its argument prototype would still apply. */
  6258. char $ac_func ();
  6259. /* The GNU C library defines this for functions which it implements
  6260. to always fail with ENOSYS. Some functions are actually named
  6261. something starting with __ and the normal name is an alias. */
  6262. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6263. choke me
  6264. #else
  6265. char (*f) () = $ac_func;
  6266. #endif
  6267. #ifdef __cplusplus
  6268. }
  6269. #endif
  6270. int
  6271. main ()
  6272. {
  6273. return f != $ac_func;
  6274. ;
  6275. return 0;
  6276. }
  6277. _ACEOF
  6278. rm -f conftest.$ac_objext conftest$ac_exeext
  6279. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6280. (eval $ac_link) 2>conftest.er1
  6281. ac_status=$?
  6282. grep -v '^ *+' conftest.er1 >conftest.err
  6283. rm -f conftest.er1
  6284. cat conftest.err >&5
  6285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6286. (exit $ac_status); } &&
  6287. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6289. (eval $ac_try) 2>&5
  6290. ac_status=$?
  6291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6292. (exit $ac_status); }; } &&
  6293. { ac_try='test -s conftest$ac_exeext'
  6294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6295. (eval $ac_try) 2>&5
  6296. ac_status=$?
  6297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6298. (exit $ac_status); }; }; then
  6299. eval "$as_ac_var=yes"
  6300. else
  6301. echo "$as_me: failed program was:" >&5
  6302. sed 's/^/| /' conftest.$ac_ext >&5
  6303. eval "$as_ac_var=no"
  6304. fi
  6305. rm -f conftest.err conftest.$ac_objext \
  6306. conftest$ac_exeext conftest.$ac_ext
  6307. fi
  6308. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6309. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6310. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6311. cat >>confdefs.h <<_ACEOF
  6312. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6313. _ACEOF
  6314. x_zlib_on=yes
  6315. else
  6316. { { echo "$as_me:$LINENO: error: Can't enable zlib!" >&5
  6317. echo "$as_me: error: Can't enable zlib!" >&2;}
  6318. { (exit 1); exit 1; }; }
  6319. fi
  6320. done
  6321. fi
  6322. else
  6323. echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6324. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
  6325. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6326. echo $ECHO_N "(cached) $ECHO_C" >&6
  6327. else
  6328. ac_check_lib_save_LIBS=$LIBS
  6329. LIBS="-lz $LIBS"
  6330. cat >conftest.$ac_ext <<_ACEOF
  6331. /* confdefs.h. */
  6332. _ACEOF
  6333. cat confdefs.h >>conftest.$ac_ext
  6334. cat >>conftest.$ac_ext <<_ACEOF
  6335. /* end confdefs.h. */
  6336. /* Override any gcc2 internal prototype to avoid an error. */
  6337. #ifdef __cplusplus
  6338. extern "C"
  6339. #endif
  6340. /* We use char because int might match the return type of a gcc2
  6341. builtin and then its argument prototype would still apply. */
  6342. char deflate ();
  6343. int
  6344. main ()
  6345. {
  6346. deflate ();
  6347. ;
  6348. return 0;
  6349. }
  6350. _ACEOF
  6351. rm -f conftest.$ac_objext conftest$ac_exeext
  6352. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6353. (eval $ac_link) 2>conftest.er1
  6354. ac_status=$?
  6355. grep -v '^ *+' conftest.er1 >conftest.err
  6356. rm -f conftest.er1
  6357. cat conftest.err >&5
  6358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6359. (exit $ac_status); } &&
  6360. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  6366. { ac_try='test -s conftest$ac_exeext'
  6367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6368. (eval $ac_try) 2>&5
  6369. ac_status=$?
  6370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6371. (exit $ac_status); }; }; then
  6372. ac_cv_lib_z_deflate=yes
  6373. else
  6374. echo "$as_me: failed program was:" >&5
  6375. sed 's/^/| /' conftest.$ac_ext >&5
  6376. ac_cv_lib_z_deflate=no
  6377. fi
  6378. rm -f conftest.err conftest.$ac_objext \
  6379. conftest$ac_exeext conftest.$ac_ext
  6380. LIBS=$ac_check_lib_save_LIBS
  6381. fi
  6382. echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6383. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
  6384. if test $ac_cv_lib_z_deflate = yes; then
  6385. cat >>confdefs.h <<_ACEOF
  6386. #define HAVE_LIBZ 1
  6387. _ACEOF
  6388. LIBS="-lz $LIBS"
  6389. fi
  6390. for ac_func in deflate
  6391. do
  6392. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6393. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6394. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6395. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6396. echo $ECHO_N "(cached) $ECHO_C" >&6
  6397. else
  6398. cat >conftest.$ac_ext <<_ACEOF
  6399. /* confdefs.h. */
  6400. _ACEOF
  6401. cat confdefs.h >>conftest.$ac_ext
  6402. cat >>conftest.$ac_ext <<_ACEOF
  6403. /* end confdefs.h. */
  6404. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6405. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6406. #define $ac_func innocuous_$ac_func
  6407. /* System header to define __stub macros and hopefully few prototypes,
  6408. which can conflict with char $ac_func (); below.
  6409. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6410. <limits.h> exists even on freestanding compilers. */
  6411. #ifdef __STDC__
  6412. # include <limits.h>
  6413. #else
  6414. # include <assert.h>
  6415. #endif
  6416. #undef $ac_func
  6417. /* Override any gcc2 internal prototype to avoid an error. */
  6418. #ifdef __cplusplus
  6419. extern "C"
  6420. {
  6421. #endif
  6422. /* We use char because int might match the return type of a gcc2
  6423. builtin and then its argument prototype would still apply. */
  6424. char $ac_func ();
  6425. /* The GNU C library defines this for functions which it implements
  6426. to always fail with ENOSYS. Some functions are actually named
  6427. something starting with __ and the normal name is an alias. */
  6428. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6429. choke me
  6430. #else
  6431. char (*f) () = $ac_func;
  6432. #endif
  6433. #ifdef __cplusplus
  6434. }
  6435. #endif
  6436. int
  6437. main ()
  6438. {
  6439. return f != $ac_func;
  6440. ;
  6441. return 0;
  6442. }
  6443. _ACEOF
  6444. rm -f conftest.$ac_objext conftest$ac_exeext
  6445. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6446. (eval $ac_link) 2>conftest.er1
  6447. ac_status=$?
  6448. grep -v '^ *+' conftest.er1 >conftest.err
  6449. rm -f conftest.er1
  6450. cat conftest.err >&5
  6451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6452. (exit $ac_status); } &&
  6453. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6455. (eval $ac_try) 2>&5
  6456. ac_status=$?
  6457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6458. (exit $ac_status); }; } &&
  6459. { ac_try='test -s conftest$ac_exeext'
  6460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6461. (eval $ac_try) 2>&5
  6462. ac_status=$?
  6463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6464. (exit $ac_status); }; }; then
  6465. eval "$as_ac_var=yes"
  6466. else
  6467. echo "$as_me: failed program was:" >&5
  6468. sed 's/^/| /' conftest.$ac_ext >&5
  6469. eval "$as_ac_var=no"
  6470. fi
  6471. rm -f conftest.err conftest.$ac_objext \
  6472. conftest$ac_exeext conftest.$ac_ext
  6473. fi
  6474. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6475. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6476. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6477. cat >>confdefs.h <<_ACEOF
  6478. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6479. _ACEOF
  6480. x_zlib_on=yes
  6481. fi
  6482. done
  6483. fi;
  6484. if test "$x_zlib_on" = "yes"; then
  6485. cat >>confdefs.h <<\_ACEOF
  6486. #define ZLIB 1
  6487. _ACEOF
  6488. for ac_header in zlib.h
  6489. do
  6490. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6491. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6492. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6493. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6494. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6495. echo $ECHO_N "(cached) $ECHO_C" >&6
  6496. fi
  6497. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6498. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6499. else
  6500. # Is the header compilable?
  6501. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6502. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6503. cat >conftest.$ac_ext <<_ACEOF
  6504. /* confdefs.h. */
  6505. _ACEOF
  6506. cat confdefs.h >>conftest.$ac_ext
  6507. cat >>conftest.$ac_ext <<_ACEOF
  6508. /* end confdefs.h. */
  6509. $ac_includes_default
  6510. #include <$ac_header>
  6511. _ACEOF
  6512. rm -f conftest.$ac_objext
  6513. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6514. (eval $ac_compile) 2>conftest.er1
  6515. ac_status=$?
  6516. grep -v '^ *+' conftest.er1 >conftest.err
  6517. rm -f conftest.er1
  6518. cat conftest.err >&5
  6519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6520. (exit $ac_status); } &&
  6521. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6523. (eval $ac_try) 2>&5
  6524. ac_status=$?
  6525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6526. (exit $ac_status); }; } &&
  6527. { ac_try='test -s conftest.$ac_objext'
  6528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6529. (eval $ac_try) 2>&5
  6530. ac_status=$?
  6531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6532. (exit $ac_status); }; }; then
  6533. ac_header_compiler=yes
  6534. else
  6535. echo "$as_me: failed program was:" >&5
  6536. sed 's/^/| /' conftest.$ac_ext >&5
  6537. ac_header_compiler=no
  6538. fi
  6539. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6540. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6541. echo "${ECHO_T}$ac_header_compiler" >&6
  6542. # Is the header present?
  6543. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6544. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6545. cat >conftest.$ac_ext <<_ACEOF
  6546. /* confdefs.h. */
  6547. _ACEOF
  6548. cat confdefs.h >>conftest.$ac_ext
  6549. cat >>conftest.$ac_ext <<_ACEOF
  6550. /* end confdefs.h. */
  6551. #include <$ac_header>
  6552. _ACEOF
  6553. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6554. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6555. ac_status=$?
  6556. grep -v '^ *+' conftest.er1 >conftest.err
  6557. rm -f conftest.er1
  6558. cat conftest.err >&5
  6559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6560. (exit $ac_status); } >/dev/null; then
  6561. if test -s conftest.err; then
  6562. ac_cpp_err=$ac_c_preproc_warn_flag
  6563. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6564. else
  6565. ac_cpp_err=
  6566. fi
  6567. else
  6568. ac_cpp_err=yes
  6569. fi
  6570. if test -z "$ac_cpp_err"; then
  6571. ac_header_preproc=yes
  6572. else
  6573. echo "$as_me: failed program was:" >&5
  6574. sed 's/^/| /' conftest.$ac_ext >&5
  6575. ac_header_preproc=no
  6576. fi
  6577. rm -f conftest.err conftest.$ac_ext
  6578. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6579. echo "${ECHO_T}$ac_header_preproc" >&6
  6580. # So? What about this header?
  6581. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6582. yes:no: )
  6583. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6584. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6585. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6586. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6587. ac_header_preproc=yes
  6588. ;;
  6589. no:yes:* )
  6590. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6591. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6592. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6593. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6594. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6595. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6596. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6597. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6598. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6599. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6600. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6601. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6602. (
  6603. cat <<\_ASBOX
  6604. ## --------------------------------- ##
  6605. ## Report this to the ngircd lists. ##
  6606. ## --------------------------------- ##
  6607. _ASBOX
  6608. ) |
  6609. sed "s/^/$as_me: WARNING: /" >&2
  6610. ;;
  6611. esac
  6612. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6613. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6614. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6615. echo $ECHO_N "(cached) $ECHO_C" >&6
  6616. else
  6617. eval "$as_ac_Header=\$ac_header_preproc"
  6618. fi
  6619. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6620. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6621. fi
  6622. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6623. cat >>confdefs.h <<_ACEOF
  6624. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6625. _ACEOF
  6626. else
  6627. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6628. echo "$as_me: error: required C header missing!" >&2;}
  6629. { (exit 1); exit 1; }; }
  6630. fi
  6631. done
  6632. fi
  6633. x_io_backend=select
  6634. # Check whether --with-epoll or --without-epoll was given.
  6635. if test "${with_epoll+set}" = set; then
  6636. withval="$with_epoll"
  6637. if test "$withval" != "no"; then
  6638. if test "$withval" != "yes"; then
  6639. CFLAGS="-I$withval/include $CFLAGS"
  6640. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6641. LDFLAGS="-L$withval/lib $LDFLAGS"
  6642. fi
  6643. for ac_func in epoll_create
  6644. do
  6645. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6646. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6647. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6648. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6649. echo $ECHO_N "(cached) $ECHO_C" >&6
  6650. else
  6651. cat >conftest.$ac_ext <<_ACEOF
  6652. /* confdefs.h. */
  6653. _ACEOF
  6654. cat confdefs.h >>conftest.$ac_ext
  6655. cat >>conftest.$ac_ext <<_ACEOF
  6656. /* end confdefs.h. */
  6657. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6658. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6659. #define $ac_func innocuous_$ac_func
  6660. /* System header to define __stub macros and hopefully few prototypes,
  6661. which can conflict with char $ac_func (); below.
  6662. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6663. <limits.h> exists even on freestanding compilers. */
  6664. #ifdef __STDC__
  6665. # include <limits.h>
  6666. #else
  6667. # include <assert.h>
  6668. #endif
  6669. #undef $ac_func
  6670. /* Override any gcc2 internal prototype to avoid an error. */
  6671. #ifdef __cplusplus
  6672. extern "C"
  6673. {
  6674. #endif
  6675. /* We use char because int might match the return type of a gcc2
  6676. builtin and then its argument prototype would still apply. */
  6677. char $ac_func ();
  6678. /* The GNU C library defines this for functions which it implements
  6679. to always fail with ENOSYS. Some functions are actually named
  6680. something starting with __ and the normal name is an alias. */
  6681. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6682. choke me
  6683. #else
  6684. char (*f) () = $ac_func;
  6685. #endif
  6686. #ifdef __cplusplus
  6687. }
  6688. #endif
  6689. int
  6690. main ()
  6691. {
  6692. return f != $ac_func;
  6693. ;
  6694. return 0;
  6695. }
  6696. _ACEOF
  6697. rm -f conftest.$ac_objext conftest$ac_exeext
  6698. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6699. (eval $ac_link) 2>conftest.er1
  6700. ac_status=$?
  6701. grep -v '^ *+' conftest.er1 >conftest.err
  6702. rm -f conftest.er1
  6703. cat conftest.err >&5
  6704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6705. (exit $ac_status); } &&
  6706. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6708. (eval $ac_try) 2>&5
  6709. ac_status=$?
  6710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6711. (exit $ac_status); }; } &&
  6712. { ac_try='test -s conftest$ac_exeext'
  6713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6714. (eval $ac_try) 2>&5
  6715. ac_status=$?
  6716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6717. (exit $ac_status); }; }; then
  6718. eval "$as_ac_var=yes"
  6719. else
  6720. echo "$as_me: failed program was:" >&5
  6721. sed 's/^/| /' conftest.$ac_ext >&5
  6722. eval "$as_ac_var=no"
  6723. fi
  6724. rm -f conftest.err conftest.$ac_objext \
  6725. conftest$ac_exeext conftest.$ac_ext
  6726. fi
  6727. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6728. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6729. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6730. cat >>confdefs.h <<_ACEOF
  6731. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6732. _ACEOF
  6733. x_io_backend=epoll
  6734. else
  6735. { { echo "$as_me:$LINENO: error: Can't enable epoll support!" >&5
  6736. echo "$as_me: error: Can't enable epoll support!" >&2;}
  6737. { (exit 1); exit 1; }; }
  6738. fi
  6739. done
  6740. fi
  6741. else
  6742. for ac_func in epoll_create
  6743. do
  6744. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6745. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6746. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6747. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6748. echo $ECHO_N "(cached) $ECHO_C" >&6
  6749. else
  6750. cat >conftest.$ac_ext <<_ACEOF
  6751. /* confdefs.h. */
  6752. _ACEOF
  6753. cat confdefs.h >>conftest.$ac_ext
  6754. cat >>conftest.$ac_ext <<_ACEOF
  6755. /* end confdefs.h. */
  6756. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6757. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6758. #define $ac_func innocuous_$ac_func
  6759. /* System header to define __stub macros and hopefully few prototypes,
  6760. which can conflict with char $ac_func (); below.
  6761. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6762. <limits.h> exists even on freestanding compilers. */
  6763. #ifdef __STDC__
  6764. # include <limits.h>
  6765. #else
  6766. # include <assert.h>
  6767. #endif
  6768. #undef $ac_func
  6769. /* Override any gcc2 internal prototype to avoid an error. */
  6770. #ifdef __cplusplus
  6771. extern "C"
  6772. {
  6773. #endif
  6774. /* We use char because int might match the return type of a gcc2
  6775. builtin and then its argument prototype would still apply. */
  6776. char $ac_func ();
  6777. /* The GNU C library defines this for functions which it implements
  6778. to always fail with ENOSYS. Some functions are actually named
  6779. something starting with __ and the normal name is an alias. */
  6780. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6781. choke me
  6782. #else
  6783. char (*f) () = $ac_func;
  6784. #endif
  6785. #ifdef __cplusplus
  6786. }
  6787. #endif
  6788. int
  6789. main ()
  6790. {
  6791. return f != $ac_func;
  6792. ;
  6793. return 0;
  6794. }
  6795. _ACEOF
  6796. rm -f conftest.$ac_objext conftest$ac_exeext
  6797. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6798. (eval $ac_link) 2>conftest.er1
  6799. ac_status=$?
  6800. grep -v '^ *+' conftest.er1 >conftest.err
  6801. rm -f conftest.er1
  6802. cat conftest.err >&5
  6803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); } &&
  6805. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6807. (eval $ac_try) 2>&5
  6808. ac_status=$?
  6809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6810. (exit $ac_status); }; } &&
  6811. { ac_try='test -s conftest$ac_exeext'
  6812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6813. (eval $ac_try) 2>&5
  6814. ac_status=$?
  6815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6816. (exit $ac_status); }; }; then
  6817. eval "$as_ac_var=yes"
  6818. else
  6819. echo "$as_me: failed program was:" >&5
  6820. sed 's/^/| /' conftest.$ac_ext >&5
  6821. eval "$as_ac_var=no"
  6822. fi
  6823. rm -f conftest.err conftest.$ac_objext \
  6824. conftest$ac_exeext conftest.$ac_ext
  6825. fi
  6826. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6827. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6828. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6829. cat >>confdefs.h <<_ACEOF
  6830. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6831. _ACEOF
  6832. x_io_backend=epoll
  6833. fi
  6834. done
  6835. fi;
  6836. # Check whether --with-kqueue or --without-kqueue was given.
  6837. if test "${with_kqueue+set}" = set; then
  6838. withval="$with_kqueue"
  6839. if test "$withval" != "no"; then
  6840. if test "$withval" != "yes"; then
  6841. CFLAGS="-I$withval/include $CFLAGS"
  6842. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6843. LDFLAGS="-L$withval/lib $LDFLAGS"
  6844. fi
  6845. for ac_func in kqueue
  6846. do
  6847. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6848. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6849. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6850. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6851. echo $ECHO_N "(cached) $ECHO_C" >&6
  6852. else
  6853. cat >conftest.$ac_ext <<_ACEOF
  6854. /* confdefs.h. */
  6855. _ACEOF
  6856. cat confdefs.h >>conftest.$ac_ext
  6857. cat >>conftest.$ac_ext <<_ACEOF
  6858. /* end confdefs.h. */
  6859. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6860. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6861. #define $ac_func innocuous_$ac_func
  6862. /* System header to define __stub macros and hopefully few prototypes,
  6863. which can conflict with char $ac_func (); below.
  6864. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6865. <limits.h> exists even on freestanding compilers. */
  6866. #ifdef __STDC__
  6867. # include <limits.h>
  6868. #else
  6869. # include <assert.h>
  6870. #endif
  6871. #undef $ac_func
  6872. /* Override any gcc2 internal prototype to avoid an error. */
  6873. #ifdef __cplusplus
  6874. extern "C"
  6875. {
  6876. #endif
  6877. /* We use char because int might match the return type of a gcc2
  6878. builtin and then its argument prototype would still apply. */
  6879. char $ac_func ();
  6880. /* The GNU C library defines this for functions which it implements
  6881. to always fail with ENOSYS. Some functions are actually named
  6882. something starting with __ and the normal name is an alias. */
  6883. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6884. choke me
  6885. #else
  6886. char (*f) () = $ac_func;
  6887. #endif
  6888. #ifdef __cplusplus
  6889. }
  6890. #endif
  6891. int
  6892. main ()
  6893. {
  6894. return f != $ac_func;
  6895. ;
  6896. return 0;
  6897. }
  6898. _ACEOF
  6899. rm -f conftest.$ac_objext conftest$ac_exeext
  6900. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6901. (eval $ac_link) 2>conftest.er1
  6902. ac_status=$?
  6903. grep -v '^ *+' conftest.er1 >conftest.err
  6904. rm -f conftest.er1
  6905. cat conftest.err >&5
  6906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6907. (exit $ac_status); } &&
  6908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6910. (eval $ac_try) 2>&5
  6911. ac_status=$?
  6912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6913. (exit $ac_status); }; } &&
  6914. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  6920. eval "$as_ac_var=yes"
  6921. else
  6922. echo "$as_me: failed program was:" >&5
  6923. sed 's/^/| /' conftest.$ac_ext >&5
  6924. eval "$as_ac_var=no"
  6925. fi
  6926. rm -f conftest.err conftest.$ac_objext \
  6927. conftest$ac_exeext conftest.$ac_ext
  6928. fi
  6929. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6930. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6931. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6932. cat >>confdefs.h <<_ACEOF
  6933. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6934. _ACEOF
  6935. x_io_backend=kqueue
  6936. else
  6937. { { echo "$as_me:$LINENO: error: Can't enable kqueue support!" >&5
  6938. echo "$as_me: error: Can't enable kqueue support!" >&2;}
  6939. { (exit 1); exit 1; }; }
  6940. fi
  6941. done
  6942. fi
  6943. else
  6944. for ac_func in kqueue
  6945. do
  6946. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6947. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6948. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6949. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6950. echo $ECHO_N "(cached) $ECHO_C" >&6
  6951. else
  6952. cat >conftest.$ac_ext <<_ACEOF
  6953. /* confdefs.h. */
  6954. _ACEOF
  6955. cat confdefs.h >>conftest.$ac_ext
  6956. cat >>conftest.$ac_ext <<_ACEOF
  6957. /* end confdefs.h. */
  6958. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6959. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6960. #define $ac_func innocuous_$ac_func
  6961. /* System header to define __stub macros and hopefully few prototypes,
  6962. which can conflict with char $ac_func (); below.
  6963. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6964. <limits.h> exists even on freestanding compilers. */
  6965. #ifdef __STDC__
  6966. # include <limits.h>
  6967. #else
  6968. # include <assert.h>
  6969. #endif
  6970. #undef $ac_func
  6971. /* Override any gcc2 internal prototype to avoid an error. */
  6972. #ifdef __cplusplus
  6973. extern "C"
  6974. {
  6975. #endif
  6976. /* We use char because int might match the return type of a gcc2
  6977. builtin and then its argument prototype would still apply. */
  6978. char $ac_func ();
  6979. /* The GNU C library defines this for functions which it implements
  6980. to always fail with ENOSYS. Some functions are actually named
  6981. something starting with __ and the normal name is an alias. */
  6982. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6983. choke me
  6984. #else
  6985. char (*f) () = $ac_func;
  6986. #endif
  6987. #ifdef __cplusplus
  6988. }
  6989. #endif
  6990. int
  6991. main ()
  6992. {
  6993. return f != $ac_func;
  6994. ;
  6995. return 0;
  6996. }
  6997. _ACEOF
  6998. rm -f conftest.$ac_objext conftest$ac_exeext
  6999. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7000. (eval $ac_link) 2>conftest.er1
  7001. ac_status=$?
  7002. grep -v '^ *+' conftest.er1 >conftest.err
  7003. rm -f conftest.er1
  7004. cat conftest.err >&5
  7005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7006. (exit $ac_status); } &&
  7007. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7009. (eval $ac_try) 2>&5
  7010. ac_status=$?
  7011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7012. (exit $ac_status); }; } &&
  7013. { ac_try='test -s conftest$ac_exeext'
  7014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7015. (eval $ac_try) 2>&5
  7016. ac_status=$?
  7017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7018. (exit $ac_status); }; }; then
  7019. eval "$as_ac_var=yes"
  7020. else
  7021. echo "$as_me: failed program was:" >&5
  7022. sed 's/^/| /' conftest.$ac_ext >&5
  7023. eval "$as_ac_var=no"
  7024. fi
  7025. rm -f conftest.err conftest.$ac_objext \
  7026. conftest$ac_exeext conftest.$ac_ext
  7027. fi
  7028. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7029. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7030. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7031. cat >>confdefs.h <<_ACEOF
  7032. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7033. _ACEOF
  7034. x_io_backend=kqueue
  7035. fi
  7036. done
  7037. fi;
  7038. x_tcpwrap_on=no
  7039. # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
  7040. if test "${with_tcp_wrappers+set}" = set; then
  7041. withval="$with_tcp_wrappers"
  7042. if test "$withval" != "no"; then
  7043. if test "$withval" != "yes"; then
  7044. CFLAGS="-I$withval/include $CFLAGS"
  7045. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7046. LDFLAGS="-L$withval/lib $LDFLAGS"
  7047. fi
  7048. echo "$as_me:$LINENO: checking for hosts_access" >&5
  7049. echo $ECHO_N "checking for hosts_access... $ECHO_C" >&6
  7050. LIBS="-lwrap $LIBS"
  7051. cat >conftest.$ac_ext <<_ACEOF
  7052. /* confdefs.h. */
  7053. _ACEOF
  7054. cat confdefs.h >>conftest.$ac_ext
  7055. cat >>conftest.$ac_ext <<_ACEOF
  7056. /* end confdefs.h. */
  7057. #include <tcpd.h>
  7058. int allow_severity = 0;
  7059. int deny_severity = 0;
  7060. int
  7061. main ()
  7062. {
  7063. tcpd_warn("link test");
  7064. ;
  7065. return 0;
  7066. }
  7067. _ACEOF
  7068. rm -f conftest.$ac_objext conftest$ac_exeext
  7069. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7070. (eval $ac_link) 2>conftest.er1
  7071. ac_status=$?
  7072. grep -v '^ *+' conftest.er1 >conftest.err
  7073. rm -f conftest.er1
  7074. cat conftest.err >&5
  7075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7076. (exit $ac_status); } &&
  7077. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7079. (eval $ac_try) 2>&5
  7080. ac_status=$?
  7081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7082. (exit $ac_status); }; } &&
  7083. { ac_try='test -s conftest$ac_exeext'
  7084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7085. (eval $ac_try) 2>&5
  7086. ac_status=$?
  7087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7088. (exit $ac_status); }; }; then
  7089. echo "$as_me:$LINENO: result: yes" >&5
  7090. echo "${ECHO_T}yes" >&6
  7091. cat >>confdefs.h <<\_ACEOF
  7092. #define TCPWRAP 1
  7093. _ACEOF
  7094. x_tcpwrap_on=yes
  7095. else
  7096. echo "$as_me: failed program was:" >&5
  7097. sed 's/^/| /' conftest.$ac_ext >&5
  7098. echo "$as_me:$LINENO: result: no" >&5
  7099. echo "${ECHO_T}no" >&6
  7100. { { echo "$as_me:$LINENO: error: Can't enable TCP wrappers!" >&5
  7101. echo "$as_me: error: Can't enable TCP wrappers!" >&2;}
  7102. { (exit 1); exit 1; }; }
  7103. fi
  7104. rm -f conftest.err conftest.$ac_objext \
  7105. conftest$ac_exeext conftest.$ac_ext
  7106. fi
  7107. fi;
  7108. x_zeroconf_on=no
  7109. # Check whether --with-zeroconf or --without-zeroconf was given.
  7110. if test "${with_zeroconf+set}" = set; then
  7111. withval="$with_zeroconf"
  7112. if test "$withval" != "no"; then
  7113. if test "$withval" != "yes"; then
  7114. CFLAGS="-I$withval/include $CFLAGS"
  7115. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7116. LDFLAGS="-L$withval/lib $LDFLAGS"
  7117. fi
  7118. for ac_func in DNSServiceRegistrationCreate
  7119. do
  7120. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7121. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7122. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7123. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7124. echo $ECHO_N "(cached) $ECHO_C" >&6
  7125. else
  7126. cat >conftest.$ac_ext <<_ACEOF
  7127. /* confdefs.h. */
  7128. _ACEOF
  7129. cat confdefs.h >>conftest.$ac_ext
  7130. cat >>conftest.$ac_ext <<_ACEOF
  7131. /* end confdefs.h. */
  7132. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7133. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7134. #define $ac_func innocuous_$ac_func
  7135. /* System header to define __stub macros and hopefully few prototypes,
  7136. which can conflict with char $ac_func (); below.
  7137. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7138. <limits.h> exists even on freestanding compilers. */
  7139. #ifdef __STDC__
  7140. # include <limits.h>
  7141. #else
  7142. # include <assert.h>
  7143. #endif
  7144. #undef $ac_func
  7145. /* Override any gcc2 internal prototype to avoid an error. */
  7146. #ifdef __cplusplus
  7147. extern "C"
  7148. {
  7149. #endif
  7150. /* We use char because int might match the return type of a gcc2
  7151. builtin and then its argument prototype would still apply. */
  7152. char $ac_func ();
  7153. /* The GNU C library defines this for functions which it implements
  7154. to always fail with ENOSYS. Some functions are actually named
  7155. something starting with __ and the normal name is an alias. */
  7156. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7157. choke me
  7158. #else
  7159. char (*f) () = $ac_func;
  7160. #endif
  7161. #ifdef __cplusplus
  7162. }
  7163. #endif
  7164. int
  7165. main ()
  7166. {
  7167. return f != $ac_func;
  7168. ;
  7169. return 0;
  7170. }
  7171. _ACEOF
  7172. rm -f conftest.$ac_objext conftest$ac_exeext
  7173. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7174. (eval $ac_link) 2>conftest.er1
  7175. ac_status=$?
  7176. grep -v '^ *+' conftest.er1 >conftest.err
  7177. rm -f conftest.er1
  7178. cat conftest.err >&5
  7179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7180. (exit $ac_status); } &&
  7181. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7183. (eval $ac_try) 2>&5
  7184. ac_status=$?
  7185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7186. (exit $ac_status); }; } &&
  7187. { ac_try='test -s conftest$ac_exeext'
  7188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7189. (eval $ac_try) 2>&5
  7190. ac_status=$?
  7191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7192. (exit $ac_status); }; }; then
  7193. eval "$as_ac_var=yes"
  7194. else
  7195. echo "$as_me: failed program was:" >&5
  7196. sed 's/^/| /' conftest.$ac_ext >&5
  7197. eval "$as_ac_var=no"
  7198. fi
  7199. rm -f conftest.err conftest.$ac_objext \
  7200. conftest$ac_exeext conftest.$ac_ext
  7201. fi
  7202. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7203. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7204. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7205. cat >>confdefs.h <<_ACEOF
  7206. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7207. _ACEOF
  7208. x_zeroconf_on=osx
  7209. else
  7210. echo "$as_me:$LINENO: checking for pthread_mutexattr_init in -lpthread" >&5
  7211. echo $ECHO_N "checking for pthread_mutexattr_init in -lpthread... $ECHO_C" >&6
  7212. if test "${ac_cv_lib_pthread_pthread_mutexattr_init+set}" = set; then
  7213. echo $ECHO_N "(cached) $ECHO_C" >&6
  7214. else
  7215. ac_check_lib_save_LIBS=$LIBS
  7216. LIBS="-lpthread $LIBS"
  7217. cat >conftest.$ac_ext <<_ACEOF
  7218. /* confdefs.h. */
  7219. _ACEOF
  7220. cat confdefs.h >>conftest.$ac_ext
  7221. cat >>conftest.$ac_ext <<_ACEOF
  7222. /* end confdefs.h. */
  7223. /* Override any gcc2 internal prototype to avoid an error. */
  7224. #ifdef __cplusplus
  7225. extern "C"
  7226. #endif
  7227. /* We use char because int might match the return type of a gcc2
  7228. builtin and then its argument prototype would still apply. */
  7229. char pthread_mutexattr_init ();
  7230. int
  7231. main ()
  7232. {
  7233. pthread_mutexattr_init ();
  7234. ;
  7235. return 0;
  7236. }
  7237. _ACEOF
  7238. rm -f conftest.$ac_objext conftest$ac_exeext
  7239. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7240. (eval $ac_link) 2>conftest.er1
  7241. ac_status=$?
  7242. grep -v '^ *+' conftest.er1 >conftest.err
  7243. rm -f conftest.er1
  7244. cat conftest.err >&5
  7245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. (exit $ac_status); } &&
  7247. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  7253. { ac_try='test -s conftest$ac_exeext'
  7254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7255. (eval $ac_try) 2>&5
  7256. ac_status=$?
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. (exit $ac_status); }; }; then
  7259. ac_cv_lib_pthread_pthread_mutexattr_init=yes
  7260. else
  7261. echo "$as_me: failed program was:" >&5
  7262. sed 's/^/| /' conftest.$ac_ext >&5
  7263. ac_cv_lib_pthread_pthread_mutexattr_init=no
  7264. fi
  7265. rm -f conftest.err conftest.$ac_objext \
  7266. conftest$ac_exeext conftest.$ac_ext
  7267. LIBS=$ac_check_lib_save_LIBS
  7268. fi
  7269. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_init" >&5
  7270. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_init" >&6
  7271. if test $ac_cv_lib_pthread_pthread_mutexattr_init = yes; then
  7272. cat >>confdefs.h <<_ACEOF
  7273. #define HAVE_LIBPTHREAD 1
  7274. _ACEOF
  7275. LIBS="-lpthread $LIBS"
  7276. fi
  7277. echo "$as_me:$LINENO: checking for sw_discovery_init in -lhowl" >&5
  7278. echo $ECHO_N "checking for sw_discovery_init in -lhowl... $ECHO_C" >&6
  7279. if test "${ac_cv_lib_howl_sw_discovery_init+set}" = set; then
  7280. echo $ECHO_N "(cached) $ECHO_C" >&6
  7281. else
  7282. ac_check_lib_save_LIBS=$LIBS
  7283. LIBS="-lhowl $LIBS"
  7284. cat >conftest.$ac_ext <<_ACEOF
  7285. /* confdefs.h. */
  7286. _ACEOF
  7287. cat confdefs.h >>conftest.$ac_ext
  7288. cat >>conftest.$ac_ext <<_ACEOF
  7289. /* end confdefs.h. */
  7290. /* Override any gcc2 internal prototype to avoid an error. */
  7291. #ifdef __cplusplus
  7292. extern "C"
  7293. #endif
  7294. /* We use char because int might match the return type of a gcc2
  7295. builtin and then its argument prototype would still apply. */
  7296. char sw_discovery_init ();
  7297. int
  7298. main ()
  7299. {
  7300. sw_discovery_init ();
  7301. ;
  7302. return 0;
  7303. }
  7304. _ACEOF
  7305. rm -f conftest.$ac_objext conftest$ac_exeext
  7306. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7307. (eval $ac_link) 2>conftest.er1
  7308. ac_status=$?
  7309. grep -v '^ *+' conftest.er1 >conftest.err
  7310. rm -f conftest.er1
  7311. cat conftest.err >&5
  7312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7313. (exit $ac_status); } &&
  7314. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7316. (eval $ac_try) 2>&5
  7317. ac_status=$?
  7318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. (exit $ac_status); }; } &&
  7320. { ac_try='test -s conftest$ac_exeext'
  7321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7322. (eval $ac_try) 2>&5
  7323. ac_status=$?
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. (exit $ac_status); }; }; then
  7326. ac_cv_lib_howl_sw_discovery_init=yes
  7327. else
  7328. echo "$as_me: failed program was:" >&5
  7329. sed 's/^/| /' conftest.$ac_ext >&5
  7330. ac_cv_lib_howl_sw_discovery_init=no
  7331. fi
  7332. rm -f conftest.err conftest.$ac_objext \
  7333. conftest$ac_exeext conftest.$ac_ext
  7334. LIBS=$ac_check_lib_save_LIBS
  7335. fi
  7336. echo "$as_me:$LINENO: result: $ac_cv_lib_howl_sw_discovery_init" >&5
  7337. echo "${ECHO_T}$ac_cv_lib_howl_sw_discovery_init" >&6
  7338. if test $ac_cv_lib_howl_sw_discovery_init = yes; then
  7339. cat >>confdefs.h <<_ACEOF
  7340. #define HAVE_LIBHOWL 1
  7341. _ACEOF
  7342. LIBS="-lhowl $LIBS"
  7343. fi
  7344. for ac_func in sw_discovery_init
  7345. do
  7346. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7347. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7348. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7349. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7350. echo $ECHO_N "(cached) $ECHO_C" >&6
  7351. else
  7352. cat >conftest.$ac_ext <<_ACEOF
  7353. /* confdefs.h. */
  7354. _ACEOF
  7355. cat confdefs.h >>conftest.$ac_ext
  7356. cat >>conftest.$ac_ext <<_ACEOF
  7357. /* end confdefs.h. */
  7358. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7359. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7360. #define $ac_func innocuous_$ac_func
  7361. /* System header to define __stub macros and hopefully few prototypes,
  7362. which can conflict with char $ac_func (); below.
  7363. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7364. <limits.h> exists even on freestanding compilers. */
  7365. #ifdef __STDC__
  7366. # include <limits.h>
  7367. #else
  7368. # include <assert.h>
  7369. #endif
  7370. #undef $ac_func
  7371. /* Override any gcc2 internal prototype to avoid an error. */
  7372. #ifdef __cplusplus
  7373. extern "C"
  7374. {
  7375. #endif
  7376. /* We use char because int might match the return type of a gcc2
  7377. builtin and then its argument prototype would still apply. */
  7378. char $ac_func ();
  7379. /* The GNU C library defines this for functions which it implements
  7380. to always fail with ENOSYS. Some functions are actually named
  7381. something starting with __ and the normal name is an alias. */
  7382. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7383. choke me
  7384. #else
  7385. char (*f) () = $ac_func;
  7386. #endif
  7387. #ifdef __cplusplus
  7388. }
  7389. #endif
  7390. int
  7391. main ()
  7392. {
  7393. return f != $ac_func;
  7394. ;
  7395. return 0;
  7396. }
  7397. _ACEOF
  7398. rm -f conftest.$ac_objext conftest$ac_exeext
  7399. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7400. (eval $ac_link) 2>conftest.er1
  7401. ac_status=$?
  7402. grep -v '^ *+' conftest.er1 >conftest.err
  7403. rm -f conftest.er1
  7404. cat conftest.err >&5
  7405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7406. (exit $ac_status); } &&
  7407. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7409. (eval $ac_try) 2>&5
  7410. ac_status=$?
  7411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7412. (exit $ac_status); }; } &&
  7413. { ac_try='test -s conftest$ac_exeext'
  7414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7415. (eval $ac_try) 2>&5
  7416. ac_status=$?
  7417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7418. (exit $ac_status); }; }; then
  7419. eval "$as_ac_var=yes"
  7420. else
  7421. echo "$as_me: failed program was:" >&5
  7422. sed 's/^/| /' conftest.$ac_ext >&5
  7423. eval "$as_ac_var=no"
  7424. fi
  7425. rm -f conftest.err conftest.$ac_objext \
  7426. conftest$ac_exeext conftest.$ac_ext
  7427. fi
  7428. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7429. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7430. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7431. cat >>confdefs.h <<_ACEOF
  7432. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7433. _ACEOF
  7434. \
  7435. x_zeroconf_on=howl
  7436. else
  7437. \
  7438. { { echo "$as_me:$LINENO: error: Can't enable Zeroconf!" >&5
  7439. echo "$as_me: error: Can't enable Zeroconf!" >&2;}
  7440. { (exit 1); exit 1; }; }
  7441. fi
  7442. done
  7443. fi
  7444. done
  7445. fi
  7446. fi;
  7447. if test "$x_zeroconf_on" = "osx"; then
  7448. for ac_header in DNSServiceDiscovery/DNSServiceDiscovery.h \
  7449. mach/port.h
  7450. do
  7451. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7452. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7453. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7454. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7455. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7456. echo $ECHO_N "(cached) $ECHO_C" >&6
  7457. fi
  7458. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7459. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7460. else
  7461. # Is the header compilable?
  7462. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7463. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7464. cat >conftest.$ac_ext <<_ACEOF
  7465. /* confdefs.h. */
  7466. _ACEOF
  7467. cat confdefs.h >>conftest.$ac_ext
  7468. cat >>conftest.$ac_ext <<_ACEOF
  7469. /* end confdefs.h. */
  7470. $ac_includes_default
  7471. #include <$ac_header>
  7472. _ACEOF
  7473. rm -f conftest.$ac_objext
  7474. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7475. (eval $ac_compile) 2>conftest.er1
  7476. ac_status=$?
  7477. grep -v '^ *+' conftest.er1 >conftest.err
  7478. rm -f conftest.er1
  7479. cat conftest.err >&5
  7480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481. (exit $ac_status); } &&
  7482. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7484. (eval $ac_try) 2>&5
  7485. ac_status=$?
  7486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7487. (exit $ac_status); }; } &&
  7488. { ac_try='test -s conftest.$ac_objext'
  7489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7490. (eval $ac_try) 2>&5
  7491. ac_status=$?
  7492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7493. (exit $ac_status); }; }; then
  7494. ac_header_compiler=yes
  7495. else
  7496. echo "$as_me: failed program was:" >&5
  7497. sed 's/^/| /' conftest.$ac_ext >&5
  7498. ac_header_compiler=no
  7499. fi
  7500. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7501. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7502. echo "${ECHO_T}$ac_header_compiler" >&6
  7503. # Is the header present?
  7504. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7505. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7506. cat >conftest.$ac_ext <<_ACEOF
  7507. /* confdefs.h. */
  7508. _ACEOF
  7509. cat confdefs.h >>conftest.$ac_ext
  7510. cat >>conftest.$ac_ext <<_ACEOF
  7511. /* end confdefs.h. */
  7512. #include <$ac_header>
  7513. _ACEOF
  7514. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7515. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7516. ac_status=$?
  7517. grep -v '^ *+' conftest.er1 >conftest.err
  7518. rm -f conftest.er1
  7519. cat conftest.err >&5
  7520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7521. (exit $ac_status); } >/dev/null; then
  7522. if test -s conftest.err; then
  7523. ac_cpp_err=$ac_c_preproc_warn_flag
  7524. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7525. else
  7526. ac_cpp_err=
  7527. fi
  7528. else
  7529. ac_cpp_err=yes
  7530. fi
  7531. if test -z "$ac_cpp_err"; then
  7532. ac_header_preproc=yes
  7533. else
  7534. echo "$as_me: failed program was:" >&5
  7535. sed 's/^/| /' conftest.$ac_ext >&5
  7536. ac_header_preproc=no
  7537. fi
  7538. rm -f conftest.err conftest.$ac_ext
  7539. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7540. echo "${ECHO_T}$ac_header_preproc" >&6
  7541. # So? What about this header?
  7542. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7543. yes:no: )
  7544. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7545. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7546. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7547. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7548. ac_header_preproc=yes
  7549. ;;
  7550. no:yes:* )
  7551. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7552. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7553. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7554. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7555. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7556. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7557. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7558. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7559. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7560. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7561. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7562. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7563. (
  7564. cat <<\_ASBOX
  7565. ## --------------------------------- ##
  7566. ## Report this to the ngircd lists. ##
  7567. ## --------------------------------- ##
  7568. _ASBOX
  7569. ) |
  7570. sed "s/^/$as_me: WARNING: /" >&2
  7571. ;;
  7572. esac
  7573. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7574. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7575. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7576. echo $ECHO_N "(cached) $ECHO_C" >&6
  7577. else
  7578. eval "$as_ac_Header=\$ac_header_preproc"
  7579. fi
  7580. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7581. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7582. fi
  7583. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7584. cat >>confdefs.h <<_ACEOF
  7585. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7586. _ACEOF
  7587. else
  7588. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7589. echo "$as_me: error: required C header missing!" >&2;}
  7590. { (exit 1); exit 1; }; }
  7591. fi
  7592. done
  7593. cat >>confdefs.h <<\_ACEOF
  7594. #define ZEROCONF 1
  7595. _ACEOF
  7596. fi
  7597. if test "$x_zeroconf_on" = "howl"; then
  7598. for dir in /usr/local/include /usr/local/include/howl* \
  7599. /usr/include /usr/include/howl* \
  7600. /usr/local/include/avahi* /usr/include/avahi*; do
  7601. test -d "$dir" || continue
  7602. echo "$as_me:$LINENO: checking for Howl headers in $dir" >&5
  7603. echo $ECHO_N "checking for Howl headers in $dir... $ECHO_C" >&6
  7604. if test -f "$dir/rendezvous/rendezvous.h"; then
  7605. if test "$dir" != "/usr/local/include" -a \
  7606. "$dir" != "/usr/include"; then
  7607. CFLAGS="-I$dir $CFLAGS"
  7608. CPPFLAGS="-I$dir $CPPFLAGS"
  7609. fi
  7610. echo "$as_me:$LINENO: result: yes" >&5
  7611. echo "${ECHO_T}yes" >&6
  7612. break
  7613. else
  7614. echo "$as_me:$LINENO: result: no" >&5
  7615. echo "${ECHO_T}no" >&6
  7616. fi
  7617. done
  7618. for ac_header in rendezvous/rendezvous.h
  7619. do
  7620. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7621. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7622. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7623. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7624. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7625. echo $ECHO_N "(cached) $ECHO_C" >&6
  7626. fi
  7627. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7628. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7629. else
  7630. # Is the header compilable?
  7631. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7632. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7633. cat >conftest.$ac_ext <<_ACEOF
  7634. /* confdefs.h. */
  7635. _ACEOF
  7636. cat confdefs.h >>conftest.$ac_ext
  7637. cat >>conftest.$ac_ext <<_ACEOF
  7638. /* end confdefs.h. */
  7639. $ac_includes_default
  7640. #include <$ac_header>
  7641. _ACEOF
  7642. rm -f conftest.$ac_objext
  7643. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7644. (eval $ac_compile) 2>conftest.er1
  7645. ac_status=$?
  7646. grep -v '^ *+' conftest.er1 >conftest.err
  7647. rm -f conftest.er1
  7648. cat conftest.err >&5
  7649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7650. (exit $ac_status); } &&
  7651. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7653. (eval $ac_try) 2>&5
  7654. ac_status=$?
  7655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7656. (exit $ac_status); }; } &&
  7657. { ac_try='test -s conftest.$ac_objext'
  7658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7659. (eval $ac_try) 2>&5
  7660. ac_status=$?
  7661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7662. (exit $ac_status); }; }; then
  7663. ac_header_compiler=yes
  7664. else
  7665. echo "$as_me: failed program was:" >&5
  7666. sed 's/^/| /' conftest.$ac_ext >&5
  7667. ac_header_compiler=no
  7668. fi
  7669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7670. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7671. echo "${ECHO_T}$ac_header_compiler" >&6
  7672. # Is the header present?
  7673. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7674. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7675. cat >conftest.$ac_ext <<_ACEOF
  7676. /* confdefs.h. */
  7677. _ACEOF
  7678. cat confdefs.h >>conftest.$ac_ext
  7679. cat >>conftest.$ac_ext <<_ACEOF
  7680. /* end confdefs.h. */
  7681. #include <$ac_header>
  7682. _ACEOF
  7683. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7684. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7685. ac_status=$?
  7686. grep -v '^ *+' conftest.er1 >conftest.err
  7687. rm -f conftest.er1
  7688. cat conftest.err >&5
  7689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7690. (exit $ac_status); } >/dev/null; then
  7691. if test -s conftest.err; then
  7692. ac_cpp_err=$ac_c_preproc_warn_flag
  7693. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7694. else
  7695. ac_cpp_err=
  7696. fi
  7697. else
  7698. ac_cpp_err=yes
  7699. fi
  7700. if test -z "$ac_cpp_err"; then
  7701. ac_header_preproc=yes
  7702. else
  7703. echo "$as_me: failed program was:" >&5
  7704. sed 's/^/| /' conftest.$ac_ext >&5
  7705. ac_header_preproc=no
  7706. fi
  7707. rm -f conftest.err conftest.$ac_ext
  7708. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7709. echo "${ECHO_T}$ac_header_preproc" >&6
  7710. # So? What about this header?
  7711. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7712. yes:no: )
  7713. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7714. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7715. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7716. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7717. ac_header_preproc=yes
  7718. ;;
  7719. no:yes:* )
  7720. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7721. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7722. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7723. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7724. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7725. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7726. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7727. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7728. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7729. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7730. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7731. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7732. (
  7733. cat <<\_ASBOX
  7734. ## --------------------------------- ##
  7735. ## Report this to the ngircd lists. ##
  7736. ## --------------------------------- ##
  7737. _ASBOX
  7738. ) |
  7739. sed "s/^/$as_me: WARNING: /" >&2
  7740. ;;
  7741. esac
  7742. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7743. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7744. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7745. echo $ECHO_N "(cached) $ECHO_C" >&6
  7746. else
  7747. eval "$as_ac_Header=\$ac_header_preproc"
  7748. fi
  7749. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7750. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7751. fi
  7752. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7753. cat >>confdefs.h <<_ACEOF
  7754. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7755. _ACEOF
  7756. else
  7757. \
  7758. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7759. echo "$as_me: error: required C header missing!" >&2;}
  7760. { (exit 1); exit 1; }; }
  7761. fi
  7762. done
  7763. cat >>confdefs.h <<\_ACEOF
  7764. #define ZEROCONF 1
  7765. _ACEOF
  7766. fi
  7767. x_identauth_on=no
  7768. # Check whether --with-ident or --without-ident was given.
  7769. if test "${with_ident+set}" = set; then
  7770. withval="$with_ident"
  7771. if test "$withval" != "no"; then
  7772. if test "$withval" != "yes"; then
  7773. CFLAGS="-I$withval/include $CFLAGS"
  7774. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7775. LDFLAGS="-L$withval/lib $LDFLAGS"
  7776. fi
  7777. echo "$as_me:$LINENO: checking for ident_id in -lident" >&5
  7778. echo $ECHO_N "checking for ident_id in -lident... $ECHO_C" >&6
  7779. if test "${ac_cv_lib_ident_ident_id+set}" = set; then
  7780. echo $ECHO_N "(cached) $ECHO_C" >&6
  7781. else
  7782. ac_check_lib_save_LIBS=$LIBS
  7783. LIBS="-lident $LIBS"
  7784. cat >conftest.$ac_ext <<_ACEOF
  7785. /* confdefs.h. */
  7786. _ACEOF
  7787. cat confdefs.h >>conftest.$ac_ext
  7788. cat >>conftest.$ac_ext <<_ACEOF
  7789. /* end confdefs.h. */
  7790. /* Override any gcc2 internal prototype to avoid an error. */
  7791. #ifdef __cplusplus
  7792. extern "C"
  7793. #endif
  7794. /* We use char because int might match the return type of a gcc2
  7795. builtin and then its argument prototype would still apply. */
  7796. char ident_id ();
  7797. int
  7798. main ()
  7799. {
  7800. ident_id ();
  7801. ;
  7802. return 0;
  7803. }
  7804. _ACEOF
  7805. rm -f conftest.$ac_objext conftest$ac_exeext
  7806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7807. (eval $ac_link) 2>conftest.er1
  7808. ac_status=$?
  7809. grep -v '^ *+' conftest.er1 >conftest.err
  7810. rm -f conftest.er1
  7811. cat conftest.err >&5
  7812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7813. (exit $ac_status); } &&
  7814. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7816. (eval $ac_try) 2>&5
  7817. ac_status=$?
  7818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7819. (exit $ac_status); }; } &&
  7820. { ac_try='test -s conftest$ac_exeext'
  7821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7822. (eval $ac_try) 2>&5
  7823. ac_status=$?
  7824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7825. (exit $ac_status); }; }; then
  7826. ac_cv_lib_ident_ident_id=yes
  7827. else
  7828. echo "$as_me: failed program was:" >&5
  7829. sed 's/^/| /' conftest.$ac_ext >&5
  7830. ac_cv_lib_ident_ident_id=no
  7831. fi
  7832. rm -f conftest.err conftest.$ac_objext \
  7833. conftest$ac_exeext conftest.$ac_ext
  7834. LIBS=$ac_check_lib_save_LIBS
  7835. fi
  7836. echo "$as_me:$LINENO: result: $ac_cv_lib_ident_ident_id" >&5
  7837. echo "${ECHO_T}$ac_cv_lib_ident_ident_id" >&6
  7838. if test $ac_cv_lib_ident_ident_id = yes; then
  7839. cat >>confdefs.h <<_ACEOF
  7840. #define HAVE_LIBIDENT 1
  7841. _ACEOF
  7842. LIBS="-lident $LIBS"
  7843. fi
  7844. for ac_func in ident_id
  7845. do
  7846. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7847. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7848. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7849. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7850. echo $ECHO_N "(cached) $ECHO_C" >&6
  7851. else
  7852. cat >conftest.$ac_ext <<_ACEOF
  7853. /* confdefs.h. */
  7854. _ACEOF
  7855. cat confdefs.h >>conftest.$ac_ext
  7856. cat >>conftest.$ac_ext <<_ACEOF
  7857. /* end confdefs.h. */
  7858. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7860. #define $ac_func innocuous_$ac_func
  7861. /* System header to define __stub macros and hopefully few prototypes,
  7862. which can conflict with char $ac_func (); below.
  7863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7864. <limits.h> exists even on freestanding compilers. */
  7865. #ifdef __STDC__
  7866. # include <limits.h>
  7867. #else
  7868. # include <assert.h>
  7869. #endif
  7870. #undef $ac_func
  7871. /* Override any gcc2 internal prototype to avoid an error. */
  7872. #ifdef __cplusplus
  7873. extern "C"
  7874. {
  7875. #endif
  7876. /* We use char because int might match the return type of a gcc2
  7877. builtin and then its argument prototype would still apply. */
  7878. char $ac_func ();
  7879. /* The GNU C library defines this for functions which it implements
  7880. to always fail with ENOSYS. Some functions are actually named
  7881. something starting with __ and the normal name is an alias. */
  7882. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7883. choke me
  7884. #else
  7885. char (*f) () = $ac_func;
  7886. #endif
  7887. #ifdef __cplusplus
  7888. }
  7889. #endif
  7890. int
  7891. main ()
  7892. {
  7893. return f != $ac_func;
  7894. ;
  7895. return 0;
  7896. }
  7897. _ACEOF
  7898. rm -f conftest.$ac_objext conftest$ac_exeext
  7899. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7900. (eval $ac_link) 2>conftest.er1
  7901. ac_status=$?
  7902. grep -v '^ *+' conftest.er1 >conftest.err
  7903. rm -f conftest.er1
  7904. cat conftest.err >&5
  7905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7906. (exit $ac_status); } &&
  7907. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7909. (eval $ac_try) 2>&5
  7910. ac_status=$?
  7911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7912. (exit $ac_status); }; } &&
  7913. { ac_try='test -s conftest$ac_exeext'
  7914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7915. (eval $ac_try) 2>&5
  7916. ac_status=$?
  7917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7918. (exit $ac_status); }; }; then
  7919. eval "$as_ac_var=yes"
  7920. else
  7921. echo "$as_me: failed program was:" >&5
  7922. sed 's/^/| /' conftest.$ac_ext >&5
  7923. eval "$as_ac_var=no"
  7924. fi
  7925. rm -f conftest.err conftest.$ac_objext \
  7926. conftest$ac_exeext conftest.$ac_ext
  7927. fi
  7928. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7929. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7930. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7931. cat >>confdefs.h <<_ACEOF
  7932. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7933. _ACEOF
  7934. x_identauth_on=yes
  7935. else
  7936. { { echo "$as_me:$LINENO: error: Can't enable IDENT support!" >&5
  7937. echo "$as_me: error: Can't enable IDENT support!" >&2;}
  7938. { (exit 1); exit 1; }; }
  7939. fi
  7940. done
  7941. fi
  7942. fi;
  7943. if test "$x_identauth_on" = "yes"; then
  7944. cat >>confdefs.h <<\_ACEOF
  7945. #define IDENTAUTH 1
  7946. _ACEOF
  7947. for ac_header in ident.h
  7948. do
  7949. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7950. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7951. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7952. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7953. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7954. echo $ECHO_N "(cached) $ECHO_C" >&6
  7955. fi
  7956. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7957. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7958. else
  7959. # Is the header compilable?
  7960. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7961. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7962. cat >conftest.$ac_ext <<_ACEOF
  7963. /* confdefs.h. */
  7964. _ACEOF
  7965. cat confdefs.h >>conftest.$ac_ext
  7966. cat >>conftest.$ac_ext <<_ACEOF
  7967. /* end confdefs.h. */
  7968. $ac_includes_default
  7969. #include <$ac_header>
  7970. _ACEOF
  7971. rm -f conftest.$ac_objext
  7972. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7973. (eval $ac_compile) 2>conftest.er1
  7974. ac_status=$?
  7975. grep -v '^ *+' conftest.er1 >conftest.err
  7976. rm -f conftest.er1
  7977. cat conftest.err >&5
  7978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7979. (exit $ac_status); } &&
  7980. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7982. (eval $ac_try) 2>&5
  7983. ac_status=$?
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); }; } &&
  7986. { ac_try='test -s conftest.$ac_objext'
  7987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7988. (eval $ac_try) 2>&5
  7989. ac_status=$?
  7990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7991. (exit $ac_status); }; }; then
  7992. ac_header_compiler=yes
  7993. else
  7994. echo "$as_me: failed program was:" >&5
  7995. sed 's/^/| /' conftest.$ac_ext >&5
  7996. ac_header_compiler=no
  7997. fi
  7998. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7999. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8000. echo "${ECHO_T}$ac_header_compiler" >&6
  8001. # Is the header present?
  8002. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8003. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8004. cat >conftest.$ac_ext <<_ACEOF
  8005. /* confdefs.h. */
  8006. _ACEOF
  8007. cat confdefs.h >>conftest.$ac_ext
  8008. cat >>conftest.$ac_ext <<_ACEOF
  8009. /* end confdefs.h. */
  8010. #include <$ac_header>
  8011. _ACEOF
  8012. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8013. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8014. ac_status=$?
  8015. grep -v '^ *+' conftest.er1 >conftest.err
  8016. rm -f conftest.er1
  8017. cat conftest.err >&5
  8018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8019. (exit $ac_status); } >/dev/null; then
  8020. if test -s conftest.err; then
  8021. ac_cpp_err=$ac_c_preproc_warn_flag
  8022. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8023. else
  8024. ac_cpp_err=
  8025. fi
  8026. else
  8027. ac_cpp_err=yes
  8028. fi
  8029. if test -z "$ac_cpp_err"; then
  8030. ac_header_preproc=yes
  8031. else
  8032. echo "$as_me: failed program was:" >&5
  8033. sed 's/^/| /' conftest.$ac_ext >&5
  8034. ac_header_preproc=no
  8035. fi
  8036. rm -f conftest.err conftest.$ac_ext
  8037. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8038. echo "${ECHO_T}$ac_header_preproc" >&6
  8039. # So? What about this header?
  8040. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8041. yes:no: )
  8042. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8043. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8044. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8045. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8046. ac_header_preproc=yes
  8047. ;;
  8048. no:yes:* )
  8049. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8050. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8051. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8052. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8053. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8054. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8055. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8056. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8057. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8058. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8059. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8060. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8061. (
  8062. cat <<\_ASBOX
  8063. ## --------------------------------- ##
  8064. ## Report this to the ngircd lists. ##
  8065. ## --------------------------------- ##
  8066. _ASBOX
  8067. ) |
  8068. sed "s/^/$as_me: WARNING: /" >&2
  8069. ;;
  8070. esac
  8071. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8072. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8073. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8074. echo $ECHO_N "(cached) $ECHO_C" >&6
  8075. else
  8076. eval "$as_ac_Header=\$ac_header_preproc"
  8077. fi
  8078. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8079. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8080. fi
  8081. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8082. cat >>confdefs.h <<_ACEOF
  8083. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8084. _ACEOF
  8085. else
  8086. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  8087. echo "$as_me: error: required C header missing!" >&2;}
  8088. { (exit 1); exit 1; }; }
  8089. fi
  8090. done
  8091. fi
  8092. x_ircplus_on=yes
  8093. # Check whether --enable-ircplus or --disable-ircplus was given.
  8094. if test "${enable_ircplus+set}" = set; then
  8095. enableval="$enable_ircplus"
  8096. if test "$enableval" = "no"; then x_ircplus_on=no; fi
  8097. fi;
  8098. if test "$x_ircplus_on" = "yes"; then
  8099. cat >>confdefs.h <<\_ACEOF
  8100. #define IRCPLUS 1
  8101. _ACEOF
  8102. fi
  8103. x_sniffer_on=no; x_debug_on=no
  8104. # Check whether --enable-sniffer or --disable-sniffer was given.
  8105. if test "${enable_sniffer+set}" = set; then
  8106. enableval="$enable_sniffer"
  8107. if test "$enableval" = "yes"; then
  8108. cat >>confdefs.h <<\_ACEOF
  8109. #define SNIFFER 1
  8110. _ACEOF
  8111. x_sniffer_on=yes; x_debug_on=yes
  8112. fi
  8113. fi;
  8114. # Check whether --enable-debug or --disable-debug was given.
  8115. if test "${enable_debug+set}" = set; then
  8116. enableval="$enable_debug"
  8117. if test "$enableval" = "yes"; then x_debug_on=yes; fi
  8118. fi;
  8119. if test "$x_debug_on" = "yes"; then
  8120. cat >>confdefs.h <<\_ACEOF
  8121. #define DEBUG 1
  8122. _ACEOF
  8123. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  8124. fi
  8125. x_strict_rfc_on=no
  8126. # Check whether --enable-strict-rfc or --disable-strict-rfc was given.
  8127. if test "${enable_strict_rfc+set}" = set; then
  8128. enableval="$enable_strict_rfc"
  8129. if test "$enableval" = "yes"; then
  8130. cat >>confdefs.h <<\_ACEOF
  8131. #define STRICT_RFC 1
  8132. _ACEOF
  8133. x_strict_rfc_on=yes
  8134. fi
  8135. fi;
  8136. # -- Definitions --
  8137. cat >>confdefs.h <<_ACEOF
  8138. #define TARGET_CPU "$target_cpu"
  8139. _ACEOF
  8140. cat >>confdefs.h <<_ACEOF
  8141. #define TARGET_VENDOR "$target_vendor"
  8142. _ACEOF
  8143. cat >>confdefs.h <<_ACEOF
  8144. #define TARGET_OS "$target_os"
  8145. _ACEOF
  8146. # Add additional CFLAGS, eventually specified on the command line, but after
  8147. # running this configure script. Useful for "-Werror" for example.
  8148. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  8149. # -- Generate files --
  8150. 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"
  8151. cat >confcache <<\_ACEOF
  8152. # This file is a shell script that caches the results of configure
  8153. # tests run on this system so they can be shared between configure
  8154. # scripts and configure runs, see configure's option --config-cache.
  8155. # It is not useful on other systems. If it contains results you don't
  8156. # want to keep, you may remove or edit it.
  8157. #
  8158. # config.status only pays attention to the cache file if you give it
  8159. # the --recheck option to rerun configure.
  8160. #
  8161. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8162. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8163. # following values.
  8164. _ACEOF
  8165. # The following way of writing the cache mishandles newlines in values,
  8166. # but we know of no workaround that is simple, portable, and efficient.
  8167. # So, don't put newlines in cache variables' values.
  8168. # Ultrix sh set writes to stderr and can't be redirected directly,
  8169. # and sets the high bit in the cache file unless we assign to the vars.
  8170. {
  8171. (set) 2>&1 |
  8172. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8173. *ac_space=\ *)
  8174. # `set' does not quote correctly, so add quotes (double-quote
  8175. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8176. sed -n \
  8177. "s/'/'\\\\''/g;
  8178. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8179. ;;
  8180. *)
  8181. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8182. sed -n \
  8183. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8184. ;;
  8185. esac;
  8186. } |
  8187. sed '
  8188. t clear
  8189. : clear
  8190. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8191. t end
  8192. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8193. : end' >>confcache
  8194. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8195. if test -w $cache_file; then
  8196. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8197. cat confcache >$cache_file
  8198. else
  8199. echo "not updating unwritable cache $cache_file"
  8200. fi
  8201. fi
  8202. rm -f confcache
  8203. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8204. # Let make expand exec_prefix.
  8205. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8206. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  8207. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8208. # trailing colons and then remove the whole line if VPATH becomes empty
  8209. # (actually we leave an empty line to preserve line numbers).
  8210. if test "x$srcdir" = x.; then
  8211. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8212. s/:*\$(srcdir):*/:/;
  8213. s/:*\${srcdir}:*/:/;
  8214. s/:*@srcdir@:*/:/;
  8215. s/^\([^=]*=[ ]*\):*/\1/;
  8216. s/:*$//;
  8217. s/^[^=]*=[ ]*$//;
  8218. }'
  8219. fi
  8220. DEFS=-DHAVE_CONFIG_H
  8221. ac_libobjs=
  8222. ac_ltlibobjs=
  8223. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8224. # 1. Remove the extension, and $U if already installed.
  8225. ac_i=`echo "$ac_i" |
  8226. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8227. # 2. Add them.
  8228. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8229. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8230. done
  8231. LIBOBJS=$ac_libobjs
  8232. LTLIBOBJS=$ac_ltlibobjs
  8233. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8234. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8235. Usually this means the macro was only invoked conditionally." >&5
  8236. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8237. Usually this means the macro was only invoked conditionally." >&2;}
  8238. { (exit 1); exit 1; }; }
  8239. fi
  8240. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8241. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8242. Usually this means the macro was only invoked conditionally." >&5
  8243. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8244. Usually this means the macro was only invoked conditionally." >&2;}
  8245. { (exit 1); exit 1; }; }
  8246. fi
  8247. : ${CONFIG_STATUS=./config.status}
  8248. ac_clean_files_save=$ac_clean_files
  8249. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8250. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8251. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8252. cat >$CONFIG_STATUS <<_ACEOF
  8253. #! $SHELL
  8254. # Generated by $as_me.
  8255. # Run this file to recreate the current configuration.
  8256. # Compiler output produced by configure, useful for debugging
  8257. # configure, is in config.log if it exists.
  8258. debug=false
  8259. ac_cs_recheck=false
  8260. ac_cs_silent=false
  8261. SHELL=\${CONFIG_SHELL-$SHELL}
  8262. _ACEOF
  8263. cat >>$CONFIG_STATUS <<\_ACEOF
  8264. ## --------------------- ##
  8265. ## M4sh Initialization. ##
  8266. ## --------------------- ##
  8267. # Be Bourne compatible
  8268. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8269. emulate sh
  8270. NULLCMD=:
  8271. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8272. # is contrary to our usage. Disable this feature.
  8273. alias -g '${1+"$@"}'='"$@"'
  8274. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8275. set -o posix
  8276. fi
  8277. DUALCASE=1; export DUALCASE # for MKS sh
  8278. # Support unset when possible.
  8279. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8280. as_unset=unset
  8281. else
  8282. as_unset=false
  8283. fi
  8284. # Work around bugs in pre-3.0 UWIN ksh.
  8285. $as_unset ENV MAIL MAILPATH
  8286. PS1='$ '
  8287. PS2='> '
  8288. PS4='+ '
  8289. # NLS nuisances.
  8290. for as_var in \
  8291. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8292. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8293. LC_TELEPHONE LC_TIME
  8294. do
  8295. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8296. eval $as_var=C; export $as_var
  8297. else
  8298. $as_unset $as_var
  8299. fi
  8300. done
  8301. # Required to use basename.
  8302. if expr a : '\(a\)' >/dev/null 2>&1; then
  8303. as_expr=expr
  8304. else
  8305. as_expr=false
  8306. fi
  8307. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8308. as_basename=basename
  8309. else
  8310. as_basename=false
  8311. fi
  8312. # Name of the executable.
  8313. as_me=`$as_basename "$0" ||
  8314. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8315. X"$0" : 'X\(//\)$' \| \
  8316. X"$0" : 'X\(/\)$' \| \
  8317. . : '\(.\)' 2>/dev/null ||
  8318. echo X/"$0" |
  8319. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8320. /^X\/\(\/\/\)$/{ s//\1/; q; }
  8321. /^X\/\(\/\).*/{ s//\1/; q; }
  8322. s/.*/./; q'`
  8323. # PATH needs CR, and LINENO needs CR and PATH.
  8324. # Avoid depending upon Character Ranges.
  8325. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8326. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8327. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8328. as_cr_digits='0123456789'
  8329. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8330. # The user is always right.
  8331. if test "${PATH_SEPARATOR+set}" != set; then
  8332. echo "#! /bin/sh" >conf$$.sh
  8333. echo "exit 0" >>conf$$.sh
  8334. chmod +x conf$$.sh
  8335. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8336. PATH_SEPARATOR=';'
  8337. else
  8338. PATH_SEPARATOR=:
  8339. fi
  8340. rm -f conf$$.sh
  8341. fi
  8342. as_lineno_1=$LINENO
  8343. as_lineno_2=$LINENO
  8344. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8345. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8346. test "x$as_lineno_3" = "x$as_lineno_2" || {
  8347. # Find who we are. Look in the path if we contain no path at all
  8348. # relative or not.
  8349. case $0 in
  8350. *[\\/]* ) as_myself=$0 ;;
  8351. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8352. for as_dir in $PATH
  8353. do
  8354. IFS=$as_save_IFS
  8355. test -z "$as_dir" && as_dir=.
  8356. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8357. done
  8358. ;;
  8359. esac
  8360. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8361. # in which case we are not to be found in the path.
  8362. if test "x$as_myself" = x; then
  8363. as_myself=$0
  8364. fi
  8365. if test ! -f "$as_myself"; then
  8366. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8367. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8368. { (exit 1); exit 1; }; }
  8369. fi
  8370. case $CONFIG_SHELL in
  8371. '')
  8372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8373. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8374. do
  8375. IFS=$as_save_IFS
  8376. test -z "$as_dir" && as_dir=.
  8377. for as_base in sh bash ksh sh5; do
  8378. case $as_dir in
  8379. /*)
  8380. if ("$as_dir/$as_base" -c '
  8381. as_lineno_1=$LINENO
  8382. as_lineno_2=$LINENO
  8383. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8384. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8385. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8386. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8387. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8388. CONFIG_SHELL=$as_dir/$as_base
  8389. export CONFIG_SHELL
  8390. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8391. fi;;
  8392. esac
  8393. done
  8394. done
  8395. ;;
  8396. esac
  8397. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8398. # uniformly replaced by the line number. The first 'sed' inserts a
  8399. # line-number line before each line; the second 'sed' does the real
  8400. # work. The second script uses 'N' to pair each line-number line
  8401. # with the numbered line, and appends trailing '-' during
  8402. # substitution so that $LINENO is not a special case at line end.
  8403. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8404. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8405. sed '=' <$as_myself |
  8406. sed '
  8407. N
  8408. s,$,-,
  8409. : loop
  8410. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8411. t loop
  8412. s,-$,,
  8413. s,^['$as_cr_digits']*\n,,
  8414. ' >$as_me.lineno &&
  8415. chmod +x $as_me.lineno ||
  8416. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8417. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8418. { (exit 1); exit 1; }; }
  8419. # Don't try to exec as it changes $[0], causing all sort of problems
  8420. # (the dirname of $[0] is not the place where we might find the
  8421. # original and so on. Autoconf is especially sensible to this).
  8422. . ./$as_me.lineno
  8423. # Exit status is that of the last command.
  8424. exit
  8425. }
  8426. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8427. *c*,-n*) ECHO_N= ECHO_C='
  8428. ' ECHO_T=' ' ;;
  8429. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8430. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8431. esac
  8432. if expr a : '\(a\)' >/dev/null 2>&1; then
  8433. as_expr=expr
  8434. else
  8435. as_expr=false
  8436. fi
  8437. rm -f conf$$ conf$$.exe conf$$.file
  8438. echo >conf$$.file
  8439. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8440. # We could just check for DJGPP; but this test a) works b) is more generic
  8441. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8442. if test -f conf$$.exe; then
  8443. # Don't use ln at all; we don't have any links
  8444. as_ln_s='cp -p'
  8445. else
  8446. as_ln_s='ln -s'
  8447. fi
  8448. elif ln conf$$.file conf$$ 2>/dev/null; then
  8449. as_ln_s=ln
  8450. else
  8451. as_ln_s='cp -p'
  8452. fi
  8453. rm -f conf$$ conf$$.exe conf$$.file
  8454. if mkdir -p . 2>/dev/null; then
  8455. as_mkdir_p=:
  8456. else
  8457. test -d ./-p && rmdir ./-p
  8458. as_mkdir_p=false
  8459. fi
  8460. as_executable_p="test -f"
  8461. # Sed expression to map a string onto a valid CPP name.
  8462. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8463. # Sed expression to map a string onto a valid variable name.
  8464. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8465. # IFS
  8466. # We need space, tab and new line, in precisely that order.
  8467. as_nl='
  8468. '
  8469. IFS=" $as_nl"
  8470. # CDPATH.
  8471. $as_unset CDPATH
  8472. exec 6>&1
  8473. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  8474. # report actual input values of CONFIG_FILES etc. instead of their
  8475. # values after options handling. Logging --version etc. is OK.
  8476. exec 5>>config.log
  8477. {
  8478. echo
  8479. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8480. ## Running $as_me. ##
  8481. _ASBOX
  8482. } >&5
  8483. cat >&5 <<_CSEOF
  8484. This file was extended by ngircd $as_me 0.10.0, which was
  8485. generated by GNU Autoconf 2.59. Invocation command line was
  8486. CONFIG_FILES = $CONFIG_FILES
  8487. CONFIG_HEADERS = $CONFIG_HEADERS
  8488. CONFIG_LINKS = $CONFIG_LINKS
  8489. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8490. $ $0 $@
  8491. _CSEOF
  8492. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8493. echo >&5
  8494. _ACEOF
  8495. # Files that config.status was made for.
  8496. if test -n "$ac_config_files"; then
  8497. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8498. fi
  8499. if test -n "$ac_config_headers"; then
  8500. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8501. fi
  8502. if test -n "$ac_config_links"; then
  8503. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8504. fi
  8505. if test -n "$ac_config_commands"; then
  8506. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8507. fi
  8508. cat >>$CONFIG_STATUS <<\_ACEOF
  8509. ac_cs_usage="\
  8510. \`$as_me' instantiates files from templates according to the
  8511. current configuration.
  8512. Usage: $0 [OPTIONS] [FILE]...
  8513. -h, --help print this help, then exit
  8514. -V, --version print version number, then exit
  8515. -q, --quiet do not print progress messages
  8516. -d, --debug don't remove temporary files
  8517. --recheck update $as_me by reconfiguring in the same conditions
  8518. --file=FILE[:TEMPLATE]
  8519. instantiate the configuration file FILE
  8520. --header=FILE[:TEMPLATE]
  8521. instantiate the configuration header FILE
  8522. Configuration files:
  8523. $config_files
  8524. Configuration headers:
  8525. $config_headers
  8526. Configuration commands:
  8527. $config_commands
  8528. Report bugs to <bug-autoconf@gnu.org>."
  8529. _ACEOF
  8530. cat >>$CONFIG_STATUS <<_ACEOF
  8531. ac_cs_version="\\
  8532. ngircd config.status 0.10.0
  8533. configured by $0, generated by GNU Autoconf 2.59,
  8534. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8535. Copyright (C) 2003 Free Software Foundation, Inc.
  8536. This config.status script is free software; the Free Software Foundation
  8537. gives unlimited permission to copy, distribute and modify it."
  8538. srcdir=$srcdir
  8539. INSTALL="$INSTALL"
  8540. _ACEOF
  8541. cat >>$CONFIG_STATUS <<\_ACEOF
  8542. # If no file are specified by the user, then we need to provide default
  8543. # value. By we need to know if files were specified by the user.
  8544. ac_need_defaults=:
  8545. while test $# != 0
  8546. do
  8547. case $1 in
  8548. --*=*)
  8549. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8550. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8551. ac_shift=:
  8552. ;;
  8553. -*)
  8554. ac_option=$1
  8555. ac_optarg=$2
  8556. ac_shift=shift
  8557. ;;
  8558. *) # This is not an option, so the user has probably given explicit
  8559. # arguments.
  8560. ac_option=$1
  8561. ac_need_defaults=false;;
  8562. esac
  8563. case $ac_option in
  8564. # Handling of the options.
  8565. _ACEOF
  8566. cat >>$CONFIG_STATUS <<\_ACEOF
  8567. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8568. ac_cs_recheck=: ;;
  8569. --version | --vers* | -V )
  8570. echo "$ac_cs_version"; exit 0 ;;
  8571. --he | --h)
  8572. # Conflict between --help and --header
  8573. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8574. Try \`$0 --help' for more information." >&5
  8575. echo "$as_me: error: ambiguous option: $1
  8576. Try \`$0 --help' for more information." >&2;}
  8577. { (exit 1); exit 1; }; };;
  8578. --help | --hel | -h )
  8579. echo "$ac_cs_usage"; exit 0 ;;
  8580. --debug | --d* | -d )
  8581. debug=: ;;
  8582. --file | --fil | --fi | --f )
  8583. $ac_shift
  8584. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8585. ac_need_defaults=false;;
  8586. --header | --heade | --head | --hea )
  8587. $ac_shift
  8588. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8589. ac_need_defaults=false;;
  8590. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8591. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8592. ac_cs_silent=: ;;
  8593. # This is an error.
  8594. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8595. Try \`$0 --help' for more information." >&5
  8596. echo "$as_me: error: unrecognized option: $1
  8597. Try \`$0 --help' for more information." >&2;}
  8598. { (exit 1); exit 1; }; } ;;
  8599. *) ac_config_targets="$ac_config_targets $1" ;;
  8600. esac
  8601. shift
  8602. done
  8603. ac_configure_extra_args=
  8604. if $ac_cs_silent; then
  8605. exec 6>/dev/null
  8606. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8607. fi
  8608. _ACEOF
  8609. cat >>$CONFIG_STATUS <<_ACEOF
  8610. if \$ac_cs_recheck; then
  8611. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8612. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8613. fi
  8614. _ACEOF
  8615. cat >>$CONFIG_STATUS <<_ACEOF
  8616. #
  8617. # INIT-COMMANDS section.
  8618. #
  8619. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  8620. _ACEOF
  8621. cat >>$CONFIG_STATUS <<\_ACEOF
  8622. for ac_config_target in $ac_config_targets
  8623. do
  8624. case "$ac_config_target" in
  8625. # Handling of arguments.
  8626. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8627. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  8628. "doc/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  8629. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8630. "src/portab/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  8631. "src/tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  8632. "src/ngircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  8633. "src/testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  8634. "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  8635. "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  8636. "contrib/Debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  8637. "contrib/MacOSX/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  8638. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  8639. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8640. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8641. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8642. { (exit 1); exit 1; }; };;
  8643. esac
  8644. done
  8645. # If the user did not use the arguments to specify the items to instantiate,
  8646. # then the envvar interface is used. Set only those that are not.
  8647. # We use the long form for the default assignment because of an extremely
  8648. # bizarre bug on SunOS 4.1.3.
  8649. if $ac_need_defaults; then
  8650. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8651. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8652. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8653. fi
  8654. # Have a temporary directory for convenience. Make it in the build tree
  8655. # simply because there is no reason to put it here, and in addition,
  8656. # creating and moving files from /tmp can sometimes cause problems.
  8657. # Create a temporary directory, and hook for its removal unless debugging.
  8658. $debug ||
  8659. {
  8660. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8661. trap '{ (exit 1); exit 1; }' 1 2 13 15
  8662. }
  8663. # Create a (secure) tmp directory for tmp files.
  8664. {
  8665. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8666. test -n "$tmp" && test -d "$tmp"
  8667. } ||
  8668. {
  8669. tmp=./confstat$$-$RANDOM
  8670. (umask 077 && mkdir $tmp)
  8671. } ||
  8672. {
  8673. echo "$me: cannot create a temporary directory in ." >&2
  8674. { (exit 1); exit 1; }
  8675. }
  8676. _ACEOF
  8677. cat >>$CONFIG_STATUS <<_ACEOF
  8678. #
  8679. # CONFIG_FILES section.
  8680. #
  8681. # No need to generate the scripts if there are no CONFIG_FILES.
  8682. # This happens for instance when ./config.status config.h
  8683. if test -n "\$CONFIG_FILES"; then
  8684. # Protect against being on the right side of a sed subst in config.status.
  8685. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8686. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8687. s,@SHELL@,$SHELL,;t t
  8688. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8689. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8690. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8691. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8692. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8693. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8694. s,@exec_prefix@,$exec_prefix,;t t
  8695. s,@prefix@,$prefix,;t t
  8696. s,@program_transform_name@,$program_transform_name,;t t
  8697. s,@bindir@,$bindir,;t t
  8698. s,@sbindir@,$sbindir,;t t
  8699. s,@libexecdir@,$libexecdir,;t t
  8700. s,@datadir@,$datadir,;t t
  8701. s,@sysconfdir@,$sysconfdir,;t t
  8702. s,@sharedstatedir@,$sharedstatedir,;t t
  8703. s,@localstatedir@,$localstatedir,;t t
  8704. s,@libdir@,$libdir,;t t
  8705. s,@includedir@,$includedir,;t t
  8706. s,@oldincludedir@,$oldincludedir,;t t
  8707. s,@infodir@,$infodir,;t t
  8708. s,@mandir@,$mandir,;t t
  8709. s,@build_alias@,$build_alias,;t t
  8710. s,@host_alias@,$host_alias,;t t
  8711. s,@target_alias@,$target_alias,;t t
  8712. s,@DEFS@,$DEFS,;t t
  8713. s,@ECHO_C@,$ECHO_C,;t t
  8714. s,@ECHO_N@,$ECHO_N,;t t
  8715. s,@ECHO_T@,$ECHO_T,;t t
  8716. s,@LIBS@,$LIBS,;t t
  8717. s,@build@,$build,;t t
  8718. s,@build_cpu@,$build_cpu,;t t
  8719. s,@build_vendor@,$build_vendor,;t t
  8720. s,@build_os@,$build_os,;t t
  8721. s,@host@,$host,;t t
  8722. s,@host_cpu@,$host_cpu,;t t
  8723. s,@host_vendor@,$host_vendor,;t t
  8724. s,@host_os@,$host_os,;t t
  8725. s,@target@,$target,;t t
  8726. s,@target_cpu@,$target_cpu,;t t
  8727. s,@target_vendor@,$target_vendor,;t t
  8728. s,@target_os@,$target_os,;t t
  8729. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  8730. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  8731. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  8732. s,@CYGPATH_W@,$CYGPATH_W,;t t
  8733. s,@PACKAGE@,$PACKAGE,;t t
  8734. s,@VERSION@,$VERSION,;t t
  8735. s,@ACLOCAL@,$ACLOCAL,;t t
  8736. s,@AUTOCONF@,$AUTOCONF,;t t
  8737. s,@AUTOMAKE@,$AUTOMAKE,;t t
  8738. s,@AUTOHEADER@,$AUTOHEADER,;t t
  8739. s,@MAKEINFO@,$MAKEINFO,;t t
  8740. s,@install_sh@,$install_sh,;t t
  8741. s,@STRIP@,$STRIP,;t t
  8742. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  8743. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  8744. s,@mkdir_p@,$mkdir_p,;t t
  8745. s,@AWK@,$AWK,;t t
  8746. s,@SET_MAKE@,$SET_MAKE,;t t
  8747. s,@am__leading_dot@,$am__leading_dot,;t t
  8748. s,@AMTAR@,$AMTAR,;t t
  8749. s,@am__tar@,$am__tar,;t t
  8750. s,@am__untar@,$am__untar,;t t
  8751. s,@CC@,$CC,;t t
  8752. s,@CFLAGS@,$CFLAGS,;t t
  8753. s,@LDFLAGS@,$LDFLAGS,;t t
  8754. s,@CPPFLAGS@,$CPPFLAGS,;t t
  8755. s,@ac_ct_CC@,$ac_ct_CC,;t t
  8756. s,@EXEEXT@,$EXEEXT,;t t
  8757. s,@OBJEXT@,$OBJEXT,;t t
  8758. s,@DEPDIR@,$DEPDIR,;t t
  8759. s,@am__include@,$am__include,;t t
  8760. s,@am__quote@,$am__quote,;t t
  8761. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  8762. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  8763. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  8764. s,@CCDEPMODE@,$CCDEPMODE,;t t
  8765. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  8766. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  8767. s,@LN_S@,$LN_S,;t t
  8768. s,@RANLIB@,$RANLIB,;t t
  8769. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  8770. s,@CPP@,$CPP,;t t
  8771. s,@EGREP@,$EGREP,;t t
  8772. s,@U@,$U,;t t
  8773. s,@ANSI2KNR@,$ANSI2KNR,;t t
  8774. s,@LIBOBJS@,$LIBOBJS,;t t
  8775. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  8776. CEOF
  8777. _ACEOF
  8778. cat >>$CONFIG_STATUS <<\_ACEOF
  8779. # Split the substitutions into bite-sized pieces for seds with
  8780. # small command number limits, like on Digital OSF/1 and HP-UX.
  8781. ac_max_sed_lines=48
  8782. ac_sed_frag=1 # Number of current file.
  8783. ac_beg=1 # First line for current file.
  8784. ac_end=$ac_max_sed_lines # Line after last line for current file.
  8785. ac_more_lines=:
  8786. ac_sed_cmds=
  8787. while $ac_more_lines; do
  8788. if test $ac_beg -gt 1; then
  8789. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8790. else
  8791. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8792. fi
  8793. if test ! -s $tmp/subs.frag; then
  8794. ac_more_lines=false
  8795. else
  8796. # The purpose of the label and of the branching condition is to
  8797. # speed up the sed processing (if there are no `@' at all, there
  8798. # is no need to browse any of the substitutions).
  8799. # These are the two extra sed commands mentioned above.
  8800. (echo ':t
  8801. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  8802. if test -z "$ac_sed_cmds"; then
  8803. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  8804. else
  8805. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  8806. fi
  8807. ac_sed_frag=`expr $ac_sed_frag + 1`
  8808. ac_beg=$ac_end
  8809. ac_end=`expr $ac_end + $ac_max_sed_lines`
  8810. fi
  8811. done
  8812. if test -z "$ac_sed_cmds"; then
  8813. ac_sed_cmds=cat
  8814. fi
  8815. fi # test -n "$CONFIG_FILES"
  8816. _ACEOF
  8817. cat >>$CONFIG_STATUS <<\_ACEOF
  8818. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  8819. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8820. case $ac_file in
  8821. - | *:- | *:-:* ) # input from stdin
  8822. cat >$tmp/stdin
  8823. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8824. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8825. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8826. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8827. * ) ac_file_in=$ac_file.in ;;
  8828. esac
  8829. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  8830. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8831. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8832. X"$ac_file" : 'X\(//\)[^/]' \| \
  8833. X"$ac_file" : 'X\(//\)$' \| \
  8834. X"$ac_file" : 'X\(/\)' \| \
  8835. . : '\(.\)' 2>/dev/null ||
  8836. echo X"$ac_file" |
  8837. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8838. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8839. /^X\(\/\/\)$/{ s//\1/; q; }
  8840. /^X\(\/\).*/{ s//\1/; q; }
  8841. s/.*/./; q'`
  8842. { if $as_mkdir_p; then
  8843. mkdir -p "$ac_dir"
  8844. else
  8845. as_dir="$ac_dir"
  8846. as_dirs=
  8847. while test ! -d "$as_dir"; do
  8848. as_dirs="$as_dir $as_dirs"
  8849. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8850. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8851. X"$as_dir" : 'X\(//\)[^/]' \| \
  8852. X"$as_dir" : 'X\(//\)$' \| \
  8853. X"$as_dir" : 'X\(/\)' \| \
  8854. . : '\(.\)' 2>/dev/null ||
  8855. echo X"$as_dir" |
  8856. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8857. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8858. /^X\(\/\/\)$/{ s//\1/; q; }
  8859. /^X\(\/\).*/{ s//\1/; q; }
  8860. s/.*/./; q'`
  8861. done
  8862. test ! -n "$as_dirs" || mkdir $as_dirs
  8863. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8864. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8865. { (exit 1); exit 1; }; }; }
  8866. ac_builddir=.
  8867. if test "$ac_dir" != .; then
  8868. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8869. # A "../" for each directory in $ac_dir_suffix.
  8870. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8871. else
  8872. ac_dir_suffix= ac_top_builddir=
  8873. fi
  8874. case $srcdir in
  8875. .) # No --srcdir option. We are building in place.
  8876. ac_srcdir=.
  8877. if test -z "$ac_top_builddir"; then
  8878. ac_top_srcdir=.
  8879. else
  8880. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8881. fi ;;
  8882. [\\/]* | ?:[\\/]* ) # Absolute path.
  8883. ac_srcdir=$srcdir$ac_dir_suffix;
  8884. ac_top_srcdir=$srcdir ;;
  8885. *) # Relative path.
  8886. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8887. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8888. esac
  8889. # Do not use `cd foo && pwd` to compute absolute paths, because
  8890. # the directories may not exist.
  8891. case `pwd` in
  8892. .) ac_abs_builddir="$ac_dir";;
  8893. *)
  8894. case "$ac_dir" in
  8895. .) ac_abs_builddir=`pwd`;;
  8896. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8897. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8898. esac;;
  8899. esac
  8900. case $ac_abs_builddir in
  8901. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  8902. *)
  8903. case ${ac_top_builddir}. in
  8904. .) ac_abs_top_builddir=$ac_abs_builddir;;
  8905. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8906. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8907. esac;;
  8908. esac
  8909. case $ac_abs_builddir in
  8910. .) ac_abs_srcdir=$ac_srcdir;;
  8911. *)
  8912. case $ac_srcdir in
  8913. .) ac_abs_srcdir=$ac_abs_builddir;;
  8914. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8915. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8916. esac;;
  8917. esac
  8918. case $ac_abs_builddir in
  8919. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  8920. *)
  8921. case $ac_top_srcdir in
  8922. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8923. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8924. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8925. esac;;
  8926. esac
  8927. case $INSTALL in
  8928. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8929. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  8930. esac
  8931. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8932. # use $as_me), people would be surprised to read:
  8933. # /* config.h. Generated by config.status. */
  8934. if test x"$ac_file" = x-; then
  8935. configure_input=
  8936. else
  8937. configure_input="$ac_file. "
  8938. fi
  8939. configure_input=$configure_input"Generated from `echo $ac_file_in |
  8940. sed 's,.*/,,'` by configure."
  8941. # First look for the input files in the build tree, otherwise in the
  8942. # src tree.
  8943. ac_file_inputs=`IFS=:
  8944. for f in $ac_file_in; do
  8945. case $f in
  8946. -) echo $tmp/stdin ;;
  8947. [\\/$]*)
  8948. # Absolute (can't be DOS-style, as IFS=:)
  8949. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8950. echo "$as_me: error: cannot find input file: $f" >&2;}
  8951. { (exit 1); exit 1; }; }
  8952. echo "$f";;
  8953. *) # Relative
  8954. if test -f "$f"; then
  8955. # Build tree
  8956. echo "$f"
  8957. elif test -f "$srcdir/$f"; then
  8958. # Source tree
  8959. echo "$srcdir/$f"
  8960. else
  8961. # /dev/null tree
  8962. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8963. echo "$as_me: error: cannot find input file: $f" >&2;}
  8964. { (exit 1); exit 1; }; }
  8965. fi;;
  8966. esac
  8967. done` || { (exit 1); exit 1; }
  8968. if test x"$ac_file" != x-; then
  8969. { echo "$as_me:$LINENO: creating $ac_file" >&5
  8970. echo "$as_me: creating $ac_file" >&6;}
  8971. rm -f "$ac_file"
  8972. fi
  8973. _ACEOF
  8974. cat >>$CONFIG_STATUS <<_ACEOF
  8975. sed "$ac_vpsub
  8976. $extrasub
  8977. _ACEOF
  8978. cat >>$CONFIG_STATUS <<\_ACEOF
  8979. :t
  8980. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8981. s,@configure_input@,$configure_input,;t t
  8982. s,@srcdir@,$ac_srcdir,;t t
  8983. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  8984. s,@top_srcdir@,$ac_top_srcdir,;t t
  8985. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  8986. s,@builddir@,$ac_builddir,;t t
  8987. s,@abs_builddir@,$ac_abs_builddir,;t t
  8988. s,@top_builddir@,$ac_top_builddir,;t t
  8989. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  8990. s,@INSTALL@,$ac_INSTALL,;t t
  8991. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  8992. rm -f $tmp/stdin
  8993. if test x"$ac_file" != x-; then
  8994. mv $tmp/out $ac_file
  8995. else
  8996. cat $tmp/out
  8997. rm -f $tmp/out
  8998. fi
  8999. done
  9000. _ACEOF
  9001. cat >>$CONFIG_STATUS <<\_ACEOF
  9002. #
  9003. # CONFIG_HEADER section.
  9004. #
  9005. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9006. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9007. #
  9008. # ac_d sets the value in "#define NAME VALUE" lines.
  9009. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9010. ac_dB='[ ].*$,\1#\2'
  9011. ac_dC=' '
  9012. ac_dD=',;t'
  9013. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9014. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9015. ac_uB='$,\1#\2define\3'
  9016. ac_uC=' '
  9017. ac_uD=',;t'
  9018. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9019. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9020. case $ac_file in
  9021. - | *:- | *:-:* ) # input from stdin
  9022. cat >$tmp/stdin
  9023. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9024. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9025. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9026. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9027. * ) ac_file_in=$ac_file.in ;;
  9028. esac
  9029. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9030. echo "$as_me: creating $ac_file" >&6;}
  9031. # First look for the input files in the build tree, otherwise in the
  9032. # src tree.
  9033. ac_file_inputs=`IFS=:
  9034. for f in $ac_file_in; do
  9035. case $f in
  9036. -) echo $tmp/stdin ;;
  9037. [\\/$]*)
  9038. # Absolute (can't be DOS-style, as IFS=:)
  9039. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9040. echo "$as_me: error: cannot find input file: $f" >&2;}
  9041. { (exit 1); exit 1; }; }
  9042. # Do quote $f, to prevent DOS paths from being IFS'd.
  9043. echo "$f";;
  9044. *) # Relative
  9045. if test -f "$f"; then
  9046. # Build tree
  9047. echo "$f"
  9048. elif test -f "$srcdir/$f"; then
  9049. # Source tree
  9050. echo "$srcdir/$f"
  9051. else
  9052. # /dev/null tree
  9053. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9054. echo "$as_me: error: cannot find input file: $f" >&2;}
  9055. { (exit 1); exit 1; }; }
  9056. fi;;
  9057. esac
  9058. done` || { (exit 1); exit 1; }
  9059. # Remove the trailing spaces.
  9060. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9061. _ACEOF
  9062. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  9063. # `conftest.undefs', that substitutes the proper values into
  9064. # config.h.in to produce config.h. The first handles `#define'
  9065. # templates, and the second `#undef' templates.
  9066. # And first: Protect against being on the right side of a sed subst in
  9067. # config.status. Protect against being in an unquoted here document
  9068. # in config.status.
  9069. rm -f conftest.defines conftest.undefs
  9070. # Using a here document instead of a string reduces the quoting nightmare.
  9071. # Putting comments in sed scripts is not portable.
  9072. #
  9073. # `end' is used to avoid that the second main sed command (meant for
  9074. # 0-ary CPP macros) applies to n-ary macro definitions.
  9075. # See the Autoconf documentation for `clear'.
  9076. cat >confdef2sed.sed <<\_ACEOF
  9077. s/[\\&,]/\\&/g
  9078. s,[\\$`],\\&,g
  9079. t clear
  9080. : clear
  9081. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9082. t end
  9083. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9084. : end
  9085. _ACEOF
  9086. # If some macros were called several times there might be several times
  9087. # the same #defines, which is useless. Nevertheless, we may not want to
  9088. # sort them, since we want the *last* AC-DEFINE to be honored.
  9089. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9090. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9091. rm -f confdef2sed.sed
  9092. # This sed command replaces #undef with comments. This is necessary, for
  9093. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9094. # on some systems where configure will not decide to define it.
  9095. cat >>conftest.undefs <<\_ACEOF
  9096. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9097. _ACEOF
  9098. # Break up conftest.defines because some shells have a limit on the size
  9099. # of here documents, and old seds have small limits too (100 cmds).
  9100. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9101. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9102. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9103. echo ' :' >>$CONFIG_STATUS
  9104. rm -f conftest.tail
  9105. while grep . conftest.defines >/dev/null
  9106. do
  9107. # Write a limited-size here document to $tmp/defines.sed.
  9108. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9109. # Speed up: don't consider the non `#define' lines.
  9110. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9111. # Work around the forget-to-reset-the-flag bug.
  9112. echo 't clr' >>$CONFIG_STATUS
  9113. echo ': clr' >>$CONFIG_STATUS
  9114. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9115. echo 'CEOF
  9116. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9117. rm -f $tmp/in
  9118. mv $tmp/out $tmp/in
  9119. ' >>$CONFIG_STATUS
  9120. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9121. rm -f conftest.defines
  9122. mv conftest.tail conftest.defines
  9123. done
  9124. rm -f conftest.defines
  9125. echo ' fi # grep' >>$CONFIG_STATUS
  9126. echo >>$CONFIG_STATUS
  9127. # Break up conftest.undefs because some shells have a limit on the size
  9128. # of here documents, and old seds have small limits too (100 cmds).
  9129. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9130. rm -f conftest.tail
  9131. while grep . conftest.undefs >/dev/null
  9132. do
  9133. # Write a limited-size here document to $tmp/undefs.sed.
  9134. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9135. # Speed up: don't consider the non `#undef'
  9136. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9137. # Work around the forget-to-reset-the-flag bug.
  9138. echo 't clr' >>$CONFIG_STATUS
  9139. echo ': clr' >>$CONFIG_STATUS
  9140. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9141. echo 'CEOF
  9142. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9143. rm -f $tmp/in
  9144. mv $tmp/out $tmp/in
  9145. ' >>$CONFIG_STATUS
  9146. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9147. rm -f conftest.undefs
  9148. mv conftest.tail conftest.undefs
  9149. done
  9150. rm -f conftest.undefs
  9151. cat >>$CONFIG_STATUS <<\_ACEOF
  9152. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9153. # use $as_me), people would be surprised to read:
  9154. # /* config.h. Generated by config.status. */
  9155. if test x"$ac_file" = x-; then
  9156. echo "/* Generated by configure. */" >$tmp/config.h
  9157. else
  9158. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9159. fi
  9160. cat $tmp/in >>$tmp/config.h
  9161. rm -f $tmp/in
  9162. if test x"$ac_file" != x-; then
  9163. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9164. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9165. echo "$as_me: $ac_file is unchanged" >&6;}
  9166. else
  9167. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9168. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9169. X"$ac_file" : 'X\(//\)[^/]' \| \
  9170. X"$ac_file" : 'X\(//\)$' \| \
  9171. X"$ac_file" : 'X\(/\)' \| \
  9172. . : '\(.\)' 2>/dev/null ||
  9173. echo X"$ac_file" |
  9174. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9175. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9176. /^X\(\/\/\)$/{ s//\1/; q; }
  9177. /^X\(\/\).*/{ s//\1/; q; }
  9178. s/.*/./; q'`
  9179. { if $as_mkdir_p; then
  9180. mkdir -p "$ac_dir"
  9181. else
  9182. as_dir="$ac_dir"
  9183. as_dirs=
  9184. while test ! -d "$as_dir"; do
  9185. as_dirs="$as_dir $as_dirs"
  9186. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9187. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9188. X"$as_dir" : 'X\(//\)[^/]' \| \
  9189. X"$as_dir" : 'X\(//\)$' \| \
  9190. X"$as_dir" : 'X\(/\)' \| \
  9191. . : '\(.\)' 2>/dev/null ||
  9192. echo X"$as_dir" |
  9193. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9194. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9195. /^X\(\/\/\)$/{ s//\1/; q; }
  9196. /^X\(\/\).*/{ s//\1/; q; }
  9197. s/.*/./; q'`
  9198. done
  9199. test ! -n "$as_dirs" || mkdir $as_dirs
  9200. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9201. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9202. { (exit 1); exit 1; }; }; }
  9203. rm -f $ac_file
  9204. mv $tmp/config.h $ac_file
  9205. fi
  9206. else
  9207. cat $tmp/config.h
  9208. rm -f $tmp/config.h
  9209. fi
  9210. # Compute $ac_file's index in $config_headers.
  9211. _am_stamp_count=1
  9212. for _am_header in $config_headers :; do
  9213. case $_am_header in
  9214. $ac_file | $ac_file:* )
  9215. break ;;
  9216. * )
  9217. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9218. esac
  9219. done
  9220. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  9221. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9222. X$ac_file : 'X\(//\)[^/]' \| \
  9223. X$ac_file : 'X\(//\)$' \| \
  9224. X$ac_file : 'X\(/\)' \| \
  9225. . : '\(.\)' 2>/dev/null ||
  9226. echo X$ac_file |
  9227. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9228. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9229. /^X\(\/\/\)$/{ s//\1/; q; }
  9230. /^X\(\/\).*/{ s//\1/; q; }
  9231. s/.*/./; q'`/stamp-h$_am_stamp_count
  9232. done
  9233. _ACEOF
  9234. cat >>$CONFIG_STATUS <<\_ACEOF
  9235. #
  9236. # CONFIG_COMMANDS section.
  9237. #
  9238. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9239. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9240. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9241. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9242. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9243. X"$ac_dest" : 'X\(//\)[^/]' \| \
  9244. X"$ac_dest" : 'X\(//\)$' \| \
  9245. X"$ac_dest" : 'X\(/\)' \| \
  9246. . : '\(.\)' 2>/dev/null ||
  9247. echo X"$ac_dest" |
  9248. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9249. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9250. /^X\(\/\/\)$/{ s//\1/; q; }
  9251. /^X\(\/\).*/{ s//\1/; q; }
  9252. s/.*/./; q'`
  9253. { if $as_mkdir_p; then
  9254. mkdir -p "$ac_dir"
  9255. else
  9256. as_dir="$ac_dir"
  9257. as_dirs=
  9258. while test ! -d "$as_dir"; do
  9259. as_dirs="$as_dir $as_dirs"
  9260. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9261. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9262. X"$as_dir" : 'X\(//\)[^/]' \| \
  9263. X"$as_dir" : 'X\(//\)$' \| \
  9264. X"$as_dir" : 'X\(/\)' \| \
  9265. . : '\(.\)' 2>/dev/null ||
  9266. echo X"$as_dir" |
  9267. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9268. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9269. /^X\(\/\/\)$/{ s//\1/; q; }
  9270. /^X\(\/\).*/{ s//\1/; q; }
  9271. s/.*/./; q'`
  9272. done
  9273. test ! -n "$as_dirs" || mkdir $as_dirs
  9274. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9275. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9276. { (exit 1); exit 1; }; }; }
  9277. ac_builddir=.
  9278. if test "$ac_dir" != .; then
  9279. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9280. # A "../" for each directory in $ac_dir_suffix.
  9281. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9282. else
  9283. ac_dir_suffix= ac_top_builddir=
  9284. fi
  9285. case $srcdir in
  9286. .) # No --srcdir option. We are building in place.
  9287. ac_srcdir=.
  9288. if test -z "$ac_top_builddir"; then
  9289. ac_top_srcdir=.
  9290. else
  9291. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9292. fi ;;
  9293. [\\/]* | ?:[\\/]* ) # Absolute path.
  9294. ac_srcdir=$srcdir$ac_dir_suffix;
  9295. ac_top_srcdir=$srcdir ;;
  9296. *) # Relative path.
  9297. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9298. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9299. esac
  9300. # Do not use `cd foo && pwd` to compute absolute paths, because
  9301. # the directories may not exist.
  9302. case `pwd` in
  9303. .) ac_abs_builddir="$ac_dir";;
  9304. *)
  9305. case "$ac_dir" in
  9306. .) ac_abs_builddir=`pwd`;;
  9307. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9308. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9309. esac;;
  9310. esac
  9311. case $ac_abs_builddir in
  9312. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9313. *)
  9314. case ${ac_top_builddir}. in
  9315. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9316. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9317. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9318. esac;;
  9319. esac
  9320. case $ac_abs_builddir in
  9321. .) ac_abs_srcdir=$ac_srcdir;;
  9322. *)
  9323. case $ac_srcdir in
  9324. .) ac_abs_srcdir=$ac_abs_builddir;;
  9325. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9326. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9327. esac;;
  9328. esac
  9329. case $ac_abs_builddir in
  9330. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9331. *)
  9332. case $ac_top_srcdir in
  9333. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9334. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9335. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9336. esac;;
  9337. esac
  9338. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9339. echo "$as_me: executing $ac_dest commands" >&6;}
  9340. case $ac_dest in
  9341. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  9342. # Strip MF so we end up with the name of the file.
  9343. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9344. # Check whether this is an Automake generated Makefile or not.
  9345. # We used to match only the files named `Makefile.in', but
  9346. # some people rename them; so instead we look at the file content.
  9347. # Grep'ing the first line is not enough: some people post-process
  9348. # each Makefile.in and add a new line on top of each file to say so.
  9349. # So let's grep whole file.
  9350. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  9351. dirpart=`(dirname "$mf") 2>/dev/null ||
  9352. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9353. X"$mf" : 'X\(//\)[^/]' \| \
  9354. X"$mf" : 'X\(//\)$' \| \
  9355. X"$mf" : 'X\(/\)' \| \
  9356. . : '\(.\)' 2>/dev/null ||
  9357. echo X"$mf" |
  9358. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9359. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9360. /^X\(\/\/\)$/{ s//\1/; q; }
  9361. /^X\(\/\).*/{ s//\1/; q; }
  9362. s/.*/./; q'`
  9363. else
  9364. continue
  9365. fi
  9366. # Extract the definition of DEPDIR, am__include, and am__quote
  9367. # from the Makefile without running `make'.
  9368. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  9369. test -z "$DEPDIR" && continue
  9370. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  9371. test -z "am__include" && continue
  9372. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  9373. # When using ansi2knr, U may be empty or an underscore; expand it
  9374. U=`sed -n 's/^U = //p' < "$mf"`
  9375. # Find all dependency output files, they are included files with
  9376. # $(DEPDIR) in their names. We invoke sed twice because it is the
  9377. # simplest approach to changing $(DEPDIR) to its actual value in the
  9378. # expansion.
  9379. for file in `sed -n "
  9380. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  9381. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  9382. # Make sure the directory exists.
  9383. test -f "$dirpart/$file" && continue
  9384. fdir=`(dirname "$file") 2>/dev/null ||
  9385. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9386. X"$file" : 'X\(//\)[^/]' \| \
  9387. X"$file" : 'X\(//\)$' \| \
  9388. X"$file" : 'X\(/\)' \| \
  9389. . : '\(.\)' 2>/dev/null ||
  9390. echo X"$file" |
  9391. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9392. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9393. /^X\(\/\/\)$/{ s//\1/; q; }
  9394. /^X\(\/\).*/{ s//\1/; q; }
  9395. s/.*/./; q'`
  9396. { if $as_mkdir_p; then
  9397. mkdir -p $dirpart/$fdir
  9398. else
  9399. as_dir=$dirpart/$fdir
  9400. as_dirs=
  9401. while test ! -d "$as_dir"; do
  9402. as_dirs="$as_dir $as_dirs"
  9403. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9404. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9405. X"$as_dir" : 'X\(//\)[^/]' \| \
  9406. X"$as_dir" : 'X\(//\)$' \| \
  9407. X"$as_dir" : 'X\(/\)' \| \
  9408. . : '\(.\)' 2>/dev/null ||
  9409. echo X"$as_dir" |
  9410. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9411. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9412. /^X\(\/\/\)$/{ s//\1/; q; }
  9413. /^X\(\/\).*/{ s//\1/; q; }
  9414. s/.*/./; q'`
  9415. done
  9416. test ! -n "$as_dirs" || mkdir $as_dirs
  9417. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  9418. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  9419. { (exit 1); exit 1; }; }; }
  9420. # echo "creating $dirpart/$file"
  9421. echo '# dummy' > "$dirpart/$file"
  9422. done
  9423. done
  9424. ;;
  9425. esac
  9426. done
  9427. _ACEOF
  9428. cat >>$CONFIG_STATUS <<\_ACEOF
  9429. { (exit 0); exit 0; }
  9430. _ACEOF
  9431. chmod +x $CONFIG_STATUS
  9432. ac_clean_files=$ac_clean_files_save
  9433. # configure is writing to config.log, and then calls config.status.
  9434. # config.status does its own redirection, appending to config.log.
  9435. # Unfortunately, on DOS this fails, as config.log is still kept open
  9436. # by configure, so config.status won't be able to write to it; its
  9437. # output is simply discarded. So we exec the FD to /dev/null,
  9438. # effectively closing config.log, so it can be properly (re)opened and
  9439. # appended to by config.status. When coming back to configure, we
  9440. # need to make the FD available again.
  9441. if test "$no_create" != yes; then
  9442. ac_cs_success=:
  9443. ac_config_status_args=
  9444. test "$silent" = yes &&
  9445. ac_config_status_args="$ac_config_status_args --quiet"
  9446. exec 5>/dev/null
  9447. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9448. exec 5>>config.log
  9449. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9450. # would make configure fail if this is the last instruction.
  9451. $ac_cs_success || { (exit 1); exit 1; }
  9452. fi
  9453. type dpkg >/dev/null 2>&1
  9454. if test $? -eq 0; then
  9455. # Generate debian/ link if the dpkg command exists
  9456. # (read: if we are running on a debian compatible system)
  9457. echo "creating Debian-specific links ..."
  9458. test -f debian/rules || ln -s contrib/Debian debian
  9459. fi
  9460. # -- Result --
  9461. echo
  9462. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  9463. echo
  9464. # Someone please show me a better way :) [borrowed by OpenSSH]
  9465. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  9466. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  9467. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  9468. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  9469. D=`eval echo ${datadir}/doc/${PACKAGE}` ; D=`eval echo ${D}`
  9470. echo " Target: ${target}"
  9471. test "$target" != "$host" && echo " Host: ${host}"
  9472. echo " Compiler: ${CC}"
  9473. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  9474. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  9475. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  9476. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  9477. echo
  9478. echo " 'ngircd' binary: $S"
  9479. echo " Configuration file: $C"
  9480. echo " Manual pages: $M"
  9481. echo " Documentation: $D"
  9482. echo
  9483. echo $ECHO_N " Syslog support: $ECHO_C"
  9484. test "$x_syslog_on" = "yes" \
  9485. && echo $ECHO_N "yes $ECHO_C" \
  9486. || echo $ECHO_N "no $ECHO_C"
  9487. echo $ECHO_N " Enable debug code: $ECHO_C"
  9488. test "$x_debug_on" = "yes" \
  9489. && echo "yes" \
  9490. || echo "no"
  9491. echo $ECHO_N " zlib compression: $ECHO_C"
  9492. test "$x_zlib_on" = "yes" \
  9493. && echo $ECHO_N "yes $ECHO_C" \
  9494. || echo $ECHO_N "no $ECHO_C"
  9495. echo $ECHO_N " IRC sniffer: $ECHO_C"
  9496. test "$x_sniffer_on" = "yes" \
  9497. && echo "yes" \
  9498. || echo "no"
  9499. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  9500. test "$x_tcpwrap_on" = "yes" \
  9501. && echo $ECHO_N "yes $ECHO_C" \
  9502. || echo $ECHO_N "no $ECHO_C"
  9503. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  9504. test "$x_strict_rfc_on" = "yes" \
  9505. && echo "yes" \
  9506. || echo "no"
  9507. echo $ECHO_N " Zeroconf support: $ECHO_C"
  9508. case "$x_zeroconf_on" in
  9509. osx)
  9510. echo $ECHO_N "Apple $ECHO_C"
  9511. ;;
  9512. howl)
  9513. echo $ECHO_N "Howl $ECHO_C"
  9514. ;;
  9515. *)
  9516. echo $ECHO_N "no $ECHO_C"
  9517. ;;
  9518. esac
  9519. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  9520. test "$x_ircplus_on" = "yes" \
  9521. && echo "yes" \
  9522. || echo "no"
  9523. echo $ECHO_N " IDENT support: $ECHO_C"
  9524. test "$x_identauth_on" = "yes" \
  9525. && echo $ECHO_N "yes $ECHO_C" \
  9526. || echo $ECHO_N "no $ECHO_C"
  9527. echo $ECHO_N " I/O backend: $ECHO_C"
  9528. echo "\"$x_io_backend()\""
  9529. echo
  9530. # -eof-