configure 344 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for ngircd 15.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME='ngircd'
  492. PACKAGE_TARNAME='ngircd'
  493. PACKAGE_VERSION='15'
  494. PACKAGE_STRING='ngircd 15'
  495. PACKAGE_BUGREPORT=''
  496. ac_unique_file="src/ngircd/ngircd.c"
  497. # Factoring default headers for most tests.
  498. ac_includes_default="\
  499. #include <stdio.h>
  500. #ifdef HAVE_SYS_TYPES_H
  501. # include <sys/types.h>
  502. #endif
  503. #ifdef HAVE_SYS_STAT_H
  504. # include <sys/stat.h>
  505. #endif
  506. #ifdef STDC_HEADERS
  507. # include <stdlib.h>
  508. # include <stddef.h>
  509. #else
  510. # ifdef HAVE_STDLIB_H
  511. # include <stdlib.h>
  512. # endif
  513. #endif
  514. #ifdef HAVE_STRING_H
  515. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  516. # include <memory.h>
  517. # endif
  518. # include <string.h>
  519. #endif
  520. #ifdef HAVE_STRINGS_H
  521. # include <strings.h>
  522. #endif
  523. #ifdef HAVE_INTTYPES_H
  524. # include <inttypes.h>
  525. #endif
  526. #ifdef HAVE_STDINT_H
  527. # include <stdint.h>
  528. #endif
  529. #ifdef HAVE_UNISTD_H
  530. # include <unistd.h>
  531. #endif"
  532. ac_subst_vars='SHELL
  533. PATH_SEPARATOR
  534. PACKAGE_NAME
  535. PACKAGE_TARNAME
  536. PACKAGE_VERSION
  537. PACKAGE_STRING
  538. PACKAGE_BUGREPORT
  539. exec_prefix
  540. prefix
  541. program_transform_name
  542. bindir
  543. sbindir
  544. libexecdir
  545. datarootdir
  546. datadir
  547. sysconfdir
  548. sharedstatedir
  549. localstatedir
  550. includedir
  551. oldincludedir
  552. docdir
  553. infodir
  554. htmldir
  555. dvidir
  556. pdfdir
  557. psdir
  558. libdir
  559. localedir
  560. mandir
  561. DEFS
  562. ECHO_C
  563. ECHO_N
  564. ECHO_T
  565. LIBS
  566. build_alias
  567. host_alias
  568. target_alias
  569. build
  570. build_cpu
  571. build_vendor
  572. build_os
  573. host
  574. host_cpu
  575. host_vendor
  576. host_os
  577. target
  578. target_cpu
  579. target_vendor
  580. target_os
  581. INSTALL_PROGRAM
  582. INSTALL_SCRIPT
  583. INSTALL_DATA
  584. am__isrc
  585. CYGPATH_W
  586. PACKAGE
  587. VERSION
  588. ACLOCAL
  589. AUTOCONF
  590. AUTOMAKE
  591. AUTOHEADER
  592. MAKEINFO
  593. install_sh
  594. STRIP
  595. INSTALL_STRIP_PROGRAM
  596. mkdir_p
  597. AWK
  598. SET_MAKE
  599. am__leading_dot
  600. AMTAR
  601. am__tar
  602. am__untar
  603. CC
  604. CFLAGS
  605. LDFLAGS
  606. CPPFLAGS
  607. ac_ct_CC
  608. EXEEXT
  609. OBJEXT
  610. DEPDIR
  611. am__include
  612. am__quote
  613. AMDEP_TRUE
  614. AMDEP_FALSE
  615. AMDEPBACKSLASH
  616. CCDEPMODE
  617. am__fastdepCC_TRUE
  618. am__fastdepCC_FALSE
  619. LN_S
  620. RANLIB
  621. CPP
  622. GREP
  623. EGREP
  624. U
  625. ANSI2KNR
  626. LIBOBJS
  627. LTLIBOBJS'
  628. ac_subst_files=''
  629. ac_precious_vars='build_alias
  630. host_alias
  631. target_alias
  632. CC
  633. CFLAGS
  634. LDFLAGS
  635. LIBS
  636. CPPFLAGS
  637. CPP'
  638. # Initialize some variables set by options.
  639. ac_init_help=
  640. ac_init_version=false
  641. # The variables have the same names as the options, with
  642. # dashes changed to underlines.
  643. cache_file=/dev/null
  644. exec_prefix=NONE
  645. no_create=
  646. no_recursion=
  647. prefix=NONE
  648. program_prefix=NONE
  649. program_suffix=NONE
  650. program_transform_name=s,x,x,
  651. silent=
  652. site=
  653. srcdir=
  654. verbose=
  655. x_includes=NONE
  656. x_libraries=NONE
  657. # Installation directory options.
  658. # These are left unexpanded so users can "make install exec_prefix=/foo"
  659. # and all the variables that are supposed to be based on exec_prefix
  660. # by default will actually change.
  661. # Use braces instead of parens because sh, perl, etc. also accept them.
  662. # (The list follows the same order as the GNU Coding Standards.)
  663. bindir='${exec_prefix}/bin'
  664. sbindir='${exec_prefix}/sbin'
  665. libexecdir='${exec_prefix}/libexec'
  666. datarootdir='${prefix}/share'
  667. datadir='${datarootdir}'
  668. sysconfdir='${prefix}/etc'
  669. sharedstatedir='${prefix}/com'
  670. localstatedir='${prefix}/var'
  671. includedir='${prefix}/include'
  672. oldincludedir='/usr/include'
  673. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  674. infodir='${datarootdir}/info'
  675. htmldir='${docdir}'
  676. dvidir='${docdir}'
  677. pdfdir='${docdir}'
  678. psdir='${docdir}'
  679. libdir='${exec_prefix}/lib'
  680. localedir='${datarootdir}/locale'
  681. mandir='${datarootdir}/man'
  682. ac_prev=
  683. ac_dashdash=
  684. for ac_option
  685. do
  686. # If the previous option needs an argument, assign it.
  687. if test -n "$ac_prev"; then
  688. eval $ac_prev=\$ac_option
  689. ac_prev=
  690. continue
  691. fi
  692. case $ac_option in
  693. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  694. *) ac_optarg=yes ;;
  695. esac
  696. # Accept the important Cygnus configure options, so we can diagnose typos.
  697. case $ac_dashdash$ac_option in
  698. --)
  699. ac_dashdash=yes ;;
  700. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  701. ac_prev=bindir ;;
  702. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  703. bindir=$ac_optarg ;;
  704. -build | --build | --buil | --bui | --bu)
  705. ac_prev=build_alias ;;
  706. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  707. build_alias=$ac_optarg ;;
  708. -cache-file | --cache-file | --cache-fil | --cache-fi \
  709. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  710. ac_prev=cache_file ;;
  711. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  712. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  713. cache_file=$ac_optarg ;;
  714. --config-cache | -C)
  715. cache_file=config.cache ;;
  716. -datadir | --datadir | --datadi | --datad)
  717. ac_prev=datadir ;;
  718. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  719. datadir=$ac_optarg ;;
  720. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  721. | --dataroo | --dataro | --datar)
  722. ac_prev=datarootdir ;;
  723. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  724. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  725. datarootdir=$ac_optarg ;;
  726. -disable-* | --disable-*)
  727. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  728. # Reject names that are not valid shell variable names.
  729. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  730. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  731. { (exit 1); exit 1; }; }
  732. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  733. eval enable_$ac_feature=no ;;
  734. -docdir | --docdir | --docdi | --doc | --do)
  735. ac_prev=docdir ;;
  736. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  737. docdir=$ac_optarg ;;
  738. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  739. ac_prev=dvidir ;;
  740. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  741. dvidir=$ac_optarg ;;
  742. -enable-* | --enable-*)
  743. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  744. # Reject names that are not valid shell variable names.
  745. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  746. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  747. { (exit 1); exit 1; }; }
  748. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  749. eval enable_$ac_feature=\$ac_optarg ;;
  750. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  751. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  752. | --exec | --exe | --ex)
  753. ac_prev=exec_prefix ;;
  754. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  755. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  756. | --exec=* | --exe=* | --ex=*)
  757. exec_prefix=$ac_optarg ;;
  758. -gas | --gas | --ga | --g)
  759. # Obsolete; use --with-gas.
  760. with_gas=yes ;;
  761. -help | --help | --hel | --he | -h)
  762. ac_init_help=long ;;
  763. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  764. ac_init_help=recursive ;;
  765. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  766. ac_init_help=short ;;
  767. -host | --host | --hos | --ho)
  768. ac_prev=host_alias ;;
  769. -host=* | --host=* | --hos=* | --ho=*)
  770. host_alias=$ac_optarg ;;
  771. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  772. ac_prev=htmldir ;;
  773. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  774. | --ht=*)
  775. htmldir=$ac_optarg ;;
  776. -includedir | --includedir | --includedi | --included | --include \
  777. | --includ | --inclu | --incl | --inc)
  778. ac_prev=includedir ;;
  779. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  780. | --includ=* | --inclu=* | --incl=* | --inc=*)
  781. includedir=$ac_optarg ;;
  782. -infodir | --infodir | --infodi | --infod | --info | --inf)
  783. ac_prev=infodir ;;
  784. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  785. infodir=$ac_optarg ;;
  786. -libdir | --libdir | --libdi | --libd)
  787. ac_prev=libdir ;;
  788. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  789. libdir=$ac_optarg ;;
  790. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  791. | --libexe | --libex | --libe)
  792. ac_prev=libexecdir ;;
  793. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  794. | --libexe=* | --libex=* | --libe=*)
  795. libexecdir=$ac_optarg ;;
  796. -localedir | --localedir | --localedi | --localed | --locale)
  797. ac_prev=localedir ;;
  798. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  799. localedir=$ac_optarg ;;
  800. -localstatedir | --localstatedir | --localstatedi | --localstated \
  801. | --localstate | --localstat | --localsta | --localst | --locals)
  802. ac_prev=localstatedir ;;
  803. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  804. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  805. localstatedir=$ac_optarg ;;
  806. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  807. ac_prev=mandir ;;
  808. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  809. mandir=$ac_optarg ;;
  810. -nfp | --nfp | --nf)
  811. # Obsolete; use --without-fp.
  812. with_fp=no ;;
  813. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  814. | --no-cr | --no-c | -n)
  815. no_create=yes ;;
  816. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  817. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  818. no_recursion=yes ;;
  819. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  820. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  821. | --oldin | --oldi | --old | --ol | --o)
  822. ac_prev=oldincludedir ;;
  823. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  824. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  825. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  826. oldincludedir=$ac_optarg ;;
  827. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  828. ac_prev=prefix ;;
  829. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  830. prefix=$ac_optarg ;;
  831. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  832. | --program-pre | --program-pr | --program-p)
  833. ac_prev=program_prefix ;;
  834. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  835. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  836. program_prefix=$ac_optarg ;;
  837. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  838. | --program-suf | --program-su | --program-s)
  839. ac_prev=program_suffix ;;
  840. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  841. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  842. program_suffix=$ac_optarg ;;
  843. -program-transform-name | --program-transform-name \
  844. | --program-transform-nam | --program-transform-na \
  845. | --program-transform-n | --program-transform- \
  846. | --program-transform | --program-transfor \
  847. | --program-transfo | --program-transf \
  848. | --program-trans | --program-tran \
  849. | --progr-tra | --program-tr | --program-t)
  850. ac_prev=program_transform_name ;;
  851. -program-transform-name=* | --program-transform-name=* \
  852. | --program-transform-nam=* | --program-transform-na=* \
  853. | --program-transform-n=* | --program-transform-=* \
  854. | --program-transform=* | --program-transfor=* \
  855. | --program-transfo=* | --program-transf=* \
  856. | --program-trans=* | --program-tran=* \
  857. | --progr-tra=* | --program-tr=* | --program-t=*)
  858. program_transform_name=$ac_optarg ;;
  859. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  860. ac_prev=pdfdir ;;
  861. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  862. pdfdir=$ac_optarg ;;
  863. -psdir | --psdir | --psdi | --psd | --ps)
  864. ac_prev=psdir ;;
  865. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  866. psdir=$ac_optarg ;;
  867. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  868. | -silent | --silent | --silen | --sile | --sil)
  869. silent=yes ;;
  870. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  871. ac_prev=sbindir ;;
  872. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  873. | --sbi=* | --sb=*)
  874. sbindir=$ac_optarg ;;
  875. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  876. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  877. | --sharedst | --shareds | --shared | --share | --shar \
  878. | --sha | --sh)
  879. ac_prev=sharedstatedir ;;
  880. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  881. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  882. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  883. | --sha=* | --sh=*)
  884. sharedstatedir=$ac_optarg ;;
  885. -site | --site | --sit)
  886. ac_prev=site ;;
  887. -site=* | --site=* | --sit=*)
  888. site=$ac_optarg ;;
  889. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  890. ac_prev=srcdir ;;
  891. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  892. srcdir=$ac_optarg ;;
  893. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  894. | --syscon | --sysco | --sysc | --sys | --sy)
  895. ac_prev=sysconfdir ;;
  896. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  897. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  898. sysconfdir=$ac_optarg ;;
  899. -target | --target | --targe | --targ | --tar | --ta | --t)
  900. ac_prev=target_alias ;;
  901. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  902. target_alias=$ac_optarg ;;
  903. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  904. verbose=yes ;;
  905. -version | --version | --versio | --versi | --vers | -V)
  906. ac_init_version=: ;;
  907. -with-* | --with-*)
  908. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  909. # Reject names that are not valid shell variable names.
  910. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  911. { echo "$as_me: error: invalid package name: $ac_package" >&2
  912. { (exit 1); exit 1; }; }
  913. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  914. eval with_$ac_package=\$ac_optarg ;;
  915. -without-* | --without-*)
  916. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  919. { echo "$as_me: error: invalid package name: $ac_package" >&2
  920. { (exit 1); exit 1; }; }
  921. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  922. eval with_$ac_package=no ;;
  923. --x)
  924. # Obsolete; use --with-x.
  925. with_x=yes ;;
  926. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  927. | --x-incl | --x-inc | --x-in | --x-i)
  928. ac_prev=x_includes ;;
  929. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  930. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  931. x_includes=$ac_optarg ;;
  932. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  933. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  934. ac_prev=x_libraries ;;
  935. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  936. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  937. x_libraries=$ac_optarg ;;
  938. -*) { echo "$as_me: error: unrecognized option: $ac_option
  939. Try \`$0 --help' for more information." >&2
  940. { (exit 1); exit 1; }; }
  941. ;;
  942. *=*)
  943. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  946. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  947. { (exit 1); exit 1; }; }
  948. eval $ac_envvar=\$ac_optarg
  949. export $ac_envvar ;;
  950. *)
  951. # FIXME: should be removed in autoconf 3.0.
  952. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  953. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  954. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  955. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  956. ;;
  957. esac
  958. done
  959. if test -n "$ac_prev"; then
  960. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  961. { echo "$as_me: error: missing argument to $ac_option" >&2
  962. { (exit 1); exit 1; }; }
  963. fi
  964. # Be sure to have absolute directory names.
  965. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  966. datadir sysconfdir sharedstatedir localstatedir includedir \
  967. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  968. libdir localedir mandir
  969. do
  970. eval ac_val=\$$ac_var
  971. case $ac_val in
  972. [\\/$]* | ?:[\\/]* ) continue;;
  973. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  974. esac
  975. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  976. { (exit 1); exit 1; }; }
  977. done
  978. # There might be people who depend on the old broken behavior: `$host'
  979. # used to hold the argument of --host etc.
  980. # FIXME: To remove some day.
  981. build=$build_alias
  982. host=$host_alias
  983. target=$target_alias
  984. # FIXME: To remove some day.
  985. if test "x$host_alias" != x; then
  986. if test "x$build_alias" = x; then
  987. cross_compiling=maybe
  988. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  989. If a cross compiler is detected then cross compile mode will be used." >&2
  990. elif test "x$build_alias" != "x$host_alias"; then
  991. cross_compiling=yes
  992. fi
  993. fi
  994. ac_tool_prefix=
  995. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  996. test "$silent" = yes && exec 6>/dev/null
  997. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  998. ac_ls_di=`ls -di .` &&
  999. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1000. { echo "$as_me: error: Working directory cannot be determined" >&2
  1001. { (exit 1); exit 1; }; }
  1002. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1003. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1004. { (exit 1); exit 1; }; }
  1005. # Find the source files, if location was not specified.
  1006. if test -z "$srcdir"; then
  1007. ac_srcdir_defaulted=yes
  1008. # Try the directory containing this script, then the parent directory.
  1009. ac_confdir=`$as_dirname -- "$0" ||
  1010. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1011. X"$0" : 'X\(//\)[^/]' \| \
  1012. X"$0" : 'X\(//\)$' \| \
  1013. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1014. echo X"$0" |
  1015. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1016. s//\1/
  1017. q
  1018. }
  1019. /^X\(\/\/\)[^/].*/{
  1020. s//\1/
  1021. q
  1022. }
  1023. /^X\(\/\/\)$/{
  1024. s//\1/
  1025. q
  1026. }
  1027. /^X\(\/\).*/{
  1028. s//\1/
  1029. q
  1030. }
  1031. s/.*/./; q'`
  1032. srcdir=$ac_confdir
  1033. if test ! -r "$srcdir/$ac_unique_file"; then
  1034. srcdir=..
  1035. fi
  1036. else
  1037. ac_srcdir_defaulted=no
  1038. fi
  1039. if test ! -r "$srcdir/$ac_unique_file"; then
  1040. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1041. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1042. { (exit 1); exit 1; }; }
  1043. fi
  1044. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1045. ac_abs_confdir=`(
  1046. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1047. { (exit 1); exit 1; }; }
  1048. pwd)`
  1049. # When building in place, set srcdir=.
  1050. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1051. srcdir=.
  1052. fi
  1053. # Remove unnecessary trailing slashes from srcdir.
  1054. # Double slashes in file names in object file debugging info
  1055. # mess up M-x gdb in Emacs.
  1056. case $srcdir in
  1057. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1058. esac
  1059. for ac_var in $ac_precious_vars; do
  1060. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1061. eval ac_env_${ac_var}_value=\$${ac_var}
  1062. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1063. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1064. done
  1065. #
  1066. # Report the --help message.
  1067. #
  1068. if test "$ac_init_help" = "long"; then
  1069. # Omit some internal or obsolete options to make the list less imposing.
  1070. # This message is too long to be a string in the A/UX 3.1 sh.
  1071. cat <<_ACEOF
  1072. \`configure' configures ngircd 15 to adapt to many kinds of systems.
  1073. Usage: $0 [OPTION]... [VAR=VALUE]...
  1074. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1075. VAR=VALUE. See below for descriptions of some of the useful variables.
  1076. Defaults for the options are specified in brackets.
  1077. Configuration:
  1078. -h, --help display this help and exit
  1079. --help=short display options specific to this package
  1080. --help=recursive display the short help of all the included packages
  1081. -V, --version display version information and exit
  1082. -q, --quiet, --silent do not print \`checking...' messages
  1083. --cache-file=FILE cache test results in FILE [disabled]
  1084. -C, --config-cache alias for \`--cache-file=config.cache'
  1085. -n, --no-create do not create output files
  1086. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1087. Installation directories:
  1088. --prefix=PREFIX install architecture-independent files in PREFIX
  1089. [$ac_default_prefix]
  1090. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1091. [PREFIX]
  1092. By default, \`make install' will install all the files in
  1093. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1094. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1095. for instance \`--prefix=\$HOME'.
  1096. For better control, use the options below.
  1097. Fine tuning of the installation directories:
  1098. --bindir=DIR user executables [EPREFIX/bin]
  1099. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1100. --libexecdir=DIR program executables [EPREFIX/libexec]
  1101. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1102. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1103. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1104. --libdir=DIR object code libraries [EPREFIX/lib]
  1105. --includedir=DIR C header files [PREFIX/include]
  1106. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1107. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1108. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1109. --infodir=DIR info documentation [DATAROOTDIR/info]
  1110. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1111. --mandir=DIR man documentation [DATAROOTDIR/man]
  1112. --docdir=DIR documentation root [DATAROOTDIR/doc/ngircd]
  1113. --htmldir=DIR html documentation [DOCDIR]
  1114. --dvidir=DIR dvi documentation [DOCDIR]
  1115. --pdfdir=DIR pdf documentation [DOCDIR]
  1116. --psdir=DIR ps documentation [DOCDIR]
  1117. _ACEOF
  1118. cat <<\_ACEOF
  1119. Program names:
  1120. --program-prefix=PREFIX prepend PREFIX to installed program names
  1121. --program-suffix=SUFFIX append SUFFIX to installed program names
  1122. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1123. System types:
  1124. --build=BUILD configure for building on BUILD [guessed]
  1125. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1126. --target=TARGET configure for building compilers for TARGET [HOST]
  1127. _ACEOF
  1128. fi
  1129. if test -n "$ac_init_help"; then
  1130. case $ac_init_help in
  1131. short | recursive ) echo "Configuration of ngircd 15:";;
  1132. esac
  1133. cat <<\_ACEOF
  1134. Optional Features:
  1135. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1136. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1137. --disable-dependency-tracking speeds up one-time build
  1138. --enable-dependency-tracking do not reject slow dependency extractors
  1139. --disable-ircplus disable IRC+ protocol
  1140. --enable-ipv6 enable IPv6 protocol support
  1141. --enable-sniffer enable IRC traffic sniffer (enables debug mode)
  1142. --enable-debug show additional debug output
  1143. --enable-strict-rfc strict RFC conformance -- may break clients!
  1144. Optional Packages:
  1145. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1146. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1147. --without-syslog disable syslog (autodetected by default)
  1148. --without-zlib disable zlib compression (autodetected by default)
  1149. --without-select disable select IO support (autodetected by default)
  1150. --without-poll disable poll support (autodetected by default)
  1151. --without-devpoll disable /dev/poll IO support (autodetected by default)
  1152. --without-epoll disable epoll IO support (autodetected by default)
  1153. --without-kqueue disable kqueue IO support (autodetected by default)
  1154. --with-openssl enable SSL support using OpenSSL
  1155. --with-gnutls enable SSL support using gnutls
  1156. --with-tcp-wrappers enable TCP wrappers support
  1157. --with-zeroconf enable support for "Zeroconf"
  1158. --with-ident enable "IDENT" ("AUTH") protocol support
  1159. Some influential environment variables:
  1160. CC C compiler command
  1161. CFLAGS C compiler flags
  1162. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1163. nonstandard directory <lib dir>
  1164. LIBS libraries to pass to the linker, e.g. -l<library>
  1165. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1166. you have headers in a nonstandard directory <include dir>
  1167. CPP C preprocessor
  1168. Use these variables to override the choices made by `configure' or to help
  1169. it to find libraries and programs with nonstandard names/locations.
  1170. _ACEOF
  1171. ac_status=$?
  1172. fi
  1173. if test "$ac_init_help" = "recursive"; then
  1174. # If there are subdirs, report their specific --help.
  1175. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1176. test -d "$ac_dir" || continue
  1177. ac_builddir=.
  1178. case "$ac_dir" in
  1179. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1180. *)
  1181. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1182. # A ".." for each directory in $ac_dir_suffix.
  1183. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1184. case $ac_top_builddir_sub in
  1185. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1186. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1187. esac ;;
  1188. esac
  1189. ac_abs_top_builddir=$ac_pwd
  1190. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1191. # for backward compatibility:
  1192. ac_top_builddir=$ac_top_build_prefix
  1193. case $srcdir in
  1194. .) # We are building in place.
  1195. ac_srcdir=.
  1196. ac_top_srcdir=$ac_top_builddir_sub
  1197. ac_abs_top_srcdir=$ac_pwd ;;
  1198. [\\/]* | ?:[\\/]* ) # Absolute name.
  1199. ac_srcdir=$srcdir$ac_dir_suffix;
  1200. ac_top_srcdir=$srcdir
  1201. ac_abs_top_srcdir=$srcdir ;;
  1202. *) # Relative name.
  1203. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1204. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1205. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1206. esac
  1207. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1208. cd "$ac_dir" || { ac_status=$?; continue; }
  1209. # Check for guested configure.
  1210. if test -f "$ac_srcdir/configure.gnu"; then
  1211. echo &&
  1212. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1213. elif test -f "$ac_srcdir/configure"; then
  1214. echo &&
  1215. $SHELL "$ac_srcdir/configure" --help=recursive
  1216. else
  1217. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1218. fi || ac_status=$?
  1219. cd "$ac_pwd" || { ac_status=$?; break; }
  1220. done
  1221. fi
  1222. test -n "$ac_init_help" && exit $ac_status
  1223. if $ac_init_version; then
  1224. cat <<\_ACEOF
  1225. ngircd configure 15
  1226. generated by GNU Autoconf 2.61
  1227. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1228. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1229. This configure script is free software; the Free Software Foundation
  1230. gives unlimited permission to copy, distribute and modify it.
  1231. _ACEOF
  1232. exit
  1233. fi
  1234. cat >config.log <<_ACEOF
  1235. This file contains any messages produced by compilers while
  1236. running configure, to aid debugging if configure makes a mistake.
  1237. It was created by ngircd $as_me 15, which was
  1238. generated by GNU Autoconf 2.61. Invocation command line was
  1239. $ $0 $@
  1240. _ACEOF
  1241. exec 5>>config.log
  1242. {
  1243. cat <<_ASUNAME
  1244. ## --------- ##
  1245. ## Platform. ##
  1246. ## --------- ##
  1247. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1248. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1249. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1250. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1251. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1252. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1253. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1254. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1255. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1256. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1257. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1258. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1259. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1260. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1261. _ASUNAME
  1262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1263. for as_dir in $PATH
  1264. do
  1265. IFS=$as_save_IFS
  1266. test -z "$as_dir" && as_dir=.
  1267. echo "PATH: $as_dir"
  1268. done
  1269. IFS=$as_save_IFS
  1270. } >&5
  1271. cat >&5 <<_ACEOF
  1272. ## ----------- ##
  1273. ## Core tests. ##
  1274. ## ----------- ##
  1275. _ACEOF
  1276. # Keep a trace of the command line.
  1277. # Strip out --no-create and --no-recursion so they do not pile up.
  1278. # Strip out --silent because we don't want to record it for future runs.
  1279. # Also quote any args containing shell meta-characters.
  1280. # Make two passes to allow for proper duplicate-argument suppression.
  1281. ac_configure_args=
  1282. ac_configure_args0=
  1283. ac_configure_args1=
  1284. ac_must_keep_next=false
  1285. for ac_pass in 1 2
  1286. do
  1287. for ac_arg
  1288. do
  1289. case $ac_arg in
  1290. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1291. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1292. | -silent | --silent | --silen | --sile | --sil)
  1293. continue ;;
  1294. *\'*)
  1295. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1296. esac
  1297. case $ac_pass in
  1298. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1299. 2)
  1300. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1301. if test $ac_must_keep_next = true; then
  1302. ac_must_keep_next=false # Got value, back to normal.
  1303. else
  1304. case $ac_arg in
  1305. *=* | --config-cache | -C | -disable-* | --disable-* \
  1306. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1307. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1308. | -with-* | --with-* | -without-* | --without-* | --x)
  1309. case "$ac_configure_args0 " in
  1310. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1311. esac
  1312. ;;
  1313. -* ) ac_must_keep_next=true ;;
  1314. esac
  1315. fi
  1316. ac_configure_args="$ac_configure_args '$ac_arg'"
  1317. ;;
  1318. esac
  1319. done
  1320. done
  1321. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1322. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1323. # When interrupted or exit'd, cleanup temporary files, and complete
  1324. # config.log. We remove comments because anyway the quotes in there
  1325. # would cause problems or look ugly.
  1326. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1327. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1328. trap 'exit_status=$?
  1329. # Save into config.log some information that might help in debugging.
  1330. {
  1331. echo
  1332. cat <<\_ASBOX
  1333. ## ---------------- ##
  1334. ## Cache variables. ##
  1335. ## ---------------- ##
  1336. _ASBOX
  1337. echo
  1338. # The following way of writing the cache mishandles newlines in values,
  1339. (
  1340. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1341. eval ac_val=\$$ac_var
  1342. case $ac_val in #(
  1343. *${as_nl}*)
  1344. case $ac_var in #(
  1345. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1346. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1347. esac
  1348. case $ac_var in #(
  1349. _ | IFS | as_nl) ;; #(
  1350. *) $as_unset $ac_var ;;
  1351. esac ;;
  1352. esac
  1353. done
  1354. (set) 2>&1 |
  1355. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1356. *${as_nl}ac_space=\ *)
  1357. sed -n \
  1358. "s/'\''/'\''\\\\'\'''\''/g;
  1359. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1360. ;; #(
  1361. *)
  1362. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1363. ;;
  1364. esac |
  1365. sort
  1366. )
  1367. echo
  1368. cat <<\_ASBOX
  1369. ## ----------------- ##
  1370. ## Output variables. ##
  1371. ## ----------------- ##
  1372. _ASBOX
  1373. echo
  1374. for ac_var in $ac_subst_vars
  1375. do
  1376. eval ac_val=\$$ac_var
  1377. case $ac_val in
  1378. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1379. esac
  1380. echo "$ac_var='\''$ac_val'\''"
  1381. done | sort
  1382. echo
  1383. if test -n "$ac_subst_files"; then
  1384. cat <<\_ASBOX
  1385. ## ------------------- ##
  1386. ## File substitutions. ##
  1387. ## ------------------- ##
  1388. _ASBOX
  1389. echo
  1390. for ac_var in $ac_subst_files
  1391. do
  1392. eval ac_val=\$$ac_var
  1393. case $ac_val in
  1394. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1395. esac
  1396. echo "$ac_var='\''$ac_val'\''"
  1397. done | sort
  1398. echo
  1399. fi
  1400. if test -s confdefs.h; then
  1401. cat <<\_ASBOX
  1402. ## ----------- ##
  1403. ## confdefs.h. ##
  1404. ## ----------- ##
  1405. _ASBOX
  1406. echo
  1407. cat confdefs.h
  1408. echo
  1409. fi
  1410. test "$ac_signal" != 0 &&
  1411. echo "$as_me: caught signal $ac_signal"
  1412. echo "$as_me: exit $exit_status"
  1413. } >&5
  1414. rm -f core *.core core.conftest.* &&
  1415. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1416. exit $exit_status
  1417. ' 0
  1418. for ac_signal in 1 2 13 15; do
  1419. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1420. done
  1421. ac_signal=0
  1422. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1423. rm -f -r conftest* confdefs.h
  1424. # Predefined preprocessor variables.
  1425. cat >>confdefs.h <<_ACEOF
  1426. #define PACKAGE_NAME "$PACKAGE_NAME"
  1427. _ACEOF
  1428. cat >>confdefs.h <<_ACEOF
  1429. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1430. _ACEOF
  1431. cat >>confdefs.h <<_ACEOF
  1432. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1433. _ACEOF
  1434. cat >>confdefs.h <<_ACEOF
  1435. #define PACKAGE_STRING "$PACKAGE_STRING"
  1436. _ACEOF
  1437. cat >>confdefs.h <<_ACEOF
  1438. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1439. _ACEOF
  1440. # Let the site file select an alternate cache file if it wants to.
  1441. # Prefer explicitly selected file to automatically selected ones.
  1442. if test -n "$CONFIG_SITE"; then
  1443. set x "$CONFIG_SITE"
  1444. elif test "x$prefix" != xNONE; then
  1445. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1446. else
  1447. set x "$ac_default_prefix/share/config.site" \
  1448. "$ac_default_prefix/etc/config.site"
  1449. fi
  1450. shift
  1451. for ac_site_file
  1452. do
  1453. if test -r "$ac_site_file"; then
  1454. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1455. echo "$as_me: loading site script $ac_site_file" >&6;}
  1456. sed 's/^/| /' "$ac_site_file" >&5
  1457. . "$ac_site_file"
  1458. fi
  1459. done
  1460. if test -r "$cache_file"; then
  1461. # Some versions of bash will fail to source /dev/null (special
  1462. # files actually), so we avoid doing that.
  1463. if test -f "$cache_file"; then
  1464. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1465. echo "$as_me: loading cache $cache_file" >&6;}
  1466. case $cache_file in
  1467. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1468. *) . "./$cache_file";;
  1469. esac
  1470. fi
  1471. else
  1472. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1473. echo "$as_me: creating cache $cache_file" >&6;}
  1474. >$cache_file
  1475. fi
  1476. # Check that the precious variables saved in the cache have kept the same
  1477. # value.
  1478. ac_cache_corrupted=false
  1479. for ac_var in $ac_precious_vars; do
  1480. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1481. eval ac_new_set=\$ac_env_${ac_var}_set
  1482. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1483. eval ac_new_val=\$ac_env_${ac_var}_value
  1484. case $ac_old_set,$ac_new_set in
  1485. set,)
  1486. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1487. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1488. ac_cache_corrupted=: ;;
  1489. ,set)
  1490. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1491. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1492. ac_cache_corrupted=: ;;
  1493. ,);;
  1494. *)
  1495. if test "x$ac_old_val" != "x$ac_new_val"; then
  1496. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1497. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1498. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1499. echo "$as_me: former value: $ac_old_val" >&2;}
  1500. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1501. echo "$as_me: current value: $ac_new_val" >&2;}
  1502. ac_cache_corrupted=:
  1503. fi;;
  1504. esac
  1505. # Pass precious variables to config.status.
  1506. if test "$ac_new_set" = set; then
  1507. case $ac_new_val in
  1508. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1509. *) ac_arg=$ac_var=$ac_new_val ;;
  1510. esac
  1511. case " $ac_configure_args " in
  1512. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1513. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1514. esac
  1515. fi
  1516. done
  1517. if $ac_cache_corrupted; then
  1518. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1519. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1520. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1521. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1522. { (exit 1); exit 1; }; }
  1523. fi
  1524. ac_ext=c
  1525. ac_cpp='$CPP $CPPFLAGS'
  1526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1529. ac_aux_dir=
  1530. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1531. if test -f "$ac_dir/install-sh"; then
  1532. ac_aux_dir=$ac_dir
  1533. ac_install_sh="$ac_aux_dir/install-sh -c"
  1534. break
  1535. elif test -f "$ac_dir/install.sh"; then
  1536. ac_aux_dir=$ac_dir
  1537. ac_install_sh="$ac_aux_dir/install.sh -c"
  1538. break
  1539. elif test -f "$ac_dir/shtool"; then
  1540. ac_aux_dir=$ac_dir
  1541. ac_install_sh="$ac_aux_dir/shtool install -c"
  1542. break
  1543. fi
  1544. done
  1545. if test -z "$ac_aux_dir"; then
  1546. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1547. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1548. { (exit 1); exit 1; }; }
  1549. fi
  1550. # These three variables are undocumented and unsupported,
  1551. # and are intended to be withdrawn in a future Autoconf release.
  1552. # They can cause serious problems if a builder's source tree is in a directory
  1553. # whose full name contains unusual characters.
  1554. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1555. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1556. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1557. # Make sure we can run config.sub.
  1558. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1559. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1560. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1561. { (exit 1); exit 1; }; }
  1562. { echo "$as_me:$LINENO: checking build system type" >&5
  1563. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1564. if test "${ac_cv_build+set}" = set; then
  1565. echo $ECHO_N "(cached) $ECHO_C" >&6
  1566. else
  1567. ac_build_alias=$build_alias
  1568. test "x$ac_build_alias" = x &&
  1569. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1570. test "x$ac_build_alias" = x &&
  1571. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1572. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1573. { (exit 1); exit 1; }; }
  1574. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1575. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1576. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1577. { (exit 1); exit 1; }; }
  1578. fi
  1579. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1580. echo "${ECHO_T}$ac_cv_build" >&6; }
  1581. case $ac_cv_build in
  1582. *-*-*) ;;
  1583. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1584. echo "$as_me: error: invalid value of canonical build" >&2;}
  1585. { (exit 1); exit 1; }; };;
  1586. esac
  1587. build=$ac_cv_build
  1588. ac_save_IFS=$IFS; IFS='-'
  1589. set x $ac_cv_build
  1590. shift
  1591. build_cpu=$1
  1592. build_vendor=$2
  1593. shift; shift
  1594. # Remember, the first character of IFS is used to create $*,
  1595. # except with old shells:
  1596. build_os=$*
  1597. IFS=$ac_save_IFS
  1598. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1599. { echo "$as_me:$LINENO: checking host system type" >&5
  1600. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1601. if test "${ac_cv_host+set}" = set; then
  1602. echo $ECHO_N "(cached) $ECHO_C" >&6
  1603. else
  1604. if test "x$host_alias" = x; then
  1605. ac_cv_host=$ac_cv_build
  1606. else
  1607. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1608. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1609. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1610. { (exit 1); exit 1; }; }
  1611. fi
  1612. fi
  1613. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1614. echo "${ECHO_T}$ac_cv_host" >&6; }
  1615. case $ac_cv_host in
  1616. *-*-*) ;;
  1617. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1618. echo "$as_me: error: invalid value of canonical host" >&2;}
  1619. { (exit 1); exit 1; }; };;
  1620. esac
  1621. host=$ac_cv_host
  1622. ac_save_IFS=$IFS; IFS='-'
  1623. set x $ac_cv_host
  1624. shift
  1625. host_cpu=$1
  1626. host_vendor=$2
  1627. shift; shift
  1628. # Remember, the first character of IFS is used to create $*,
  1629. # except with old shells:
  1630. host_os=$*
  1631. IFS=$ac_save_IFS
  1632. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1633. { echo "$as_me:$LINENO: checking target system type" >&5
  1634. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1635. if test "${ac_cv_target+set}" = set; then
  1636. echo $ECHO_N "(cached) $ECHO_C" >&6
  1637. else
  1638. if test "x$target_alias" = x; then
  1639. ac_cv_target=$ac_cv_host
  1640. else
  1641. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1642. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1643. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1644. { (exit 1); exit 1; }; }
  1645. fi
  1646. fi
  1647. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1648. echo "${ECHO_T}$ac_cv_target" >&6; }
  1649. case $ac_cv_target in
  1650. *-*-*) ;;
  1651. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1652. echo "$as_me: error: invalid value of canonical target" >&2;}
  1653. { (exit 1); exit 1; }; };;
  1654. esac
  1655. target=$ac_cv_target
  1656. ac_save_IFS=$IFS; IFS='-'
  1657. set x $ac_cv_target
  1658. shift
  1659. target_cpu=$1
  1660. target_vendor=$2
  1661. shift; shift
  1662. # Remember, the first character of IFS is used to create $*,
  1663. # except with old shells:
  1664. target_os=$*
  1665. IFS=$ac_save_IFS
  1666. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1667. # The aliases save the names the user supplied, while $host etc.
  1668. # will get canonicalized.
  1669. test -n "$target_alias" &&
  1670. test "$program_prefix$program_suffix$program_transform_name" = \
  1671. NONENONEs,x,x, &&
  1672. program_prefix=${target_alias}-
  1673. am__api_version='1.10'
  1674. # Find a good install program. We prefer a C program (faster),
  1675. # so one script is as good as another. But avoid the broken or
  1676. # incompatible versions:
  1677. # SysV /etc/install, /usr/sbin/install
  1678. # SunOS /usr/etc/install
  1679. # IRIX /sbin/install
  1680. # AIX /bin/install
  1681. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1682. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1683. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1684. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1685. # OS/2's system install, which has a completely different semantic
  1686. # ./install, which can be erroneously created by make from ./install.sh.
  1687. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1688. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1689. if test -z "$INSTALL"; then
  1690. if test "${ac_cv_path_install+set}" = set; then
  1691. echo $ECHO_N "(cached) $ECHO_C" >&6
  1692. else
  1693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1694. for as_dir in $PATH
  1695. do
  1696. IFS=$as_save_IFS
  1697. test -z "$as_dir" && as_dir=.
  1698. # Account for people who put trailing slashes in PATH elements.
  1699. case $as_dir/ in
  1700. ./ | .// | /cC/* | \
  1701. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1702. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1703. /usr/ucb/* ) ;;
  1704. *)
  1705. # OSF1 and SCO ODT 3.0 have their own names for install.
  1706. # Don't use installbsd from OSF since it installs stuff as root
  1707. # by default.
  1708. for ac_prog in ginstall scoinst install; do
  1709. for ac_exec_ext in '' $ac_executable_extensions; do
  1710. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1711. if test $ac_prog = install &&
  1712. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1713. # AIX install. It has an incompatible calling convention.
  1714. :
  1715. elif test $ac_prog = install &&
  1716. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1717. # program-specific install script used by HP pwplus--don't use.
  1718. :
  1719. else
  1720. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1721. break 3
  1722. fi
  1723. fi
  1724. done
  1725. done
  1726. ;;
  1727. esac
  1728. done
  1729. IFS=$as_save_IFS
  1730. fi
  1731. if test "${ac_cv_path_install+set}" = set; then
  1732. INSTALL=$ac_cv_path_install
  1733. else
  1734. # As a last resort, use the slow shell script. Don't cache a
  1735. # value for INSTALL within a source directory, because that will
  1736. # break other packages using the cache if that directory is
  1737. # removed, or if the value is a relative name.
  1738. INSTALL=$ac_install_sh
  1739. fi
  1740. fi
  1741. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1742. echo "${ECHO_T}$INSTALL" >&6; }
  1743. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1744. # It thinks the first close brace ends the variable substitution.
  1745. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1746. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1747. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1748. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1749. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1750. # Just in case
  1751. sleep 1
  1752. echo timestamp > conftest.file
  1753. # Do `set' in a subshell so we don't clobber the current shell's
  1754. # arguments. Must try -L first in case configure is actually a
  1755. # symlink; some systems play weird games with the mod time of symlinks
  1756. # (eg FreeBSD returns the mod time of the symlink's containing
  1757. # directory).
  1758. if (
  1759. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1760. if test "$*" = "X"; then
  1761. # -L didn't work.
  1762. set X `ls -t $srcdir/configure conftest.file`
  1763. fi
  1764. rm -f conftest.file
  1765. if test "$*" != "X $srcdir/configure conftest.file" \
  1766. && test "$*" != "X conftest.file $srcdir/configure"; then
  1767. # If neither matched, then we have a broken ls. This can happen
  1768. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1769. # broken ls alias from the environment. This has actually
  1770. # happened. Such a system could not be considered "sane".
  1771. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1772. alias in your environment" >&5
  1773. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1774. alias in your environment" >&2;}
  1775. { (exit 1); exit 1; }; }
  1776. fi
  1777. test "$2" = conftest.file
  1778. )
  1779. then
  1780. # Ok.
  1781. :
  1782. else
  1783. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1784. Check your system clock" >&5
  1785. echo "$as_me: error: newly created file is older than distributed files!
  1786. Check your system clock" >&2;}
  1787. { (exit 1); exit 1; }; }
  1788. fi
  1789. { echo "$as_me:$LINENO: result: yes" >&5
  1790. echo "${ECHO_T}yes" >&6; }
  1791. test "$program_prefix" != NONE &&
  1792. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1793. # Use a double $ so make ignores it.
  1794. test "$program_suffix" != NONE &&
  1795. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1796. # Double any \ or $. echo might interpret backslashes.
  1797. # By default was `s,x,x', remove it if useless.
  1798. cat <<\_ACEOF >conftest.sed
  1799. s/[\\$]/&&/g;s/;s,x,x,$//
  1800. _ACEOF
  1801. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1802. rm -f conftest.sed
  1803. # expand $ac_aux_dir to an absolute path
  1804. am_aux_dir=`cd $ac_aux_dir && pwd`
  1805. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1806. # Use eval to expand $SHELL
  1807. if eval "$MISSING --run true"; then
  1808. am_missing_run="$MISSING --run "
  1809. else
  1810. am_missing_run=
  1811. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1812. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1813. fi
  1814. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1815. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1816. if test -z "$MKDIR_P"; then
  1817. if test "${ac_cv_path_mkdir+set}" = set; then
  1818. echo $ECHO_N "(cached) $ECHO_C" >&6
  1819. else
  1820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1821. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1822. do
  1823. IFS=$as_save_IFS
  1824. test -z "$as_dir" && as_dir=.
  1825. for ac_prog in mkdir gmkdir; do
  1826. for ac_exec_ext in '' $ac_executable_extensions; do
  1827. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1828. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1829. 'mkdir (GNU coreutils) '* | \
  1830. 'mkdir (coreutils) '* | \
  1831. 'mkdir (fileutils) '4.1*)
  1832. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1833. break 3;;
  1834. esac
  1835. done
  1836. done
  1837. done
  1838. IFS=$as_save_IFS
  1839. fi
  1840. if test "${ac_cv_path_mkdir+set}" = set; then
  1841. MKDIR_P="$ac_cv_path_mkdir -p"
  1842. else
  1843. # As a last resort, use the slow shell script. Don't cache a
  1844. # value for MKDIR_P within a source directory, because that will
  1845. # break other packages using the cache if that directory is
  1846. # removed, or if the value is a relative name.
  1847. test -d ./--version && rmdir ./--version
  1848. MKDIR_P="$ac_install_sh -d"
  1849. fi
  1850. fi
  1851. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1852. echo "${ECHO_T}$MKDIR_P" >&6; }
  1853. mkdir_p="$MKDIR_P"
  1854. case $mkdir_p in
  1855. [\\/$]* | ?:[\\/]*) ;;
  1856. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1857. esac
  1858. for ac_prog in gawk mawk nawk awk
  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_AWK+set}" = set; then
  1865. echo $ECHO_N "(cached) $ECHO_C" >&6
  1866. else
  1867. if test -n "$AWK"; then
  1868. ac_cv_prog_AWK="$AWK" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1877. ac_cv_prog_AWK="$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. IFS=$as_save_IFS
  1884. fi
  1885. fi
  1886. AWK=$ac_cv_prog_AWK
  1887. if test -n "$AWK"; then
  1888. { echo "$as_me:$LINENO: result: $AWK" >&5
  1889. echo "${ECHO_T}$AWK" >&6; }
  1890. else
  1891. { echo "$as_me:$LINENO: result: no" >&5
  1892. echo "${ECHO_T}no" >&6; }
  1893. fi
  1894. test -n "$AWK" && break
  1895. done
  1896. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1897. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1898. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1899. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1900. echo $ECHO_N "(cached) $ECHO_C" >&6
  1901. else
  1902. cat >conftest.make <<\_ACEOF
  1903. SHELL = /bin/sh
  1904. all:
  1905. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1906. _ACEOF
  1907. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1908. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1909. *@@@%%%=?*=@@@%%%*)
  1910. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1911. *)
  1912. eval ac_cv_prog_make_${ac_make}_set=no;;
  1913. esac
  1914. rm -f conftest.make
  1915. fi
  1916. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1917. { echo "$as_me:$LINENO: result: yes" >&5
  1918. echo "${ECHO_T}yes" >&6; }
  1919. SET_MAKE=
  1920. else
  1921. { echo "$as_me:$LINENO: result: no" >&5
  1922. echo "${ECHO_T}no" >&6; }
  1923. SET_MAKE="MAKE=${MAKE-make}"
  1924. fi
  1925. rm -rf .tst 2>/dev/null
  1926. mkdir .tst 2>/dev/null
  1927. if test -d .tst; then
  1928. am__leading_dot=.
  1929. else
  1930. am__leading_dot=_
  1931. fi
  1932. rmdir .tst 2>/dev/null
  1933. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1934. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1935. # is not polluted with repeated "-I."
  1936. am__isrc=' -I$(srcdir)'
  1937. # test to see if srcdir already configured
  1938. if test -f $srcdir/config.status; then
  1939. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1940. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1941. { (exit 1); exit 1; }; }
  1942. fi
  1943. fi
  1944. # test whether we have cygpath
  1945. if test -z "$CYGPATH_W"; then
  1946. if (cygpath --version) >/dev/null 2>/dev/null; then
  1947. CYGPATH_W='cygpath -w'
  1948. else
  1949. CYGPATH_W=echo
  1950. fi
  1951. fi
  1952. # Define the identity of the package.
  1953. PACKAGE='ngircd'
  1954. VERSION='15'
  1955. cat >>confdefs.h <<_ACEOF
  1956. #define PACKAGE "$PACKAGE"
  1957. _ACEOF
  1958. cat >>confdefs.h <<_ACEOF
  1959. #define VERSION "$VERSION"
  1960. _ACEOF
  1961. # Some tools Automake needs.
  1962. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1963. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1964. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1965. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1966. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1967. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  1968. # Installed binaries are usually stripped using `strip' when the user
  1969. # run `make install-strip'. However `strip' might not be the right
  1970. # tool to use in cross-compilation environments, therefore Automake
  1971. # will honor the `STRIP' environment variable to overrule this program.
  1972. if test "$cross_compiling" != no; then
  1973. if test -n "$ac_tool_prefix"; then
  1974. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1975. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1976. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1977. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1978. if test "${ac_cv_prog_STRIP+set}" = set; then
  1979. echo $ECHO_N "(cached) $ECHO_C" >&6
  1980. else
  1981. if test -n "$STRIP"; then
  1982. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1983. else
  1984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1985. for as_dir in $PATH
  1986. do
  1987. IFS=$as_save_IFS
  1988. test -z "$as_dir" && as_dir=.
  1989. for ac_exec_ext in '' $ac_executable_extensions; do
  1990. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1991. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1992. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1993. break 2
  1994. fi
  1995. done
  1996. done
  1997. IFS=$as_save_IFS
  1998. fi
  1999. fi
  2000. STRIP=$ac_cv_prog_STRIP
  2001. if test -n "$STRIP"; then
  2002. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2003. echo "${ECHO_T}$STRIP" >&6; }
  2004. else
  2005. { echo "$as_me:$LINENO: result: no" >&5
  2006. echo "${ECHO_T}no" >&6; }
  2007. fi
  2008. fi
  2009. if test -z "$ac_cv_prog_STRIP"; then
  2010. ac_ct_STRIP=$STRIP
  2011. # Extract the first word of "strip", so it can be a program name with args.
  2012. set dummy strip; ac_word=$2
  2013. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2014. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2015. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2016. echo $ECHO_N "(cached) $ECHO_C" >&6
  2017. else
  2018. if test -n "$ac_ct_STRIP"; then
  2019. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2020. else
  2021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2022. for as_dir in $PATH
  2023. do
  2024. IFS=$as_save_IFS
  2025. test -z "$as_dir" && as_dir=.
  2026. for ac_exec_ext in '' $ac_executable_extensions; do
  2027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2028. ac_cv_prog_ac_ct_STRIP="strip"
  2029. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2030. break 2
  2031. fi
  2032. done
  2033. done
  2034. IFS=$as_save_IFS
  2035. fi
  2036. fi
  2037. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2038. if test -n "$ac_ct_STRIP"; then
  2039. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2040. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2041. else
  2042. { echo "$as_me:$LINENO: result: no" >&5
  2043. echo "${ECHO_T}no" >&6; }
  2044. fi
  2045. if test "x$ac_ct_STRIP" = x; then
  2046. STRIP=":"
  2047. else
  2048. case $cross_compiling:$ac_tool_warned in
  2049. yes:)
  2050. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2051. whose name does not start with the host triplet. If you think this
  2052. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2053. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2054. whose name does not start with the host triplet. If you think this
  2055. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2056. ac_tool_warned=yes ;;
  2057. esac
  2058. STRIP=$ac_ct_STRIP
  2059. fi
  2060. else
  2061. STRIP="$ac_cv_prog_STRIP"
  2062. fi
  2063. fi
  2064. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2065. # We need awk for the "check" target. The system "awk" is bad on
  2066. # some platforms.
  2067. # Always define AMTAR for backward compatibility.
  2068. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2069. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2070. ac_config_headers="$ac_config_headers src/config.h"
  2071. # -- Templates for config.h --
  2072. # -- C Compiler --
  2073. ac_ext=c
  2074. ac_cpp='$CPP $CPPFLAGS'
  2075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2078. if test -n "$ac_tool_prefix"; then
  2079. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2080. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2081. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2082. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2083. if test "${ac_cv_prog_CC+set}" = set; then
  2084. echo $ECHO_N "(cached) $ECHO_C" >&6
  2085. else
  2086. if test -n "$CC"; then
  2087. ac_cv_prog_CC="$CC" # Let the user override the test.
  2088. else
  2089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2090. for as_dir in $PATH
  2091. do
  2092. IFS=$as_save_IFS
  2093. test -z "$as_dir" && as_dir=.
  2094. for ac_exec_ext in '' $ac_executable_extensions; do
  2095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2096. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2097. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2098. break 2
  2099. fi
  2100. done
  2101. done
  2102. IFS=$as_save_IFS
  2103. fi
  2104. fi
  2105. CC=$ac_cv_prog_CC
  2106. if test -n "$CC"; then
  2107. { echo "$as_me:$LINENO: result: $CC" >&5
  2108. echo "${ECHO_T}$CC" >&6; }
  2109. else
  2110. { echo "$as_me:$LINENO: result: no" >&5
  2111. echo "${ECHO_T}no" >&6; }
  2112. fi
  2113. fi
  2114. if test -z "$ac_cv_prog_CC"; then
  2115. ac_ct_CC=$CC
  2116. # Extract the first word of "gcc", so it can be a program name with args.
  2117. set dummy gcc; ac_word=$2
  2118. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2119. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2120. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2121. echo $ECHO_N "(cached) $ECHO_C" >&6
  2122. else
  2123. if test -n "$ac_ct_CC"; then
  2124. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2125. else
  2126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2127. for as_dir in $PATH
  2128. do
  2129. IFS=$as_save_IFS
  2130. test -z "$as_dir" && as_dir=.
  2131. for ac_exec_ext in '' $ac_executable_extensions; do
  2132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2133. ac_cv_prog_ac_ct_CC="gcc"
  2134. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2135. break 2
  2136. fi
  2137. done
  2138. done
  2139. IFS=$as_save_IFS
  2140. fi
  2141. fi
  2142. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2143. if test -n "$ac_ct_CC"; then
  2144. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2145. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2146. else
  2147. { echo "$as_me:$LINENO: result: no" >&5
  2148. echo "${ECHO_T}no" >&6; }
  2149. fi
  2150. if test "x$ac_ct_CC" = x; then
  2151. CC=""
  2152. else
  2153. case $cross_compiling:$ac_tool_warned in
  2154. yes:)
  2155. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2156. whose name does not start with the host triplet. If you think this
  2157. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2158. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2159. whose name does not start with the host triplet. If you think this
  2160. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2161. ac_tool_warned=yes ;;
  2162. esac
  2163. CC=$ac_ct_CC
  2164. fi
  2165. else
  2166. CC="$ac_cv_prog_CC"
  2167. fi
  2168. if test -z "$CC"; then
  2169. if test -n "$ac_tool_prefix"; then
  2170. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2171. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2172. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2173. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2174. if test "${ac_cv_prog_CC+set}" = set; then
  2175. echo $ECHO_N "(cached) $ECHO_C" >&6
  2176. else
  2177. if test -n "$CC"; then
  2178. ac_cv_prog_CC="$CC" # Let the user override the test.
  2179. else
  2180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2181. for as_dir in $PATH
  2182. do
  2183. IFS=$as_save_IFS
  2184. test -z "$as_dir" && as_dir=.
  2185. for ac_exec_ext in '' $ac_executable_extensions; do
  2186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2187. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2188. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2189. break 2
  2190. fi
  2191. done
  2192. done
  2193. IFS=$as_save_IFS
  2194. fi
  2195. fi
  2196. CC=$ac_cv_prog_CC
  2197. if test -n "$CC"; then
  2198. { echo "$as_me:$LINENO: result: $CC" >&5
  2199. echo "${ECHO_T}$CC" >&6; }
  2200. else
  2201. { echo "$as_me:$LINENO: result: no" >&5
  2202. echo "${ECHO_T}no" >&6; }
  2203. fi
  2204. fi
  2205. fi
  2206. if test -z "$CC"; then
  2207. # Extract the first word of "cc", so it can be a program name with args.
  2208. set dummy cc; ac_word=$2
  2209. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2210. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2211. if test "${ac_cv_prog_CC+set}" = set; then
  2212. echo $ECHO_N "(cached) $ECHO_C" >&6
  2213. else
  2214. if test -n "$CC"; then
  2215. ac_cv_prog_CC="$CC" # Let the user override the test.
  2216. else
  2217. ac_prog_rejected=no
  2218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2219. for as_dir in $PATH
  2220. do
  2221. IFS=$as_save_IFS
  2222. test -z "$as_dir" && as_dir=.
  2223. for ac_exec_ext in '' $ac_executable_extensions; do
  2224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2225. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2226. ac_prog_rejected=yes
  2227. continue
  2228. fi
  2229. ac_cv_prog_CC="cc"
  2230. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2231. break 2
  2232. fi
  2233. done
  2234. done
  2235. IFS=$as_save_IFS
  2236. if test $ac_prog_rejected = yes; then
  2237. # We found a bogon in the path, so make sure we never use it.
  2238. set dummy $ac_cv_prog_CC
  2239. shift
  2240. if test $# != 0; then
  2241. # We chose a different compiler from the bogus one.
  2242. # However, it has the same basename, so the bogon will be chosen
  2243. # first if we set CC to just the basename; use the full file name.
  2244. shift
  2245. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2246. fi
  2247. fi
  2248. fi
  2249. fi
  2250. CC=$ac_cv_prog_CC
  2251. if test -n "$CC"; then
  2252. { echo "$as_me:$LINENO: result: $CC" >&5
  2253. echo "${ECHO_T}$CC" >&6; }
  2254. else
  2255. { echo "$as_me:$LINENO: result: no" >&5
  2256. echo "${ECHO_T}no" >&6; }
  2257. fi
  2258. fi
  2259. if test -z "$CC"; then
  2260. if test -n "$ac_tool_prefix"; then
  2261. for ac_prog in cl.exe
  2262. do
  2263. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2264. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2265. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2266. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2267. if test "${ac_cv_prog_CC+set}" = set; then
  2268. echo $ECHO_N "(cached) $ECHO_C" >&6
  2269. else
  2270. if test -n "$CC"; then
  2271. ac_cv_prog_CC="$CC" # Let the user override the test.
  2272. else
  2273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2274. for as_dir in $PATH
  2275. do
  2276. IFS=$as_save_IFS
  2277. test -z "$as_dir" && as_dir=.
  2278. for ac_exec_ext in '' $ac_executable_extensions; do
  2279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2280. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2281. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2282. break 2
  2283. fi
  2284. done
  2285. done
  2286. IFS=$as_save_IFS
  2287. fi
  2288. fi
  2289. CC=$ac_cv_prog_CC
  2290. if test -n "$CC"; then
  2291. { echo "$as_me:$LINENO: result: $CC" >&5
  2292. echo "${ECHO_T}$CC" >&6; }
  2293. else
  2294. { echo "$as_me:$LINENO: result: no" >&5
  2295. echo "${ECHO_T}no" >&6; }
  2296. fi
  2297. test -n "$CC" && break
  2298. done
  2299. fi
  2300. if test -z "$CC"; then
  2301. ac_ct_CC=$CC
  2302. for ac_prog in cl.exe
  2303. do
  2304. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2305. set dummy $ac_prog; ac_word=$2
  2306. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2307. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2308. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2309. echo $ECHO_N "(cached) $ECHO_C" >&6
  2310. else
  2311. if test -n "$ac_ct_CC"; then
  2312. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2313. else
  2314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2315. for as_dir in $PATH
  2316. do
  2317. IFS=$as_save_IFS
  2318. test -z "$as_dir" && as_dir=.
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2321. ac_cv_prog_ac_ct_CC="$ac_prog"
  2322. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2323. break 2
  2324. fi
  2325. done
  2326. done
  2327. IFS=$as_save_IFS
  2328. fi
  2329. fi
  2330. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2331. if test -n "$ac_ct_CC"; then
  2332. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2333. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2334. else
  2335. { echo "$as_me:$LINENO: result: no" >&5
  2336. echo "${ECHO_T}no" >&6; }
  2337. fi
  2338. test -n "$ac_ct_CC" && break
  2339. done
  2340. if test "x$ac_ct_CC" = x; then
  2341. CC=""
  2342. else
  2343. case $cross_compiling:$ac_tool_warned in
  2344. yes:)
  2345. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2346. whose name does not start with the host triplet. If you think this
  2347. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2348. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2349. whose name does not start with the host triplet. If you think this
  2350. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2351. ac_tool_warned=yes ;;
  2352. esac
  2353. CC=$ac_ct_CC
  2354. fi
  2355. fi
  2356. fi
  2357. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2358. See \`config.log' for more details." >&5
  2359. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2360. See \`config.log' for more details." >&2;}
  2361. { (exit 1); exit 1; }; }
  2362. # Provide some information about the compiler.
  2363. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2364. ac_compiler=`set X $ac_compile; echo $2`
  2365. { (ac_try="$ac_compiler --version >&5"
  2366. case "(($ac_try" in
  2367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2368. *) ac_try_echo=$ac_try;;
  2369. esac
  2370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2371. (eval "$ac_compiler --version >&5") 2>&5
  2372. ac_status=$?
  2373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2374. (exit $ac_status); }
  2375. { (ac_try="$ac_compiler -v >&5"
  2376. case "(($ac_try" in
  2377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2378. *) ac_try_echo=$ac_try;;
  2379. esac
  2380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2381. (eval "$ac_compiler -v >&5") 2>&5
  2382. ac_status=$?
  2383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2384. (exit $ac_status); }
  2385. { (ac_try="$ac_compiler -V >&5"
  2386. case "(($ac_try" in
  2387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2388. *) ac_try_echo=$ac_try;;
  2389. esac
  2390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2391. (eval "$ac_compiler -V >&5") 2>&5
  2392. ac_status=$?
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); }
  2395. cat >conftest.$ac_ext <<_ACEOF
  2396. /* confdefs.h. */
  2397. _ACEOF
  2398. cat confdefs.h >>conftest.$ac_ext
  2399. cat >>conftest.$ac_ext <<_ACEOF
  2400. /* end confdefs.h. */
  2401. int
  2402. main ()
  2403. {
  2404. ;
  2405. return 0;
  2406. }
  2407. _ACEOF
  2408. ac_clean_files_save=$ac_clean_files
  2409. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2410. # Try to create an executable without -o first, disregard a.out.
  2411. # It will help us diagnose broken compilers, and finding out an intuition
  2412. # of exeext.
  2413. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2414. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2415. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2416. #
  2417. # List of possible output files, starting from the most likely.
  2418. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2419. # only as a last resort. b.out is created by i960 compilers.
  2420. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2421. #
  2422. # The IRIX 6 linker writes into existing files which may not be
  2423. # executable, retaining their permissions. Remove them first so a
  2424. # subsequent execution test works.
  2425. ac_rmfiles=
  2426. for ac_file in $ac_files
  2427. do
  2428. case $ac_file in
  2429. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2430. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2431. esac
  2432. done
  2433. rm -f $ac_rmfiles
  2434. if { (ac_try="$ac_link_default"
  2435. case "(($ac_try" in
  2436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2437. *) ac_try_echo=$ac_try;;
  2438. esac
  2439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2440. (eval "$ac_link_default") 2>&5
  2441. ac_status=$?
  2442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2443. (exit $ac_status); }; then
  2444. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2445. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2446. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2447. # so that the user can short-circuit this test for compilers unknown to
  2448. # Autoconf.
  2449. for ac_file in $ac_files ''
  2450. do
  2451. test -f "$ac_file" || continue
  2452. case $ac_file in
  2453. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2454. ;;
  2455. [ab].out )
  2456. # We found the default executable, but exeext='' is most
  2457. # certainly right.
  2458. break;;
  2459. *.* )
  2460. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2461. then :; else
  2462. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2463. fi
  2464. # We set ac_cv_exeext here because the later test for it is not
  2465. # safe: cross compilers may not add the suffix if given an `-o'
  2466. # argument, so we may need to know it at that point already.
  2467. # Even if this section looks crufty: it has the advantage of
  2468. # actually working.
  2469. break;;
  2470. * )
  2471. break;;
  2472. esac
  2473. done
  2474. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2475. else
  2476. ac_file=''
  2477. fi
  2478. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2479. echo "${ECHO_T}$ac_file" >&6; }
  2480. if test -z "$ac_file"; then
  2481. echo "$as_me: failed program was:" >&5
  2482. sed 's/^/| /' conftest.$ac_ext >&5
  2483. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2484. See \`config.log' for more details." >&5
  2485. echo "$as_me: error: C compiler cannot create executables
  2486. See \`config.log' for more details." >&2;}
  2487. { (exit 77); exit 77; }; }
  2488. fi
  2489. ac_exeext=$ac_cv_exeext
  2490. # Check that the compiler produces executables we can run. If not, either
  2491. # the compiler is broken, or we cross compile.
  2492. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2493. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2494. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2495. # If not cross compiling, check that we can run a simple program.
  2496. if test "$cross_compiling" != yes; then
  2497. if { ac_try='./$ac_file'
  2498. { (case "(($ac_try" in
  2499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2500. *) ac_try_echo=$ac_try;;
  2501. esac
  2502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2503. (eval "$ac_try") 2>&5
  2504. ac_status=$?
  2505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2506. (exit $ac_status); }; }; then
  2507. cross_compiling=no
  2508. else
  2509. if test "$cross_compiling" = maybe; then
  2510. cross_compiling=yes
  2511. else
  2512. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2513. If you meant to cross compile, use \`--host'.
  2514. See \`config.log' for more details." >&5
  2515. echo "$as_me: error: cannot run C compiled programs.
  2516. If you meant to cross compile, use \`--host'.
  2517. See \`config.log' for more details." >&2;}
  2518. { (exit 1); exit 1; }; }
  2519. fi
  2520. fi
  2521. fi
  2522. { echo "$as_me:$LINENO: result: yes" >&5
  2523. echo "${ECHO_T}yes" >&6; }
  2524. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2525. ac_clean_files=$ac_clean_files_save
  2526. # Check that the compiler produces executables we can run. If not, either
  2527. # the compiler is broken, or we cross compile.
  2528. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2529. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2530. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2531. echo "${ECHO_T}$cross_compiling" >&6; }
  2532. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2533. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2534. if { (ac_try="$ac_link"
  2535. case "(($ac_try" in
  2536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2537. *) ac_try_echo=$ac_try;;
  2538. esac
  2539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2540. (eval "$ac_link") 2>&5
  2541. ac_status=$?
  2542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }; then
  2544. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2545. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2546. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2547. # `rm'.
  2548. for ac_file in conftest.exe conftest conftest.*; do
  2549. test -f "$ac_file" || continue
  2550. case $ac_file in
  2551. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2552. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2553. break;;
  2554. * ) break;;
  2555. esac
  2556. done
  2557. else
  2558. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2559. See \`config.log' for more details." >&5
  2560. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2561. See \`config.log' for more details." >&2;}
  2562. { (exit 1); exit 1; }; }
  2563. fi
  2564. rm -f conftest$ac_cv_exeext
  2565. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2566. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2567. rm -f conftest.$ac_ext
  2568. EXEEXT=$ac_cv_exeext
  2569. ac_exeext=$EXEEXT
  2570. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2571. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2572. if test "${ac_cv_objext+set}" = set; then
  2573. echo $ECHO_N "(cached) $ECHO_C" >&6
  2574. else
  2575. cat >conftest.$ac_ext <<_ACEOF
  2576. /* confdefs.h. */
  2577. _ACEOF
  2578. cat confdefs.h >>conftest.$ac_ext
  2579. cat >>conftest.$ac_ext <<_ACEOF
  2580. /* end confdefs.h. */
  2581. int
  2582. main ()
  2583. {
  2584. ;
  2585. return 0;
  2586. }
  2587. _ACEOF
  2588. rm -f conftest.o conftest.obj
  2589. if { (ac_try="$ac_compile"
  2590. case "(($ac_try" in
  2591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2592. *) ac_try_echo=$ac_try;;
  2593. esac
  2594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2595. (eval "$ac_compile") 2>&5
  2596. ac_status=$?
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; then
  2599. for ac_file in conftest.o conftest.obj conftest.*; do
  2600. test -f "$ac_file" || continue;
  2601. case $ac_file in
  2602. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2603. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2604. break;;
  2605. esac
  2606. done
  2607. else
  2608. echo "$as_me: failed program was:" >&5
  2609. sed 's/^/| /' conftest.$ac_ext >&5
  2610. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2611. See \`config.log' for more details." >&5
  2612. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2613. See \`config.log' for more details." >&2;}
  2614. { (exit 1); exit 1; }; }
  2615. fi
  2616. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2617. fi
  2618. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2619. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2620. OBJEXT=$ac_cv_objext
  2621. ac_objext=$OBJEXT
  2622. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2623. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2624. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2625. echo $ECHO_N "(cached) $ECHO_C" >&6
  2626. else
  2627. cat >conftest.$ac_ext <<_ACEOF
  2628. /* confdefs.h. */
  2629. _ACEOF
  2630. cat confdefs.h >>conftest.$ac_ext
  2631. cat >>conftest.$ac_ext <<_ACEOF
  2632. /* end confdefs.h. */
  2633. int
  2634. main ()
  2635. {
  2636. #ifndef __GNUC__
  2637. choke me
  2638. #endif
  2639. ;
  2640. return 0;
  2641. }
  2642. _ACEOF
  2643. rm -f conftest.$ac_objext
  2644. if { (ac_try="$ac_compile"
  2645. case "(($ac_try" in
  2646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2647. *) ac_try_echo=$ac_try;;
  2648. esac
  2649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2650. (eval "$ac_compile") 2>conftest.er1
  2651. ac_status=$?
  2652. grep -v '^ *+' conftest.er1 >conftest.err
  2653. rm -f conftest.er1
  2654. cat conftest.err >&5
  2655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2656. (exit $ac_status); } && {
  2657. test -z "$ac_c_werror_flag" ||
  2658. test ! -s conftest.err
  2659. } && test -s conftest.$ac_objext; then
  2660. ac_compiler_gnu=yes
  2661. else
  2662. echo "$as_me: failed program was:" >&5
  2663. sed 's/^/| /' conftest.$ac_ext >&5
  2664. ac_compiler_gnu=no
  2665. fi
  2666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2667. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2668. fi
  2669. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2670. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2671. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2672. ac_test_CFLAGS=${CFLAGS+set}
  2673. ac_save_CFLAGS=$CFLAGS
  2674. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2675. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2676. if test "${ac_cv_prog_cc_g+set}" = set; then
  2677. echo $ECHO_N "(cached) $ECHO_C" >&6
  2678. else
  2679. ac_save_c_werror_flag=$ac_c_werror_flag
  2680. ac_c_werror_flag=yes
  2681. ac_cv_prog_cc_g=no
  2682. CFLAGS="-g"
  2683. cat >conftest.$ac_ext <<_ACEOF
  2684. /* confdefs.h. */
  2685. _ACEOF
  2686. cat confdefs.h >>conftest.$ac_ext
  2687. cat >>conftest.$ac_ext <<_ACEOF
  2688. /* end confdefs.h. */
  2689. int
  2690. main ()
  2691. {
  2692. ;
  2693. return 0;
  2694. }
  2695. _ACEOF
  2696. rm -f conftest.$ac_objext
  2697. if { (ac_try="$ac_compile"
  2698. case "(($ac_try" in
  2699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2700. *) ac_try_echo=$ac_try;;
  2701. esac
  2702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2703. (eval "$ac_compile") 2>conftest.er1
  2704. ac_status=$?
  2705. grep -v '^ *+' conftest.er1 >conftest.err
  2706. rm -f conftest.er1
  2707. cat conftest.err >&5
  2708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2709. (exit $ac_status); } && {
  2710. test -z "$ac_c_werror_flag" ||
  2711. test ! -s conftest.err
  2712. } && test -s conftest.$ac_objext; then
  2713. ac_cv_prog_cc_g=yes
  2714. else
  2715. echo "$as_me: failed program was:" >&5
  2716. sed 's/^/| /' conftest.$ac_ext >&5
  2717. CFLAGS=""
  2718. cat >conftest.$ac_ext <<_ACEOF
  2719. /* confdefs.h. */
  2720. _ACEOF
  2721. cat confdefs.h >>conftest.$ac_ext
  2722. cat >>conftest.$ac_ext <<_ACEOF
  2723. /* end confdefs.h. */
  2724. int
  2725. main ()
  2726. {
  2727. ;
  2728. return 0;
  2729. }
  2730. _ACEOF
  2731. rm -f conftest.$ac_objext
  2732. if { (ac_try="$ac_compile"
  2733. case "(($ac_try" in
  2734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2735. *) ac_try_echo=$ac_try;;
  2736. esac
  2737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2738. (eval "$ac_compile") 2>conftest.er1
  2739. ac_status=$?
  2740. grep -v '^ *+' conftest.er1 >conftest.err
  2741. rm -f conftest.er1
  2742. cat conftest.err >&5
  2743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2744. (exit $ac_status); } && {
  2745. test -z "$ac_c_werror_flag" ||
  2746. test ! -s conftest.err
  2747. } && test -s conftest.$ac_objext; then
  2748. :
  2749. else
  2750. echo "$as_me: failed program was:" >&5
  2751. sed 's/^/| /' conftest.$ac_ext >&5
  2752. ac_c_werror_flag=$ac_save_c_werror_flag
  2753. CFLAGS="-g"
  2754. cat >conftest.$ac_ext <<_ACEOF
  2755. /* confdefs.h. */
  2756. _ACEOF
  2757. cat confdefs.h >>conftest.$ac_ext
  2758. cat >>conftest.$ac_ext <<_ACEOF
  2759. /* end confdefs.h. */
  2760. int
  2761. main ()
  2762. {
  2763. ;
  2764. return 0;
  2765. }
  2766. _ACEOF
  2767. rm -f conftest.$ac_objext
  2768. if { (ac_try="$ac_compile"
  2769. case "(($ac_try" in
  2770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2771. *) ac_try_echo=$ac_try;;
  2772. esac
  2773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2774. (eval "$ac_compile") 2>conftest.er1
  2775. ac_status=$?
  2776. grep -v '^ *+' conftest.er1 >conftest.err
  2777. rm -f conftest.er1
  2778. cat conftest.err >&5
  2779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2780. (exit $ac_status); } && {
  2781. test -z "$ac_c_werror_flag" ||
  2782. test ! -s conftest.err
  2783. } && test -s conftest.$ac_objext; then
  2784. ac_cv_prog_cc_g=yes
  2785. else
  2786. echo "$as_me: failed program was:" >&5
  2787. sed 's/^/| /' conftest.$ac_ext >&5
  2788. fi
  2789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2790. fi
  2791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2792. fi
  2793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2794. ac_c_werror_flag=$ac_save_c_werror_flag
  2795. fi
  2796. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2797. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2798. if test "$ac_test_CFLAGS" = set; then
  2799. CFLAGS=$ac_save_CFLAGS
  2800. elif test $ac_cv_prog_cc_g = yes; then
  2801. if test "$GCC" = yes; then
  2802. CFLAGS="-g -O2"
  2803. else
  2804. CFLAGS="-g"
  2805. fi
  2806. else
  2807. if test "$GCC" = yes; then
  2808. CFLAGS="-O2"
  2809. else
  2810. CFLAGS=
  2811. fi
  2812. fi
  2813. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2814. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2815. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2816. echo $ECHO_N "(cached) $ECHO_C" >&6
  2817. else
  2818. ac_cv_prog_cc_c89=no
  2819. ac_save_CC=$CC
  2820. cat >conftest.$ac_ext <<_ACEOF
  2821. /* confdefs.h. */
  2822. _ACEOF
  2823. cat confdefs.h >>conftest.$ac_ext
  2824. cat >>conftest.$ac_ext <<_ACEOF
  2825. /* end confdefs.h. */
  2826. #include <stdarg.h>
  2827. #include <stdio.h>
  2828. #include <sys/types.h>
  2829. #include <sys/stat.h>
  2830. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2831. struct buf { int x; };
  2832. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2833. static char *e (p, i)
  2834. char **p;
  2835. int i;
  2836. {
  2837. return p[i];
  2838. }
  2839. static char *f (char * (*g) (char **, int), char **p, ...)
  2840. {
  2841. char *s;
  2842. va_list v;
  2843. va_start (v,p);
  2844. s = g (p, va_arg (v,int));
  2845. va_end (v);
  2846. return s;
  2847. }
  2848. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2849. function prototypes and stuff, but not '\xHH' hex character constants.
  2850. These don't provoke an error unfortunately, instead are silently treated
  2851. as 'x'. The following induces an error, until -std is added to get
  2852. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2853. array size at least. It's necessary to write '\x00'==0 to get something
  2854. that's true only with -std. */
  2855. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2856. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2857. inside strings and character constants. */
  2858. #define FOO(x) 'x'
  2859. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2860. int test (int i, double x);
  2861. struct s1 {int (*f) (int a);};
  2862. struct s2 {int (*f) (double a);};
  2863. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2864. int argc;
  2865. char **argv;
  2866. int
  2867. main ()
  2868. {
  2869. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2870. ;
  2871. return 0;
  2872. }
  2873. _ACEOF
  2874. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2875. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2876. do
  2877. CC="$ac_save_CC $ac_arg"
  2878. rm -f conftest.$ac_objext
  2879. if { (ac_try="$ac_compile"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2885. (eval "$ac_compile") 2>conftest.er1
  2886. ac_status=$?
  2887. grep -v '^ *+' conftest.er1 >conftest.err
  2888. rm -f conftest.er1
  2889. cat conftest.err >&5
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); } && {
  2892. test -z "$ac_c_werror_flag" ||
  2893. test ! -s conftest.err
  2894. } && test -s conftest.$ac_objext; then
  2895. ac_cv_prog_cc_c89=$ac_arg
  2896. else
  2897. echo "$as_me: failed program was:" >&5
  2898. sed 's/^/| /' conftest.$ac_ext >&5
  2899. fi
  2900. rm -f core conftest.err conftest.$ac_objext
  2901. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2902. done
  2903. rm -f conftest.$ac_ext
  2904. CC=$ac_save_CC
  2905. fi
  2906. # AC_CACHE_VAL
  2907. case "x$ac_cv_prog_cc_c89" in
  2908. x)
  2909. { echo "$as_me:$LINENO: result: none needed" >&5
  2910. echo "${ECHO_T}none needed" >&6; } ;;
  2911. xno)
  2912. { echo "$as_me:$LINENO: result: unsupported" >&5
  2913. echo "${ECHO_T}unsupported" >&6; } ;;
  2914. *)
  2915. CC="$CC $ac_cv_prog_cc_c89"
  2916. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2917. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2918. esac
  2919. ac_ext=c
  2920. ac_cpp='$CPP $CPPFLAGS'
  2921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2924. DEPDIR="${am__leading_dot}deps"
  2925. ac_config_commands="$ac_config_commands depfiles"
  2926. am_make=${MAKE-make}
  2927. cat > confinc << 'END'
  2928. am__doit:
  2929. @echo done
  2930. .PHONY: am__doit
  2931. END
  2932. # If we don't find an include directive, just comment out the code.
  2933. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2934. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2935. am__include="#"
  2936. am__quote=
  2937. _am_result=none
  2938. # First try GNU make style include.
  2939. echo "include confinc" > confmf
  2940. # We grep out `Entering directory' and `Leaving directory'
  2941. # messages which can occur if `w' ends up in MAKEFLAGS.
  2942. # In particular we don't look at `^make:' because GNU make might
  2943. # be invoked under some other name (usually "gmake"), in which
  2944. # case it prints its new name instead of `make'.
  2945. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2946. am__include=include
  2947. am__quote=
  2948. _am_result=GNU
  2949. fi
  2950. # Now try BSD make style include.
  2951. if test "$am__include" = "#"; then
  2952. echo '.include "confinc"' > confmf
  2953. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2954. am__include=.include
  2955. am__quote="\""
  2956. _am_result=BSD
  2957. fi
  2958. fi
  2959. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2960. echo "${ECHO_T}$_am_result" >&6; }
  2961. rm -f confinc confmf
  2962. # Check whether --enable-dependency-tracking was given.
  2963. if test "${enable_dependency_tracking+set}" = set; then
  2964. enableval=$enable_dependency_tracking;
  2965. fi
  2966. if test "x$enable_dependency_tracking" != xno; then
  2967. am_depcomp="$ac_aux_dir/depcomp"
  2968. AMDEPBACKSLASH='\'
  2969. fi
  2970. if test "x$enable_dependency_tracking" != xno; then
  2971. AMDEP_TRUE=
  2972. AMDEP_FALSE='#'
  2973. else
  2974. AMDEP_TRUE='#'
  2975. AMDEP_FALSE=
  2976. fi
  2977. depcc="$CC" am_compiler_list=
  2978. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2979. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2980. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2981. echo $ECHO_N "(cached) $ECHO_C" >&6
  2982. else
  2983. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2984. # We make a subdir and do the tests there. Otherwise we can end up
  2985. # making bogus files that we don't know about and never remove. For
  2986. # instance it was reported that on HP-UX the gcc test will end up
  2987. # making a dummy file named `D' -- because `-MD' means `put the output
  2988. # in D'.
  2989. mkdir conftest.dir
  2990. # Copy depcomp to subdir because otherwise we won't find it if we're
  2991. # using a relative directory.
  2992. cp "$am_depcomp" conftest.dir
  2993. cd conftest.dir
  2994. # We will build objects and dependencies in a subdirectory because
  2995. # it helps to detect inapplicable dependency modes. For instance
  2996. # both Tru64's cc and ICC support -MD to output dependencies as a
  2997. # side effect of compilation, but ICC will put the dependencies in
  2998. # the current directory while Tru64 will put them in the object
  2999. # directory.
  3000. mkdir sub
  3001. am_cv_CC_dependencies_compiler_type=none
  3002. if test "$am_compiler_list" = ""; then
  3003. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3004. fi
  3005. for depmode in $am_compiler_list; do
  3006. # Setup a source with many dependencies, because some compilers
  3007. # like to wrap large dependency lists on column 80 (with \), and
  3008. # we should not choose a depcomp mode which is confused by this.
  3009. #
  3010. # We need to recreate these files for each test, as the compiler may
  3011. # overwrite some of them when testing with obscure command lines.
  3012. # This happens at least with the AIX C compiler.
  3013. : > sub/conftest.c
  3014. for i in 1 2 3 4 5 6; do
  3015. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3016. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3017. # Solaris 8's {/usr,}/bin/sh.
  3018. touch sub/conftst$i.h
  3019. done
  3020. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3021. case $depmode in
  3022. nosideeffect)
  3023. # after this tag, mechanisms are not by side-effect, so they'll
  3024. # only be used when explicitly requested
  3025. if test "x$enable_dependency_tracking" = xyes; then
  3026. continue
  3027. else
  3028. break
  3029. fi
  3030. ;;
  3031. none) break ;;
  3032. esac
  3033. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3034. # mode. It turns out that the SunPro C++ compiler does not properly
  3035. # handle `-M -o', and we need to detect this.
  3036. if depmode=$depmode \
  3037. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3038. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3039. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3040. >/dev/null 2>conftest.err &&
  3041. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3042. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3043. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3044. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3045. # icc doesn't choke on unknown options, it will just issue warnings
  3046. # or remarks (even with -Werror). So we grep stderr for any message
  3047. # that says an option was ignored or not supported.
  3048. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3049. # icc: Command line warning: ignoring option '-M'; no argument required
  3050. # The diagnosis changed in icc 8.0:
  3051. # icc: Command line remark: option '-MP' not supported
  3052. if (grep 'ignoring option' conftest.err ||
  3053. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3054. am_cv_CC_dependencies_compiler_type=$depmode
  3055. break
  3056. fi
  3057. fi
  3058. done
  3059. cd ..
  3060. rm -rf conftest.dir
  3061. else
  3062. am_cv_CC_dependencies_compiler_type=none
  3063. fi
  3064. fi
  3065. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3066. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3067. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3068. if
  3069. test "x$enable_dependency_tracking" != xno \
  3070. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3071. am__fastdepCC_TRUE=
  3072. am__fastdepCC_FALSE='#'
  3073. else
  3074. am__fastdepCC_TRUE='#'
  3075. am__fastdepCC_FALSE=
  3076. fi
  3077. # -- Helper programs --
  3078. for ac_prog in gawk mawk nawk awk
  3079. do
  3080. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3081. set dummy $ac_prog; ac_word=$2
  3082. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3083. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3084. if test "${ac_cv_prog_AWK+set}" = set; then
  3085. echo $ECHO_N "(cached) $ECHO_C" >&6
  3086. else
  3087. if test -n "$AWK"; then
  3088. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3089. else
  3090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3091. for as_dir in $PATH
  3092. do
  3093. IFS=$as_save_IFS
  3094. test -z "$as_dir" && as_dir=.
  3095. for ac_exec_ext in '' $ac_executable_extensions; do
  3096. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3097. ac_cv_prog_AWK="$ac_prog"
  3098. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3099. break 2
  3100. fi
  3101. done
  3102. done
  3103. IFS=$as_save_IFS
  3104. fi
  3105. fi
  3106. AWK=$ac_cv_prog_AWK
  3107. if test -n "$AWK"; then
  3108. { echo "$as_me:$LINENO: result: $AWK" >&5
  3109. echo "${ECHO_T}$AWK" >&6; }
  3110. else
  3111. { echo "$as_me:$LINENO: result: no" >&5
  3112. echo "${ECHO_T}no" >&6; }
  3113. fi
  3114. test -n "$AWK" && break
  3115. done
  3116. # Find a good install program. We prefer a C program (faster),
  3117. # so one script is as good as another. But avoid the broken or
  3118. # incompatible versions:
  3119. # SysV /etc/install, /usr/sbin/install
  3120. # SunOS /usr/etc/install
  3121. # IRIX /sbin/install
  3122. # AIX /bin/install
  3123. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3124. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3125. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3126. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3127. # OS/2's system install, which has a completely different semantic
  3128. # ./install, which can be erroneously created by make from ./install.sh.
  3129. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3130. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3131. if test -z "$INSTALL"; then
  3132. if test "${ac_cv_path_install+set}" = set; then
  3133. echo $ECHO_N "(cached) $ECHO_C" >&6
  3134. else
  3135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3136. for as_dir in $PATH
  3137. do
  3138. IFS=$as_save_IFS
  3139. test -z "$as_dir" && as_dir=.
  3140. # Account for people who put trailing slashes in PATH elements.
  3141. case $as_dir/ in
  3142. ./ | .// | /cC/* | \
  3143. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3144. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3145. /usr/ucb/* ) ;;
  3146. *)
  3147. # OSF1 and SCO ODT 3.0 have their own names for install.
  3148. # Don't use installbsd from OSF since it installs stuff as root
  3149. # by default.
  3150. for ac_prog in ginstall scoinst install; do
  3151. for ac_exec_ext in '' $ac_executable_extensions; do
  3152. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3153. if test $ac_prog = install &&
  3154. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3155. # AIX install. It has an incompatible calling convention.
  3156. :
  3157. elif test $ac_prog = install &&
  3158. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3159. # program-specific install script used by HP pwplus--don't use.
  3160. :
  3161. else
  3162. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3163. break 3
  3164. fi
  3165. fi
  3166. done
  3167. done
  3168. ;;
  3169. esac
  3170. done
  3171. IFS=$as_save_IFS
  3172. fi
  3173. if test "${ac_cv_path_install+set}" = set; then
  3174. INSTALL=$ac_cv_path_install
  3175. else
  3176. # As a last resort, use the slow shell script. Don't cache a
  3177. # value for INSTALL within a source directory, because that will
  3178. # break other packages using the cache if that directory is
  3179. # removed, or if the value is a relative name.
  3180. INSTALL=$ac_install_sh
  3181. fi
  3182. fi
  3183. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3184. echo "${ECHO_T}$INSTALL" >&6; }
  3185. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3186. # It thinks the first close brace ends the variable substitution.
  3187. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3188. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3189. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3190. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3191. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3192. LN_S=$as_ln_s
  3193. if test "$LN_S" = "ln -s"; then
  3194. { echo "$as_me:$LINENO: result: yes" >&5
  3195. echo "${ECHO_T}yes" >&6; }
  3196. else
  3197. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3198. echo "${ECHO_T}no, using $LN_S" >&6; }
  3199. fi
  3200. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3201. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  3202. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3203. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3204. echo $ECHO_N "(cached) $ECHO_C" >&6
  3205. else
  3206. cat >conftest.make <<\_ACEOF
  3207. SHELL = /bin/sh
  3208. all:
  3209. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3210. _ACEOF
  3211. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3212. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3213. *@@@%%%=?*=@@@%%%*)
  3214. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3215. *)
  3216. eval ac_cv_prog_make_${ac_make}_set=no;;
  3217. esac
  3218. rm -f conftest.make
  3219. fi
  3220. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3221. { echo "$as_me:$LINENO: result: yes" >&5
  3222. echo "${ECHO_T}yes" >&6; }
  3223. SET_MAKE=
  3224. else
  3225. { echo "$as_me:$LINENO: result: no" >&5
  3226. echo "${ECHO_T}no" >&6; }
  3227. SET_MAKE="MAKE=${MAKE-make}"
  3228. fi
  3229. if test -n "$ac_tool_prefix"; then
  3230. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3231. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3232. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3233. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3234. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3235. echo $ECHO_N "(cached) $ECHO_C" >&6
  3236. else
  3237. if test -n "$RANLIB"; then
  3238. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3239. else
  3240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3241. for as_dir in $PATH
  3242. do
  3243. IFS=$as_save_IFS
  3244. test -z "$as_dir" && as_dir=.
  3245. for ac_exec_ext in '' $ac_executable_extensions; do
  3246. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3247. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3248. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3249. break 2
  3250. fi
  3251. done
  3252. done
  3253. IFS=$as_save_IFS
  3254. fi
  3255. fi
  3256. RANLIB=$ac_cv_prog_RANLIB
  3257. if test -n "$RANLIB"; then
  3258. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3259. echo "${ECHO_T}$RANLIB" >&6; }
  3260. else
  3261. { echo "$as_me:$LINENO: result: no" >&5
  3262. echo "${ECHO_T}no" >&6; }
  3263. fi
  3264. fi
  3265. if test -z "$ac_cv_prog_RANLIB"; then
  3266. ac_ct_RANLIB=$RANLIB
  3267. # Extract the first word of "ranlib", so it can be a program name with args.
  3268. set dummy ranlib; ac_word=$2
  3269. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3270. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3271. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3272. echo $ECHO_N "(cached) $ECHO_C" >&6
  3273. else
  3274. if test -n "$ac_ct_RANLIB"; then
  3275. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3276. else
  3277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3278. for as_dir in $PATH
  3279. do
  3280. IFS=$as_save_IFS
  3281. test -z "$as_dir" && as_dir=.
  3282. for ac_exec_ext in '' $ac_executable_extensions; do
  3283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3284. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3285. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3286. break 2
  3287. fi
  3288. done
  3289. done
  3290. IFS=$as_save_IFS
  3291. fi
  3292. fi
  3293. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3294. if test -n "$ac_ct_RANLIB"; then
  3295. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3296. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3297. else
  3298. { echo "$as_me:$LINENO: result: no" >&5
  3299. echo "${ECHO_T}no" >&6; }
  3300. fi
  3301. if test "x$ac_ct_RANLIB" = x; then
  3302. RANLIB=":"
  3303. else
  3304. case $cross_compiling:$ac_tool_warned in
  3305. yes:)
  3306. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3307. whose name does not start with the host triplet. If you think this
  3308. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3309. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3310. whose name does not start with the host triplet. If you think this
  3311. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3312. ac_tool_warned=yes ;;
  3313. esac
  3314. RANLIB=$ac_ct_RANLIB
  3315. fi
  3316. else
  3317. RANLIB="$ac_cv_prog_RANLIB"
  3318. fi
  3319. # -- Compiler Features --
  3320. { echo "$as_me:$LINENO: checking for function prototypes" >&5
  3321. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
  3322. if test "$ac_cv_prog_cc_c89" != no; then
  3323. { echo "$as_me:$LINENO: result: yes" >&5
  3324. echo "${ECHO_T}yes" >&6; }
  3325. cat >>confdefs.h <<\_ACEOF
  3326. #define PROTOTYPES 1
  3327. _ACEOF
  3328. cat >>confdefs.h <<\_ACEOF
  3329. #define __PROTOTYPES 1
  3330. _ACEOF
  3331. else
  3332. { echo "$as_me:$LINENO: result: no" >&5
  3333. echo "${ECHO_T}no" >&6; }
  3334. fi
  3335. ac_ext=c
  3336. ac_cpp='$CPP $CPPFLAGS'
  3337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3340. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3341. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3342. # On Suns, sometimes $CPP names a directory.
  3343. if test -n "$CPP" && test -d "$CPP"; then
  3344. CPP=
  3345. fi
  3346. if test -z "$CPP"; then
  3347. if test "${ac_cv_prog_CPP+set}" = set; then
  3348. echo $ECHO_N "(cached) $ECHO_C" >&6
  3349. else
  3350. # Double quotes because CPP needs to be expanded
  3351. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3352. do
  3353. ac_preproc_ok=false
  3354. for ac_c_preproc_warn_flag in '' yes
  3355. do
  3356. # Use a header file that comes with gcc, so configuring glibc
  3357. # with a fresh cross-compiler works.
  3358. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3359. # <limits.h> exists even on freestanding compilers.
  3360. # On the NeXT, cc -E runs the code through the compiler's parser,
  3361. # not just through cpp. "Syntax error" is here to catch this case.
  3362. cat >conftest.$ac_ext <<_ACEOF
  3363. /* confdefs.h. */
  3364. _ACEOF
  3365. cat confdefs.h >>conftest.$ac_ext
  3366. cat >>conftest.$ac_ext <<_ACEOF
  3367. /* end confdefs.h. */
  3368. #ifdef __STDC__
  3369. # include <limits.h>
  3370. #else
  3371. # include <assert.h>
  3372. #endif
  3373. Syntax error
  3374. _ACEOF
  3375. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3376. case "(($ac_try" in
  3377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3378. *) ac_try_echo=$ac_try;;
  3379. esac
  3380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3381. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3382. ac_status=$?
  3383. grep -v '^ *+' conftest.er1 >conftest.err
  3384. rm -f conftest.er1
  3385. cat conftest.err >&5
  3386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3387. (exit $ac_status); } >/dev/null && {
  3388. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3389. test ! -s conftest.err
  3390. }; then
  3391. :
  3392. else
  3393. echo "$as_me: failed program was:" >&5
  3394. sed 's/^/| /' conftest.$ac_ext >&5
  3395. # Broken: fails on valid input.
  3396. continue
  3397. fi
  3398. rm -f conftest.err conftest.$ac_ext
  3399. # OK, works on sane cases. Now check whether nonexistent headers
  3400. # can be detected and how.
  3401. cat >conftest.$ac_ext <<_ACEOF
  3402. /* confdefs.h. */
  3403. _ACEOF
  3404. cat confdefs.h >>conftest.$ac_ext
  3405. cat >>conftest.$ac_ext <<_ACEOF
  3406. /* end confdefs.h. */
  3407. #include <ac_nonexistent.h>
  3408. _ACEOF
  3409. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3410. case "(($ac_try" in
  3411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3412. *) ac_try_echo=$ac_try;;
  3413. esac
  3414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3415. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3416. ac_status=$?
  3417. grep -v '^ *+' conftest.er1 >conftest.err
  3418. rm -f conftest.er1
  3419. cat conftest.err >&5
  3420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3421. (exit $ac_status); } >/dev/null && {
  3422. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3423. test ! -s conftest.err
  3424. }; then
  3425. # Broken: success on invalid input.
  3426. continue
  3427. else
  3428. echo "$as_me: failed program was:" >&5
  3429. sed 's/^/| /' conftest.$ac_ext >&5
  3430. # Passes both tests.
  3431. ac_preproc_ok=:
  3432. break
  3433. fi
  3434. rm -f conftest.err conftest.$ac_ext
  3435. done
  3436. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3437. rm -f conftest.err conftest.$ac_ext
  3438. if $ac_preproc_ok; then
  3439. break
  3440. fi
  3441. done
  3442. ac_cv_prog_CPP=$CPP
  3443. fi
  3444. CPP=$ac_cv_prog_CPP
  3445. else
  3446. ac_cv_prog_CPP=$CPP
  3447. fi
  3448. { echo "$as_me:$LINENO: result: $CPP" >&5
  3449. echo "${ECHO_T}$CPP" >&6; }
  3450. ac_preproc_ok=false
  3451. for ac_c_preproc_warn_flag in '' yes
  3452. do
  3453. # Use a header file that comes with gcc, so configuring glibc
  3454. # with a fresh cross-compiler works.
  3455. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3456. # <limits.h> exists even on freestanding compilers.
  3457. # On the NeXT, cc -E runs the code through the compiler's parser,
  3458. # not just through cpp. "Syntax error" is here to catch this case.
  3459. cat >conftest.$ac_ext <<_ACEOF
  3460. /* confdefs.h. */
  3461. _ACEOF
  3462. cat confdefs.h >>conftest.$ac_ext
  3463. cat >>conftest.$ac_ext <<_ACEOF
  3464. /* end confdefs.h. */
  3465. #ifdef __STDC__
  3466. # include <limits.h>
  3467. #else
  3468. # include <assert.h>
  3469. #endif
  3470. Syntax error
  3471. _ACEOF
  3472. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3473. case "(($ac_try" in
  3474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3475. *) ac_try_echo=$ac_try;;
  3476. esac
  3477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3478. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3479. ac_status=$?
  3480. grep -v '^ *+' conftest.er1 >conftest.err
  3481. rm -f conftest.er1
  3482. cat conftest.err >&5
  3483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3484. (exit $ac_status); } >/dev/null && {
  3485. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3486. test ! -s conftest.err
  3487. }; then
  3488. :
  3489. else
  3490. echo "$as_me: failed program was:" >&5
  3491. sed 's/^/| /' conftest.$ac_ext >&5
  3492. # Broken: fails on valid input.
  3493. continue
  3494. fi
  3495. rm -f conftest.err conftest.$ac_ext
  3496. # OK, works on sane cases. Now check whether nonexistent headers
  3497. # can be detected and how.
  3498. cat >conftest.$ac_ext <<_ACEOF
  3499. /* confdefs.h. */
  3500. _ACEOF
  3501. cat confdefs.h >>conftest.$ac_ext
  3502. cat >>conftest.$ac_ext <<_ACEOF
  3503. /* end confdefs.h. */
  3504. #include <ac_nonexistent.h>
  3505. _ACEOF
  3506. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3507. case "(($ac_try" in
  3508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3509. *) ac_try_echo=$ac_try;;
  3510. esac
  3511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3512. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3513. ac_status=$?
  3514. grep -v '^ *+' conftest.er1 >conftest.err
  3515. rm -f conftest.er1
  3516. cat conftest.err >&5
  3517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3518. (exit $ac_status); } >/dev/null && {
  3519. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3520. test ! -s conftest.err
  3521. }; then
  3522. # Broken: success on invalid input.
  3523. continue
  3524. else
  3525. echo "$as_me: failed program was:" >&5
  3526. sed 's/^/| /' conftest.$ac_ext >&5
  3527. # Passes both tests.
  3528. ac_preproc_ok=:
  3529. break
  3530. fi
  3531. rm -f conftest.err conftest.$ac_ext
  3532. done
  3533. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3534. rm -f conftest.err conftest.$ac_ext
  3535. if $ac_preproc_ok; then
  3536. :
  3537. else
  3538. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3539. See \`config.log' for more details." >&5
  3540. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3541. See \`config.log' for more details." >&2;}
  3542. { (exit 1); exit 1; }; }
  3543. fi
  3544. ac_ext=c
  3545. ac_cpp='$CPP $CPPFLAGS'
  3546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3549. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3550. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3551. if test "${ac_cv_path_GREP+set}" = set; then
  3552. echo $ECHO_N "(cached) $ECHO_C" >&6
  3553. else
  3554. # Extract the first word of "grep ggrep" to use in msg output
  3555. if test -z "$GREP"; then
  3556. set dummy grep ggrep; ac_prog_name=$2
  3557. if test "${ac_cv_path_GREP+set}" = set; then
  3558. echo $ECHO_N "(cached) $ECHO_C" >&6
  3559. else
  3560. ac_path_GREP_found=false
  3561. # Loop through the user's path and test for each of PROGNAME-LIST
  3562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3563. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3564. do
  3565. IFS=$as_save_IFS
  3566. test -z "$as_dir" && as_dir=.
  3567. for ac_prog in grep ggrep; do
  3568. for ac_exec_ext in '' $ac_executable_extensions; do
  3569. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3570. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3571. # Check for GNU ac_path_GREP and select it if it is found.
  3572. # Check for GNU $ac_path_GREP
  3573. case `"$ac_path_GREP" --version 2>&1` in
  3574. *GNU*)
  3575. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3576. *)
  3577. ac_count=0
  3578. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3579. while :
  3580. do
  3581. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3582. mv "conftest.tmp" "conftest.in"
  3583. cp "conftest.in" "conftest.nl"
  3584. echo 'GREP' >> "conftest.nl"
  3585. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3586. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3587. ac_count=`expr $ac_count + 1`
  3588. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3589. # Best one so far, save it but keep looking for a better one
  3590. ac_cv_path_GREP="$ac_path_GREP"
  3591. ac_path_GREP_max=$ac_count
  3592. fi
  3593. # 10*(2^10) chars as input seems more than enough
  3594. test $ac_count -gt 10 && break
  3595. done
  3596. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3597. esac
  3598. $ac_path_GREP_found && break 3
  3599. done
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. fi
  3604. GREP="$ac_cv_path_GREP"
  3605. if test -z "$GREP"; then
  3606. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3607. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3608. { (exit 1); exit 1; }; }
  3609. fi
  3610. else
  3611. ac_cv_path_GREP=$GREP
  3612. fi
  3613. fi
  3614. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3615. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3616. GREP="$ac_cv_path_GREP"
  3617. { echo "$as_me:$LINENO: checking for egrep" >&5
  3618. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3619. if test "${ac_cv_path_EGREP+set}" = set; then
  3620. echo $ECHO_N "(cached) $ECHO_C" >&6
  3621. else
  3622. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3623. then ac_cv_path_EGREP="$GREP -E"
  3624. else
  3625. # Extract the first word of "egrep" to use in msg output
  3626. if test -z "$EGREP"; then
  3627. set dummy egrep; ac_prog_name=$2
  3628. if test "${ac_cv_path_EGREP+set}" = set; then
  3629. echo $ECHO_N "(cached) $ECHO_C" >&6
  3630. else
  3631. ac_path_EGREP_found=false
  3632. # Loop through the user's path and test for each of PROGNAME-LIST
  3633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3634. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3635. do
  3636. IFS=$as_save_IFS
  3637. test -z "$as_dir" && as_dir=.
  3638. for ac_prog in egrep; do
  3639. for ac_exec_ext in '' $ac_executable_extensions; do
  3640. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3641. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3642. # Check for GNU ac_path_EGREP and select it if it is found.
  3643. # Check for GNU $ac_path_EGREP
  3644. case `"$ac_path_EGREP" --version 2>&1` in
  3645. *GNU*)
  3646. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3647. *)
  3648. ac_count=0
  3649. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3650. while :
  3651. do
  3652. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3653. mv "conftest.tmp" "conftest.in"
  3654. cp "conftest.in" "conftest.nl"
  3655. echo 'EGREP' >> "conftest.nl"
  3656. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3657. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3658. ac_count=`expr $ac_count + 1`
  3659. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3660. # Best one so far, save it but keep looking for a better one
  3661. ac_cv_path_EGREP="$ac_path_EGREP"
  3662. ac_path_EGREP_max=$ac_count
  3663. fi
  3664. # 10*(2^10) chars as input seems more than enough
  3665. test $ac_count -gt 10 && break
  3666. done
  3667. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3668. esac
  3669. $ac_path_EGREP_found && break 3
  3670. done
  3671. done
  3672. done
  3673. IFS=$as_save_IFS
  3674. fi
  3675. EGREP="$ac_cv_path_EGREP"
  3676. if test -z "$EGREP"; then
  3677. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3678. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3679. { (exit 1); exit 1; }; }
  3680. fi
  3681. else
  3682. ac_cv_path_EGREP=$EGREP
  3683. fi
  3684. fi
  3685. fi
  3686. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3687. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3688. EGREP="$ac_cv_path_EGREP"
  3689. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3690. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3691. if test "${ac_cv_header_stdc+set}" = set; then
  3692. echo $ECHO_N "(cached) $ECHO_C" >&6
  3693. else
  3694. cat >conftest.$ac_ext <<_ACEOF
  3695. /* confdefs.h. */
  3696. _ACEOF
  3697. cat confdefs.h >>conftest.$ac_ext
  3698. cat >>conftest.$ac_ext <<_ACEOF
  3699. /* end confdefs.h. */
  3700. #include <stdlib.h>
  3701. #include <stdarg.h>
  3702. #include <string.h>
  3703. #include <float.h>
  3704. int
  3705. main ()
  3706. {
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. rm -f conftest.$ac_objext
  3712. if { (ac_try="$ac_compile"
  3713. case "(($ac_try" in
  3714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3715. *) ac_try_echo=$ac_try;;
  3716. esac
  3717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3718. (eval "$ac_compile") 2>conftest.er1
  3719. ac_status=$?
  3720. grep -v '^ *+' conftest.er1 >conftest.err
  3721. rm -f conftest.er1
  3722. cat conftest.err >&5
  3723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3724. (exit $ac_status); } && {
  3725. test -z "$ac_c_werror_flag" ||
  3726. test ! -s conftest.err
  3727. } && test -s conftest.$ac_objext; then
  3728. ac_cv_header_stdc=yes
  3729. else
  3730. echo "$as_me: failed program was:" >&5
  3731. sed 's/^/| /' conftest.$ac_ext >&5
  3732. ac_cv_header_stdc=no
  3733. fi
  3734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3735. if test $ac_cv_header_stdc = yes; then
  3736. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3737. cat >conftest.$ac_ext <<_ACEOF
  3738. /* confdefs.h. */
  3739. _ACEOF
  3740. cat confdefs.h >>conftest.$ac_ext
  3741. cat >>conftest.$ac_ext <<_ACEOF
  3742. /* end confdefs.h. */
  3743. #include <string.h>
  3744. _ACEOF
  3745. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3746. $EGREP "memchr" >/dev/null 2>&1; then
  3747. :
  3748. else
  3749. ac_cv_header_stdc=no
  3750. fi
  3751. rm -f -r conftest*
  3752. fi
  3753. if test $ac_cv_header_stdc = yes; then
  3754. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3755. cat >conftest.$ac_ext <<_ACEOF
  3756. /* confdefs.h. */
  3757. _ACEOF
  3758. cat confdefs.h >>conftest.$ac_ext
  3759. cat >>conftest.$ac_ext <<_ACEOF
  3760. /* end confdefs.h. */
  3761. #include <stdlib.h>
  3762. _ACEOF
  3763. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3764. $EGREP "free" >/dev/null 2>&1; then
  3765. :
  3766. else
  3767. ac_cv_header_stdc=no
  3768. fi
  3769. rm -f -r conftest*
  3770. fi
  3771. if test $ac_cv_header_stdc = yes; then
  3772. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3773. if test "$cross_compiling" = yes; then
  3774. :
  3775. else
  3776. cat >conftest.$ac_ext <<_ACEOF
  3777. /* confdefs.h. */
  3778. _ACEOF
  3779. cat confdefs.h >>conftest.$ac_ext
  3780. cat >>conftest.$ac_ext <<_ACEOF
  3781. /* end confdefs.h. */
  3782. #include <ctype.h>
  3783. #include <stdlib.h>
  3784. #if ((' ' & 0x0FF) == 0x020)
  3785. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3786. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3787. #else
  3788. # define ISLOWER(c) \
  3789. (('a' <= (c) && (c) <= 'i') \
  3790. || ('j' <= (c) && (c) <= 'r') \
  3791. || ('s' <= (c) && (c) <= 'z'))
  3792. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3793. #endif
  3794. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3795. int
  3796. main ()
  3797. {
  3798. int i;
  3799. for (i = 0; i < 256; i++)
  3800. if (XOR (islower (i), ISLOWER (i))
  3801. || toupper (i) != TOUPPER (i))
  3802. return 2;
  3803. return 0;
  3804. }
  3805. _ACEOF
  3806. rm -f conftest$ac_exeext
  3807. if { (ac_try="$ac_link"
  3808. case "(($ac_try" in
  3809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3810. *) ac_try_echo=$ac_try;;
  3811. esac
  3812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3813. (eval "$ac_link") 2>&5
  3814. ac_status=$?
  3815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3816. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3817. { (case "(($ac_try" in
  3818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3819. *) ac_try_echo=$ac_try;;
  3820. esac
  3821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3822. (eval "$ac_try") 2>&5
  3823. ac_status=$?
  3824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3825. (exit $ac_status); }; }; then
  3826. :
  3827. else
  3828. echo "$as_me: program exited with status $ac_status" >&5
  3829. echo "$as_me: failed program was:" >&5
  3830. sed 's/^/| /' conftest.$ac_ext >&5
  3831. ( exit $ac_status )
  3832. ac_cv_header_stdc=no
  3833. fi
  3834. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3835. fi
  3836. fi
  3837. fi
  3838. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3839. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3840. if test $ac_cv_header_stdc = yes; then
  3841. cat >>confdefs.h <<\_ACEOF
  3842. #define STDC_HEADERS 1
  3843. _ACEOF
  3844. fi
  3845. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3846. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3847. inttypes.h stdint.h unistd.h
  3848. do
  3849. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3850. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3851. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3852. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3853. echo $ECHO_N "(cached) $ECHO_C" >&6
  3854. else
  3855. cat >conftest.$ac_ext <<_ACEOF
  3856. /* confdefs.h. */
  3857. _ACEOF
  3858. cat confdefs.h >>conftest.$ac_ext
  3859. cat >>conftest.$ac_ext <<_ACEOF
  3860. /* end confdefs.h. */
  3861. $ac_includes_default
  3862. #include <$ac_header>
  3863. _ACEOF
  3864. rm -f conftest.$ac_objext
  3865. if { (ac_try="$ac_compile"
  3866. case "(($ac_try" in
  3867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3868. *) ac_try_echo=$ac_try;;
  3869. esac
  3870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3871. (eval "$ac_compile") 2>conftest.er1
  3872. ac_status=$?
  3873. grep -v '^ *+' conftest.er1 >conftest.err
  3874. rm -f conftest.er1
  3875. cat conftest.err >&5
  3876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877. (exit $ac_status); } && {
  3878. test -z "$ac_c_werror_flag" ||
  3879. test ! -s conftest.err
  3880. } && test -s conftest.$ac_objext; then
  3881. eval "$as_ac_Header=yes"
  3882. else
  3883. echo "$as_me: failed program was:" >&5
  3884. sed 's/^/| /' conftest.$ac_ext >&5
  3885. eval "$as_ac_Header=no"
  3886. fi
  3887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3888. fi
  3889. ac_res=`eval echo '${'$as_ac_Header'}'`
  3890. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3891. echo "${ECHO_T}$ac_res" >&6; }
  3892. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3893. cat >>confdefs.h <<_ACEOF
  3894. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3895. _ACEOF
  3896. fi
  3897. done
  3898. if test "$ac_cv_prog_cc_stdc" != no; then
  3899. U= ANSI2KNR=
  3900. else
  3901. U=_ ANSI2KNR=./ansi2knr
  3902. fi
  3903. # Ensure some checks needed by ansi2knr itself.
  3904. for ac_header in string.h
  3905. do
  3906. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3907. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3908. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3909. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3910. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3911. echo $ECHO_N "(cached) $ECHO_C" >&6
  3912. fi
  3913. ac_res=`eval echo '${'$as_ac_Header'}'`
  3914. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3915. echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
  3931. case "(($ac_try" in
  3932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3933. *) ac_try_echo=$ac_try;;
  3934. esac
  3935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3936. (eval "$ac_compile") 2>conftest.er1
  3937. ac_status=$?
  3938. grep -v '^ *+' conftest.er1 >conftest.err
  3939. rm -f conftest.er1
  3940. cat conftest.err >&5
  3941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3942. (exit $ac_status); } && {
  3943. test -z "$ac_c_werror_flag" ||
  3944. test ! -s conftest.err
  3945. } && test -s conftest.$ac_objext; then
  3946. ac_header_compiler=yes
  3947. else
  3948. echo "$as_me: failed program was:" >&5
  3949. sed 's/^/| /' conftest.$ac_ext >&5
  3950. ac_header_compiler=no
  3951. fi
  3952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3953. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3954. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3955. # Is the header present?
  3956. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3957. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  3958. cat >conftest.$ac_ext <<_ACEOF
  3959. /* confdefs.h. */
  3960. _ACEOF
  3961. cat confdefs.h >>conftest.$ac_ext
  3962. cat >>conftest.$ac_ext <<_ACEOF
  3963. /* end confdefs.h. */
  3964. #include <$ac_header>
  3965. _ACEOF
  3966. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3967. case "(($ac_try" in
  3968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3969. *) ac_try_echo=$ac_try;;
  3970. esac
  3971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3972. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3973. ac_status=$?
  3974. grep -v '^ *+' conftest.er1 >conftest.err
  3975. rm -f conftest.er1
  3976. cat conftest.err >&5
  3977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978. (exit $ac_status); } >/dev/null && {
  3979. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3980. test ! -s conftest.err
  3981. }; then
  3982. ac_header_preproc=yes
  3983. else
  3984. echo "$as_me: failed program was:" >&5
  3985. sed 's/^/| /' conftest.$ac_ext >&5
  3986. ac_header_preproc=no
  3987. fi
  3988. rm -f conftest.err conftest.$ac_ext
  3989. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3990. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3991. # So? What about this header?
  3992. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3993. yes:no: )
  3994. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3995. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3996. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3997. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3998. ac_header_preproc=yes
  3999. ;;
  4000. no:yes:* )
  4001. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4002. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4003. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4004. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4005. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4006. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4007. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4008. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4009. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4010. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4011. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4012. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4013. ;;
  4014. esac
  4015. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4016. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4017. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4018. echo $ECHO_N "(cached) $ECHO_C" >&6
  4019. else
  4020. eval "$as_ac_Header=\$ac_header_preproc"
  4021. fi
  4022. ac_res=`eval echo '${'$as_ac_Header'}'`
  4023. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4024. echo "${ECHO_T}$ac_res" >&6; }
  4025. fi
  4026. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4027. cat >>confdefs.h <<_ACEOF
  4028. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4029. _ACEOF
  4030. fi
  4031. done
  4032. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4033. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  4034. if test "${ac_cv_c_const+set}" = set; then
  4035. echo $ECHO_N "(cached) $ECHO_C" >&6
  4036. else
  4037. cat >conftest.$ac_ext <<_ACEOF
  4038. /* confdefs.h. */
  4039. _ACEOF
  4040. cat confdefs.h >>conftest.$ac_ext
  4041. cat >>conftest.$ac_ext <<_ACEOF
  4042. /* end confdefs.h. */
  4043. int
  4044. main ()
  4045. {
  4046. /* FIXME: Include the comments suggested by Paul. */
  4047. #ifndef __cplusplus
  4048. /* Ultrix mips cc rejects this. */
  4049. typedef int charset[2];
  4050. const charset cs;
  4051. /* SunOS 4.1.1 cc rejects this. */
  4052. char const *const *pcpcc;
  4053. char **ppc;
  4054. /* NEC SVR4.0.2 mips cc rejects this. */
  4055. struct point {int x, y;};
  4056. static struct point const zero = {0,0};
  4057. /* AIX XL C 1.02.0.0 rejects this.
  4058. It does not let you subtract one const X* pointer from another in
  4059. an arm of an if-expression whose if-part is not a constant
  4060. expression */
  4061. const char *g = "string";
  4062. pcpcc = &g + (g ? g-g : 0);
  4063. /* HPUX 7.0 cc rejects these. */
  4064. ++pcpcc;
  4065. ppc = (char**) pcpcc;
  4066. pcpcc = (char const *const *) ppc;
  4067. { /* SCO 3.2v4 cc rejects this. */
  4068. char *t;
  4069. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4070. *t++ = 0;
  4071. if (s) return 0;
  4072. }
  4073. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4074. int x[] = {25, 17};
  4075. const int *foo = &x[0];
  4076. ++foo;
  4077. }
  4078. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4079. typedef const int *iptr;
  4080. iptr p = 0;
  4081. ++p;
  4082. }
  4083. { /* AIX XL C 1.02.0.0 rejects this saying
  4084. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4085. struct s { int j; const int *ap[3]; };
  4086. struct s *b; b->j = 5;
  4087. }
  4088. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4089. const int foo = 10;
  4090. if (!foo) return 0;
  4091. }
  4092. return !cs[0] && !zero.x;
  4093. #endif
  4094. ;
  4095. return 0;
  4096. }
  4097. _ACEOF
  4098. rm -f conftest.$ac_objext
  4099. if { (ac_try="$ac_compile"
  4100. case "(($ac_try" in
  4101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4102. *) ac_try_echo=$ac_try;;
  4103. esac
  4104. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4105. (eval "$ac_compile") 2>conftest.er1
  4106. ac_status=$?
  4107. grep -v '^ *+' conftest.er1 >conftest.err
  4108. rm -f conftest.er1
  4109. cat conftest.err >&5
  4110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4111. (exit $ac_status); } && {
  4112. test -z "$ac_c_werror_flag" ||
  4113. test ! -s conftest.err
  4114. } && test -s conftest.$ac_objext; then
  4115. ac_cv_c_const=yes
  4116. else
  4117. echo "$as_me: failed program was:" >&5
  4118. sed 's/^/| /' conftest.$ac_ext >&5
  4119. ac_cv_c_const=no
  4120. fi
  4121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4122. fi
  4123. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4124. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  4125. if test $ac_cv_c_const = no; then
  4126. cat >>confdefs.h <<\_ACEOF
  4127. #define const
  4128. _ACEOF
  4129. fi
  4130. { echo "$as_me:$LINENO: checking for inline" >&5
  4131. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  4132. if test "${ac_cv_c_inline+set}" = set; then
  4133. echo $ECHO_N "(cached) $ECHO_C" >&6
  4134. else
  4135. ac_cv_c_inline=no
  4136. for ac_kw in inline __inline__ __inline; do
  4137. cat >conftest.$ac_ext <<_ACEOF
  4138. /* confdefs.h. */
  4139. _ACEOF
  4140. cat confdefs.h >>conftest.$ac_ext
  4141. cat >>conftest.$ac_ext <<_ACEOF
  4142. /* end confdefs.h. */
  4143. #ifndef __cplusplus
  4144. typedef int foo_t;
  4145. static $ac_kw foo_t static_foo () {return 0; }
  4146. $ac_kw foo_t foo () {return 0; }
  4147. #endif
  4148. _ACEOF
  4149. rm -f conftest.$ac_objext
  4150. if { (ac_try="$ac_compile"
  4151. case "(($ac_try" in
  4152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4153. *) ac_try_echo=$ac_try;;
  4154. esac
  4155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4156. (eval "$ac_compile") 2>conftest.er1
  4157. ac_status=$?
  4158. grep -v '^ *+' conftest.er1 >conftest.err
  4159. rm -f conftest.er1
  4160. cat conftest.err >&5
  4161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4162. (exit $ac_status); } && {
  4163. test -z "$ac_c_werror_flag" ||
  4164. test ! -s conftest.err
  4165. } && test -s conftest.$ac_objext; then
  4166. ac_cv_c_inline=$ac_kw
  4167. else
  4168. echo "$as_me: failed program was:" >&5
  4169. sed 's/^/| /' conftest.$ac_ext >&5
  4170. fi
  4171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4172. test "$ac_cv_c_inline" != no && break
  4173. done
  4174. fi
  4175. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  4176. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  4177. case $ac_cv_c_inline in
  4178. inline | yes) ;;
  4179. *)
  4180. case $ac_cv_c_inline in
  4181. no) ac_val=;;
  4182. *) ac_val=$ac_cv_c_inline;;
  4183. esac
  4184. cat >>confdefs.h <<_ACEOF
  4185. #ifndef __cplusplus
  4186. #define inline $ac_val
  4187. #endif
  4188. _ACEOF
  4189. ;;
  4190. esac
  4191. # -- Hard coded system and compiler dependencies/features/options ... --
  4192. if test "$GCC" = "yes"; then
  4193. # We are using the GNU C compiler. Good!
  4194. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  4195. ssp_cc=yes
  4196. # we use -fstack-protector-all for the test to enfoce the use of the guard variable
  4197. { echo "$as_me:$LINENO: checking whether ${CC} accepts -fstack-protector" >&5
  4198. echo $ECHO_N "checking whether ${CC} accepts -fstack-protector... $ECHO_C" >&6; }
  4199. ssp_old_cflags="$CFLAGS"
  4200. CFLAGS="$CFLAGS -fstack-protector-all"
  4201. cat >conftest.$ac_ext <<_ACEOF
  4202. /* confdefs.h. */
  4203. _ACEOF
  4204. cat confdefs.h >>conftest.$ac_ext
  4205. cat >>conftest.$ac_ext <<_ACEOF
  4206. /* end confdefs.h. */
  4207. int
  4208. main ()
  4209. {
  4210. ;
  4211. return 0;
  4212. }
  4213. _ACEOF
  4214. rm -f conftest.$ac_objext conftest$ac_exeext
  4215. if { (ac_try="$ac_link"
  4216. case "(($ac_try" in
  4217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4218. *) ac_try_echo=$ac_try;;
  4219. esac
  4220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4221. (eval "$ac_link") 2>conftest.er1
  4222. ac_status=$?
  4223. grep -v '^ *+' conftest.er1 >conftest.err
  4224. rm -f conftest.er1
  4225. cat conftest.err >&5
  4226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4227. (exit $ac_status); } && {
  4228. test -z "$ac_c_werror_flag" ||
  4229. test ! -s conftest.err
  4230. } && test -s conftest$ac_exeext &&
  4231. $as_test_x conftest$ac_exeext; then
  4232. :
  4233. else
  4234. echo "$as_me: failed program was:" >&5
  4235. sed 's/^/| /' conftest.$ac_ext >&5
  4236. ssp_cc=no
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4239. conftest$ac_exeext conftest.$ac_ext
  4240. echo $ssp_cc
  4241. CFLAGS="$ssp_old_cflags"
  4242. if test "X$ssp_cc" = "Xyes"; then
  4243. CFLAGS="$CFLAGS -fstack-protector"
  4244. cat >>confdefs.h <<\_ACEOF
  4245. #define ENABLE_SSP_CC 1
  4246. _ACEOF
  4247. fi
  4248. fi
  4249. case "$target_os" in
  4250. hpux*)
  4251. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  4252. # (tested with HP/UX 11.11)
  4253. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  4254. ;;
  4255. esac
  4256. # Add additional CFLAGS, eventually specified on the command line:
  4257. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  4258. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
  4259. # -- Headers --
  4260. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4261. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4262. if test "${ac_cv_header_stdc+set}" = set; then
  4263. echo $ECHO_N "(cached) $ECHO_C" >&6
  4264. else
  4265. cat >conftest.$ac_ext <<_ACEOF
  4266. /* confdefs.h. */
  4267. _ACEOF
  4268. cat confdefs.h >>conftest.$ac_ext
  4269. cat >>conftest.$ac_ext <<_ACEOF
  4270. /* end confdefs.h. */
  4271. #include <stdlib.h>
  4272. #include <stdarg.h>
  4273. #include <string.h>
  4274. #include <float.h>
  4275. int
  4276. main ()
  4277. {
  4278. ;
  4279. return 0;
  4280. }
  4281. _ACEOF
  4282. rm -f conftest.$ac_objext
  4283. if { (ac_try="$ac_compile"
  4284. case "(($ac_try" in
  4285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4286. *) ac_try_echo=$ac_try;;
  4287. esac
  4288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4289. (eval "$ac_compile") 2>conftest.er1
  4290. ac_status=$?
  4291. grep -v '^ *+' conftest.er1 >conftest.err
  4292. rm -f conftest.er1
  4293. cat conftest.err >&5
  4294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4295. (exit $ac_status); } && {
  4296. test -z "$ac_c_werror_flag" ||
  4297. test ! -s conftest.err
  4298. } && test -s conftest.$ac_objext; then
  4299. ac_cv_header_stdc=yes
  4300. else
  4301. echo "$as_me: failed program was:" >&5
  4302. sed 's/^/| /' conftest.$ac_ext >&5
  4303. ac_cv_header_stdc=no
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306. if test $ac_cv_header_stdc = yes; then
  4307. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4308. cat >conftest.$ac_ext <<_ACEOF
  4309. /* confdefs.h. */
  4310. _ACEOF
  4311. cat confdefs.h >>conftest.$ac_ext
  4312. cat >>conftest.$ac_ext <<_ACEOF
  4313. /* end confdefs.h. */
  4314. #include <string.h>
  4315. _ACEOF
  4316. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4317. $EGREP "memchr" >/dev/null 2>&1; then
  4318. :
  4319. else
  4320. ac_cv_header_stdc=no
  4321. fi
  4322. rm -f -r conftest*
  4323. fi
  4324. if test $ac_cv_header_stdc = yes; then
  4325. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4326. cat >conftest.$ac_ext <<_ACEOF
  4327. /* confdefs.h. */
  4328. _ACEOF
  4329. cat confdefs.h >>conftest.$ac_ext
  4330. cat >>conftest.$ac_ext <<_ACEOF
  4331. /* end confdefs.h. */
  4332. #include <stdlib.h>
  4333. _ACEOF
  4334. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4335. $EGREP "free" >/dev/null 2>&1; then
  4336. :
  4337. else
  4338. ac_cv_header_stdc=no
  4339. fi
  4340. rm -f -r conftest*
  4341. fi
  4342. if test $ac_cv_header_stdc = yes; then
  4343. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4344. if test "$cross_compiling" = yes; then
  4345. :
  4346. else
  4347. cat >conftest.$ac_ext <<_ACEOF
  4348. /* confdefs.h. */
  4349. _ACEOF
  4350. cat confdefs.h >>conftest.$ac_ext
  4351. cat >>conftest.$ac_ext <<_ACEOF
  4352. /* end confdefs.h. */
  4353. #include <ctype.h>
  4354. #include <stdlib.h>
  4355. #if ((' ' & 0x0FF) == 0x020)
  4356. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4357. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4358. #else
  4359. # define ISLOWER(c) \
  4360. (('a' <= (c) && (c) <= 'i') \
  4361. || ('j' <= (c) && (c) <= 'r') \
  4362. || ('s' <= (c) && (c) <= 'z'))
  4363. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4364. #endif
  4365. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4366. int
  4367. main ()
  4368. {
  4369. int i;
  4370. for (i = 0; i < 256; i++)
  4371. if (XOR (islower (i), ISLOWER (i))
  4372. || toupper (i) != TOUPPER (i))
  4373. return 2;
  4374. return 0;
  4375. }
  4376. _ACEOF
  4377. rm -f conftest$ac_exeext
  4378. if { (ac_try="$ac_link"
  4379. case "(($ac_try" in
  4380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4381. *) ac_try_echo=$ac_try;;
  4382. esac
  4383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4384. (eval "$ac_link") 2>&5
  4385. ac_status=$?
  4386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4387. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4388. { (case "(($ac_try" in
  4389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4390. *) ac_try_echo=$ac_try;;
  4391. esac
  4392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4393. (eval "$ac_try") 2>&5
  4394. ac_status=$?
  4395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4396. (exit $ac_status); }; }; then
  4397. :
  4398. else
  4399. echo "$as_me: program exited with status $ac_status" >&5
  4400. echo "$as_me: failed program was:" >&5
  4401. sed 's/^/| /' conftest.$ac_ext >&5
  4402. ( exit $ac_status )
  4403. ac_cv_header_stdc=no
  4404. fi
  4405. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4406. fi
  4407. fi
  4408. fi
  4409. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4410. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4411. if test $ac_cv_header_stdc = yes; then
  4412. cat >>confdefs.h <<\_ACEOF
  4413. #define STDC_HEADERS 1
  4414. _ACEOF
  4415. fi
  4416. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4417. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  4418. if test "${ac_cv_header_time+set}" = set; then
  4419. echo $ECHO_N "(cached) $ECHO_C" >&6
  4420. else
  4421. cat >conftest.$ac_ext <<_ACEOF
  4422. /* confdefs.h. */
  4423. _ACEOF
  4424. cat confdefs.h >>conftest.$ac_ext
  4425. cat >>conftest.$ac_ext <<_ACEOF
  4426. /* end confdefs.h. */
  4427. #include <sys/types.h>
  4428. #include <sys/time.h>
  4429. #include <time.h>
  4430. int
  4431. main ()
  4432. {
  4433. if ((struct tm *) 0)
  4434. return 0;
  4435. ;
  4436. return 0;
  4437. }
  4438. _ACEOF
  4439. rm -f conftest.$ac_objext
  4440. if { (ac_try="$ac_compile"
  4441. case "(($ac_try" in
  4442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4443. *) ac_try_echo=$ac_try;;
  4444. esac
  4445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4446. (eval "$ac_compile") 2>conftest.er1
  4447. ac_status=$?
  4448. grep -v '^ *+' conftest.er1 >conftest.err
  4449. rm -f conftest.er1
  4450. cat conftest.err >&5
  4451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4452. (exit $ac_status); } && {
  4453. test -z "$ac_c_werror_flag" ||
  4454. test ! -s conftest.err
  4455. } && test -s conftest.$ac_objext; then
  4456. ac_cv_header_time=yes
  4457. else
  4458. echo "$as_me: failed program was:" >&5
  4459. sed 's/^/| /' conftest.$ac_ext >&5
  4460. ac_cv_header_time=no
  4461. fi
  4462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4463. fi
  4464. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4465. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  4466. if test $ac_cv_header_time = yes; then
  4467. cat >>confdefs.h <<\_ACEOF
  4468. #define TIME_WITH_SYS_TIME 1
  4469. _ACEOF
  4470. fi
  4471. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4472. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  4473. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4474. echo $ECHO_N "(cached) $ECHO_C" >&6
  4475. else
  4476. cat >conftest.$ac_ext <<_ACEOF
  4477. /* confdefs.h. */
  4478. _ACEOF
  4479. cat confdefs.h >>conftest.$ac_ext
  4480. cat >>conftest.$ac_ext <<_ACEOF
  4481. /* end confdefs.h. */
  4482. #include <sys/types.h>
  4483. #include <sys/wait.h>
  4484. #ifndef WEXITSTATUS
  4485. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4486. #endif
  4487. #ifndef WIFEXITED
  4488. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4489. #endif
  4490. int
  4491. main ()
  4492. {
  4493. int s;
  4494. wait (&s);
  4495. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4496. ;
  4497. return 0;
  4498. }
  4499. _ACEOF
  4500. rm -f conftest.$ac_objext
  4501. if { (ac_try="$ac_compile"
  4502. case "(($ac_try" in
  4503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4504. *) ac_try_echo=$ac_try;;
  4505. esac
  4506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4507. (eval "$ac_compile") 2>conftest.er1
  4508. ac_status=$?
  4509. grep -v '^ *+' conftest.er1 >conftest.err
  4510. rm -f conftest.er1
  4511. cat conftest.err >&5
  4512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. (exit $ac_status); } && {
  4514. test -z "$ac_c_werror_flag" ||
  4515. test ! -s conftest.err
  4516. } && test -s conftest.$ac_objext; then
  4517. ac_cv_header_sys_wait_h=yes
  4518. else
  4519. echo "$as_me: failed program was:" >&5
  4520. sed 's/^/| /' conftest.$ac_ext >&5
  4521. ac_cv_header_sys_wait_h=no
  4522. fi
  4523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4524. fi
  4525. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4526. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  4527. if test $ac_cv_header_sys_wait_h = yes; then
  4528. cat >>confdefs.h <<\_ACEOF
  4529. #define HAVE_SYS_WAIT_H 1
  4530. _ACEOF
  4531. fi
  4532. for ac_header in \
  4533. ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \
  4534. strings.h sys/socket.h sys/time.h unistd.h \
  4535. do
  4536. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4537. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4538. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4539. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4540. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4541. echo $ECHO_N "(cached) $ECHO_C" >&6
  4542. fi
  4543. ac_res=`eval echo '${'$as_ac_Header'}'`
  4544. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4545. echo "${ECHO_T}$ac_res" >&6; }
  4546. else
  4547. # Is the header compilable?
  4548. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4549. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4550. cat >conftest.$ac_ext <<_ACEOF
  4551. /* confdefs.h. */
  4552. _ACEOF
  4553. cat confdefs.h >>conftest.$ac_ext
  4554. cat >>conftest.$ac_ext <<_ACEOF
  4555. /* end confdefs.h. */
  4556. $ac_includes_default
  4557. #include <$ac_header>
  4558. _ACEOF
  4559. rm -f conftest.$ac_objext
  4560. if { (ac_try="$ac_compile"
  4561. case "(($ac_try" in
  4562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4563. *) ac_try_echo=$ac_try;;
  4564. esac
  4565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4566. (eval "$ac_compile") 2>conftest.er1
  4567. ac_status=$?
  4568. grep -v '^ *+' conftest.er1 >conftest.err
  4569. rm -f conftest.er1
  4570. cat conftest.err >&5
  4571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4572. (exit $ac_status); } && {
  4573. test -z "$ac_c_werror_flag" ||
  4574. test ! -s conftest.err
  4575. } && test -s conftest.$ac_objext; then
  4576. ac_header_compiler=yes
  4577. else
  4578. echo "$as_me: failed program was:" >&5
  4579. sed 's/^/| /' conftest.$ac_ext >&5
  4580. ac_header_compiler=no
  4581. fi
  4582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4583. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4584. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4585. # Is the header present?
  4586. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4587. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4588. cat >conftest.$ac_ext <<_ACEOF
  4589. /* confdefs.h. */
  4590. _ACEOF
  4591. cat confdefs.h >>conftest.$ac_ext
  4592. cat >>conftest.$ac_ext <<_ACEOF
  4593. /* end confdefs.h. */
  4594. #include <$ac_header>
  4595. _ACEOF
  4596. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4597. case "(($ac_try" in
  4598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4599. *) ac_try_echo=$ac_try;;
  4600. esac
  4601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4602. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4603. ac_status=$?
  4604. grep -v '^ *+' conftest.er1 >conftest.err
  4605. rm -f conftest.er1
  4606. cat conftest.err >&5
  4607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4608. (exit $ac_status); } >/dev/null && {
  4609. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4610. test ! -s conftest.err
  4611. }; then
  4612. ac_header_preproc=yes
  4613. else
  4614. echo "$as_me: failed program was:" >&5
  4615. sed 's/^/| /' conftest.$ac_ext >&5
  4616. ac_header_preproc=no
  4617. fi
  4618. rm -f conftest.err conftest.$ac_ext
  4619. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4620. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4621. # So? What about this header?
  4622. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4623. yes:no: )
  4624. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4625. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4626. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4627. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4628. ac_header_preproc=yes
  4629. ;;
  4630. no:yes:* )
  4631. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4632. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4633. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4634. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4635. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4636. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4637. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4638. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4639. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4640. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4641. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4642. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4643. ;;
  4644. esac
  4645. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4646. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4647. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4648. echo $ECHO_N "(cached) $ECHO_C" >&6
  4649. else
  4650. eval "$as_ac_Header=\$ac_header_preproc"
  4651. fi
  4652. ac_res=`eval echo '${'$as_ac_Header'}'`
  4653. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4654. echo "${ECHO_T}$ac_res" >&6; }
  4655. fi
  4656. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4657. cat >>confdefs.h <<_ACEOF
  4658. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4659. _ACEOF
  4660. else
  4661. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  4662. echo "$as_me: error: required C header missing!" >&2;}
  4663. { (exit 1); exit 1; }; }
  4664. fi
  4665. done
  4666. for ac_header in arpa/inet.h ctype.h malloc.h stdbool.h stddef.h varargs.h
  4667. do
  4668. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4669. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4670. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4671. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4672. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4673. echo $ECHO_N "(cached) $ECHO_C" >&6
  4674. fi
  4675. ac_res=`eval echo '${'$as_ac_Header'}'`
  4676. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4677. echo "${ECHO_T}$ac_res" >&6; }
  4678. else
  4679. # Is the header compilable?
  4680. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4681. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4682. cat >conftest.$ac_ext <<_ACEOF
  4683. /* confdefs.h. */
  4684. _ACEOF
  4685. cat confdefs.h >>conftest.$ac_ext
  4686. cat >>conftest.$ac_ext <<_ACEOF
  4687. /* end confdefs.h. */
  4688. $ac_includes_default
  4689. #include <$ac_header>
  4690. _ACEOF
  4691. rm -f conftest.$ac_objext
  4692. if { (ac_try="$ac_compile"
  4693. case "(($ac_try" in
  4694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4695. *) ac_try_echo=$ac_try;;
  4696. esac
  4697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4698. (eval "$ac_compile") 2>conftest.er1
  4699. ac_status=$?
  4700. grep -v '^ *+' conftest.er1 >conftest.err
  4701. rm -f conftest.er1
  4702. cat conftest.err >&5
  4703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); } && {
  4705. test -z "$ac_c_werror_flag" ||
  4706. test ! -s conftest.err
  4707. } && test -s conftest.$ac_objext; then
  4708. ac_header_compiler=yes
  4709. else
  4710. echo "$as_me: failed program was:" >&5
  4711. sed 's/^/| /' conftest.$ac_ext >&5
  4712. ac_header_compiler=no
  4713. fi
  4714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4715. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4716. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4717. # Is the header present?
  4718. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4719. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4720. cat >conftest.$ac_ext <<_ACEOF
  4721. /* confdefs.h. */
  4722. _ACEOF
  4723. cat confdefs.h >>conftest.$ac_ext
  4724. cat >>conftest.$ac_ext <<_ACEOF
  4725. /* end confdefs.h. */
  4726. #include <$ac_header>
  4727. _ACEOF
  4728. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4729. case "(($ac_try" in
  4730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4731. *) ac_try_echo=$ac_try;;
  4732. esac
  4733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4734. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4735. ac_status=$?
  4736. grep -v '^ *+' conftest.er1 >conftest.err
  4737. rm -f conftest.er1
  4738. cat conftest.err >&5
  4739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4740. (exit $ac_status); } >/dev/null && {
  4741. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4742. test ! -s conftest.err
  4743. }; then
  4744. ac_header_preproc=yes
  4745. else
  4746. echo "$as_me: failed program was:" >&5
  4747. sed 's/^/| /' conftest.$ac_ext >&5
  4748. ac_header_preproc=no
  4749. fi
  4750. rm -f conftest.err conftest.$ac_ext
  4751. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4752. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4753. # So? What about this header?
  4754. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4755. yes:no: )
  4756. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4757. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4758. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4759. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4760. ac_header_preproc=yes
  4761. ;;
  4762. no:yes:* )
  4763. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4764. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4765. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4766. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4767. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4768. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4769. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4770. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4771. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4772. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4773. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4774. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4775. ;;
  4776. esac
  4777. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4778. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4779. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4780. echo $ECHO_N "(cached) $ECHO_C" >&6
  4781. else
  4782. eval "$as_ac_Header=\$ac_header_preproc"
  4783. fi
  4784. ac_res=`eval echo '${'$as_ac_Header'}'`
  4785. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4786. echo "${ECHO_T}$ac_res" >&6; }
  4787. fi
  4788. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4789. cat >>confdefs.h <<_ACEOF
  4790. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4791. _ACEOF
  4792. fi
  4793. done
  4794. # -- Datatypes --
  4795. { echo "$as_me:$LINENO: checking whether socklen_t exists" >&5
  4796. echo $ECHO_N "checking whether socklen_t exists... $ECHO_C" >&6; }
  4797. cat >conftest.$ac_ext <<_ACEOF
  4798. /* confdefs.h. */
  4799. _ACEOF
  4800. cat confdefs.h >>conftest.$ac_ext
  4801. cat >>conftest.$ac_ext <<_ACEOF
  4802. /* end confdefs.h. */
  4803. #include <sys/types.h>
  4804. #include <sys/socket.h>
  4805. int
  4806. main ()
  4807. {
  4808. socklen_t a, b;
  4809. a = 2; b = 4; a += b;
  4810. ;
  4811. return 0;
  4812. }
  4813. _ACEOF
  4814. rm -f conftest.$ac_objext
  4815. if { (ac_try="$ac_compile"
  4816. case "(($ac_try" in
  4817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4818. *) ac_try_echo=$ac_try;;
  4819. esac
  4820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4821. (eval "$ac_compile") 2>conftest.er1
  4822. ac_status=$?
  4823. grep -v '^ *+' conftest.er1 >conftest.err
  4824. rm -f conftest.er1
  4825. cat conftest.err >&5
  4826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4827. (exit $ac_status); } && {
  4828. test -z "$ac_c_werror_flag" ||
  4829. test ! -s conftest.err
  4830. } && test -s conftest.$ac_objext; then
  4831. cat >>confdefs.h <<\_ACEOF
  4832. #define HAVE_socklen_t 1
  4833. _ACEOF
  4834. { echo "$as_me:$LINENO: result: yes" >&5
  4835. echo "${ECHO_T}yes" >&6; }
  4836. else
  4837. echo "$as_me: failed program was:" >&5
  4838. sed 's/^/| /' conftest.$ac_ext >&5
  4839. { echo "$as_me:$LINENO: result: no" >&5
  4840. echo "${ECHO_T}no" >&6; }
  4841. fi
  4842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4843. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  4844. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  4845. if test "${ac_cv_type_signal+set}" = set; then
  4846. echo $ECHO_N "(cached) $ECHO_C" >&6
  4847. else
  4848. cat >conftest.$ac_ext <<_ACEOF
  4849. /* confdefs.h. */
  4850. _ACEOF
  4851. cat confdefs.h >>conftest.$ac_ext
  4852. cat >>conftest.$ac_ext <<_ACEOF
  4853. /* end confdefs.h. */
  4854. #include <sys/types.h>
  4855. #include <signal.h>
  4856. int
  4857. main ()
  4858. {
  4859. return *(signal (0, 0)) (0) == 1;
  4860. ;
  4861. return 0;
  4862. }
  4863. _ACEOF
  4864. rm -f conftest.$ac_objext
  4865. if { (ac_try="$ac_compile"
  4866. case "(($ac_try" in
  4867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4868. *) ac_try_echo=$ac_try;;
  4869. esac
  4870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4871. (eval "$ac_compile") 2>conftest.er1
  4872. ac_status=$?
  4873. grep -v '^ *+' conftest.er1 >conftest.err
  4874. rm -f conftest.er1
  4875. cat conftest.err >&5
  4876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4877. (exit $ac_status); } && {
  4878. test -z "$ac_c_werror_flag" ||
  4879. test ! -s conftest.err
  4880. } && test -s conftest.$ac_objext; then
  4881. ac_cv_type_signal=int
  4882. else
  4883. echo "$as_me: failed program was:" >&5
  4884. sed 's/^/| /' conftest.$ac_ext >&5
  4885. ac_cv_type_signal=void
  4886. fi
  4887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4888. fi
  4889. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  4890. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  4891. cat >>confdefs.h <<_ACEOF
  4892. #define RETSIGTYPE $ac_cv_type_signal
  4893. _ACEOF
  4894. { echo "$as_me:$LINENO: checking for size_t" >&5
  4895. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  4896. if test "${ac_cv_type_size_t+set}" = set; then
  4897. echo $ECHO_N "(cached) $ECHO_C" >&6
  4898. else
  4899. cat >conftest.$ac_ext <<_ACEOF
  4900. /* confdefs.h. */
  4901. _ACEOF
  4902. cat confdefs.h >>conftest.$ac_ext
  4903. cat >>conftest.$ac_ext <<_ACEOF
  4904. /* end confdefs.h. */
  4905. $ac_includes_default
  4906. typedef size_t ac__type_new_;
  4907. int
  4908. main ()
  4909. {
  4910. if ((ac__type_new_ *) 0)
  4911. return 0;
  4912. if (sizeof (ac__type_new_))
  4913. return 0;
  4914. ;
  4915. return 0;
  4916. }
  4917. _ACEOF
  4918. rm -f conftest.$ac_objext
  4919. if { (ac_try="$ac_compile"
  4920. case "(($ac_try" in
  4921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4922. *) ac_try_echo=$ac_try;;
  4923. esac
  4924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4925. (eval "$ac_compile") 2>conftest.er1
  4926. ac_status=$?
  4927. grep -v '^ *+' conftest.er1 >conftest.err
  4928. rm -f conftest.er1
  4929. cat conftest.err >&5
  4930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4931. (exit $ac_status); } && {
  4932. test -z "$ac_c_werror_flag" ||
  4933. test ! -s conftest.err
  4934. } && test -s conftest.$ac_objext; then
  4935. ac_cv_type_size_t=yes
  4936. else
  4937. echo "$as_me: failed program was:" >&5
  4938. sed 's/^/| /' conftest.$ac_ext >&5
  4939. ac_cv_type_size_t=no
  4940. fi
  4941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4942. fi
  4943. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4944. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  4945. if test $ac_cv_type_size_t = yes; then
  4946. :
  4947. else
  4948. cat >>confdefs.h <<_ACEOF
  4949. #define size_t unsigned int
  4950. _ACEOF
  4951. fi
  4952. { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  4953. echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
  4954. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  4955. echo $ECHO_N "(cached) $ECHO_C" >&6
  4956. else
  4957. cat >conftest.$ac_ext <<_ACEOF
  4958. /* confdefs.h. */
  4959. _ACEOF
  4960. cat confdefs.h >>conftest.$ac_ext
  4961. cat >>conftest.$ac_ext <<_ACEOF
  4962. /* end confdefs.h. */
  4963. #include <arpa/inet.h>
  4964. int
  4965. main ()
  4966. {
  4967. static struct sockaddr_in ac_aggr;
  4968. if (ac_aggr.sin_len)
  4969. return 0;
  4970. ;
  4971. return 0;
  4972. }
  4973. _ACEOF
  4974. rm -f conftest.$ac_objext
  4975. if { (ac_try="$ac_compile"
  4976. case "(($ac_try" in
  4977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4978. *) ac_try_echo=$ac_try;;
  4979. esac
  4980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4981. (eval "$ac_compile") 2>conftest.er1
  4982. ac_status=$?
  4983. grep -v '^ *+' conftest.er1 >conftest.err
  4984. rm -f conftest.er1
  4985. cat conftest.err >&5
  4986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4987. (exit $ac_status); } && {
  4988. test -z "$ac_c_werror_flag" ||
  4989. test ! -s conftest.err
  4990. } && test -s conftest.$ac_objext; then
  4991. ac_cv_member_struct_sockaddr_in_sin_len=yes
  4992. else
  4993. echo "$as_me: failed program was:" >&5
  4994. sed 's/^/| /' conftest.$ac_ext >&5
  4995. cat >conftest.$ac_ext <<_ACEOF
  4996. /* confdefs.h. */
  4997. _ACEOF
  4998. cat confdefs.h >>conftest.$ac_ext
  4999. cat >>conftest.$ac_ext <<_ACEOF
  5000. /* end confdefs.h. */
  5001. #include <arpa/inet.h>
  5002. int
  5003. main ()
  5004. {
  5005. static struct sockaddr_in ac_aggr;
  5006. if (sizeof ac_aggr.sin_len)
  5007. return 0;
  5008. ;
  5009. return 0;
  5010. }
  5011. _ACEOF
  5012. rm -f conftest.$ac_objext
  5013. if { (ac_try="$ac_compile"
  5014. case "(($ac_try" in
  5015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5016. *) ac_try_echo=$ac_try;;
  5017. esac
  5018. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5019. (eval "$ac_compile") 2>conftest.er1
  5020. ac_status=$?
  5021. grep -v '^ *+' conftest.er1 >conftest.err
  5022. rm -f conftest.er1
  5023. cat conftest.err >&5
  5024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5025. (exit $ac_status); } && {
  5026. test -z "$ac_c_werror_flag" ||
  5027. test ! -s conftest.err
  5028. } && test -s conftest.$ac_objext; then
  5029. ac_cv_member_struct_sockaddr_in_sin_len=yes
  5030. else
  5031. echo "$as_me: failed program was:" >&5
  5032. sed 's/^/| /' conftest.$ac_ext >&5
  5033. ac_cv_member_struct_sockaddr_in_sin_len=no
  5034. fi
  5035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5036. fi
  5037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5038. fi
  5039. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  5040. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  5041. if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
  5042. cat >>confdefs.h <<\_ACEOF
  5043. #define HAVE_sockaddr_in_len 1
  5044. _ACEOF
  5045. fi
  5046. # -- Libraries --
  5047. { echo "$as_me:$LINENO: checking for memmove in -lUTIL" >&5
  5048. echo $ECHO_N "checking for memmove in -lUTIL... $ECHO_C" >&6; }
  5049. if test "${ac_cv_lib_UTIL_memmove+set}" = set; then
  5050. echo $ECHO_N "(cached) $ECHO_C" >&6
  5051. else
  5052. ac_check_lib_save_LIBS=$LIBS
  5053. LIBS="-lUTIL $LIBS"
  5054. cat >conftest.$ac_ext <<_ACEOF
  5055. /* confdefs.h. */
  5056. _ACEOF
  5057. cat confdefs.h >>conftest.$ac_ext
  5058. cat >>conftest.$ac_ext <<_ACEOF
  5059. /* end confdefs.h. */
  5060. /* Override any GCC internal prototype to avoid an error.
  5061. Use char because int might match the return type of a GCC
  5062. builtin and then its argument prototype would still apply. */
  5063. #ifdef __cplusplus
  5064. extern "C"
  5065. #endif
  5066. char memmove ();
  5067. int
  5068. main ()
  5069. {
  5070. return memmove ();
  5071. ;
  5072. return 0;
  5073. }
  5074. _ACEOF
  5075. rm -f conftest.$ac_objext conftest$ac_exeext
  5076. if { (ac_try="$ac_link"
  5077. case "(($ac_try" in
  5078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5079. *) ac_try_echo=$ac_try;;
  5080. esac
  5081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5082. (eval "$ac_link") 2>conftest.er1
  5083. ac_status=$?
  5084. grep -v '^ *+' conftest.er1 >conftest.err
  5085. rm -f conftest.er1
  5086. cat conftest.err >&5
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); } && {
  5089. test -z "$ac_c_werror_flag" ||
  5090. test ! -s conftest.err
  5091. } && test -s conftest$ac_exeext &&
  5092. $as_test_x conftest$ac_exeext; then
  5093. ac_cv_lib_UTIL_memmove=yes
  5094. else
  5095. echo "$as_me: failed program was:" >&5
  5096. sed 's/^/| /' conftest.$ac_ext >&5
  5097. ac_cv_lib_UTIL_memmove=no
  5098. fi
  5099. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5100. conftest$ac_exeext conftest.$ac_ext
  5101. LIBS=$ac_check_lib_save_LIBS
  5102. fi
  5103. { echo "$as_me:$LINENO: result: $ac_cv_lib_UTIL_memmove" >&5
  5104. echo "${ECHO_T}$ac_cv_lib_UTIL_memmove" >&6; }
  5105. if test $ac_cv_lib_UTIL_memmove = yes; then
  5106. cat >>confdefs.h <<_ACEOF
  5107. #define HAVE_LIBUTIL 1
  5108. _ACEOF
  5109. LIBS="-lUTIL $LIBS"
  5110. fi
  5111. { echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
  5112. echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6; }
  5113. if test "${ac_cv_lib_socket_bind+set}" = set; then
  5114. echo $ECHO_N "(cached) $ECHO_C" >&6
  5115. else
  5116. ac_check_lib_save_LIBS=$LIBS
  5117. LIBS="-lsocket $LIBS"
  5118. cat >conftest.$ac_ext <<_ACEOF
  5119. /* confdefs.h. */
  5120. _ACEOF
  5121. cat confdefs.h >>conftest.$ac_ext
  5122. cat >>conftest.$ac_ext <<_ACEOF
  5123. /* end confdefs.h. */
  5124. /* Override any GCC internal prototype to avoid an error.
  5125. Use char because int might match the return type of a GCC
  5126. builtin and then its argument prototype would still apply. */
  5127. #ifdef __cplusplus
  5128. extern "C"
  5129. #endif
  5130. char bind ();
  5131. int
  5132. main ()
  5133. {
  5134. return bind ();
  5135. ;
  5136. return 0;
  5137. }
  5138. _ACEOF
  5139. rm -f conftest.$ac_objext conftest$ac_exeext
  5140. if { (ac_try="$ac_link"
  5141. case "(($ac_try" in
  5142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5143. *) ac_try_echo=$ac_try;;
  5144. esac
  5145. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5146. (eval "$ac_link") 2>conftest.er1
  5147. ac_status=$?
  5148. grep -v '^ *+' conftest.er1 >conftest.err
  5149. rm -f conftest.er1
  5150. cat conftest.err >&5
  5151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5152. (exit $ac_status); } && {
  5153. test -z "$ac_c_werror_flag" ||
  5154. test ! -s conftest.err
  5155. } && test -s conftest$ac_exeext &&
  5156. $as_test_x conftest$ac_exeext; then
  5157. ac_cv_lib_socket_bind=yes
  5158. else
  5159. echo "$as_me: failed program was:" >&5
  5160. sed 's/^/| /' conftest.$ac_ext >&5
  5161. ac_cv_lib_socket_bind=no
  5162. fi
  5163. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5164. conftest$ac_exeext conftest.$ac_ext
  5165. LIBS=$ac_check_lib_save_LIBS
  5166. fi
  5167. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
  5168. echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6; }
  5169. if test $ac_cv_lib_socket_bind = yes; then
  5170. cat >>confdefs.h <<_ACEOF
  5171. #define HAVE_LIBSOCKET 1
  5172. _ACEOF
  5173. LIBS="-lsocket $LIBS"
  5174. fi
  5175. { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
  5176. echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6; }
  5177. if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
  5178. echo $ECHO_N "(cached) $ECHO_C" >&6
  5179. else
  5180. ac_check_lib_save_LIBS=$LIBS
  5181. LIBS="-lnsl $LIBS"
  5182. cat >conftest.$ac_ext <<_ACEOF
  5183. /* confdefs.h. */
  5184. _ACEOF
  5185. cat confdefs.h >>conftest.$ac_ext
  5186. cat >>conftest.$ac_ext <<_ACEOF
  5187. /* end confdefs.h. */
  5188. /* Override any GCC internal prototype to avoid an error.
  5189. Use char because int might match the return type of a GCC
  5190. builtin and then its argument prototype would still apply. */
  5191. #ifdef __cplusplus
  5192. extern "C"
  5193. #endif
  5194. char gethostent ();
  5195. int
  5196. main ()
  5197. {
  5198. return gethostent ();
  5199. ;
  5200. return 0;
  5201. }
  5202. _ACEOF
  5203. rm -f conftest.$ac_objext conftest$ac_exeext
  5204. if { (ac_try="$ac_link"
  5205. case "(($ac_try" in
  5206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5207. *) ac_try_echo=$ac_try;;
  5208. esac
  5209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5210. (eval "$ac_link") 2>conftest.er1
  5211. ac_status=$?
  5212. grep -v '^ *+' conftest.er1 >conftest.err
  5213. rm -f conftest.er1
  5214. cat conftest.err >&5
  5215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5216. (exit $ac_status); } && {
  5217. test -z "$ac_c_werror_flag" ||
  5218. test ! -s conftest.err
  5219. } && test -s conftest$ac_exeext &&
  5220. $as_test_x conftest$ac_exeext; then
  5221. ac_cv_lib_nsl_gethostent=yes
  5222. else
  5223. echo "$as_me: failed program was:" >&5
  5224. sed 's/^/| /' conftest.$ac_ext >&5
  5225. ac_cv_lib_nsl_gethostent=no
  5226. fi
  5227. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5228. conftest$ac_exeext conftest.$ac_ext
  5229. LIBS=$ac_check_lib_save_LIBS
  5230. fi
  5231. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
  5232. echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6; }
  5233. if test $ac_cv_lib_nsl_gethostent = yes; then
  5234. cat >>confdefs.h <<_ACEOF
  5235. #define HAVE_LIBNSL 1
  5236. _ACEOF
  5237. LIBS="-lnsl $LIBS"
  5238. fi
  5239. # -- Functions --
  5240. { echo "$as_me:$LINENO: checking for pid_t" >&5
  5241. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  5242. if test "${ac_cv_type_pid_t+set}" = set; then
  5243. echo $ECHO_N "(cached) $ECHO_C" >&6
  5244. else
  5245. cat >conftest.$ac_ext <<_ACEOF
  5246. /* confdefs.h. */
  5247. _ACEOF
  5248. cat confdefs.h >>conftest.$ac_ext
  5249. cat >>conftest.$ac_ext <<_ACEOF
  5250. /* end confdefs.h. */
  5251. $ac_includes_default
  5252. typedef pid_t ac__type_new_;
  5253. int
  5254. main ()
  5255. {
  5256. if ((ac__type_new_ *) 0)
  5257. return 0;
  5258. if (sizeof (ac__type_new_))
  5259. return 0;
  5260. ;
  5261. return 0;
  5262. }
  5263. _ACEOF
  5264. rm -f conftest.$ac_objext
  5265. if { (ac_try="$ac_compile"
  5266. case "(($ac_try" in
  5267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5268. *) ac_try_echo=$ac_try;;
  5269. esac
  5270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5271. (eval "$ac_compile") 2>conftest.er1
  5272. ac_status=$?
  5273. grep -v '^ *+' conftest.er1 >conftest.err
  5274. rm -f conftest.er1
  5275. cat conftest.err >&5
  5276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5277. (exit $ac_status); } && {
  5278. test -z "$ac_c_werror_flag" ||
  5279. test ! -s conftest.err
  5280. } && test -s conftest.$ac_objext; then
  5281. ac_cv_type_pid_t=yes
  5282. else
  5283. echo "$as_me: failed program was:" >&5
  5284. sed 's/^/| /' conftest.$ac_ext >&5
  5285. ac_cv_type_pid_t=no
  5286. fi
  5287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5288. fi
  5289. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5290. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  5291. if test $ac_cv_type_pid_t = yes; then
  5292. :
  5293. else
  5294. cat >>confdefs.h <<_ACEOF
  5295. #define pid_t int
  5296. _ACEOF
  5297. fi
  5298. for ac_header in vfork.h
  5299. do
  5300. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5301. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5302. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5303. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5304. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5305. echo $ECHO_N "(cached) $ECHO_C" >&6
  5306. fi
  5307. ac_res=`eval echo '${'$as_ac_Header'}'`
  5308. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5309. echo "${ECHO_T}$ac_res" >&6; }
  5310. else
  5311. # Is the header compilable?
  5312. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5313. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5314. cat >conftest.$ac_ext <<_ACEOF
  5315. /* confdefs.h. */
  5316. _ACEOF
  5317. cat confdefs.h >>conftest.$ac_ext
  5318. cat >>conftest.$ac_ext <<_ACEOF
  5319. /* end confdefs.h. */
  5320. $ac_includes_default
  5321. #include <$ac_header>
  5322. _ACEOF
  5323. rm -f conftest.$ac_objext
  5324. if { (ac_try="$ac_compile"
  5325. case "(($ac_try" in
  5326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5327. *) ac_try_echo=$ac_try;;
  5328. esac
  5329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5330. (eval "$ac_compile") 2>conftest.er1
  5331. ac_status=$?
  5332. grep -v '^ *+' conftest.er1 >conftest.err
  5333. rm -f conftest.er1
  5334. cat conftest.err >&5
  5335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5336. (exit $ac_status); } && {
  5337. test -z "$ac_c_werror_flag" ||
  5338. test ! -s conftest.err
  5339. } && test -s conftest.$ac_objext; then
  5340. ac_header_compiler=yes
  5341. else
  5342. echo "$as_me: failed program was:" >&5
  5343. sed 's/^/| /' conftest.$ac_ext >&5
  5344. ac_header_compiler=no
  5345. fi
  5346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5347. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5348. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5349. # Is the header present?
  5350. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5351. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5352. cat >conftest.$ac_ext <<_ACEOF
  5353. /* confdefs.h. */
  5354. _ACEOF
  5355. cat confdefs.h >>conftest.$ac_ext
  5356. cat >>conftest.$ac_ext <<_ACEOF
  5357. /* end confdefs.h. */
  5358. #include <$ac_header>
  5359. _ACEOF
  5360. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5361. case "(($ac_try" in
  5362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5363. *) ac_try_echo=$ac_try;;
  5364. esac
  5365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5366. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5367. ac_status=$?
  5368. grep -v '^ *+' conftest.er1 >conftest.err
  5369. rm -f conftest.er1
  5370. cat conftest.err >&5
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); } >/dev/null && {
  5373. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5374. test ! -s conftest.err
  5375. }; then
  5376. ac_header_preproc=yes
  5377. else
  5378. echo "$as_me: failed program was:" >&5
  5379. sed 's/^/| /' conftest.$ac_ext >&5
  5380. ac_header_preproc=no
  5381. fi
  5382. rm -f conftest.err conftest.$ac_ext
  5383. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5384. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5385. # So? What about this header?
  5386. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5387. yes:no: )
  5388. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5389. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5390. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5391. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5392. ac_header_preproc=yes
  5393. ;;
  5394. no:yes:* )
  5395. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5396. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5397. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5398. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5399. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5400. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5401. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5402. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5403. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5404. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5405. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5406. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5407. ;;
  5408. esac
  5409. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5410. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5411. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5412. echo $ECHO_N "(cached) $ECHO_C" >&6
  5413. else
  5414. eval "$as_ac_Header=\$ac_header_preproc"
  5415. fi
  5416. ac_res=`eval echo '${'$as_ac_Header'}'`
  5417. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5418. echo "${ECHO_T}$ac_res" >&6; }
  5419. fi
  5420. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5421. cat >>confdefs.h <<_ACEOF
  5422. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5423. _ACEOF
  5424. fi
  5425. done
  5426. for ac_func in fork vfork
  5427. do
  5428. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5429. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5430. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5431. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5432. echo $ECHO_N "(cached) $ECHO_C" >&6
  5433. else
  5434. cat >conftest.$ac_ext <<_ACEOF
  5435. /* confdefs.h. */
  5436. _ACEOF
  5437. cat confdefs.h >>conftest.$ac_ext
  5438. cat >>conftest.$ac_ext <<_ACEOF
  5439. /* end confdefs.h. */
  5440. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5441. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5442. #define $ac_func innocuous_$ac_func
  5443. /* System header to define __stub macros and hopefully few prototypes,
  5444. which can conflict with char $ac_func (); below.
  5445. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5446. <limits.h> exists even on freestanding compilers. */
  5447. #ifdef __STDC__
  5448. # include <limits.h>
  5449. #else
  5450. # include <assert.h>
  5451. #endif
  5452. #undef $ac_func
  5453. /* Override any GCC internal prototype to avoid an error.
  5454. Use char because int might match the return type of a GCC
  5455. builtin and then its argument prototype would still apply. */
  5456. #ifdef __cplusplus
  5457. extern "C"
  5458. #endif
  5459. char $ac_func ();
  5460. /* The GNU C library defines this for functions which it implements
  5461. to always fail with ENOSYS. Some functions are actually named
  5462. something starting with __ and the normal name is an alias. */
  5463. #if defined __stub_$ac_func || defined __stub___$ac_func
  5464. choke me
  5465. #endif
  5466. int
  5467. main ()
  5468. {
  5469. return $ac_func ();
  5470. ;
  5471. return 0;
  5472. }
  5473. _ACEOF
  5474. rm -f conftest.$ac_objext conftest$ac_exeext
  5475. if { (ac_try="$ac_link"
  5476. case "(($ac_try" in
  5477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5478. *) ac_try_echo=$ac_try;;
  5479. esac
  5480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5481. (eval "$ac_link") 2>conftest.er1
  5482. ac_status=$?
  5483. grep -v '^ *+' conftest.er1 >conftest.err
  5484. rm -f conftest.er1
  5485. cat conftest.err >&5
  5486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5487. (exit $ac_status); } && {
  5488. test -z "$ac_c_werror_flag" ||
  5489. test ! -s conftest.err
  5490. } && test -s conftest$ac_exeext &&
  5491. $as_test_x conftest$ac_exeext; then
  5492. eval "$as_ac_var=yes"
  5493. else
  5494. echo "$as_me: failed program was:" >&5
  5495. sed 's/^/| /' conftest.$ac_ext >&5
  5496. eval "$as_ac_var=no"
  5497. fi
  5498. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5499. conftest$ac_exeext conftest.$ac_ext
  5500. fi
  5501. ac_res=`eval echo '${'$as_ac_var'}'`
  5502. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5503. echo "${ECHO_T}$ac_res" >&6; }
  5504. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5505. cat >>confdefs.h <<_ACEOF
  5506. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5507. _ACEOF
  5508. fi
  5509. done
  5510. if test "x$ac_cv_func_fork" = xyes; then
  5511. { echo "$as_me:$LINENO: checking for working fork" >&5
  5512. echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
  5513. if test "${ac_cv_func_fork_works+set}" = set; then
  5514. echo $ECHO_N "(cached) $ECHO_C" >&6
  5515. else
  5516. if test "$cross_compiling" = yes; then
  5517. ac_cv_func_fork_works=cross
  5518. else
  5519. cat >conftest.$ac_ext <<_ACEOF
  5520. /* confdefs.h. */
  5521. _ACEOF
  5522. cat confdefs.h >>conftest.$ac_ext
  5523. cat >>conftest.$ac_ext <<_ACEOF
  5524. /* end confdefs.h. */
  5525. $ac_includes_default
  5526. int
  5527. main ()
  5528. {
  5529. /* By Ruediger Kuhlmann. */
  5530. return fork () < 0;
  5531. ;
  5532. return 0;
  5533. }
  5534. _ACEOF
  5535. rm -f conftest$ac_exeext
  5536. if { (ac_try="$ac_link"
  5537. case "(($ac_try" in
  5538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5539. *) ac_try_echo=$ac_try;;
  5540. esac
  5541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5542. (eval "$ac_link") 2>&5
  5543. ac_status=$?
  5544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5545. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5546. { (case "(($ac_try" in
  5547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5548. *) ac_try_echo=$ac_try;;
  5549. esac
  5550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5551. (eval "$ac_try") 2>&5
  5552. ac_status=$?
  5553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5554. (exit $ac_status); }; }; then
  5555. ac_cv_func_fork_works=yes
  5556. else
  5557. echo "$as_me: program exited with status $ac_status" >&5
  5558. echo "$as_me: failed program was:" >&5
  5559. sed 's/^/| /' conftest.$ac_ext >&5
  5560. ( exit $ac_status )
  5561. ac_cv_func_fork_works=no
  5562. fi
  5563. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5564. fi
  5565. fi
  5566. { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  5567. echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
  5568. else
  5569. ac_cv_func_fork_works=$ac_cv_func_fork
  5570. fi
  5571. if test "x$ac_cv_func_fork_works" = xcross; then
  5572. case $host in
  5573. *-*-amigaos* | *-*-msdosdjgpp*)
  5574. # Override, as these systems have only a dummy fork() stub
  5575. ac_cv_func_fork_works=no
  5576. ;;
  5577. *)
  5578. ac_cv_func_fork_works=yes
  5579. ;;
  5580. esac
  5581. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5582. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5583. fi
  5584. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5585. if test "x$ac_cv_func_vfork" = xyes; then
  5586. { echo "$as_me:$LINENO: checking for working vfork" >&5
  5587. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
  5588. if test "${ac_cv_func_vfork_works+set}" = set; then
  5589. echo $ECHO_N "(cached) $ECHO_C" >&6
  5590. else
  5591. if test "$cross_compiling" = yes; then
  5592. ac_cv_func_vfork_works=cross
  5593. else
  5594. cat >conftest.$ac_ext <<_ACEOF
  5595. /* confdefs.h. */
  5596. _ACEOF
  5597. cat confdefs.h >>conftest.$ac_ext
  5598. cat >>conftest.$ac_ext <<_ACEOF
  5599. /* end confdefs.h. */
  5600. /* Thanks to Paul Eggert for this test. */
  5601. $ac_includes_default
  5602. #include <sys/wait.h>
  5603. #ifdef HAVE_VFORK_H
  5604. # include <vfork.h>
  5605. #endif
  5606. /* On some sparc systems, changes by the child to local and incoming
  5607. argument registers are propagated back to the parent. The compiler
  5608. is told about this with #include <vfork.h>, but some compilers
  5609. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5610. static variable whose address is put into a register that is
  5611. clobbered by the vfork. */
  5612. static void
  5613. #ifdef __cplusplus
  5614. sparc_address_test (int arg)
  5615. # else
  5616. sparc_address_test (arg) int arg;
  5617. #endif
  5618. {
  5619. static pid_t child;
  5620. if (!child) {
  5621. child = vfork ();
  5622. if (child < 0) {
  5623. perror ("vfork");
  5624. _exit(2);
  5625. }
  5626. if (!child) {
  5627. arg = getpid();
  5628. write(-1, "", 0);
  5629. _exit (arg);
  5630. }
  5631. }
  5632. }
  5633. int
  5634. main ()
  5635. {
  5636. pid_t parent = getpid ();
  5637. pid_t child;
  5638. sparc_address_test (0);
  5639. child = vfork ();
  5640. if (child == 0) {
  5641. /* Here is another test for sparc vfork register problems. This
  5642. test uses lots of local variables, at least as many local
  5643. variables as main has allocated so far including compiler
  5644. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5645. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5646. reuse the register of parent for one of the local variables,
  5647. since it will think that parent can't possibly be used any more
  5648. in this routine. Assigning to the local variable will thus
  5649. munge parent in the parent process. */
  5650. pid_t
  5651. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5652. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5653. /* Convince the compiler that p..p7 are live; otherwise, it might
  5654. use the same hardware register for all 8 local variables. */
  5655. if (p != p1 || p != p2 || p != p3 || p != p4
  5656. || p != p5 || p != p6 || p != p7)
  5657. _exit(1);
  5658. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5659. from child file descriptors. If the child closes a descriptor
  5660. before it execs or exits, this munges the parent's descriptor
  5661. as well. Test for this by closing stdout in the child. */
  5662. _exit(close(fileno(stdout)) != 0);
  5663. } else {
  5664. int status;
  5665. struct stat st;
  5666. while (wait(&status) != child)
  5667. ;
  5668. return (
  5669. /* Was there some problem with vforking? */
  5670. child < 0
  5671. /* Did the child fail? (This shouldn't happen.) */
  5672. || status
  5673. /* Did the vfork/compiler bug occur? */
  5674. || parent != getpid()
  5675. /* Did the file descriptor bug occur? */
  5676. || fstat(fileno(stdout), &st) != 0
  5677. );
  5678. }
  5679. }
  5680. _ACEOF
  5681. rm -f conftest$ac_exeext
  5682. if { (ac_try="$ac_link"
  5683. case "(($ac_try" in
  5684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5685. *) ac_try_echo=$ac_try;;
  5686. esac
  5687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5688. (eval "$ac_link") 2>&5
  5689. ac_status=$?
  5690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5691. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5692. { (case "(($ac_try" in
  5693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5694. *) ac_try_echo=$ac_try;;
  5695. esac
  5696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5697. (eval "$ac_try") 2>&5
  5698. ac_status=$?
  5699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5700. (exit $ac_status); }; }; then
  5701. ac_cv_func_vfork_works=yes
  5702. else
  5703. echo "$as_me: program exited with status $ac_status" >&5
  5704. echo "$as_me: failed program was:" >&5
  5705. sed 's/^/| /' conftest.$ac_ext >&5
  5706. ( exit $ac_status )
  5707. ac_cv_func_vfork_works=no
  5708. fi
  5709. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5710. fi
  5711. fi
  5712. { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  5713. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
  5714. fi;
  5715. if test "x$ac_cv_func_fork_works" = xcross; then
  5716. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5717. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5718. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5719. fi
  5720. if test "x$ac_cv_func_vfork_works" = xyes; then
  5721. cat >>confdefs.h <<\_ACEOF
  5722. #define HAVE_WORKING_VFORK 1
  5723. _ACEOF
  5724. else
  5725. cat >>confdefs.h <<\_ACEOF
  5726. #define vfork fork
  5727. _ACEOF
  5728. fi
  5729. if test "x$ac_cv_func_fork_works" = xyes; then
  5730. cat >>confdefs.h <<\_ACEOF
  5731. #define HAVE_WORKING_FORK 1
  5732. _ACEOF
  5733. fi
  5734. for ac_func in strftime
  5735. do
  5736. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5737. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5738. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5739. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5740. echo $ECHO_N "(cached) $ECHO_C" >&6
  5741. else
  5742. cat >conftest.$ac_ext <<_ACEOF
  5743. /* confdefs.h. */
  5744. _ACEOF
  5745. cat confdefs.h >>conftest.$ac_ext
  5746. cat >>conftest.$ac_ext <<_ACEOF
  5747. /* end confdefs.h. */
  5748. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5749. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5750. #define $ac_func innocuous_$ac_func
  5751. /* System header to define __stub macros and hopefully few prototypes,
  5752. which can conflict with char $ac_func (); below.
  5753. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5754. <limits.h> exists even on freestanding compilers. */
  5755. #ifdef __STDC__
  5756. # include <limits.h>
  5757. #else
  5758. # include <assert.h>
  5759. #endif
  5760. #undef $ac_func
  5761. /* Override any GCC internal prototype to avoid an error.
  5762. Use char because int might match the return type of a GCC
  5763. builtin and then its argument prototype would still apply. */
  5764. #ifdef __cplusplus
  5765. extern "C"
  5766. #endif
  5767. char $ac_func ();
  5768. /* The GNU C library defines this for functions which it implements
  5769. to always fail with ENOSYS. Some functions are actually named
  5770. something starting with __ and the normal name is an alias. */
  5771. #if defined __stub_$ac_func || defined __stub___$ac_func
  5772. choke me
  5773. #endif
  5774. int
  5775. main ()
  5776. {
  5777. return $ac_func ();
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. rm -f conftest.$ac_objext conftest$ac_exeext
  5783. if { (ac_try="$ac_link"
  5784. case "(($ac_try" in
  5785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5786. *) ac_try_echo=$ac_try;;
  5787. esac
  5788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5789. (eval "$ac_link") 2>conftest.er1
  5790. ac_status=$?
  5791. grep -v '^ *+' conftest.er1 >conftest.err
  5792. rm -f conftest.er1
  5793. cat conftest.err >&5
  5794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); } && {
  5796. test -z "$ac_c_werror_flag" ||
  5797. test ! -s conftest.err
  5798. } && test -s conftest$ac_exeext &&
  5799. $as_test_x conftest$ac_exeext; then
  5800. eval "$as_ac_var=yes"
  5801. else
  5802. echo "$as_me: failed program was:" >&5
  5803. sed 's/^/| /' conftest.$ac_ext >&5
  5804. eval "$as_ac_var=no"
  5805. fi
  5806. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5807. conftest$ac_exeext conftest.$ac_ext
  5808. fi
  5809. ac_res=`eval echo '${'$as_ac_var'}'`
  5810. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5811. echo "${ECHO_T}$ac_res" >&6; }
  5812. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5813. cat >>confdefs.h <<_ACEOF
  5814. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5815. _ACEOF
  5816. else
  5817. # strftime is in -lintl on SCO UNIX.
  5818. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  5819. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  5820. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  5821. echo $ECHO_N "(cached) $ECHO_C" >&6
  5822. else
  5823. ac_check_lib_save_LIBS=$LIBS
  5824. LIBS="-lintl $LIBS"
  5825. cat >conftest.$ac_ext <<_ACEOF
  5826. /* confdefs.h. */
  5827. _ACEOF
  5828. cat confdefs.h >>conftest.$ac_ext
  5829. cat >>conftest.$ac_ext <<_ACEOF
  5830. /* end confdefs.h. */
  5831. /* Override any GCC internal prototype to avoid an error.
  5832. Use char because int might match the return type of a GCC
  5833. builtin and then its argument prototype would still apply. */
  5834. #ifdef __cplusplus
  5835. extern "C"
  5836. #endif
  5837. char strftime ();
  5838. int
  5839. main ()
  5840. {
  5841. return strftime ();
  5842. ;
  5843. return 0;
  5844. }
  5845. _ACEOF
  5846. rm -f conftest.$ac_objext conftest$ac_exeext
  5847. if { (ac_try="$ac_link"
  5848. case "(($ac_try" in
  5849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5850. *) ac_try_echo=$ac_try;;
  5851. esac
  5852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5853. (eval "$ac_link") 2>conftest.er1
  5854. ac_status=$?
  5855. grep -v '^ *+' conftest.er1 >conftest.err
  5856. rm -f conftest.er1
  5857. cat conftest.err >&5
  5858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5859. (exit $ac_status); } && {
  5860. test -z "$ac_c_werror_flag" ||
  5861. test ! -s conftest.err
  5862. } && test -s conftest$ac_exeext &&
  5863. $as_test_x conftest$ac_exeext; then
  5864. ac_cv_lib_intl_strftime=yes
  5865. else
  5866. echo "$as_me: failed program was:" >&5
  5867. sed 's/^/| /' conftest.$ac_ext >&5
  5868. ac_cv_lib_intl_strftime=no
  5869. fi
  5870. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5871. conftest$ac_exeext conftest.$ac_ext
  5872. LIBS=$ac_check_lib_save_LIBS
  5873. fi
  5874. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  5875. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  5876. if test $ac_cv_lib_intl_strftime = yes; then
  5877. cat >>confdefs.h <<\_ACEOF
  5878. #define HAVE_STRFTIME 1
  5879. _ACEOF
  5880. LIBS="-lintl $LIBS"
  5881. fi
  5882. fi
  5883. done
  5884. for ac_func in \
  5885. bind gethostbyaddr gethostbyname gethostname inet_ntoa \
  5886. setsid setsockopt socket strcasecmp waitpid
  5887. do
  5888. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5889. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5890. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5891. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5892. echo $ECHO_N "(cached) $ECHO_C" >&6
  5893. else
  5894. cat >conftest.$ac_ext <<_ACEOF
  5895. /* confdefs.h. */
  5896. _ACEOF
  5897. cat confdefs.h >>conftest.$ac_ext
  5898. cat >>conftest.$ac_ext <<_ACEOF
  5899. /* end confdefs.h. */
  5900. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5901. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5902. #define $ac_func innocuous_$ac_func
  5903. /* System header to define __stub macros and hopefully few prototypes,
  5904. which can conflict with char $ac_func (); below.
  5905. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5906. <limits.h> exists even on freestanding compilers. */
  5907. #ifdef __STDC__
  5908. # include <limits.h>
  5909. #else
  5910. # include <assert.h>
  5911. #endif
  5912. #undef $ac_func
  5913. /* Override any GCC internal prototype to avoid an error.
  5914. Use char because int might match the return type of a GCC
  5915. builtin and then its argument prototype would still apply. */
  5916. #ifdef __cplusplus
  5917. extern "C"
  5918. #endif
  5919. char $ac_func ();
  5920. /* The GNU C library defines this for functions which it implements
  5921. to always fail with ENOSYS. Some functions are actually named
  5922. something starting with __ and the normal name is an alias. */
  5923. #if defined __stub_$ac_func || defined __stub___$ac_func
  5924. choke me
  5925. #endif
  5926. int
  5927. main ()
  5928. {
  5929. return $ac_func ();
  5930. ;
  5931. return 0;
  5932. }
  5933. _ACEOF
  5934. rm -f conftest.$ac_objext conftest$ac_exeext
  5935. if { (ac_try="$ac_link"
  5936. case "(($ac_try" in
  5937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5938. *) ac_try_echo=$ac_try;;
  5939. esac
  5940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5941. (eval "$ac_link") 2>conftest.er1
  5942. ac_status=$?
  5943. grep -v '^ *+' conftest.er1 >conftest.err
  5944. rm -f conftest.er1
  5945. cat conftest.err >&5
  5946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5947. (exit $ac_status); } && {
  5948. test -z "$ac_c_werror_flag" ||
  5949. test ! -s conftest.err
  5950. } && test -s conftest$ac_exeext &&
  5951. $as_test_x conftest$ac_exeext; then
  5952. eval "$as_ac_var=yes"
  5953. else
  5954. echo "$as_me: failed program was:" >&5
  5955. sed 's/^/| /' conftest.$ac_ext >&5
  5956. eval "$as_ac_var=no"
  5957. fi
  5958. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5959. conftest$ac_exeext conftest.$ac_ext
  5960. fi
  5961. ac_res=`eval echo '${'$as_ac_var'}'`
  5962. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5963. echo "${ECHO_T}$ac_res" >&6; }
  5964. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5965. cat >>confdefs.h <<_ACEOF
  5966. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5967. _ACEOF
  5968. else
  5969. { { echo "$as_me:$LINENO: error: required function missing!" >&5
  5970. echo "$as_me: error: required function missing!" >&2;}
  5971. { (exit 1); exit 1; }; }
  5972. fi
  5973. done
  5974. for ac_func in getaddrinfo getnameinfo inet_aton isdigit sigaction snprintf \
  5975. vsnprintf strdup strlcpy strlcat strtok_r
  5976. do
  5977. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5978. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5979. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5980. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5981. echo $ECHO_N "(cached) $ECHO_C" >&6
  5982. else
  5983. cat >conftest.$ac_ext <<_ACEOF
  5984. /* confdefs.h. */
  5985. _ACEOF
  5986. cat confdefs.h >>conftest.$ac_ext
  5987. cat >>conftest.$ac_ext <<_ACEOF
  5988. /* end confdefs.h. */
  5989. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5990. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5991. #define $ac_func innocuous_$ac_func
  5992. /* System header to define __stub macros and hopefully few prototypes,
  5993. which can conflict with char $ac_func (); below.
  5994. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5995. <limits.h> exists even on freestanding compilers. */
  5996. #ifdef __STDC__
  5997. # include <limits.h>
  5998. #else
  5999. # include <assert.h>
  6000. #endif
  6001. #undef $ac_func
  6002. /* Override any GCC internal prototype to avoid an error.
  6003. Use char because int might match the return type of a GCC
  6004. builtin and then its argument prototype would still apply. */
  6005. #ifdef __cplusplus
  6006. extern "C"
  6007. #endif
  6008. char $ac_func ();
  6009. /* The GNU C library defines this for functions which it implements
  6010. to always fail with ENOSYS. Some functions are actually named
  6011. something starting with __ and the normal name is an alias. */
  6012. #if defined __stub_$ac_func || defined __stub___$ac_func
  6013. choke me
  6014. #endif
  6015. int
  6016. main ()
  6017. {
  6018. return $ac_func ();
  6019. ;
  6020. return 0;
  6021. }
  6022. _ACEOF
  6023. rm -f conftest.$ac_objext conftest$ac_exeext
  6024. if { (ac_try="$ac_link"
  6025. case "(($ac_try" in
  6026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6027. *) ac_try_echo=$ac_try;;
  6028. esac
  6029. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6030. (eval "$ac_link") 2>conftest.er1
  6031. ac_status=$?
  6032. grep -v '^ *+' conftest.er1 >conftest.err
  6033. rm -f conftest.er1
  6034. cat conftest.err >&5
  6035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6036. (exit $ac_status); } && {
  6037. test -z "$ac_c_werror_flag" ||
  6038. test ! -s conftest.err
  6039. } && test -s conftest$ac_exeext &&
  6040. $as_test_x conftest$ac_exeext; then
  6041. eval "$as_ac_var=yes"
  6042. else
  6043. echo "$as_me: failed program was:" >&5
  6044. sed 's/^/| /' conftest.$ac_ext >&5
  6045. eval "$as_ac_var=no"
  6046. fi
  6047. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6048. conftest$ac_exeext conftest.$ac_ext
  6049. fi
  6050. ac_res=`eval echo '${'$as_ac_var'}'`
  6051. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6052. echo "${ECHO_T}$ac_res" >&6; }
  6053. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6054. cat >>confdefs.h <<_ACEOF
  6055. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6056. _ACEOF
  6057. fi
  6058. done
  6059. # -- Configuration options --
  6060. # use syslog?
  6061. x_syslog_on=no
  6062. # Check whether --with-syslog was given.
  6063. if test "${with_syslog+set}" = set; then
  6064. withval=$with_syslog; if test "$withval" != "no"; then
  6065. if test "$withval" != "yes"; then
  6066. CFLAGS="-I$withval/include $CFLAGS"
  6067. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6068. LDFLAGS="-L$withval/lib $LDFLAGS"
  6069. fi
  6070. { echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  6071. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6; }
  6072. if test "${ac_cv_lib_be_syslog+set}" = set; then
  6073. echo $ECHO_N "(cached) $ECHO_C" >&6
  6074. else
  6075. ac_check_lib_save_LIBS=$LIBS
  6076. LIBS="-lbe $LIBS"
  6077. cat >conftest.$ac_ext <<_ACEOF
  6078. /* confdefs.h. */
  6079. _ACEOF
  6080. cat confdefs.h >>conftest.$ac_ext
  6081. cat >>conftest.$ac_ext <<_ACEOF
  6082. /* end confdefs.h. */
  6083. /* Override any GCC internal prototype to avoid an error.
  6084. Use char because int might match the return type of a GCC
  6085. builtin and then its argument prototype would still apply. */
  6086. #ifdef __cplusplus
  6087. extern "C"
  6088. #endif
  6089. char syslog ();
  6090. int
  6091. main ()
  6092. {
  6093. return syslog ();
  6094. ;
  6095. return 0;
  6096. }
  6097. _ACEOF
  6098. rm -f conftest.$ac_objext conftest$ac_exeext
  6099. if { (ac_try="$ac_link"
  6100. case "(($ac_try" in
  6101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6102. *) ac_try_echo=$ac_try;;
  6103. esac
  6104. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6105. (eval "$ac_link") 2>conftest.er1
  6106. ac_status=$?
  6107. grep -v '^ *+' conftest.er1 >conftest.err
  6108. rm -f conftest.er1
  6109. cat conftest.err >&5
  6110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6111. (exit $ac_status); } && {
  6112. test -z "$ac_c_werror_flag" ||
  6113. test ! -s conftest.err
  6114. } && test -s conftest$ac_exeext &&
  6115. $as_test_x conftest$ac_exeext; then
  6116. ac_cv_lib_be_syslog=yes
  6117. else
  6118. echo "$as_me: failed program was:" >&5
  6119. sed 's/^/| /' conftest.$ac_ext >&5
  6120. ac_cv_lib_be_syslog=no
  6121. fi
  6122. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6123. conftest$ac_exeext conftest.$ac_ext
  6124. LIBS=$ac_check_lib_save_LIBS
  6125. fi
  6126. { echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  6127. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6; }
  6128. if test $ac_cv_lib_be_syslog = yes; then
  6129. cat >>confdefs.h <<_ACEOF
  6130. #define HAVE_LIBBE 1
  6131. _ACEOF
  6132. LIBS="-lbe $LIBS"
  6133. fi
  6134. for ac_func in syslog
  6135. do
  6136. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6137. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6138. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6139. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6140. echo $ECHO_N "(cached) $ECHO_C" >&6
  6141. else
  6142. cat >conftest.$ac_ext <<_ACEOF
  6143. /* confdefs.h. */
  6144. _ACEOF
  6145. cat confdefs.h >>conftest.$ac_ext
  6146. cat >>conftest.$ac_ext <<_ACEOF
  6147. /* end confdefs.h. */
  6148. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6149. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6150. #define $ac_func innocuous_$ac_func
  6151. /* System header to define __stub macros and hopefully few prototypes,
  6152. which can conflict with char $ac_func (); below.
  6153. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6154. <limits.h> exists even on freestanding compilers. */
  6155. #ifdef __STDC__
  6156. # include <limits.h>
  6157. #else
  6158. # include <assert.h>
  6159. #endif
  6160. #undef $ac_func
  6161. /* Override any GCC internal prototype to avoid an error.
  6162. Use char because int might match the return type of a GCC
  6163. builtin and then its argument prototype would still apply. */
  6164. #ifdef __cplusplus
  6165. extern "C"
  6166. #endif
  6167. char $ac_func ();
  6168. /* The GNU C library defines this for functions which it implements
  6169. to always fail with ENOSYS. Some functions are actually named
  6170. something starting with __ and the normal name is an alias. */
  6171. #if defined __stub_$ac_func || defined __stub___$ac_func
  6172. choke me
  6173. #endif
  6174. int
  6175. main ()
  6176. {
  6177. return $ac_func ();
  6178. ;
  6179. return 0;
  6180. }
  6181. _ACEOF
  6182. rm -f conftest.$ac_objext conftest$ac_exeext
  6183. if { (ac_try="$ac_link"
  6184. case "(($ac_try" in
  6185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6186. *) ac_try_echo=$ac_try;;
  6187. esac
  6188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6189. (eval "$ac_link") 2>conftest.er1
  6190. ac_status=$?
  6191. grep -v '^ *+' conftest.er1 >conftest.err
  6192. rm -f conftest.er1
  6193. cat conftest.err >&5
  6194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6195. (exit $ac_status); } && {
  6196. test -z "$ac_c_werror_flag" ||
  6197. test ! -s conftest.err
  6198. } && test -s conftest$ac_exeext &&
  6199. $as_test_x conftest$ac_exeext; then
  6200. eval "$as_ac_var=yes"
  6201. else
  6202. echo "$as_me: failed program was:" >&5
  6203. sed 's/^/| /' conftest.$ac_ext >&5
  6204. eval "$as_ac_var=no"
  6205. fi
  6206. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6207. conftest$ac_exeext conftest.$ac_ext
  6208. fi
  6209. ac_res=`eval echo '${'$as_ac_var'}'`
  6210. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6211. echo "${ECHO_T}$ac_res" >&6; }
  6212. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6213. cat >>confdefs.h <<_ACEOF
  6214. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6215. _ACEOF
  6216. x_syslog_on=yes
  6217. else
  6218. { { echo "$as_me:$LINENO: error: Can't enable syslog!" >&5
  6219. echo "$as_me: error: Can't enable syslog!" >&2;}
  6220. { (exit 1); exit 1; }; }
  6221. fi
  6222. done
  6223. fi
  6224. else
  6225. { echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  6226. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6; }
  6227. if test "${ac_cv_lib_be_syslog+set}" = set; then
  6228. echo $ECHO_N "(cached) $ECHO_C" >&6
  6229. else
  6230. ac_check_lib_save_LIBS=$LIBS
  6231. LIBS="-lbe $LIBS"
  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. /* Override any GCC internal prototype to avoid an error.
  6239. Use char because int might match the return type of a GCC
  6240. builtin and then its argument prototype would still apply. */
  6241. #ifdef __cplusplus
  6242. extern "C"
  6243. #endif
  6244. char syslog ();
  6245. int
  6246. main ()
  6247. {
  6248. return syslog ();
  6249. ;
  6250. return 0;
  6251. }
  6252. _ACEOF
  6253. rm -f conftest.$ac_objext conftest$ac_exeext
  6254. if { (ac_try="$ac_link"
  6255. case "(($ac_try" in
  6256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6257. *) ac_try_echo=$ac_try;;
  6258. esac
  6259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6260. (eval "$ac_link") 2>conftest.er1
  6261. ac_status=$?
  6262. grep -v '^ *+' conftest.er1 >conftest.err
  6263. rm -f conftest.er1
  6264. cat conftest.err >&5
  6265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6266. (exit $ac_status); } && {
  6267. test -z "$ac_c_werror_flag" ||
  6268. test ! -s conftest.err
  6269. } && test -s conftest$ac_exeext &&
  6270. $as_test_x conftest$ac_exeext; then
  6271. ac_cv_lib_be_syslog=yes
  6272. else
  6273. echo "$as_me: failed program was:" >&5
  6274. sed 's/^/| /' conftest.$ac_ext >&5
  6275. ac_cv_lib_be_syslog=no
  6276. fi
  6277. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6278. conftest$ac_exeext conftest.$ac_ext
  6279. LIBS=$ac_check_lib_save_LIBS
  6280. fi
  6281. { echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  6282. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6; }
  6283. if test $ac_cv_lib_be_syslog = yes; then
  6284. cat >>confdefs.h <<_ACEOF
  6285. #define HAVE_LIBBE 1
  6286. _ACEOF
  6287. LIBS="-lbe $LIBS"
  6288. fi
  6289. for ac_func in syslog
  6290. do
  6291. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6292. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6293. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6294. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6295. echo $ECHO_N "(cached) $ECHO_C" >&6
  6296. else
  6297. cat >conftest.$ac_ext <<_ACEOF
  6298. /* confdefs.h. */
  6299. _ACEOF
  6300. cat confdefs.h >>conftest.$ac_ext
  6301. cat >>conftest.$ac_ext <<_ACEOF
  6302. /* end confdefs.h. */
  6303. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6304. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6305. #define $ac_func innocuous_$ac_func
  6306. /* System header to define __stub macros and hopefully few prototypes,
  6307. which can conflict with char $ac_func (); below.
  6308. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6309. <limits.h> exists even on freestanding compilers. */
  6310. #ifdef __STDC__
  6311. # include <limits.h>
  6312. #else
  6313. # include <assert.h>
  6314. #endif
  6315. #undef $ac_func
  6316. /* Override any GCC internal prototype to avoid an error.
  6317. Use char because int might match the return type of a GCC
  6318. builtin and then its argument prototype would still apply. */
  6319. #ifdef __cplusplus
  6320. extern "C"
  6321. #endif
  6322. char $ac_func ();
  6323. /* The GNU C library defines this for functions which it implements
  6324. to always fail with ENOSYS. Some functions are actually named
  6325. something starting with __ and the normal name is an alias. */
  6326. #if defined __stub_$ac_func || defined __stub___$ac_func
  6327. choke me
  6328. #endif
  6329. int
  6330. main ()
  6331. {
  6332. return $ac_func ();
  6333. ;
  6334. return 0;
  6335. }
  6336. _ACEOF
  6337. rm -f conftest.$ac_objext conftest$ac_exeext
  6338. if { (ac_try="$ac_link"
  6339. case "(($ac_try" in
  6340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6341. *) ac_try_echo=$ac_try;;
  6342. esac
  6343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6344. (eval "$ac_link") 2>conftest.er1
  6345. ac_status=$?
  6346. grep -v '^ *+' conftest.er1 >conftest.err
  6347. rm -f conftest.er1
  6348. cat conftest.err >&5
  6349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6350. (exit $ac_status); } && {
  6351. test -z "$ac_c_werror_flag" ||
  6352. test ! -s conftest.err
  6353. } && test -s conftest$ac_exeext &&
  6354. $as_test_x conftest$ac_exeext; then
  6355. eval "$as_ac_var=yes"
  6356. else
  6357. echo "$as_me: failed program was:" >&5
  6358. sed 's/^/| /' conftest.$ac_ext >&5
  6359. eval "$as_ac_var=no"
  6360. fi
  6361. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6362. conftest$ac_exeext conftest.$ac_ext
  6363. fi
  6364. ac_res=`eval echo '${'$as_ac_var'}'`
  6365. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6366. echo "${ECHO_T}$ac_res" >&6; }
  6367. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6368. cat >>confdefs.h <<_ACEOF
  6369. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6370. _ACEOF
  6371. x_syslog_on=yes
  6372. fi
  6373. done
  6374. fi
  6375. if test "$x_syslog_on" = "yes"; then
  6376. cat >>confdefs.h <<\_ACEOF
  6377. #define SYSLOG 1
  6378. _ACEOF
  6379. for ac_header in syslog.h
  6380. do
  6381. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6382. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6383. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6384. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6385. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6386. echo $ECHO_N "(cached) $ECHO_C" >&6
  6387. fi
  6388. ac_res=`eval echo '${'$as_ac_Header'}'`
  6389. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6390. echo "${ECHO_T}$ac_res" >&6; }
  6391. else
  6392. # Is the header compilable?
  6393. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6394. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6395. cat >conftest.$ac_ext <<_ACEOF
  6396. /* confdefs.h. */
  6397. _ACEOF
  6398. cat confdefs.h >>conftest.$ac_ext
  6399. cat >>conftest.$ac_ext <<_ACEOF
  6400. /* end confdefs.h. */
  6401. $ac_includes_default
  6402. #include <$ac_header>
  6403. _ACEOF
  6404. rm -f conftest.$ac_objext
  6405. if { (ac_try="$ac_compile"
  6406. case "(($ac_try" in
  6407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6408. *) ac_try_echo=$ac_try;;
  6409. esac
  6410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6411. (eval "$ac_compile") 2>conftest.er1
  6412. ac_status=$?
  6413. grep -v '^ *+' conftest.er1 >conftest.err
  6414. rm -f conftest.er1
  6415. cat conftest.err >&5
  6416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6417. (exit $ac_status); } && {
  6418. test -z "$ac_c_werror_flag" ||
  6419. test ! -s conftest.err
  6420. } && test -s conftest.$ac_objext; then
  6421. ac_header_compiler=yes
  6422. else
  6423. echo "$as_me: failed program was:" >&5
  6424. sed 's/^/| /' conftest.$ac_ext >&5
  6425. ac_header_compiler=no
  6426. fi
  6427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6428. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6429. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6430. # Is the header present?
  6431. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6432. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6433. cat >conftest.$ac_ext <<_ACEOF
  6434. /* confdefs.h. */
  6435. _ACEOF
  6436. cat confdefs.h >>conftest.$ac_ext
  6437. cat >>conftest.$ac_ext <<_ACEOF
  6438. /* end confdefs.h. */
  6439. #include <$ac_header>
  6440. _ACEOF
  6441. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6442. case "(($ac_try" in
  6443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6444. *) ac_try_echo=$ac_try;;
  6445. esac
  6446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6447. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6448. ac_status=$?
  6449. grep -v '^ *+' conftest.er1 >conftest.err
  6450. rm -f conftest.er1
  6451. cat conftest.err >&5
  6452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6453. (exit $ac_status); } >/dev/null && {
  6454. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6455. test ! -s conftest.err
  6456. }; then
  6457. ac_header_preproc=yes
  6458. else
  6459. echo "$as_me: failed program was:" >&5
  6460. sed 's/^/| /' conftest.$ac_ext >&5
  6461. ac_header_preproc=no
  6462. fi
  6463. rm -f conftest.err conftest.$ac_ext
  6464. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6465. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6466. # So? What about this header?
  6467. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6468. yes:no: )
  6469. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6470. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6471. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6472. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6473. ac_header_preproc=yes
  6474. ;;
  6475. no:yes:* )
  6476. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6477. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6478. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6479. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6480. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6481. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6482. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6483. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6484. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6485. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6486. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6487. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6488. ;;
  6489. esac
  6490. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6491. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6492. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6493. echo $ECHO_N "(cached) $ECHO_C" >&6
  6494. else
  6495. eval "$as_ac_Header=\$ac_header_preproc"
  6496. fi
  6497. ac_res=`eval echo '${'$as_ac_Header'}'`
  6498. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6499. echo "${ECHO_T}$ac_res" >&6; }
  6500. fi
  6501. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6502. cat >>confdefs.h <<_ACEOF
  6503. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6504. _ACEOF
  6505. else
  6506. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6507. echo "$as_me: error: required C header missing!" >&2;}
  6508. { (exit 1); exit 1; }; }
  6509. fi
  6510. done
  6511. fi
  6512. # use zlib compression?
  6513. x_zlib_on=no
  6514. # Check whether --with-zlib was given.
  6515. if test "${with_zlib+set}" = set; then
  6516. withval=$with_zlib; if test "$withval" != "no"; then
  6517. if test "$withval" != "yes"; then
  6518. CFLAGS="-I$withval/include $CFLAGS"
  6519. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6520. LDFLAGS="-L$withval/lib $LDFLAGS"
  6521. fi
  6522. { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6523. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
  6524. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6525. echo $ECHO_N "(cached) $ECHO_C" >&6
  6526. else
  6527. ac_check_lib_save_LIBS=$LIBS
  6528. LIBS="-lz $LIBS"
  6529. cat >conftest.$ac_ext <<_ACEOF
  6530. /* confdefs.h. */
  6531. _ACEOF
  6532. cat confdefs.h >>conftest.$ac_ext
  6533. cat >>conftest.$ac_ext <<_ACEOF
  6534. /* end confdefs.h. */
  6535. /* Override any GCC internal prototype to avoid an error.
  6536. Use char because int might match the return type of a GCC
  6537. builtin and then its argument prototype would still apply. */
  6538. #ifdef __cplusplus
  6539. extern "C"
  6540. #endif
  6541. char deflate ();
  6542. int
  6543. main ()
  6544. {
  6545. return deflate ();
  6546. ;
  6547. return 0;
  6548. }
  6549. _ACEOF
  6550. rm -f conftest.$ac_objext conftest$ac_exeext
  6551. if { (ac_try="$ac_link"
  6552. case "(($ac_try" in
  6553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6554. *) ac_try_echo=$ac_try;;
  6555. esac
  6556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6557. (eval "$ac_link") 2>conftest.er1
  6558. ac_status=$?
  6559. grep -v '^ *+' conftest.er1 >conftest.err
  6560. rm -f conftest.er1
  6561. cat conftest.err >&5
  6562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6563. (exit $ac_status); } && {
  6564. test -z "$ac_c_werror_flag" ||
  6565. test ! -s conftest.err
  6566. } && test -s conftest$ac_exeext &&
  6567. $as_test_x conftest$ac_exeext; then
  6568. ac_cv_lib_z_deflate=yes
  6569. else
  6570. echo "$as_me: failed program was:" >&5
  6571. sed 's/^/| /' conftest.$ac_ext >&5
  6572. ac_cv_lib_z_deflate=no
  6573. fi
  6574. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6575. conftest$ac_exeext conftest.$ac_ext
  6576. LIBS=$ac_check_lib_save_LIBS
  6577. fi
  6578. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6579. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
  6580. if test $ac_cv_lib_z_deflate = yes; then
  6581. cat >>confdefs.h <<_ACEOF
  6582. #define HAVE_LIBZ 1
  6583. _ACEOF
  6584. LIBS="-lz $LIBS"
  6585. fi
  6586. for ac_func in deflate
  6587. do
  6588. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6589. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6590. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6591. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6592. echo $ECHO_N "(cached) $ECHO_C" >&6
  6593. else
  6594. cat >conftest.$ac_ext <<_ACEOF
  6595. /* confdefs.h. */
  6596. _ACEOF
  6597. cat confdefs.h >>conftest.$ac_ext
  6598. cat >>conftest.$ac_ext <<_ACEOF
  6599. /* end confdefs.h. */
  6600. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6601. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6602. #define $ac_func innocuous_$ac_func
  6603. /* System header to define __stub macros and hopefully few prototypes,
  6604. which can conflict with char $ac_func (); below.
  6605. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6606. <limits.h> exists even on freestanding compilers. */
  6607. #ifdef __STDC__
  6608. # include <limits.h>
  6609. #else
  6610. # include <assert.h>
  6611. #endif
  6612. #undef $ac_func
  6613. /* Override any GCC internal prototype to avoid an error.
  6614. Use char because int might match the return type of a GCC
  6615. builtin and then its argument prototype would still apply. */
  6616. #ifdef __cplusplus
  6617. extern "C"
  6618. #endif
  6619. char $ac_func ();
  6620. /* The GNU C library defines this for functions which it implements
  6621. to always fail with ENOSYS. Some functions are actually named
  6622. something starting with __ and the normal name is an alias. */
  6623. #if defined __stub_$ac_func || defined __stub___$ac_func
  6624. choke me
  6625. #endif
  6626. int
  6627. main ()
  6628. {
  6629. return $ac_func ();
  6630. ;
  6631. return 0;
  6632. }
  6633. _ACEOF
  6634. rm -f conftest.$ac_objext conftest$ac_exeext
  6635. if { (ac_try="$ac_link"
  6636. case "(($ac_try" in
  6637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6638. *) ac_try_echo=$ac_try;;
  6639. esac
  6640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6641. (eval "$ac_link") 2>conftest.er1
  6642. ac_status=$?
  6643. grep -v '^ *+' conftest.er1 >conftest.err
  6644. rm -f conftest.er1
  6645. cat conftest.err >&5
  6646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6647. (exit $ac_status); } && {
  6648. test -z "$ac_c_werror_flag" ||
  6649. test ! -s conftest.err
  6650. } && test -s conftest$ac_exeext &&
  6651. $as_test_x conftest$ac_exeext; then
  6652. eval "$as_ac_var=yes"
  6653. else
  6654. echo "$as_me: failed program was:" >&5
  6655. sed 's/^/| /' conftest.$ac_ext >&5
  6656. eval "$as_ac_var=no"
  6657. fi
  6658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6659. conftest$ac_exeext conftest.$ac_ext
  6660. fi
  6661. ac_res=`eval echo '${'$as_ac_var'}'`
  6662. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6663. echo "${ECHO_T}$ac_res" >&6; }
  6664. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6665. cat >>confdefs.h <<_ACEOF
  6666. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6667. _ACEOF
  6668. x_zlib_on=yes
  6669. else
  6670. { { echo "$as_me:$LINENO: error: Can't enable zlib!" >&5
  6671. echo "$as_me: error: Can't enable zlib!" >&2;}
  6672. { (exit 1); exit 1; }; }
  6673. fi
  6674. done
  6675. fi
  6676. else
  6677. { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6678. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
  6679. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6680. echo $ECHO_N "(cached) $ECHO_C" >&6
  6681. else
  6682. ac_check_lib_save_LIBS=$LIBS
  6683. LIBS="-lz $LIBS"
  6684. cat >conftest.$ac_ext <<_ACEOF
  6685. /* confdefs.h. */
  6686. _ACEOF
  6687. cat confdefs.h >>conftest.$ac_ext
  6688. cat >>conftest.$ac_ext <<_ACEOF
  6689. /* end confdefs.h. */
  6690. /* Override any GCC internal prototype to avoid an error.
  6691. Use char because int might match the return type of a GCC
  6692. builtin and then its argument prototype would still apply. */
  6693. #ifdef __cplusplus
  6694. extern "C"
  6695. #endif
  6696. char deflate ();
  6697. int
  6698. main ()
  6699. {
  6700. return deflate ();
  6701. ;
  6702. return 0;
  6703. }
  6704. _ACEOF
  6705. rm -f conftest.$ac_objext conftest$ac_exeext
  6706. if { (ac_try="$ac_link"
  6707. case "(($ac_try" in
  6708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6709. *) ac_try_echo=$ac_try;;
  6710. esac
  6711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6712. (eval "$ac_link") 2>conftest.er1
  6713. ac_status=$?
  6714. grep -v '^ *+' conftest.er1 >conftest.err
  6715. rm -f conftest.er1
  6716. cat conftest.err >&5
  6717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6718. (exit $ac_status); } && {
  6719. test -z "$ac_c_werror_flag" ||
  6720. test ! -s conftest.err
  6721. } && test -s conftest$ac_exeext &&
  6722. $as_test_x conftest$ac_exeext; then
  6723. ac_cv_lib_z_deflate=yes
  6724. else
  6725. echo "$as_me: failed program was:" >&5
  6726. sed 's/^/| /' conftest.$ac_ext >&5
  6727. ac_cv_lib_z_deflate=no
  6728. fi
  6729. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6730. conftest$ac_exeext conftest.$ac_ext
  6731. LIBS=$ac_check_lib_save_LIBS
  6732. fi
  6733. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6734. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
  6735. if test $ac_cv_lib_z_deflate = yes; then
  6736. cat >>confdefs.h <<_ACEOF
  6737. #define HAVE_LIBZ 1
  6738. _ACEOF
  6739. LIBS="-lz $LIBS"
  6740. fi
  6741. for ac_func in deflate
  6742. do
  6743. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6744. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6745. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6746. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6747. echo $ECHO_N "(cached) $ECHO_C" >&6
  6748. else
  6749. cat >conftest.$ac_ext <<_ACEOF
  6750. /* confdefs.h. */
  6751. _ACEOF
  6752. cat confdefs.h >>conftest.$ac_ext
  6753. cat >>conftest.$ac_ext <<_ACEOF
  6754. /* end confdefs.h. */
  6755. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6756. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6757. #define $ac_func innocuous_$ac_func
  6758. /* System header to define __stub macros and hopefully few prototypes,
  6759. which can conflict with char $ac_func (); below.
  6760. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6761. <limits.h> exists even on freestanding compilers. */
  6762. #ifdef __STDC__
  6763. # include <limits.h>
  6764. #else
  6765. # include <assert.h>
  6766. #endif
  6767. #undef $ac_func
  6768. /* Override any GCC internal prototype to avoid an error.
  6769. Use char because int might match the return type of a GCC
  6770. builtin and then its argument prototype would still apply. */
  6771. #ifdef __cplusplus
  6772. extern "C"
  6773. #endif
  6774. char $ac_func ();
  6775. /* The GNU C library defines this for functions which it implements
  6776. to always fail with ENOSYS. Some functions are actually named
  6777. something starting with __ and the normal name is an alias. */
  6778. #if defined __stub_$ac_func || defined __stub___$ac_func
  6779. choke me
  6780. #endif
  6781. int
  6782. main ()
  6783. {
  6784. return $ac_func ();
  6785. ;
  6786. return 0;
  6787. }
  6788. _ACEOF
  6789. rm -f conftest.$ac_objext conftest$ac_exeext
  6790. if { (ac_try="$ac_link"
  6791. case "(($ac_try" in
  6792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6793. *) ac_try_echo=$ac_try;;
  6794. esac
  6795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6796. (eval "$ac_link") 2>conftest.er1
  6797. ac_status=$?
  6798. grep -v '^ *+' conftest.er1 >conftest.err
  6799. rm -f conftest.er1
  6800. cat conftest.err >&5
  6801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6802. (exit $ac_status); } && {
  6803. test -z "$ac_c_werror_flag" ||
  6804. test ! -s conftest.err
  6805. } && test -s conftest$ac_exeext &&
  6806. $as_test_x conftest$ac_exeext; then
  6807. eval "$as_ac_var=yes"
  6808. else
  6809. echo "$as_me: failed program was:" >&5
  6810. sed 's/^/| /' conftest.$ac_ext >&5
  6811. eval "$as_ac_var=no"
  6812. fi
  6813. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6814. conftest$ac_exeext conftest.$ac_ext
  6815. fi
  6816. ac_res=`eval echo '${'$as_ac_var'}'`
  6817. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6818. echo "${ECHO_T}$ac_res" >&6; }
  6819. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6820. cat >>confdefs.h <<_ACEOF
  6821. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6822. _ACEOF
  6823. x_zlib_on=yes
  6824. fi
  6825. done
  6826. fi
  6827. if test "$x_zlib_on" = "yes"; then
  6828. cat >>confdefs.h <<\_ACEOF
  6829. #define ZLIB 1
  6830. _ACEOF
  6831. for ac_header in zlib.h
  6832. do
  6833. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6834. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6835. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6836. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6837. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6838. echo $ECHO_N "(cached) $ECHO_C" >&6
  6839. fi
  6840. ac_res=`eval echo '${'$as_ac_Header'}'`
  6841. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6842. echo "${ECHO_T}$ac_res" >&6; }
  6843. else
  6844. # Is the header compilable?
  6845. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6846. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6847. cat >conftest.$ac_ext <<_ACEOF
  6848. /* confdefs.h. */
  6849. _ACEOF
  6850. cat confdefs.h >>conftest.$ac_ext
  6851. cat >>conftest.$ac_ext <<_ACEOF
  6852. /* end confdefs.h. */
  6853. $ac_includes_default
  6854. #include <$ac_header>
  6855. _ACEOF
  6856. rm -f conftest.$ac_objext
  6857. if { (ac_try="$ac_compile"
  6858. case "(($ac_try" in
  6859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6860. *) ac_try_echo=$ac_try;;
  6861. esac
  6862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6863. (eval "$ac_compile") 2>conftest.er1
  6864. ac_status=$?
  6865. grep -v '^ *+' conftest.er1 >conftest.err
  6866. rm -f conftest.er1
  6867. cat conftest.err >&5
  6868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6869. (exit $ac_status); } && {
  6870. test -z "$ac_c_werror_flag" ||
  6871. test ! -s conftest.err
  6872. } && test -s conftest.$ac_objext; then
  6873. ac_header_compiler=yes
  6874. else
  6875. echo "$as_me: failed program was:" >&5
  6876. sed 's/^/| /' conftest.$ac_ext >&5
  6877. ac_header_compiler=no
  6878. fi
  6879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6880. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6881. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6882. # Is the header present?
  6883. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6884. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6885. cat >conftest.$ac_ext <<_ACEOF
  6886. /* confdefs.h. */
  6887. _ACEOF
  6888. cat confdefs.h >>conftest.$ac_ext
  6889. cat >>conftest.$ac_ext <<_ACEOF
  6890. /* end confdefs.h. */
  6891. #include <$ac_header>
  6892. _ACEOF
  6893. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6894. case "(($ac_try" in
  6895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6896. *) ac_try_echo=$ac_try;;
  6897. esac
  6898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6899. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6900. ac_status=$?
  6901. grep -v '^ *+' conftest.er1 >conftest.err
  6902. rm -f conftest.er1
  6903. cat conftest.err >&5
  6904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6905. (exit $ac_status); } >/dev/null && {
  6906. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6907. test ! -s conftest.err
  6908. }; then
  6909. ac_header_preproc=yes
  6910. else
  6911. echo "$as_me: failed program was:" >&5
  6912. sed 's/^/| /' conftest.$ac_ext >&5
  6913. ac_header_preproc=no
  6914. fi
  6915. rm -f conftest.err conftest.$ac_ext
  6916. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6917. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6918. # So? What about this header?
  6919. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6920. yes:no: )
  6921. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6922. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6923. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6924. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6925. ac_header_preproc=yes
  6926. ;;
  6927. no:yes:* )
  6928. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6929. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6930. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6931. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6932. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6933. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6934. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6935. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6936. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6937. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6938. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6939. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6940. ;;
  6941. esac
  6942. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6943. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6944. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6945. echo $ECHO_N "(cached) $ECHO_C" >&6
  6946. else
  6947. eval "$as_ac_Header=\$ac_header_preproc"
  6948. fi
  6949. ac_res=`eval echo '${'$as_ac_Header'}'`
  6950. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6951. echo "${ECHO_T}$ac_res" >&6; }
  6952. fi
  6953. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6954. cat >>confdefs.h <<_ACEOF
  6955. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6956. _ACEOF
  6957. else
  6958. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6959. echo "$as_me: error: required C header missing!" >&2;}
  6960. { (exit 1); exit 1; }; }
  6961. fi
  6962. done
  6963. fi
  6964. # detect which IO API to use:
  6965. x_io_backend=none
  6966. # Check whether --with-select was given.
  6967. if test "${with_select+set}" = set; then
  6968. withval=$with_select; if test "$withval" != "no"; then
  6969. if test "$withval" != "yes"; then
  6970. CFLAGS="-I$withval/include $CFLAGS"
  6971. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6972. LDFLAGS="-L$withval/lib $LDFLAGS"
  6973. fi
  6974. for ac_func in select
  6975. do
  6976. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6977. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6978. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6979. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6980. echo $ECHO_N "(cached) $ECHO_C" >&6
  6981. else
  6982. cat >conftest.$ac_ext <<_ACEOF
  6983. /* confdefs.h. */
  6984. _ACEOF
  6985. cat confdefs.h >>conftest.$ac_ext
  6986. cat >>conftest.$ac_ext <<_ACEOF
  6987. /* end confdefs.h. */
  6988. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6989. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6990. #define $ac_func innocuous_$ac_func
  6991. /* System header to define __stub macros and hopefully few prototypes,
  6992. which can conflict with char $ac_func (); below.
  6993. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6994. <limits.h> exists even on freestanding compilers. */
  6995. #ifdef __STDC__
  6996. # include <limits.h>
  6997. #else
  6998. # include <assert.h>
  6999. #endif
  7000. #undef $ac_func
  7001. /* Override any GCC internal prototype to avoid an error.
  7002. Use char because int might match the return type of a GCC
  7003. builtin and then its argument prototype would still apply. */
  7004. #ifdef __cplusplus
  7005. extern "C"
  7006. #endif
  7007. char $ac_func ();
  7008. /* The GNU C library defines this for functions which it implements
  7009. to always fail with ENOSYS. Some functions are actually named
  7010. something starting with __ and the normal name is an alias. */
  7011. #if defined __stub_$ac_func || defined __stub___$ac_func
  7012. choke me
  7013. #endif
  7014. int
  7015. main ()
  7016. {
  7017. return $ac_func ();
  7018. ;
  7019. return 0;
  7020. }
  7021. _ACEOF
  7022. rm -f conftest.$ac_objext conftest$ac_exeext
  7023. if { (ac_try="$ac_link"
  7024. case "(($ac_try" in
  7025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7026. *) ac_try_echo=$ac_try;;
  7027. esac
  7028. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7029. (eval "$ac_link") 2>conftest.er1
  7030. ac_status=$?
  7031. grep -v '^ *+' conftest.er1 >conftest.err
  7032. rm -f conftest.er1
  7033. cat conftest.err >&5
  7034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7035. (exit $ac_status); } && {
  7036. test -z "$ac_c_werror_flag" ||
  7037. test ! -s conftest.err
  7038. } && test -s conftest$ac_exeext &&
  7039. $as_test_x conftest$ac_exeext; then
  7040. eval "$as_ac_var=yes"
  7041. else
  7042. echo "$as_me: failed program was:" >&5
  7043. sed 's/^/| /' conftest.$ac_ext >&5
  7044. eval "$as_ac_var=no"
  7045. fi
  7046. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7047. conftest$ac_exeext conftest.$ac_ext
  7048. fi
  7049. ac_res=`eval echo '${'$as_ac_var'}'`
  7050. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7051. echo "${ECHO_T}$ac_res" >&6; }
  7052. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7053. cat >>confdefs.h <<_ACEOF
  7054. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7055. _ACEOF
  7056. x_io_select=yes
  7057. else
  7058. { { echo "$as_me:$LINENO: error: Can't enable select IO support!" >&5
  7059. echo "$as_me: error: Can't enable select IO support!" >&2;}
  7060. { (exit 1); exit 1; }; }
  7061. fi
  7062. done
  7063. fi
  7064. else
  7065. for ac_func in select
  7066. do
  7067. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7068. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7069. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7070. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7071. echo $ECHO_N "(cached) $ECHO_C" >&6
  7072. else
  7073. cat >conftest.$ac_ext <<_ACEOF
  7074. /* confdefs.h. */
  7075. _ACEOF
  7076. cat confdefs.h >>conftest.$ac_ext
  7077. cat >>conftest.$ac_ext <<_ACEOF
  7078. /* end confdefs.h. */
  7079. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7080. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7081. #define $ac_func innocuous_$ac_func
  7082. /* System header to define __stub macros and hopefully few prototypes,
  7083. which can conflict with char $ac_func (); below.
  7084. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7085. <limits.h> exists even on freestanding compilers. */
  7086. #ifdef __STDC__
  7087. # include <limits.h>
  7088. #else
  7089. # include <assert.h>
  7090. #endif
  7091. #undef $ac_func
  7092. /* Override any GCC internal prototype to avoid an error.
  7093. Use char because int might match the return type of a GCC
  7094. builtin and then its argument prototype would still apply. */
  7095. #ifdef __cplusplus
  7096. extern "C"
  7097. #endif
  7098. char $ac_func ();
  7099. /* The GNU C library defines this for functions which it implements
  7100. to always fail with ENOSYS. Some functions are actually named
  7101. something starting with __ and the normal name is an alias. */
  7102. #if defined __stub_$ac_func || defined __stub___$ac_func
  7103. choke me
  7104. #endif
  7105. int
  7106. main ()
  7107. {
  7108. return $ac_func ();
  7109. ;
  7110. return 0;
  7111. }
  7112. _ACEOF
  7113. rm -f conftest.$ac_objext conftest$ac_exeext
  7114. if { (ac_try="$ac_link"
  7115. case "(($ac_try" in
  7116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7117. *) ac_try_echo=$ac_try;;
  7118. esac
  7119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7120. (eval "$ac_link") 2>conftest.er1
  7121. ac_status=$?
  7122. grep -v '^ *+' conftest.er1 >conftest.err
  7123. rm -f conftest.er1
  7124. cat conftest.err >&5
  7125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7126. (exit $ac_status); } && {
  7127. test -z "$ac_c_werror_flag" ||
  7128. test ! -s conftest.err
  7129. } && test -s conftest$ac_exeext &&
  7130. $as_test_x conftest$ac_exeext; then
  7131. eval "$as_ac_var=yes"
  7132. else
  7133. echo "$as_me: failed program was:" >&5
  7134. sed 's/^/| /' conftest.$ac_ext >&5
  7135. eval "$as_ac_var=no"
  7136. fi
  7137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7138. conftest$ac_exeext conftest.$ac_ext
  7139. fi
  7140. ac_res=`eval echo '${'$as_ac_var'}'`
  7141. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7142. echo "${ECHO_T}$ac_res" >&6; }
  7143. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7144. cat >>confdefs.h <<_ACEOF
  7145. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7146. _ACEOF
  7147. x_io_select=yes
  7148. fi
  7149. done
  7150. fi
  7151. # Check whether --with-poll was given.
  7152. if test "${with_poll+set}" = set; then
  7153. withval=$with_poll; if test "$withval" != "no"; then
  7154. if test "$withval" != "yes"; then
  7155. CFLAGS="-I$withval/include $CFLAGS"
  7156. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7157. LDFLAGS="-L$withval/lib $LDFLAGS"
  7158. fi
  7159. for ac_func in poll
  7160. do
  7161. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7162. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7163. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7164. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7165. echo $ECHO_N "(cached) $ECHO_C" >&6
  7166. else
  7167. cat >conftest.$ac_ext <<_ACEOF
  7168. /* confdefs.h. */
  7169. _ACEOF
  7170. cat confdefs.h >>conftest.$ac_ext
  7171. cat >>conftest.$ac_ext <<_ACEOF
  7172. /* end confdefs.h. */
  7173. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7174. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7175. #define $ac_func innocuous_$ac_func
  7176. /* System header to define __stub macros and hopefully few prototypes,
  7177. which can conflict with char $ac_func (); below.
  7178. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7179. <limits.h> exists even on freestanding compilers. */
  7180. #ifdef __STDC__
  7181. # include <limits.h>
  7182. #else
  7183. # include <assert.h>
  7184. #endif
  7185. #undef $ac_func
  7186. /* Override any GCC internal prototype to avoid an error.
  7187. Use char because int might match the return type of a GCC
  7188. builtin and then its argument prototype would still apply. */
  7189. #ifdef __cplusplus
  7190. extern "C"
  7191. #endif
  7192. char $ac_func ();
  7193. /* The GNU C library defines this for functions which it implements
  7194. to always fail with ENOSYS. Some functions are actually named
  7195. something starting with __ and the normal name is an alias. */
  7196. #if defined __stub_$ac_func || defined __stub___$ac_func
  7197. choke me
  7198. #endif
  7199. int
  7200. main ()
  7201. {
  7202. return $ac_func ();
  7203. ;
  7204. return 0;
  7205. }
  7206. _ACEOF
  7207. rm -f conftest.$ac_objext conftest$ac_exeext
  7208. if { (ac_try="$ac_link"
  7209. case "(($ac_try" in
  7210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7211. *) ac_try_echo=$ac_try;;
  7212. esac
  7213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7214. (eval "$ac_link") 2>conftest.er1
  7215. ac_status=$?
  7216. grep -v '^ *+' conftest.er1 >conftest.err
  7217. rm -f conftest.er1
  7218. cat conftest.err >&5
  7219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7220. (exit $ac_status); } && {
  7221. test -z "$ac_c_werror_flag" ||
  7222. test ! -s conftest.err
  7223. } && test -s conftest$ac_exeext &&
  7224. $as_test_x conftest$ac_exeext; then
  7225. eval "$as_ac_var=yes"
  7226. else
  7227. echo "$as_me: failed program was:" >&5
  7228. sed 's/^/| /' conftest.$ac_ext >&5
  7229. eval "$as_ac_var=no"
  7230. fi
  7231. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7232. conftest$ac_exeext conftest.$ac_ext
  7233. fi
  7234. ac_res=`eval echo '${'$as_ac_var'}'`
  7235. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7236. echo "${ECHO_T}$ac_res" >&6; }
  7237. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7238. cat >>confdefs.h <<_ACEOF
  7239. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7240. _ACEOF
  7241. x_io_backend=poll\(\)
  7242. else
  7243. { { echo "$as_me:$LINENO: error: Can't enable poll IO support!" >&5
  7244. echo "$as_me: error: Can't enable poll IO support!" >&2;}
  7245. { (exit 1); exit 1; }; }
  7246. fi
  7247. done
  7248. fi
  7249. else
  7250. for ac_func in poll
  7251. do
  7252. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7253. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7254. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7255. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7256. echo $ECHO_N "(cached) $ECHO_C" >&6
  7257. else
  7258. cat >conftest.$ac_ext <<_ACEOF
  7259. /* confdefs.h. */
  7260. _ACEOF
  7261. cat confdefs.h >>conftest.$ac_ext
  7262. cat >>conftest.$ac_ext <<_ACEOF
  7263. /* end confdefs.h. */
  7264. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7265. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7266. #define $ac_func innocuous_$ac_func
  7267. /* System header to define __stub macros and hopefully few prototypes,
  7268. which can conflict with char $ac_func (); below.
  7269. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7270. <limits.h> exists even on freestanding compilers. */
  7271. #ifdef __STDC__
  7272. # include <limits.h>
  7273. #else
  7274. # include <assert.h>
  7275. #endif
  7276. #undef $ac_func
  7277. /* Override any GCC internal prototype to avoid an error.
  7278. Use char because int might match the return type of a GCC
  7279. builtin and then its argument prototype would still apply. */
  7280. #ifdef __cplusplus
  7281. extern "C"
  7282. #endif
  7283. char $ac_func ();
  7284. /* The GNU C library defines this for functions which it implements
  7285. to always fail with ENOSYS. Some functions are actually named
  7286. something starting with __ and the normal name is an alias. */
  7287. #if defined __stub_$ac_func || defined __stub___$ac_func
  7288. choke me
  7289. #endif
  7290. int
  7291. main ()
  7292. {
  7293. return $ac_func ();
  7294. ;
  7295. return 0;
  7296. }
  7297. _ACEOF
  7298. rm -f conftest.$ac_objext conftest$ac_exeext
  7299. if { (ac_try="$ac_link"
  7300. case "(($ac_try" in
  7301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7302. *) ac_try_echo=$ac_try;;
  7303. esac
  7304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7305. (eval "$ac_link") 2>conftest.er1
  7306. ac_status=$?
  7307. grep -v '^ *+' conftest.er1 >conftest.err
  7308. rm -f conftest.er1
  7309. cat conftest.err >&5
  7310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7311. (exit $ac_status); } && {
  7312. test -z "$ac_c_werror_flag" ||
  7313. test ! -s conftest.err
  7314. } && test -s conftest$ac_exeext &&
  7315. $as_test_x conftest$ac_exeext; then
  7316. eval "$as_ac_var=yes"
  7317. else
  7318. echo "$as_me: failed program was:" >&5
  7319. sed 's/^/| /' conftest.$ac_ext >&5
  7320. eval "$as_ac_var=no"
  7321. fi
  7322. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7323. conftest$ac_exeext conftest.$ac_ext
  7324. fi
  7325. ac_res=`eval echo '${'$as_ac_var'}'`
  7326. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7327. echo "${ECHO_T}$ac_res" >&6; }
  7328. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7329. cat >>confdefs.h <<_ACEOF
  7330. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7331. _ACEOF
  7332. x_io_backend=poll\(\)
  7333. fi
  7334. done
  7335. fi
  7336. # Check whether --with-devpoll was given.
  7337. if test "${with_devpoll+set}" = set; then
  7338. withval=$with_devpoll; if test "$withval" != "no"; then
  7339. if test "$withval" != "yes"; then
  7340. CFLAGS="-I$withval/include $CFLAGS"
  7341. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7342. LDFLAGS="-L$withval/lib $LDFLAGS"
  7343. fi
  7344. for ac_header in sys/devpoll.h
  7345. do
  7346. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7347. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7348. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7349. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7350. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7351. echo $ECHO_N "(cached) $ECHO_C" >&6
  7352. fi
  7353. ac_res=`eval echo '${'$as_ac_Header'}'`
  7354. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7355. echo "${ECHO_T}$ac_res" >&6; }
  7356. else
  7357. # Is the header compilable?
  7358. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7359. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7360. cat >conftest.$ac_ext <<_ACEOF
  7361. /* confdefs.h. */
  7362. _ACEOF
  7363. cat confdefs.h >>conftest.$ac_ext
  7364. cat >>conftest.$ac_ext <<_ACEOF
  7365. /* end confdefs.h. */
  7366. $ac_includes_default
  7367. #include <$ac_header>
  7368. _ACEOF
  7369. rm -f conftest.$ac_objext
  7370. if { (ac_try="$ac_compile"
  7371. case "(($ac_try" in
  7372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7373. *) ac_try_echo=$ac_try;;
  7374. esac
  7375. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7376. (eval "$ac_compile") 2>conftest.er1
  7377. ac_status=$?
  7378. grep -v '^ *+' conftest.er1 >conftest.err
  7379. rm -f conftest.er1
  7380. cat conftest.err >&5
  7381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7382. (exit $ac_status); } && {
  7383. test -z "$ac_c_werror_flag" ||
  7384. test ! -s conftest.err
  7385. } && test -s conftest.$ac_objext; then
  7386. ac_header_compiler=yes
  7387. else
  7388. echo "$as_me: failed program was:" >&5
  7389. sed 's/^/| /' conftest.$ac_ext >&5
  7390. ac_header_compiler=no
  7391. fi
  7392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7393. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7394. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7395. # Is the header present?
  7396. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7397. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7398. cat >conftest.$ac_ext <<_ACEOF
  7399. /* confdefs.h. */
  7400. _ACEOF
  7401. cat confdefs.h >>conftest.$ac_ext
  7402. cat >>conftest.$ac_ext <<_ACEOF
  7403. /* end confdefs.h. */
  7404. #include <$ac_header>
  7405. _ACEOF
  7406. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7407. case "(($ac_try" in
  7408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7409. *) ac_try_echo=$ac_try;;
  7410. esac
  7411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7412. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7413. ac_status=$?
  7414. grep -v '^ *+' conftest.er1 >conftest.err
  7415. rm -f conftest.er1
  7416. cat conftest.err >&5
  7417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7418. (exit $ac_status); } >/dev/null && {
  7419. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7420. test ! -s conftest.err
  7421. }; then
  7422. ac_header_preproc=yes
  7423. else
  7424. echo "$as_me: failed program was:" >&5
  7425. sed 's/^/| /' conftest.$ac_ext >&5
  7426. ac_header_preproc=no
  7427. fi
  7428. rm -f conftest.err conftest.$ac_ext
  7429. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7430. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7431. # So? What about this header?
  7432. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7433. yes:no: )
  7434. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7435. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7436. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7437. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7438. ac_header_preproc=yes
  7439. ;;
  7440. no:yes:* )
  7441. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7442. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7443. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7444. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7445. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7446. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7447. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7448. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7449. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7450. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7451. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7452. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7453. ;;
  7454. esac
  7455. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7456. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7457. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7458. echo $ECHO_N "(cached) $ECHO_C" >&6
  7459. else
  7460. eval "$as_ac_Header=\$ac_header_preproc"
  7461. fi
  7462. ac_res=`eval echo '${'$as_ac_Header'}'`
  7463. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7464. echo "${ECHO_T}$ac_res" >&6; }
  7465. fi
  7466. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7467. cat >>confdefs.h <<_ACEOF
  7468. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7469. _ACEOF
  7470. else
  7471. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7472. echo "$as_me: error: required C header missing!" >&2;}
  7473. { (exit 1); exit 1; }; }
  7474. fi
  7475. done
  7476. fi
  7477. else
  7478. for ac_header in sys/devpoll.h
  7479. do
  7480. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7481. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7482. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7483. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7484. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7485. echo $ECHO_N "(cached) $ECHO_C" >&6
  7486. fi
  7487. ac_res=`eval echo '${'$as_ac_Header'}'`
  7488. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7489. echo "${ECHO_T}$ac_res" >&6; }
  7490. else
  7491. # Is the header compilable?
  7492. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7493. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7494. cat >conftest.$ac_ext <<_ACEOF
  7495. /* confdefs.h. */
  7496. _ACEOF
  7497. cat confdefs.h >>conftest.$ac_ext
  7498. cat >>conftest.$ac_ext <<_ACEOF
  7499. /* end confdefs.h. */
  7500. $ac_includes_default
  7501. #include <$ac_header>
  7502. _ACEOF
  7503. rm -f conftest.$ac_objext
  7504. if { (ac_try="$ac_compile"
  7505. case "(($ac_try" in
  7506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7507. *) ac_try_echo=$ac_try;;
  7508. esac
  7509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7510. (eval "$ac_compile") 2>conftest.er1
  7511. ac_status=$?
  7512. grep -v '^ *+' conftest.er1 >conftest.err
  7513. rm -f conftest.er1
  7514. cat conftest.err >&5
  7515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7516. (exit $ac_status); } && {
  7517. test -z "$ac_c_werror_flag" ||
  7518. test ! -s conftest.err
  7519. } && test -s conftest.$ac_objext; then
  7520. ac_header_compiler=yes
  7521. else
  7522. echo "$as_me: failed program was:" >&5
  7523. sed 's/^/| /' conftest.$ac_ext >&5
  7524. ac_header_compiler=no
  7525. fi
  7526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7527. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7528. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7529. # Is the header present?
  7530. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7531. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7532. cat >conftest.$ac_ext <<_ACEOF
  7533. /* confdefs.h. */
  7534. _ACEOF
  7535. cat confdefs.h >>conftest.$ac_ext
  7536. cat >>conftest.$ac_ext <<_ACEOF
  7537. /* end confdefs.h. */
  7538. #include <$ac_header>
  7539. _ACEOF
  7540. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7541. case "(($ac_try" in
  7542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7543. *) ac_try_echo=$ac_try;;
  7544. esac
  7545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7546. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7547. ac_status=$?
  7548. grep -v '^ *+' conftest.er1 >conftest.err
  7549. rm -f conftest.er1
  7550. cat conftest.err >&5
  7551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7552. (exit $ac_status); } >/dev/null && {
  7553. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7554. test ! -s conftest.err
  7555. }; then
  7556. ac_header_preproc=yes
  7557. else
  7558. echo "$as_me: failed program was:" >&5
  7559. sed 's/^/| /' conftest.$ac_ext >&5
  7560. ac_header_preproc=no
  7561. fi
  7562. rm -f conftest.err conftest.$ac_ext
  7563. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7564. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7565. # So? What about this header?
  7566. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7567. yes:no: )
  7568. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7569. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7570. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7571. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7572. ac_header_preproc=yes
  7573. ;;
  7574. no:yes:* )
  7575. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7576. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7577. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7578. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7579. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7580. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7581. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7582. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7583. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7584. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7585. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7586. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7587. ;;
  7588. esac
  7589. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7590. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7591. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7592. echo $ECHO_N "(cached) $ECHO_C" >&6
  7593. else
  7594. eval "$as_ac_Header=\$ac_header_preproc"
  7595. fi
  7596. ac_res=`eval echo '${'$as_ac_Header'}'`
  7597. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7598. echo "${ECHO_T}$ac_res" >&6; }
  7599. fi
  7600. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7601. cat >>confdefs.h <<_ACEOF
  7602. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7603. _ACEOF
  7604. x_io_backend=/dev/poll
  7605. fi
  7606. done
  7607. fi
  7608. # Check whether --with-epoll was given.
  7609. if test "${with_epoll+set}" = set; then
  7610. withval=$with_epoll; if test "$withval" != "no"; then
  7611. if test "$withval" != "yes"; then
  7612. CFLAGS="-I$withval/include $CFLAGS"
  7613. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7614. LDFLAGS="-L$withval/lib $LDFLAGS"
  7615. fi
  7616. for ac_func in epoll_create
  7617. do
  7618. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7619. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7620. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7621. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7622. echo $ECHO_N "(cached) $ECHO_C" >&6
  7623. else
  7624. cat >conftest.$ac_ext <<_ACEOF
  7625. /* confdefs.h. */
  7626. _ACEOF
  7627. cat confdefs.h >>conftest.$ac_ext
  7628. cat >>conftest.$ac_ext <<_ACEOF
  7629. /* end confdefs.h. */
  7630. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7631. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7632. #define $ac_func innocuous_$ac_func
  7633. /* System header to define __stub macros and hopefully few prototypes,
  7634. which can conflict with char $ac_func (); below.
  7635. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7636. <limits.h> exists even on freestanding compilers. */
  7637. #ifdef __STDC__
  7638. # include <limits.h>
  7639. #else
  7640. # include <assert.h>
  7641. #endif
  7642. #undef $ac_func
  7643. /* Override any GCC internal prototype to avoid an error.
  7644. Use char because int might match the return type of a GCC
  7645. builtin and then its argument prototype would still apply. */
  7646. #ifdef __cplusplus
  7647. extern "C"
  7648. #endif
  7649. char $ac_func ();
  7650. /* The GNU C library defines this for functions which it implements
  7651. to always fail with ENOSYS. Some functions are actually named
  7652. something starting with __ and the normal name is an alias. */
  7653. #if defined __stub_$ac_func || defined __stub___$ac_func
  7654. choke me
  7655. #endif
  7656. int
  7657. main ()
  7658. {
  7659. return $ac_func ();
  7660. ;
  7661. return 0;
  7662. }
  7663. _ACEOF
  7664. rm -f conftest.$ac_objext conftest$ac_exeext
  7665. if { (ac_try="$ac_link"
  7666. case "(($ac_try" in
  7667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7668. *) ac_try_echo=$ac_try;;
  7669. esac
  7670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7671. (eval "$ac_link") 2>conftest.er1
  7672. ac_status=$?
  7673. grep -v '^ *+' conftest.er1 >conftest.err
  7674. rm -f conftest.er1
  7675. cat conftest.err >&5
  7676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7677. (exit $ac_status); } && {
  7678. test -z "$ac_c_werror_flag" ||
  7679. test ! -s conftest.err
  7680. } && test -s conftest$ac_exeext &&
  7681. $as_test_x conftest$ac_exeext; then
  7682. eval "$as_ac_var=yes"
  7683. else
  7684. echo "$as_me: failed program was:" >&5
  7685. sed 's/^/| /' conftest.$ac_ext >&5
  7686. eval "$as_ac_var=no"
  7687. fi
  7688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7689. conftest$ac_exeext conftest.$ac_ext
  7690. fi
  7691. ac_res=`eval echo '${'$as_ac_var'}'`
  7692. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7693. echo "${ECHO_T}$ac_res" >&6; }
  7694. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7695. cat >>confdefs.h <<_ACEOF
  7696. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7697. _ACEOF
  7698. x_io_epoll=yes
  7699. else
  7700. { { echo "$as_me:$LINENO: error: Can't enable epoll IO support!" >&5
  7701. echo "$as_me: error: Can't enable epoll IO support!" >&2;}
  7702. { (exit 1); exit 1; }; }
  7703. fi
  7704. done
  7705. fi
  7706. else
  7707. for ac_func in epoll_create
  7708. do
  7709. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7710. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7711. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7712. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7713. echo $ECHO_N "(cached) $ECHO_C" >&6
  7714. else
  7715. cat >conftest.$ac_ext <<_ACEOF
  7716. /* confdefs.h. */
  7717. _ACEOF
  7718. cat confdefs.h >>conftest.$ac_ext
  7719. cat >>conftest.$ac_ext <<_ACEOF
  7720. /* end confdefs.h. */
  7721. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7722. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7723. #define $ac_func innocuous_$ac_func
  7724. /* System header to define __stub macros and hopefully few prototypes,
  7725. which can conflict with char $ac_func (); below.
  7726. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7727. <limits.h> exists even on freestanding compilers. */
  7728. #ifdef __STDC__
  7729. # include <limits.h>
  7730. #else
  7731. # include <assert.h>
  7732. #endif
  7733. #undef $ac_func
  7734. /* Override any GCC internal prototype to avoid an error.
  7735. Use char because int might match the return type of a GCC
  7736. builtin and then its argument prototype would still apply. */
  7737. #ifdef __cplusplus
  7738. extern "C"
  7739. #endif
  7740. char $ac_func ();
  7741. /* The GNU C library defines this for functions which it implements
  7742. to always fail with ENOSYS. Some functions are actually named
  7743. something starting with __ and the normal name is an alias. */
  7744. #if defined __stub_$ac_func || defined __stub___$ac_func
  7745. choke me
  7746. #endif
  7747. int
  7748. main ()
  7749. {
  7750. return $ac_func ();
  7751. ;
  7752. return 0;
  7753. }
  7754. _ACEOF
  7755. rm -f conftest.$ac_objext conftest$ac_exeext
  7756. if { (ac_try="$ac_link"
  7757. case "(($ac_try" in
  7758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7759. *) ac_try_echo=$ac_try;;
  7760. esac
  7761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7762. (eval "$ac_link") 2>conftest.er1
  7763. ac_status=$?
  7764. grep -v '^ *+' conftest.er1 >conftest.err
  7765. rm -f conftest.er1
  7766. cat conftest.err >&5
  7767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7768. (exit $ac_status); } && {
  7769. test -z "$ac_c_werror_flag" ||
  7770. test ! -s conftest.err
  7771. } && test -s conftest$ac_exeext &&
  7772. $as_test_x conftest$ac_exeext; then
  7773. eval "$as_ac_var=yes"
  7774. else
  7775. echo "$as_me: failed program was:" >&5
  7776. sed 's/^/| /' conftest.$ac_ext >&5
  7777. eval "$as_ac_var=no"
  7778. fi
  7779. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7780. conftest$ac_exeext conftest.$ac_ext
  7781. fi
  7782. ac_res=`eval echo '${'$as_ac_var'}'`
  7783. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7784. echo "${ECHO_T}$ac_res" >&6; }
  7785. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7786. cat >>confdefs.h <<_ACEOF
  7787. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7788. _ACEOF
  7789. x_io_epoll=yes
  7790. fi
  7791. done
  7792. fi
  7793. # Check whether --with-kqueue was given.
  7794. if test "${with_kqueue+set}" = set; then
  7795. withval=$with_kqueue; if test "$withval" != "no"; then
  7796. if test "$withval" != "yes"; then
  7797. CFLAGS="-I$withval/include $CFLAGS"
  7798. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7799. LDFLAGS="-L$withval/lib $LDFLAGS"
  7800. fi
  7801. for ac_func in kqueue
  7802. do
  7803. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7804. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7805. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7806. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7807. echo $ECHO_N "(cached) $ECHO_C" >&6
  7808. else
  7809. cat >conftest.$ac_ext <<_ACEOF
  7810. /* confdefs.h. */
  7811. _ACEOF
  7812. cat confdefs.h >>conftest.$ac_ext
  7813. cat >>conftest.$ac_ext <<_ACEOF
  7814. /* end confdefs.h. */
  7815. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7816. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7817. #define $ac_func innocuous_$ac_func
  7818. /* System header to define __stub macros and hopefully few prototypes,
  7819. which can conflict with char $ac_func (); below.
  7820. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7821. <limits.h> exists even on freestanding compilers. */
  7822. #ifdef __STDC__
  7823. # include <limits.h>
  7824. #else
  7825. # include <assert.h>
  7826. #endif
  7827. #undef $ac_func
  7828. /* Override any GCC internal prototype to avoid an error.
  7829. Use char because int might match the return type of a GCC
  7830. builtin and then its argument prototype would still apply. */
  7831. #ifdef __cplusplus
  7832. extern "C"
  7833. #endif
  7834. char $ac_func ();
  7835. /* The GNU C library defines this for functions which it implements
  7836. to always fail with ENOSYS. Some functions are actually named
  7837. something starting with __ and the normal name is an alias. */
  7838. #if defined __stub_$ac_func || defined __stub___$ac_func
  7839. choke me
  7840. #endif
  7841. int
  7842. main ()
  7843. {
  7844. return $ac_func ();
  7845. ;
  7846. return 0;
  7847. }
  7848. _ACEOF
  7849. rm -f conftest.$ac_objext conftest$ac_exeext
  7850. if { (ac_try="$ac_link"
  7851. case "(($ac_try" in
  7852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7853. *) ac_try_echo=$ac_try;;
  7854. esac
  7855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7856. (eval "$ac_link") 2>conftest.er1
  7857. ac_status=$?
  7858. grep -v '^ *+' conftest.er1 >conftest.err
  7859. rm -f conftest.er1
  7860. cat conftest.err >&5
  7861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7862. (exit $ac_status); } && {
  7863. test -z "$ac_c_werror_flag" ||
  7864. test ! -s conftest.err
  7865. } && test -s conftest$ac_exeext &&
  7866. $as_test_x conftest$ac_exeext; then
  7867. eval "$as_ac_var=yes"
  7868. else
  7869. echo "$as_me: failed program was:" >&5
  7870. sed 's/^/| /' conftest.$ac_ext >&5
  7871. eval "$as_ac_var=no"
  7872. fi
  7873. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7874. conftest$ac_exeext conftest.$ac_ext
  7875. fi
  7876. ac_res=`eval echo '${'$as_ac_var'}'`
  7877. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7878. echo "${ECHO_T}$ac_res" >&6; }
  7879. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7880. cat >>confdefs.h <<_ACEOF
  7881. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7882. _ACEOF
  7883. x_io_backend=kqueue\(\)
  7884. else
  7885. { { echo "$as_me:$LINENO: error: Can't enable kqueue IO support!" >&5
  7886. echo "$as_me: error: Can't enable kqueue IO support!" >&2;}
  7887. { (exit 1); exit 1; }; }
  7888. fi
  7889. done
  7890. fi
  7891. else
  7892. for ac_func in kqueue
  7893. do
  7894. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7895. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7896. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7897. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7898. echo $ECHO_N "(cached) $ECHO_C" >&6
  7899. else
  7900. cat >conftest.$ac_ext <<_ACEOF
  7901. /* confdefs.h. */
  7902. _ACEOF
  7903. cat confdefs.h >>conftest.$ac_ext
  7904. cat >>conftest.$ac_ext <<_ACEOF
  7905. /* end confdefs.h. */
  7906. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7907. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7908. #define $ac_func innocuous_$ac_func
  7909. /* System header to define __stub macros and hopefully few prototypes,
  7910. which can conflict with char $ac_func (); below.
  7911. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7912. <limits.h> exists even on freestanding compilers. */
  7913. #ifdef __STDC__
  7914. # include <limits.h>
  7915. #else
  7916. # include <assert.h>
  7917. #endif
  7918. #undef $ac_func
  7919. /* Override any GCC internal prototype to avoid an error.
  7920. Use char because int might match the return type of a GCC
  7921. builtin and then its argument prototype would still apply. */
  7922. #ifdef __cplusplus
  7923. extern "C"
  7924. #endif
  7925. char $ac_func ();
  7926. /* The GNU C library defines this for functions which it implements
  7927. to always fail with ENOSYS. Some functions are actually named
  7928. something starting with __ and the normal name is an alias. */
  7929. #if defined __stub_$ac_func || defined __stub___$ac_func
  7930. choke me
  7931. #endif
  7932. int
  7933. main ()
  7934. {
  7935. return $ac_func ();
  7936. ;
  7937. return 0;
  7938. }
  7939. _ACEOF
  7940. rm -f conftest.$ac_objext conftest$ac_exeext
  7941. if { (ac_try="$ac_link"
  7942. case "(($ac_try" in
  7943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7944. *) ac_try_echo=$ac_try;;
  7945. esac
  7946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7947. (eval "$ac_link") 2>conftest.er1
  7948. ac_status=$?
  7949. grep -v '^ *+' conftest.er1 >conftest.err
  7950. rm -f conftest.er1
  7951. cat conftest.err >&5
  7952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7953. (exit $ac_status); } && {
  7954. test -z "$ac_c_werror_flag" ||
  7955. test ! -s conftest.err
  7956. } && test -s conftest$ac_exeext &&
  7957. $as_test_x conftest$ac_exeext; then
  7958. eval "$as_ac_var=yes"
  7959. else
  7960. echo "$as_me: failed program was:" >&5
  7961. sed 's/^/| /' conftest.$ac_ext >&5
  7962. eval "$as_ac_var=no"
  7963. fi
  7964. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7965. conftest$ac_exeext conftest.$ac_ext
  7966. fi
  7967. ac_res=`eval echo '${'$as_ac_var'}'`
  7968. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7969. echo "${ECHO_T}$ac_res" >&6; }
  7970. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7971. cat >>confdefs.h <<_ACEOF
  7972. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7973. _ACEOF
  7974. x_io_backend=kqueue\(\)
  7975. fi
  7976. done
  7977. fi
  7978. if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
  7979. # when epoll() and select() are available, we'll use both!
  7980. x_io_backend="epoll(), select()"
  7981. else
  7982. if test "$x_io_epoll" = "yes"; then
  7983. # we prefere epoll() if it is available
  7984. x_io_backend="epoll()"
  7985. else
  7986. if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
  7987. # we'll use select, when available and no "better"
  7988. # interface has been detected ...
  7989. x_io_backend="select()"
  7990. fi
  7991. fi
  7992. fi
  7993. if test "$x_io_backend" = "none"; then
  7994. { { echo "$as_me:$LINENO: error: No useabe IO API activated/found!?" >&5
  7995. echo "$as_me: error: No useabe IO API activated/found!?" >&2;}
  7996. { (exit 1); exit 1; }; }
  7997. fi
  7998. # use SSL?
  7999. # Check whether --with-openssl was given.
  8000. if test "${with_openssl+set}" = set; then
  8001. withval=$with_openssl; if test "$withval" != "no"; then
  8002. if test "$withval" != "yes"; then
  8003. CFLAGS="-I$withval/include $CFLAGS"
  8004. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8005. LDFLAGS="-L$withval/lib $LDFLAGS"
  8006. fi
  8007. { echo "$as_me:$LINENO: checking for BIO_s_mem in -lcrypto" >&5
  8008. echo $ECHO_N "checking for BIO_s_mem in -lcrypto... $ECHO_C" >&6; }
  8009. if test "${ac_cv_lib_crypto_BIO_s_mem+set}" = set; then
  8010. echo $ECHO_N "(cached) $ECHO_C" >&6
  8011. else
  8012. ac_check_lib_save_LIBS=$LIBS
  8013. LIBS="-lcrypto $LIBS"
  8014. cat >conftest.$ac_ext <<_ACEOF
  8015. /* confdefs.h. */
  8016. _ACEOF
  8017. cat confdefs.h >>conftest.$ac_ext
  8018. cat >>conftest.$ac_ext <<_ACEOF
  8019. /* end confdefs.h. */
  8020. /* Override any GCC internal prototype to avoid an error.
  8021. Use char because int might match the return type of a GCC
  8022. builtin and then its argument prototype would still apply. */
  8023. #ifdef __cplusplus
  8024. extern "C"
  8025. #endif
  8026. char BIO_s_mem ();
  8027. int
  8028. main ()
  8029. {
  8030. return BIO_s_mem ();
  8031. ;
  8032. return 0;
  8033. }
  8034. _ACEOF
  8035. rm -f conftest.$ac_objext conftest$ac_exeext
  8036. if { (ac_try="$ac_link"
  8037. case "(($ac_try" in
  8038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8039. *) ac_try_echo=$ac_try;;
  8040. esac
  8041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8042. (eval "$ac_link") 2>conftest.er1
  8043. ac_status=$?
  8044. grep -v '^ *+' conftest.er1 >conftest.err
  8045. rm -f conftest.er1
  8046. cat conftest.err >&5
  8047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048. (exit $ac_status); } && {
  8049. test -z "$ac_c_werror_flag" ||
  8050. test ! -s conftest.err
  8051. } && test -s conftest$ac_exeext &&
  8052. $as_test_x conftest$ac_exeext; then
  8053. ac_cv_lib_crypto_BIO_s_mem=yes
  8054. else
  8055. echo "$as_me: failed program was:" >&5
  8056. sed 's/^/| /' conftest.$ac_ext >&5
  8057. ac_cv_lib_crypto_BIO_s_mem=no
  8058. fi
  8059. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8060. conftest$ac_exeext conftest.$ac_ext
  8061. LIBS=$ac_check_lib_save_LIBS
  8062. fi
  8063. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_BIO_s_mem" >&5
  8064. echo "${ECHO_T}$ac_cv_lib_crypto_BIO_s_mem" >&6; }
  8065. if test $ac_cv_lib_crypto_BIO_s_mem = yes; then
  8066. cat >>confdefs.h <<_ACEOF
  8067. #define HAVE_LIBCRYPTO 1
  8068. _ACEOF
  8069. LIBS="-lcrypto $LIBS"
  8070. fi
  8071. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  8072. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  8073. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  8074. echo $ECHO_N "(cached) $ECHO_C" >&6
  8075. else
  8076. ac_check_lib_save_LIBS=$LIBS
  8077. LIBS="-lssl $LIBS"
  8078. cat >conftest.$ac_ext <<_ACEOF
  8079. /* confdefs.h. */
  8080. _ACEOF
  8081. cat confdefs.h >>conftest.$ac_ext
  8082. cat >>conftest.$ac_ext <<_ACEOF
  8083. /* end confdefs.h. */
  8084. /* Override any GCC internal prototype to avoid an error.
  8085. Use char because int might match the return type of a GCC
  8086. builtin and then its argument prototype would still apply. */
  8087. #ifdef __cplusplus
  8088. extern "C"
  8089. #endif
  8090. char SSL_library_init ();
  8091. int
  8092. main ()
  8093. {
  8094. return SSL_library_init ();
  8095. ;
  8096. return 0;
  8097. }
  8098. _ACEOF
  8099. rm -f conftest.$ac_objext conftest$ac_exeext
  8100. if { (ac_try="$ac_link"
  8101. case "(($ac_try" in
  8102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8103. *) ac_try_echo=$ac_try;;
  8104. esac
  8105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8106. (eval "$ac_link") 2>conftest.er1
  8107. ac_status=$?
  8108. grep -v '^ *+' conftest.er1 >conftest.err
  8109. rm -f conftest.er1
  8110. cat conftest.err >&5
  8111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8112. (exit $ac_status); } && {
  8113. test -z "$ac_c_werror_flag" ||
  8114. test ! -s conftest.err
  8115. } && test -s conftest$ac_exeext &&
  8116. $as_test_x conftest$ac_exeext; then
  8117. ac_cv_lib_ssl_SSL_library_init=yes
  8118. else
  8119. echo "$as_me: failed program was:" >&5
  8120. sed 's/^/| /' conftest.$ac_ext >&5
  8121. ac_cv_lib_ssl_SSL_library_init=no
  8122. fi
  8123. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8124. conftest$ac_exeext conftest.$ac_ext
  8125. LIBS=$ac_check_lib_save_LIBS
  8126. fi
  8127. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  8128. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  8129. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  8130. cat >>confdefs.h <<_ACEOF
  8131. #define HAVE_LIBSSL 1
  8132. _ACEOF
  8133. LIBS="-lssl $LIBS"
  8134. fi
  8135. for ac_func in SSL_library_init
  8136. do
  8137. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8138. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8139. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8140. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8141. echo $ECHO_N "(cached) $ECHO_C" >&6
  8142. else
  8143. cat >conftest.$ac_ext <<_ACEOF
  8144. /* confdefs.h. */
  8145. _ACEOF
  8146. cat confdefs.h >>conftest.$ac_ext
  8147. cat >>conftest.$ac_ext <<_ACEOF
  8148. /* end confdefs.h. */
  8149. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8150. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8151. #define $ac_func innocuous_$ac_func
  8152. /* System header to define __stub macros and hopefully few prototypes,
  8153. which can conflict with char $ac_func (); below.
  8154. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8155. <limits.h> exists even on freestanding compilers. */
  8156. #ifdef __STDC__
  8157. # include <limits.h>
  8158. #else
  8159. # include <assert.h>
  8160. #endif
  8161. #undef $ac_func
  8162. /* Override any GCC internal prototype to avoid an error.
  8163. Use char because int might match the return type of a GCC
  8164. builtin and then its argument prototype would still apply. */
  8165. #ifdef __cplusplus
  8166. extern "C"
  8167. #endif
  8168. char $ac_func ();
  8169. /* The GNU C library defines this for functions which it implements
  8170. to always fail with ENOSYS. Some functions are actually named
  8171. something starting with __ and the normal name is an alias. */
  8172. #if defined __stub_$ac_func || defined __stub___$ac_func
  8173. choke me
  8174. #endif
  8175. int
  8176. main ()
  8177. {
  8178. return $ac_func ();
  8179. ;
  8180. return 0;
  8181. }
  8182. _ACEOF
  8183. rm -f conftest.$ac_objext conftest$ac_exeext
  8184. if { (ac_try="$ac_link"
  8185. case "(($ac_try" in
  8186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8187. *) ac_try_echo=$ac_try;;
  8188. esac
  8189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8190. (eval "$ac_link") 2>conftest.er1
  8191. ac_status=$?
  8192. grep -v '^ *+' conftest.er1 >conftest.err
  8193. rm -f conftest.er1
  8194. cat conftest.err >&5
  8195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8196. (exit $ac_status); } && {
  8197. test -z "$ac_c_werror_flag" ||
  8198. test ! -s conftest.err
  8199. } && test -s conftest$ac_exeext &&
  8200. $as_test_x conftest$ac_exeext; then
  8201. eval "$as_ac_var=yes"
  8202. else
  8203. echo "$as_me: failed program was:" >&5
  8204. sed 's/^/| /' conftest.$ac_ext >&5
  8205. eval "$as_ac_var=no"
  8206. fi
  8207. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8208. conftest$ac_exeext conftest.$ac_ext
  8209. fi
  8210. ac_res=`eval echo '${'$as_ac_var'}'`
  8211. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8212. echo "${ECHO_T}$ac_res" >&6; }
  8213. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8214. cat >>confdefs.h <<_ACEOF
  8215. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8216. _ACEOF
  8217. x_ssl_openssl=yes
  8218. else
  8219. { { echo "$as_me:$LINENO: error: Can't enable openssl" >&5
  8220. echo "$as_me: error: Can't enable openssl" >&2;}
  8221. { (exit 1); exit 1; }; }
  8222. fi
  8223. done
  8224. fi
  8225. fi
  8226. # Check whether --with-gnutls was given.
  8227. if test "${with_gnutls+set}" = set; then
  8228. withval=$with_gnutls; if test "$withval" != "no"; then
  8229. if test "$withval" != "yes"; then
  8230. CFLAGS="-I$withval/include $CFLAGS"
  8231. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8232. LDFLAGS="-L$withval/lib $LDFLAGS"
  8233. fi
  8234. { echo "$as_me:$LINENO: checking for gnutls_global_init in -lgnutls" >&5
  8235. echo $ECHO_N "checking for gnutls_global_init in -lgnutls... $ECHO_C" >&6; }
  8236. if test "${ac_cv_lib_gnutls_gnutls_global_init+set}" = set; then
  8237. echo $ECHO_N "(cached) $ECHO_C" >&6
  8238. else
  8239. ac_check_lib_save_LIBS=$LIBS
  8240. LIBS="-lgnutls $LIBS"
  8241. cat >conftest.$ac_ext <<_ACEOF
  8242. /* confdefs.h. */
  8243. _ACEOF
  8244. cat confdefs.h >>conftest.$ac_ext
  8245. cat >>conftest.$ac_ext <<_ACEOF
  8246. /* end confdefs.h. */
  8247. /* Override any GCC internal prototype to avoid an error.
  8248. Use char because int might match the return type of a GCC
  8249. builtin and then its argument prototype would still apply. */
  8250. #ifdef __cplusplus
  8251. extern "C"
  8252. #endif
  8253. char gnutls_global_init ();
  8254. int
  8255. main ()
  8256. {
  8257. return gnutls_global_init ();
  8258. ;
  8259. return 0;
  8260. }
  8261. _ACEOF
  8262. rm -f conftest.$ac_objext conftest$ac_exeext
  8263. if { (ac_try="$ac_link"
  8264. case "(($ac_try" in
  8265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8266. *) ac_try_echo=$ac_try;;
  8267. esac
  8268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8269. (eval "$ac_link") 2>conftest.er1
  8270. ac_status=$?
  8271. grep -v '^ *+' conftest.er1 >conftest.err
  8272. rm -f conftest.er1
  8273. cat conftest.err >&5
  8274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8275. (exit $ac_status); } && {
  8276. test -z "$ac_c_werror_flag" ||
  8277. test ! -s conftest.err
  8278. } && test -s conftest$ac_exeext &&
  8279. $as_test_x conftest$ac_exeext; then
  8280. ac_cv_lib_gnutls_gnutls_global_init=yes
  8281. else
  8282. echo "$as_me: failed program was:" >&5
  8283. sed 's/^/| /' conftest.$ac_ext >&5
  8284. ac_cv_lib_gnutls_gnutls_global_init=no
  8285. fi
  8286. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8287. conftest$ac_exeext conftest.$ac_ext
  8288. LIBS=$ac_check_lib_save_LIBS
  8289. fi
  8290. { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
  8291. echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
  8292. if test $ac_cv_lib_gnutls_gnutls_global_init = yes; then
  8293. cat >>confdefs.h <<_ACEOF
  8294. #define HAVE_LIBGNUTLS 1
  8295. _ACEOF
  8296. LIBS="-lgnutls $LIBS"
  8297. fi
  8298. for ac_func in gnutls_global_init
  8299. do
  8300. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8301. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8302. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8303. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8304. echo $ECHO_N "(cached) $ECHO_C" >&6
  8305. else
  8306. cat >conftest.$ac_ext <<_ACEOF
  8307. /* confdefs.h. */
  8308. _ACEOF
  8309. cat confdefs.h >>conftest.$ac_ext
  8310. cat >>conftest.$ac_ext <<_ACEOF
  8311. /* end confdefs.h. */
  8312. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8313. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8314. #define $ac_func innocuous_$ac_func
  8315. /* System header to define __stub macros and hopefully few prototypes,
  8316. which can conflict with char $ac_func (); below.
  8317. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8318. <limits.h> exists even on freestanding compilers. */
  8319. #ifdef __STDC__
  8320. # include <limits.h>
  8321. #else
  8322. # include <assert.h>
  8323. #endif
  8324. #undef $ac_func
  8325. /* Override any GCC internal prototype to avoid an error.
  8326. Use char because int might match the return type of a GCC
  8327. builtin and then its argument prototype would still apply. */
  8328. #ifdef __cplusplus
  8329. extern "C"
  8330. #endif
  8331. char $ac_func ();
  8332. /* The GNU C library defines this for functions which it implements
  8333. to always fail with ENOSYS. Some functions are actually named
  8334. something starting with __ and the normal name is an alias. */
  8335. #if defined __stub_$ac_func || defined __stub___$ac_func
  8336. choke me
  8337. #endif
  8338. int
  8339. main ()
  8340. {
  8341. return $ac_func ();
  8342. ;
  8343. return 0;
  8344. }
  8345. _ACEOF
  8346. rm -f conftest.$ac_objext conftest$ac_exeext
  8347. if { (ac_try="$ac_link"
  8348. case "(($ac_try" in
  8349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8350. *) ac_try_echo=$ac_try;;
  8351. esac
  8352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8353. (eval "$ac_link") 2>conftest.er1
  8354. ac_status=$?
  8355. grep -v '^ *+' conftest.er1 >conftest.err
  8356. rm -f conftest.er1
  8357. cat conftest.err >&5
  8358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8359. (exit $ac_status); } && {
  8360. test -z "$ac_c_werror_flag" ||
  8361. test ! -s conftest.err
  8362. } && test -s conftest$ac_exeext &&
  8363. $as_test_x conftest$ac_exeext; then
  8364. eval "$as_ac_var=yes"
  8365. else
  8366. echo "$as_me: failed program was:" >&5
  8367. sed 's/^/| /' conftest.$ac_ext >&5
  8368. eval "$as_ac_var=no"
  8369. fi
  8370. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8371. conftest$ac_exeext conftest.$ac_ext
  8372. fi
  8373. ac_res=`eval echo '${'$as_ac_var'}'`
  8374. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8375. echo "${ECHO_T}$ac_res" >&6; }
  8376. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8377. cat >>confdefs.h <<_ACEOF
  8378. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8379. _ACEOF
  8380. x_ssl_gnutls=yes
  8381. else
  8382. { { echo "$as_me:$LINENO: error: Can't enable gnutls" >&5
  8383. echo "$as_me: error: Can't enable gnutls" >&2;}
  8384. { (exit 1); exit 1; }; }
  8385. fi
  8386. done
  8387. fi
  8388. fi
  8389. x_ssl_lib="no"
  8390. if test "$x_ssl_gnutls" = "yes"; then
  8391. if test "$x_ssl_openssl" = "yes";then
  8392. { { echo "$as_me:$LINENO: error: Cannot enable both gnutls and openssl" >&5
  8393. echo "$as_me: error: Cannot enable both gnutls and openssl" >&2;}
  8394. { (exit 1); exit 1; }; }
  8395. fi
  8396. x_ssl_lib=gnutls
  8397. fi
  8398. if test "$x_ssl_openssl" = "yes"; then
  8399. x_ssl_lib=openssl
  8400. fi
  8401. # use TCP wrappers?
  8402. x_tcpwrap_on=no
  8403. # Check whether --with-tcp-wrappers was given.
  8404. if test "${with_tcp_wrappers+set}" = set; then
  8405. withval=$with_tcp_wrappers; if test "$withval" != "no"; then
  8406. if test "$withval" != "yes"; then
  8407. CFLAGS="-I$withval/include $CFLAGS"
  8408. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8409. LDFLAGS="-L$withval/lib $LDFLAGS"
  8410. fi
  8411. { echo "$as_me:$LINENO: checking for hosts_access" >&5
  8412. echo $ECHO_N "checking for hosts_access... $ECHO_C" >&6; }
  8413. LIBS="-lwrap $LIBS"
  8414. cat >conftest.$ac_ext <<_ACEOF
  8415. /* confdefs.h. */
  8416. _ACEOF
  8417. cat confdefs.h >>conftest.$ac_ext
  8418. cat >>conftest.$ac_ext <<_ACEOF
  8419. /* end confdefs.h. */
  8420. #include <tcpd.h>
  8421. int allow_severity = 0;
  8422. int deny_severity = 0;
  8423. int
  8424. main ()
  8425. {
  8426. tcpd_warn("link test");
  8427. ;
  8428. return 0;
  8429. }
  8430. _ACEOF
  8431. rm -f conftest.$ac_objext conftest$ac_exeext
  8432. if { (ac_try="$ac_link"
  8433. case "(($ac_try" in
  8434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8435. *) ac_try_echo=$ac_try;;
  8436. esac
  8437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8438. (eval "$ac_link") 2>conftest.er1
  8439. ac_status=$?
  8440. grep -v '^ *+' conftest.er1 >conftest.err
  8441. rm -f conftest.er1
  8442. cat conftest.err >&5
  8443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8444. (exit $ac_status); } && {
  8445. test -z "$ac_c_werror_flag" ||
  8446. test ! -s conftest.err
  8447. } && test -s conftest$ac_exeext &&
  8448. $as_test_x conftest$ac_exeext; then
  8449. { echo "$as_me:$LINENO: result: yes" >&5
  8450. echo "${ECHO_T}yes" >&6; }
  8451. cat >>confdefs.h <<\_ACEOF
  8452. #define TCPWRAP 1
  8453. _ACEOF
  8454. x_tcpwrap_on=yes
  8455. else
  8456. echo "$as_me: failed program was:" >&5
  8457. sed 's/^/| /' conftest.$ac_ext >&5
  8458. { echo "$as_me:$LINENO: result: no" >&5
  8459. echo "${ECHO_T}no" >&6; }
  8460. { { echo "$as_me:$LINENO: error: Can't enable TCP wrappers!" >&5
  8461. echo "$as_me: error: Can't enable TCP wrappers!" >&2;}
  8462. { (exit 1); exit 1; }; }
  8463. fi
  8464. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8465. conftest$ac_exeext conftest.$ac_ext
  8466. fi
  8467. fi
  8468. # include support for "zeroconf"?
  8469. x_zeroconf_on=no
  8470. # Check whether --with-zeroconf was given.
  8471. if test "${with_zeroconf+set}" = set; then
  8472. withval=$with_zeroconf; if test "$withval" != "no"; then
  8473. if test "$withval" != "yes"; then
  8474. CFLAGS="-I$withval/include $CFLAGS"
  8475. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8476. LDFLAGS="-L$withval/lib $LDFLAGS"
  8477. fi
  8478. for ac_func in DNSServiceRegistrationCreate
  8479. do
  8480. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8481. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8482. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8483. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8484. echo $ECHO_N "(cached) $ECHO_C" >&6
  8485. else
  8486. cat >conftest.$ac_ext <<_ACEOF
  8487. /* confdefs.h. */
  8488. _ACEOF
  8489. cat confdefs.h >>conftest.$ac_ext
  8490. cat >>conftest.$ac_ext <<_ACEOF
  8491. /* end confdefs.h. */
  8492. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8493. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8494. #define $ac_func innocuous_$ac_func
  8495. /* System header to define __stub macros and hopefully few prototypes,
  8496. which can conflict with char $ac_func (); below.
  8497. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8498. <limits.h> exists even on freestanding compilers. */
  8499. #ifdef __STDC__
  8500. # include <limits.h>
  8501. #else
  8502. # include <assert.h>
  8503. #endif
  8504. #undef $ac_func
  8505. /* Override any GCC internal prototype to avoid an error.
  8506. Use char because int might match the return type of a GCC
  8507. builtin and then its argument prototype would still apply. */
  8508. #ifdef __cplusplus
  8509. extern "C"
  8510. #endif
  8511. char $ac_func ();
  8512. /* The GNU C library defines this for functions which it implements
  8513. to always fail with ENOSYS. Some functions are actually named
  8514. something starting with __ and the normal name is an alias. */
  8515. #if defined __stub_$ac_func || defined __stub___$ac_func
  8516. choke me
  8517. #endif
  8518. int
  8519. main ()
  8520. {
  8521. return $ac_func ();
  8522. ;
  8523. return 0;
  8524. }
  8525. _ACEOF
  8526. rm -f conftest.$ac_objext conftest$ac_exeext
  8527. if { (ac_try="$ac_link"
  8528. case "(($ac_try" in
  8529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8530. *) ac_try_echo=$ac_try;;
  8531. esac
  8532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8533. (eval "$ac_link") 2>conftest.er1
  8534. ac_status=$?
  8535. grep -v '^ *+' conftest.er1 >conftest.err
  8536. rm -f conftest.er1
  8537. cat conftest.err >&5
  8538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8539. (exit $ac_status); } && {
  8540. test -z "$ac_c_werror_flag" ||
  8541. test ! -s conftest.err
  8542. } && test -s conftest$ac_exeext &&
  8543. $as_test_x conftest$ac_exeext; then
  8544. eval "$as_ac_var=yes"
  8545. else
  8546. echo "$as_me: failed program was:" >&5
  8547. sed 's/^/| /' conftest.$ac_ext >&5
  8548. eval "$as_ac_var=no"
  8549. fi
  8550. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8551. conftest$ac_exeext conftest.$ac_ext
  8552. fi
  8553. ac_res=`eval echo '${'$as_ac_var'}'`
  8554. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8555. echo "${ECHO_T}$ac_res" >&6; }
  8556. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8557. cat >>confdefs.h <<_ACEOF
  8558. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8559. _ACEOF
  8560. x_zeroconf_on=osx
  8561. else
  8562. { echo "$as_me:$LINENO: checking for pthread_mutexattr_init in -lpthread" >&5
  8563. echo $ECHO_N "checking for pthread_mutexattr_init in -lpthread... $ECHO_C" >&6; }
  8564. if test "${ac_cv_lib_pthread_pthread_mutexattr_init+set}" = set; then
  8565. echo $ECHO_N "(cached) $ECHO_C" >&6
  8566. else
  8567. ac_check_lib_save_LIBS=$LIBS
  8568. LIBS="-lpthread $LIBS"
  8569. cat >conftest.$ac_ext <<_ACEOF
  8570. /* confdefs.h. */
  8571. _ACEOF
  8572. cat confdefs.h >>conftest.$ac_ext
  8573. cat >>conftest.$ac_ext <<_ACEOF
  8574. /* end confdefs.h. */
  8575. /* Override any GCC internal prototype to avoid an error.
  8576. Use char because int might match the return type of a GCC
  8577. builtin and then its argument prototype would still apply. */
  8578. #ifdef __cplusplus
  8579. extern "C"
  8580. #endif
  8581. char pthread_mutexattr_init ();
  8582. int
  8583. main ()
  8584. {
  8585. return pthread_mutexattr_init ();
  8586. ;
  8587. return 0;
  8588. }
  8589. _ACEOF
  8590. rm -f conftest.$ac_objext conftest$ac_exeext
  8591. if { (ac_try="$ac_link"
  8592. case "(($ac_try" in
  8593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8594. *) ac_try_echo=$ac_try;;
  8595. esac
  8596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8597. (eval "$ac_link") 2>conftest.er1
  8598. ac_status=$?
  8599. grep -v '^ *+' conftest.er1 >conftest.err
  8600. rm -f conftest.er1
  8601. cat conftest.err >&5
  8602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8603. (exit $ac_status); } && {
  8604. test -z "$ac_c_werror_flag" ||
  8605. test ! -s conftest.err
  8606. } && test -s conftest$ac_exeext &&
  8607. $as_test_x conftest$ac_exeext; then
  8608. ac_cv_lib_pthread_pthread_mutexattr_init=yes
  8609. else
  8610. echo "$as_me: failed program was:" >&5
  8611. sed 's/^/| /' conftest.$ac_ext >&5
  8612. ac_cv_lib_pthread_pthread_mutexattr_init=no
  8613. fi
  8614. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8615. conftest$ac_exeext conftest.$ac_ext
  8616. LIBS=$ac_check_lib_save_LIBS
  8617. fi
  8618. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_init" >&5
  8619. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_init" >&6; }
  8620. if test $ac_cv_lib_pthread_pthread_mutexattr_init = yes; then
  8621. cat >>confdefs.h <<_ACEOF
  8622. #define HAVE_LIBPTHREAD 1
  8623. _ACEOF
  8624. LIBS="-lpthread $LIBS"
  8625. fi
  8626. { echo "$as_me:$LINENO: checking for sw_discovery_init in -lhowl" >&5
  8627. echo $ECHO_N "checking for sw_discovery_init in -lhowl... $ECHO_C" >&6; }
  8628. if test "${ac_cv_lib_howl_sw_discovery_init+set}" = set; then
  8629. echo $ECHO_N "(cached) $ECHO_C" >&6
  8630. else
  8631. ac_check_lib_save_LIBS=$LIBS
  8632. LIBS="-lhowl $LIBS"
  8633. cat >conftest.$ac_ext <<_ACEOF
  8634. /* confdefs.h. */
  8635. _ACEOF
  8636. cat confdefs.h >>conftest.$ac_ext
  8637. cat >>conftest.$ac_ext <<_ACEOF
  8638. /* end confdefs.h. */
  8639. /* Override any GCC internal prototype to avoid an error.
  8640. Use char because int might match the return type of a GCC
  8641. builtin and then its argument prototype would still apply. */
  8642. #ifdef __cplusplus
  8643. extern "C"
  8644. #endif
  8645. char sw_discovery_init ();
  8646. int
  8647. main ()
  8648. {
  8649. return sw_discovery_init ();
  8650. ;
  8651. return 0;
  8652. }
  8653. _ACEOF
  8654. rm -f conftest.$ac_objext conftest$ac_exeext
  8655. if { (ac_try="$ac_link"
  8656. case "(($ac_try" in
  8657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8658. *) ac_try_echo=$ac_try;;
  8659. esac
  8660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8661. (eval "$ac_link") 2>conftest.er1
  8662. ac_status=$?
  8663. grep -v '^ *+' conftest.er1 >conftest.err
  8664. rm -f conftest.er1
  8665. cat conftest.err >&5
  8666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8667. (exit $ac_status); } && {
  8668. test -z "$ac_c_werror_flag" ||
  8669. test ! -s conftest.err
  8670. } && test -s conftest$ac_exeext &&
  8671. $as_test_x conftest$ac_exeext; then
  8672. ac_cv_lib_howl_sw_discovery_init=yes
  8673. else
  8674. echo "$as_me: failed program was:" >&5
  8675. sed 's/^/| /' conftest.$ac_ext >&5
  8676. ac_cv_lib_howl_sw_discovery_init=no
  8677. fi
  8678. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8679. conftest$ac_exeext conftest.$ac_ext
  8680. LIBS=$ac_check_lib_save_LIBS
  8681. fi
  8682. { echo "$as_me:$LINENO: result: $ac_cv_lib_howl_sw_discovery_init" >&5
  8683. echo "${ECHO_T}$ac_cv_lib_howl_sw_discovery_init" >&6; }
  8684. if test $ac_cv_lib_howl_sw_discovery_init = yes; then
  8685. cat >>confdefs.h <<_ACEOF
  8686. #define HAVE_LIBHOWL 1
  8687. _ACEOF
  8688. LIBS="-lhowl $LIBS"
  8689. fi
  8690. for ac_func in sw_discovery_init
  8691. do
  8692. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8693. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8694. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8695. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8696. echo $ECHO_N "(cached) $ECHO_C" >&6
  8697. else
  8698. cat >conftest.$ac_ext <<_ACEOF
  8699. /* confdefs.h. */
  8700. _ACEOF
  8701. cat confdefs.h >>conftest.$ac_ext
  8702. cat >>conftest.$ac_ext <<_ACEOF
  8703. /* end confdefs.h. */
  8704. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8705. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8706. #define $ac_func innocuous_$ac_func
  8707. /* System header to define __stub macros and hopefully few prototypes,
  8708. which can conflict with char $ac_func (); below.
  8709. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8710. <limits.h> exists even on freestanding compilers. */
  8711. #ifdef __STDC__
  8712. # include <limits.h>
  8713. #else
  8714. # include <assert.h>
  8715. #endif
  8716. #undef $ac_func
  8717. /* Override any GCC internal prototype to avoid an error.
  8718. Use char because int might match the return type of a GCC
  8719. builtin and then its argument prototype would still apply. */
  8720. #ifdef __cplusplus
  8721. extern "C"
  8722. #endif
  8723. char $ac_func ();
  8724. /* The GNU C library defines this for functions which it implements
  8725. to always fail with ENOSYS. Some functions are actually named
  8726. something starting with __ and the normal name is an alias. */
  8727. #if defined __stub_$ac_func || defined __stub___$ac_func
  8728. choke me
  8729. #endif
  8730. int
  8731. main ()
  8732. {
  8733. return $ac_func ();
  8734. ;
  8735. return 0;
  8736. }
  8737. _ACEOF
  8738. rm -f conftest.$ac_objext conftest$ac_exeext
  8739. if { (ac_try="$ac_link"
  8740. case "(($ac_try" in
  8741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8742. *) ac_try_echo=$ac_try;;
  8743. esac
  8744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8745. (eval "$ac_link") 2>conftest.er1
  8746. ac_status=$?
  8747. grep -v '^ *+' conftest.er1 >conftest.err
  8748. rm -f conftest.er1
  8749. cat conftest.err >&5
  8750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8751. (exit $ac_status); } && {
  8752. test -z "$ac_c_werror_flag" ||
  8753. test ! -s conftest.err
  8754. } && test -s conftest$ac_exeext &&
  8755. $as_test_x conftest$ac_exeext; then
  8756. eval "$as_ac_var=yes"
  8757. else
  8758. echo "$as_me: failed program was:" >&5
  8759. sed 's/^/| /' conftest.$ac_ext >&5
  8760. eval "$as_ac_var=no"
  8761. fi
  8762. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8763. conftest$ac_exeext conftest.$ac_ext
  8764. fi
  8765. ac_res=`eval echo '${'$as_ac_var'}'`
  8766. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8767. echo "${ECHO_T}$ac_res" >&6; }
  8768. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8769. cat >>confdefs.h <<_ACEOF
  8770. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8771. _ACEOF
  8772. \
  8773. x_zeroconf_on=howl
  8774. else
  8775. \
  8776. { { echo "$as_me:$LINENO: error: Can't enable Zeroconf!" >&5
  8777. echo "$as_me: error: Can't enable Zeroconf!" >&2;}
  8778. { (exit 1); exit 1; }; }
  8779. fi
  8780. done
  8781. fi
  8782. done
  8783. fi
  8784. fi
  8785. if test "$x_zeroconf_on" = "osx"; then
  8786. for ac_header in DNSServiceDiscovery/DNSServiceDiscovery.h \
  8787. mach/port.h
  8788. do
  8789. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8790. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8791. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8792. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8793. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8794. echo $ECHO_N "(cached) $ECHO_C" >&6
  8795. fi
  8796. ac_res=`eval echo '${'$as_ac_Header'}'`
  8797. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8798. echo "${ECHO_T}$ac_res" >&6; }
  8799. else
  8800. # Is the header compilable?
  8801. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8802. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8803. cat >conftest.$ac_ext <<_ACEOF
  8804. /* confdefs.h. */
  8805. _ACEOF
  8806. cat confdefs.h >>conftest.$ac_ext
  8807. cat >>conftest.$ac_ext <<_ACEOF
  8808. /* end confdefs.h. */
  8809. $ac_includes_default
  8810. #include <$ac_header>
  8811. _ACEOF
  8812. rm -f conftest.$ac_objext
  8813. if { (ac_try="$ac_compile"
  8814. case "(($ac_try" in
  8815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8816. *) ac_try_echo=$ac_try;;
  8817. esac
  8818. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8819. (eval "$ac_compile") 2>conftest.er1
  8820. ac_status=$?
  8821. grep -v '^ *+' conftest.er1 >conftest.err
  8822. rm -f conftest.er1
  8823. cat conftest.err >&5
  8824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8825. (exit $ac_status); } && {
  8826. test -z "$ac_c_werror_flag" ||
  8827. test ! -s conftest.err
  8828. } && test -s conftest.$ac_objext; then
  8829. ac_header_compiler=yes
  8830. else
  8831. echo "$as_me: failed program was:" >&5
  8832. sed 's/^/| /' conftest.$ac_ext >&5
  8833. ac_header_compiler=no
  8834. fi
  8835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8836. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8837. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8838. # Is the header present?
  8839. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8840. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8841. cat >conftest.$ac_ext <<_ACEOF
  8842. /* confdefs.h. */
  8843. _ACEOF
  8844. cat confdefs.h >>conftest.$ac_ext
  8845. cat >>conftest.$ac_ext <<_ACEOF
  8846. /* end confdefs.h. */
  8847. #include <$ac_header>
  8848. _ACEOF
  8849. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8850. case "(($ac_try" in
  8851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8852. *) ac_try_echo=$ac_try;;
  8853. esac
  8854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8855. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8856. ac_status=$?
  8857. grep -v '^ *+' conftest.er1 >conftest.err
  8858. rm -f conftest.er1
  8859. cat conftest.err >&5
  8860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8861. (exit $ac_status); } >/dev/null && {
  8862. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8863. test ! -s conftest.err
  8864. }; then
  8865. ac_header_preproc=yes
  8866. else
  8867. echo "$as_me: failed program was:" >&5
  8868. sed 's/^/| /' conftest.$ac_ext >&5
  8869. ac_header_preproc=no
  8870. fi
  8871. rm -f conftest.err conftest.$ac_ext
  8872. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8873. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8874. # So? What about this header?
  8875. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8876. yes:no: )
  8877. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8878. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8879. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8880. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8881. ac_header_preproc=yes
  8882. ;;
  8883. no:yes:* )
  8884. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8885. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8886. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8887. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8888. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8889. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8890. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8891. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8892. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8893. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8894. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8895. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8896. ;;
  8897. esac
  8898. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8899. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8900. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8901. echo $ECHO_N "(cached) $ECHO_C" >&6
  8902. else
  8903. eval "$as_ac_Header=\$ac_header_preproc"
  8904. fi
  8905. ac_res=`eval echo '${'$as_ac_Header'}'`
  8906. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8907. echo "${ECHO_T}$ac_res" >&6; }
  8908. fi
  8909. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8910. cat >>confdefs.h <<_ACEOF
  8911. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8912. _ACEOF
  8913. else
  8914. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  8915. echo "$as_me: error: required C header missing!" >&2;}
  8916. { (exit 1); exit 1; }; }
  8917. fi
  8918. done
  8919. cat >>confdefs.h <<\_ACEOF
  8920. #define ZEROCONF 1
  8921. _ACEOF
  8922. fi
  8923. if test "$x_zeroconf_on" = "howl"; then
  8924. for dir in /usr/local/include /usr/local/include/howl* \
  8925. /usr/include /usr/include/howl* \
  8926. /usr/local/include/avahi* /usr/include/avahi*; do
  8927. test -d "$dir" || continue
  8928. { echo "$as_me:$LINENO: checking for Howl headers in $dir" >&5
  8929. echo $ECHO_N "checking for Howl headers in $dir... $ECHO_C" >&6; }
  8930. if test -f "$dir/rendezvous/rendezvous.h"; then
  8931. if test "$dir" != "/usr/local/include" -a \
  8932. "$dir" != "/usr/include"; then
  8933. CFLAGS="-I$dir $CFLAGS"
  8934. CPPFLAGS="-I$dir $CPPFLAGS"
  8935. fi
  8936. { echo "$as_me:$LINENO: result: yes" >&5
  8937. echo "${ECHO_T}yes" >&6; }
  8938. break
  8939. else
  8940. { echo "$as_me:$LINENO: result: no" >&5
  8941. echo "${ECHO_T}no" >&6; }
  8942. fi
  8943. done
  8944. for ac_header in rendezvous/rendezvous.h
  8945. do
  8946. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8947. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8948. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8949. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8950. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8951. echo $ECHO_N "(cached) $ECHO_C" >&6
  8952. fi
  8953. ac_res=`eval echo '${'$as_ac_Header'}'`
  8954. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8955. echo "${ECHO_T}$ac_res" >&6; }
  8956. else
  8957. # Is the header compilable?
  8958. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8959. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8960. cat >conftest.$ac_ext <<_ACEOF
  8961. /* confdefs.h. */
  8962. _ACEOF
  8963. cat confdefs.h >>conftest.$ac_ext
  8964. cat >>conftest.$ac_ext <<_ACEOF
  8965. /* end confdefs.h. */
  8966. $ac_includes_default
  8967. #include <$ac_header>
  8968. _ACEOF
  8969. rm -f conftest.$ac_objext
  8970. if { (ac_try="$ac_compile"
  8971. case "(($ac_try" in
  8972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8973. *) ac_try_echo=$ac_try;;
  8974. esac
  8975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8976. (eval "$ac_compile") 2>conftest.er1
  8977. ac_status=$?
  8978. grep -v '^ *+' conftest.er1 >conftest.err
  8979. rm -f conftest.er1
  8980. cat conftest.err >&5
  8981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8982. (exit $ac_status); } && {
  8983. test -z "$ac_c_werror_flag" ||
  8984. test ! -s conftest.err
  8985. } && test -s conftest.$ac_objext; then
  8986. ac_header_compiler=yes
  8987. else
  8988. echo "$as_me: failed program was:" >&5
  8989. sed 's/^/| /' conftest.$ac_ext >&5
  8990. ac_header_compiler=no
  8991. fi
  8992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8993. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8994. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8995. # Is the header present?
  8996. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8997. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8998. cat >conftest.$ac_ext <<_ACEOF
  8999. /* confdefs.h. */
  9000. _ACEOF
  9001. cat confdefs.h >>conftest.$ac_ext
  9002. cat >>conftest.$ac_ext <<_ACEOF
  9003. /* end confdefs.h. */
  9004. #include <$ac_header>
  9005. _ACEOF
  9006. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9007. case "(($ac_try" in
  9008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9009. *) ac_try_echo=$ac_try;;
  9010. esac
  9011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9012. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9013. ac_status=$?
  9014. grep -v '^ *+' conftest.er1 >conftest.err
  9015. rm -f conftest.er1
  9016. cat conftest.err >&5
  9017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9018. (exit $ac_status); } >/dev/null && {
  9019. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9020. test ! -s conftest.err
  9021. }; then
  9022. ac_header_preproc=yes
  9023. else
  9024. echo "$as_me: failed program was:" >&5
  9025. sed 's/^/| /' conftest.$ac_ext >&5
  9026. ac_header_preproc=no
  9027. fi
  9028. rm -f conftest.err conftest.$ac_ext
  9029. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9030. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9031. # So? What about this header?
  9032. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9033. yes:no: )
  9034. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9035. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9036. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9037. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9038. ac_header_preproc=yes
  9039. ;;
  9040. no:yes:* )
  9041. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9042. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9043. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9044. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9045. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9046. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9047. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9048. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9049. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9050. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9051. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9052. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9053. ;;
  9054. esac
  9055. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9056. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9057. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9058. echo $ECHO_N "(cached) $ECHO_C" >&6
  9059. else
  9060. eval "$as_ac_Header=\$ac_header_preproc"
  9061. fi
  9062. ac_res=`eval echo '${'$as_ac_Header'}'`
  9063. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9064. echo "${ECHO_T}$ac_res" >&6; }
  9065. fi
  9066. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9067. cat >>confdefs.h <<_ACEOF
  9068. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9069. _ACEOF
  9070. else
  9071. \
  9072. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  9073. echo "$as_me: error: required C header missing!" >&2;}
  9074. { (exit 1); exit 1; }; }
  9075. fi
  9076. done
  9077. cat >>confdefs.h <<\_ACEOF
  9078. #define ZEROCONF 1
  9079. _ACEOF
  9080. fi
  9081. # do IDENT requests using libident?
  9082. x_identauth_on=no
  9083. # Check whether --with-ident was given.
  9084. if test "${with_ident+set}" = set; then
  9085. withval=$with_ident; if test "$withval" != "no"; then
  9086. if test "$withval" != "yes"; then
  9087. CFLAGS="-I$withval/include $CFLAGS"
  9088. CPPFLAGS="-I$withval/include $CPPFLAGS"
  9089. LDFLAGS="-L$withval/lib $LDFLAGS"
  9090. fi
  9091. { echo "$as_me:$LINENO: checking for ident_id in -lident" >&5
  9092. echo $ECHO_N "checking for ident_id in -lident... $ECHO_C" >&6; }
  9093. if test "${ac_cv_lib_ident_ident_id+set}" = set; then
  9094. echo $ECHO_N "(cached) $ECHO_C" >&6
  9095. else
  9096. ac_check_lib_save_LIBS=$LIBS
  9097. LIBS="-lident $LIBS"
  9098. cat >conftest.$ac_ext <<_ACEOF
  9099. /* confdefs.h. */
  9100. _ACEOF
  9101. cat confdefs.h >>conftest.$ac_ext
  9102. cat >>conftest.$ac_ext <<_ACEOF
  9103. /* end confdefs.h. */
  9104. /* Override any GCC internal prototype to avoid an error.
  9105. Use char because int might match the return type of a GCC
  9106. builtin and then its argument prototype would still apply. */
  9107. #ifdef __cplusplus
  9108. extern "C"
  9109. #endif
  9110. char ident_id ();
  9111. int
  9112. main ()
  9113. {
  9114. return ident_id ();
  9115. ;
  9116. return 0;
  9117. }
  9118. _ACEOF
  9119. rm -f conftest.$ac_objext conftest$ac_exeext
  9120. if { (ac_try="$ac_link"
  9121. case "(($ac_try" in
  9122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9123. *) ac_try_echo=$ac_try;;
  9124. esac
  9125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9126. (eval "$ac_link") 2>conftest.er1
  9127. ac_status=$?
  9128. grep -v '^ *+' conftest.er1 >conftest.err
  9129. rm -f conftest.er1
  9130. cat conftest.err >&5
  9131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9132. (exit $ac_status); } && {
  9133. test -z "$ac_c_werror_flag" ||
  9134. test ! -s conftest.err
  9135. } && test -s conftest$ac_exeext &&
  9136. $as_test_x conftest$ac_exeext; then
  9137. ac_cv_lib_ident_ident_id=yes
  9138. else
  9139. echo "$as_me: failed program was:" >&5
  9140. sed 's/^/| /' conftest.$ac_ext >&5
  9141. ac_cv_lib_ident_ident_id=no
  9142. fi
  9143. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9144. conftest$ac_exeext conftest.$ac_ext
  9145. LIBS=$ac_check_lib_save_LIBS
  9146. fi
  9147. { echo "$as_me:$LINENO: result: $ac_cv_lib_ident_ident_id" >&5
  9148. echo "${ECHO_T}$ac_cv_lib_ident_ident_id" >&6; }
  9149. if test $ac_cv_lib_ident_ident_id = yes; then
  9150. cat >>confdefs.h <<_ACEOF
  9151. #define HAVE_LIBIDENT 1
  9152. _ACEOF
  9153. LIBS="-lident $LIBS"
  9154. fi
  9155. for ac_func in ident_id
  9156. do
  9157. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9158. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9159. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9160. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9161. echo $ECHO_N "(cached) $ECHO_C" >&6
  9162. else
  9163. cat >conftest.$ac_ext <<_ACEOF
  9164. /* confdefs.h. */
  9165. _ACEOF
  9166. cat confdefs.h >>conftest.$ac_ext
  9167. cat >>conftest.$ac_ext <<_ACEOF
  9168. /* end confdefs.h. */
  9169. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9170. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9171. #define $ac_func innocuous_$ac_func
  9172. /* System header to define __stub macros and hopefully few prototypes,
  9173. which can conflict with char $ac_func (); below.
  9174. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9175. <limits.h> exists even on freestanding compilers. */
  9176. #ifdef __STDC__
  9177. # include <limits.h>
  9178. #else
  9179. # include <assert.h>
  9180. #endif
  9181. #undef $ac_func
  9182. /* Override any GCC internal prototype to avoid an error.
  9183. Use char because int might match the return type of a GCC
  9184. builtin and then its argument prototype would still apply. */
  9185. #ifdef __cplusplus
  9186. extern "C"
  9187. #endif
  9188. char $ac_func ();
  9189. /* The GNU C library defines this for functions which it implements
  9190. to always fail with ENOSYS. Some functions are actually named
  9191. something starting with __ and the normal name is an alias. */
  9192. #if defined __stub_$ac_func || defined __stub___$ac_func
  9193. choke me
  9194. #endif
  9195. int
  9196. main ()
  9197. {
  9198. return $ac_func ();
  9199. ;
  9200. return 0;
  9201. }
  9202. _ACEOF
  9203. rm -f conftest.$ac_objext conftest$ac_exeext
  9204. if { (ac_try="$ac_link"
  9205. case "(($ac_try" in
  9206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9207. *) ac_try_echo=$ac_try;;
  9208. esac
  9209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9210. (eval "$ac_link") 2>conftest.er1
  9211. ac_status=$?
  9212. grep -v '^ *+' conftest.er1 >conftest.err
  9213. rm -f conftest.er1
  9214. cat conftest.err >&5
  9215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9216. (exit $ac_status); } && {
  9217. test -z "$ac_c_werror_flag" ||
  9218. test ! -s conftest.err
  9219. } && test -s conftest$ac_exeext &&
  9220. $as_test_x conftest$ac_exeext; then
  9221. eval "$as_ac_var=yes"
  9222. else
  9223. echo "$as_me: failed program was:" >&5
  9224. sed 's/^/| /' conftest.$ac_ext >&5
  9225. eval "$as_ac_var=no"
  9226. fi
  9227. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9228. conftest$ac_exeext conftest.$ac_ext
  9229. fi
  9230. ac_res=`eval echo '${'$as_ac_var'}'`
  9231. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9232. echo "${ECHO_T}$ac_res" >&6; }
  9233. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9234. cat >>confdefs.h <<_ACEOF
  9235. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9236. _ACEOF
  9237. x_identauth_on=yes
  9238. else
  9239. { { echo "$as_me:$LINENO: error: Can't enable IDENT support!" >&5
  9240. echo "$as_me: error: Can't enable IDENT support!" >&2;}
  9241. { (exit 1); exit 1; }; }
  9242. fi
  9243. done
  9244. fi
  9245. fi
  9246. if test "$x_identauth_on" = "yes"; then
  9247. cat >>confdefs.h <<\_ACEOF
  9248. #define IDENTAUTH 1
  9249. _ACEOF
  9250. for ac_header in ident.h
  9251. do
  9252. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9253. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9254. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9255. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9256. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9257. echo $ECHO_N "(cached) $ECHO_C" >&6
  9258. fi
  9259. ac_res=`eval echo '${'$as_ac_Header'}'`
  9260. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9261. echo "${ECHO_T}$ac_res" >&6; }
  9262. else
  9263. # Is the header compilable?
  9264. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9265. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9266. cat >conftest.$ac_ext <<_ACEOF
  9267. /* confdefs.h. */
  9268. _ACEOF
  9269. cat confdefs.h >>conftest.$ac_ext
  9270. cat >>conftest.$ac_ext <<_ACEOF
  9271. /* end confdefs.h. */
  9272. $ac_includes_default
  9273. #include <$ac_header>
  9274. _ACEOF
  9275. rm -f conftest.$ac_objext
  9276. if { (ac_try="$ac_compile"
  9277. case "(($ac_try" in
  9278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9279. *) ac_try_echo=$ac_try;;
  9280. esac
  9281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9282. (eval "$ac_compile") 2>conftest.er1
  9283. ac_status=$?
  9284. grep -v '^ *+' conftest.er1 >conftest.err
  9285. rm -f conftest.er1
  9286. cat conftest.err >&5
  9287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9288. (exit $ac_status); } && {
  9289. test -z "$ac_c_werror_flag" ||
  9290. test ! -s conftest.err
  9291. } && test -s conftest.$ac_objext; then
  9292. ac_header_compiler=yes
  9293. else
  9294. echo "$as_me: failed program was:" >&5
  9295. sed 's/^/| /' conftest.$ac_ext >&5
  9296. ac_header_compiler=no
  9297. fi
  9298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9299. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9300. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9301. # Is the header present?
  9302. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9303. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9304. cat >conftest.$ac_ext <<_ACEOF
  9305. /* confdefs.h. */
  9306. _ACEOF
  9307. cat confdefs.h >>conftest.$ac_ext
  9308. cat >>conftest.$ac_ext <<_ACEOF
  9309. /* end confdefs.h. */
  9310. #include <$ac_header>
  9311. _ACEOF
  9312. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9313. case "(($ac_try" in
  9314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9315. *) ac_try_echo=$ac_try;;
  9316. esac
  9317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9318. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9319. ac_status=$?
  9320. grep -v '^ *+' conftest.er1 >conftest.err
  9321. rm -f conftest.er1
  9322. cat conftest.err >&5
  9323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); } >/dev/null && {
  9325. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9326. test ! -s conftest.err
  9327. }; then
  9328. ac_header_preproc=yes
  9329. else
  9330. echo "$as_me: failed program was:" >&5
  9331. sed 's/^/| /' conftest.$ac_ext >&5
  9332. ac_header_preproc=no
  9333. fi
  9334. rm -f conftest.err conftest.$ac_ext
  9335. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9336. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9337. # So? What about this header?
  9338. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9339. yes:no: )
  9340. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9341. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9342. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9343. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9344. ac_header_preproc=yes
  9345. ;;
  9346. no:yes:* )
  9347. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9348. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9349. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9350. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9351. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9352. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9353. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9354. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9355. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9356. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9357. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9358. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9359. ;;
  9360. esac
  9361. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9362. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9363. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9364. echo $ECHO_N "(cached) $ECHO_C" >&6
  9365. else
  9366. eval "$as_ac_Header=\$ac_header_preproc"
  9367. fi
  9368. ac_res=`eval echo '${'$as_ac_Header'}'`
  9369. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9370. echo "${ECHO_T}$ac_res" >&6; }
  9371. fi
  9372. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9373. cat >>confdefs.h <<_ACEOF
  9374. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9375. _ACEOF
  9376. else
  9377. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  9378. echo "$as_me: error: required C header missing!" >&2;}
  9379. { (exit 1); exit 1; }; }
  9380. fi
  9381. done
  9382. fi
  9383. # compile in IRC+ protocol support?
  9384. x_ircplus_on=yes
  9385. # Check whether --enable-ircplus was given.
  9386. if test "${enable_ircplus+set}" = set; then
  9387. enableval=$enable_ircplus; if test "$enableval" = "no"; then x_ircplus_on=no; fi
  9388. fi
  9389. if test "$x_ircplus_on" = "yes"; then
  9390. cat >>confdefs.h <<\_ACEOF
  9391. #define IRCPLUS 1
  9392. _ACEOF
  9393. fi
  9394. # enable support for IPv6?
  9395. x_ipv6_on=no
  9396. # Check whether --enable-ipv6 was given.
  9397. if test "${enable_ipv6+set}" = set; then
  9398. enableval=$enable_ipv6; if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
  9399. fi
  9400. if test "$x_ipv6_on" = "yes"; then
  9401. # getaddrinfo() and getnameinfo() are optional when not compiling
  9402. # with IPv6 support, but are required for IPv6 to work!
  9403. for ac_func in \
  9404. getaddrinfo getnameinfo \
  9405. do
  9406. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9407. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9408. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9409. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9410. echo $ECHO_N "(cached) $ECHO_C" >&6
  9411. else
  9412. cat >conftest.$ac_ext <<_ACEOF
  9413. /* confdefs.h. */
  9414. _ACEOF
  9415. cat confdefs.h >>conftest.$ac_ext
  9416. cat >>conftest.$ac_ext <<_ACEOF
  9417. /* end confdefs.h. */
  9418. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9419. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9420. #define $ac_func innocuous_$ac_func
  9421. /* System header to define __stub macros and hopefully few prototypes,
  9422. which can conflict with char $ac_func (); below.
  9423. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9424. <limits.h> exists even on freestanding compilers. */
  9425. #ifdef __STDC__
  9426. # include <limits.h>
  9427. #else
  9428. # include <assert.h>
  9429. #endif
  9430. #undef $ac_func
  9431. /* Override any GCC internal prototype to avoid an error.
  9432. Use char because int might match the return type of a GCC
  9433. builtin and then its argument prototype would still apply. */
  9434. #ifdef __cplusplus
  9435. extern "C"
  9436. #endif
  9437. char $ac_func ();
  9438. /* The GNU C library defines this for functions which it implements
  9439. to always fail with ENOSYS. Some functions are actually named
  9440. something starting with __ and the normal name is an alias. */
  9441. #if defined __stub_$ac_func || defined __stub___$ac_func
  9442. choke me
  9443. #endif
  9444. int
  9445. main ()
  9446. {
  9447. return $ac_func ();
  9448. ;
  9449. return 0;
  9450. }
  9451. _ACEOF
  9452. rm -f conftest.$ac_objext conftest$ac_exeext
  9453. if { (ac_try="$ac_link"
  9454. case "(($ac_try" in
  9455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9456. *) ac_try_echo=$ac_try;;
  9457. esac
  9458. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9459. (eval "$ac_link") 2>conftest.er1
  9460. ac_status=$?
  9461. grep -v '^ *+' conftest.er1 >conftest.err
  9462. rm -f conftest.er1
  9463. cat conftest.err >&5
  9464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9465. (exit $ac_status); } && {
  9466. test -z "$ac_c_werror_flag" ||
  9467. test ! -s conftest.err
  9468. } && test -s conftest$ac_exeext &&
  9469. $as_test_x conftest$ac_exeext; then
  9470. eval "$as_ac_var=yes"
  9471. else
  9472. echo "$as_me: failed program was:" >&5
  9473. sed 's/^/| /' conftest.$ac_ext >&5
  9474. eval "$as_ac_var=no"
  9475. fi
  9476. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9477. conftest$ac_exeext conftest.$ac_ext
  9478. fi
  9479. ac_res=`eval echo '${'$as_ac_var'}'`
  9480. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9481. echo "${ECHO_T}$ac_res" >&6; }
  9482. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9483. cat >>confdefs.h <<_ACEOF
  9484. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9485. _ACEOF
  9486. else
  9487. { { echo "$as_me:$LINENO: error: required function missing for IPv6 support!" >&5
  9488. echo "$as_me: error: required function missing for IPv6 support!" >&2;}
  9489. { (exit 1); exit 1; }; }
  9490. fi
  9491. done
  9492. cat >>confdefs.h <<\_ACEOF
  9493. #define WANT_IPV6 1
  9494. _ACEOF
  9495. fi
  9496. # compile in IRC "sniffer"?
  9497. x_sniffer_on=no; x_debug_on=no
  9498. # Check whether --enable-sniffer was given.
  9499. if test "${enable_sniffer+set}" = set; then
  9500. enableval=$enable_sniffer; if test "$enableval" = "yes"; then
  9501. cat >>confdefs.h <<\_ACEOF
  9502. #define SNIFFER 1
  9503. _ACEOF
  9504. x_sniffer_on=yes; x_debug_on=yes
  9505. fi
  9506. fi
  9507. # enable additional debugging code?
  9508. # Check whether --enable-debug was given.
  9509. if test "${enable_debug+set}" = set; then
  9510. enableval=$enable_debug; if test "$enableval" = "yes"; then x_debug_on=yes; fi
  9511. fi
  9512. if test "$x_debug_on" = "yes"; then
  9513. cat >>confdefs.h <<\_ACEOF
  9514. #define DEBUG 1
  9515. _ACEOF
  9516. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  9517. for ac_func in mtrace
  9518. do
  9519. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9520. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9521. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9522. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9523. echo $ECHO_N "(cached) $ECHO_C" >&6
  9524. else
  9525. cat >conftest.$ac_ext <<_ACEOF
  9526. /* confdefs.h. */
  9527. _ACEOF
  9528. cat confdefs.h >>conftest.$ac_ext
  9529. cat >>conftest.$ac_ext <<_ACEOF
  9530. /* end confdefs.h. */
  9531. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9532. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9533. #define $ac_func innocuous_$ac_func
  9534. /* System header to define __stub macros and hopefully few prototypes,
  9535. which can conflict with char $ac_func (); below.
  9536. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9537. <limits.h> exists even on freestanding compilers. */
  9538. #ifdef __STDC__
  9539. # include <limits.h>
  9540. #else
  9541. # include <assert.h>
  9542. #endif
  9543. #undef $ac_func
  9544. /* Override any GCC internal prototype to avoid an error.
  9545. Use char because int might match the return type of a GCC
  9546. builtin and then its argument prototype would still apply. */
  9547. #ifdef __cplusplus
  9548. extern "C"
  9549. #endif
  9550. char $ac_func ();
  9551. /* The GNU C library defines this for functions which it implements
  9552. to always fail with ENOSYS. Some functions are actually named
  9553. something starting with __ and the normal name is an alias. */
  9554. #if defined __stub_$ac_func || defined __stub___$ac_func
  9555. choke me
  9556. #endif
  9557. int
  9558. main ()
  9559. {
  9560. return $ac_func ();
  9561. ;
  9562. return 0;
  9563. }
  9564. _ACEOF
  9565. rm -f conftest.$ac_objext conftest$ac_exeext
  9566. if { (ac_try="$ac_link"
  9567. case "(($ac_try" in
  9568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9569. *) ac_try_echo=$ac_try;;
  9570. esac
  9571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9572. (eval "$ac_link") 2>conftest.er1
  9573. ac_status=$?
  9574. grep -v '^ *+' conftest.er1 >conftest.err
  9575. rm -f conftest.er1
  9576. cat conftest.err >&5
  9577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9578. (exit $ac_status); } && {
  9579. test -z "$ac_c_werror_flag" ||
  9580. test ! -s conftest.err
  9581. } && test -s conftest$ac_exeext &&
  9582. $as_test_x conftest$ac_exeext; then
  9583. eval "$as_ac_var=yes"
  9584. else
  9585. echo "$as_me: failed program was:" >&5
  9586. sed 's/^/| /' conftest.$ac_ext >&5
  9587. eval "$as_ac_var=no"
  9588. fi
  9589. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9590. conftest$ac_exeext conftest.$ac_ext
  9591. fi
  9592. ac_res=`eval echo '${'$as_ac_var'}'`
  9593. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9594. echo "${ECHO_T}$ac_res" >&6; }
  9595. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9596. cat >>confdefs.h <<_ACEOF
  9597. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9598. _ACEOF
  9599. fi
  9600. done
  9601. fi
  9602. # enable "strict RFC rules"?
  9603. x_strict_rfc_on=no
  9604. # Check whether --enable-strict-rfc was given.
  9605. if test "${enable_strict_rfc+set}" = set; then
  9606. enableval=$enable_strict_rfc; if test "$enableval" = "yes"; then
  9607. cat >>confdefs.h <<\_ACEOF
  9608. #define STRICT_RFC 1
  9609. _ACEOF
  9610. x_strict_rfc_on=yes
  9611. fi
  9612. fi
  9613. # -- Definitions --
  9614. cat >>confdefs.h <<_ACEOF
  9615. #define TARGET_CPU "$target_cpu"
  9616. _ACEOF
  9617. cat >>confdefs.h <<_ACEOF
  9618. #define TARGET_VENDOR "$target_vendor"
  9619. _ACEOF
  9620. cat >>confdefs.h <<_ACEOF
  9621. #define TARGET_OS "$target_os"
  9622. _ACEOF
  9623. # Add additional CFLAGS, eventually specified on the command line, but after
  9624. # running this configure script. Useful for "-Werror" for example.
  9625. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  9626. # -- Generate files --
  9627. ac_config_files="$ac_config_files Makefile doc/Makefile doc/src/Makefile src/Makefile src/portab/Makefile src/ipaddr/Makefile src/tool/Makefile src/ngircd/Makefile src/testsuite/Makefile man/Makefile contrib/Makefile contrib/Debian/Makefile contrib/MacOSX/Makefile contrib/MacOSX/ngIRCd.xcodeproj/Makefile contrib/MacOSX/ngIRCd.pmdoc/Makefile"
  9628. cat >confcache <<\_ACEOF
  9629. # This file is a shell script that caches the results of configure
  9630. # tests run on this system so they can be shared between configure
  9631. # scripts and configure runs, see configure's option --config-cache.
  9632. # It is not useful on other systems. If it contains results you don't
  9633. # want to keep, you may remove or edit it.
  9634. #
  9635. # config.status only pays attention to the cache file if you give it
  9636. # the --recheck option to rerun configure.
  9637. #
  9638. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9639. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9640. # following values.
  9641. _ACEOF
  9642. # The following way of writing the cache mishandles newlines in values,
  9643. # but we know of no workaround that is simple, portable, and efficient.
  9644. # So, we kill variables containing newlines.
  9645. # Ultrix sh set writes to stderr and can't be redirected directly,
  9646. # and sets the high bit in the cache file unless we assign to the vars.
  9647. (
  9648. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9649. eval ac_val=\$$ac_var
  9650. case $ac_val in #(
  9651. *${as_nl}*)
  9652. case $ac_var in #(
  9653. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  9654. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  9655. esac
  9656. case $ac_var in #(
  9657. _ | IFS | as_nl) ;; #(
  9658. *) $as_unset $ac_var ;;
  9659. esac ;;
  9660. esac
  9661. done
  9662. (set) 2>&1 |
  9663. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9664. *${as_nl}ac_space=\ *)
  9665. # `set' does not quote correctly, so add quotes (double-quote
  9666. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9667. sed -n \
  9668. "s/'/'\\\\''/g;
  9669. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9670. ;; #(
  9671. *)
  9672. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9673. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9674. ;;
  9675. esac |
  9676. sort
  9677. ) |
  9678. sed '
  9679. /^ac_cv_env_/b end
  9680. t clear
  9681. :clear
  9682. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9683. t end
  9684. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9685. :end' >>confcache
  9686. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9687. if test -w "$cache_file"; then
  9688. test "x$cache_file" != "x/dev/null" &&
  9689. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  9690. echo "$as_me: updating cache $cache_file" >&6;}
  9691. cat confcache >$cache_file
  9692. else
  9693. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  9694. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9695. fi
  9696. fi
  9697. rm -f confcache
  9698. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9699. # Let make expand exec_prefix.
  9700. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9701. DEFS=-DHAVE_CONFIG_H
  9702. ac_libobjs=
  9703. ac_ltlibobjs=
  9704. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9705. # 1. Remove the extension, and $U if already installed.
  9706. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9707. ac_i=`echo "$ac_i" | sed "$ac_script"`
  9708. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9709. # will be set to the directory where LIBOBJS objects are built.
  9710. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9711. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  9712. done
  9713. LIBOBJS=$ac_libobjs
  9714. LTLIBOBJS=$ac_ltlibobjs
  9715. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9716. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  9717. Usually this means the macro was only invoked conditionally." >&5
  9718. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  9719. Usually this means the macro was only invoked conditionally." >&2;}
  9720. { (exit 1); exit 1; }; }
  9721. fi
  9722. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9723. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  9724. Usually this means the macro was only invoked conditionally." >&5
  9725. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  9726. Usually this means the macro was only invoked conditionally." >&2;}
  9727. { (exit 1); exit 1; }; }
  9728. fi
  9729. : ${CONFIG_STATUS=./config.status}
  9730. ac_clean_files_save=$ac_clean_files
  9731. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9732. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9733. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9734. cat >$CONFIG_STATUS <<_ACEOF
  9735. #! $SHELL
  9736. # Generated by $as_me.
  9737. # Run this file to recreate the current configuration.
  9738. # Compiler output produced by configure, useful for debugging
  9739. # configure, is in config.log if it exists.
  9740. debug=false
  9741. ac_cs_recheck=false
  9742. ac_cs_silent=false
  9743. SHELL=\${CONFIG_SHELL-$SHELL}
  9744. _ACEOF
  9745. cat >>$CONFIG_STATUS <<\_ACEOF
  9746. ## --------------------- ##
  9747. ## M4sh Initialization. ##
  9748. ## --------------------- ##
  9749. # Be more Bourne compatible
  9750. DUALCASE=1; export DUALCASE # for MKS sh
  9751. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9752. emulate sh
  9753. NULLCMD=:
  9754. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9755. # is contrary to our usage. Disable this feature.
  9756. alias -g '${1+"$@"}'='"$@"'
  9757. setopt NO_GLOB_SUBST
  9758. else
  9759. case `(set -o) 2>/dev/null` in
  9760. *posix*) set -o posix ;;
  9761. esac
  9762. fi
  9763. # PATH needs CR
  9764. # Avoid depending upon Character Ranges.
  9765. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9766. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9767. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9768. as_cr_digits='0123456789'
  9769. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9770. # The user is always right.
  9771. if test "${PATH_SEPARATOR+set}" != set; then
  9772. echo "#! /bin/sh" >conf$$.sh
  9773. echo "exit 0" >>conf$$.sh
  9774. chmod +x conf$$.sh
  9775. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9776. PATH_SEPARATOR=';'
  9777. else
  9778. PATH_SEPARATOR=:
  9779. fi
  9780. rm -f conf$$.sh
  9781. fi
  9782. # Support unset when possible.
  9783. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9784. as_unset=unset
  9785. else
  9786. as_unset=false
  9787. fi
  9788. # IFS
  9789. # We need space, tab and new line, in precisely that order. Quoting is
  9790. # there to prevent editors from complaining about space-tab.
  9791. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9792. # splitting by setting IFS to empty value.)
  9793. as_nl='
  9794. '
  9795. IFS=" "" $as_nl"
  9796. # Find who we are. Look in the path if we contain no directory separator.
  9797. case $0 in
  9798. *[\\/]* ) as_myself=$0 ;;
  9799. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9800. for as_dir in $PATH
  9801. do
  9802. IFS=$as_save_IFS
  9803. test -z "$as_dir" && as_dir=.
  9804. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9805. done
  9806. IFS=$as_save_IFS
  9807. ;;
  9808. esac
  9809. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9810. # in which case we are not to be found in the path.
  9811. if test "x$as_myself" = x; then
  9812. as_myself=$0
  9813. fi
  9814. if test ! -f "$as_myself"; then
  9815. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9816. { (exit 1); exit 1; }
  9817. fi
  9818. # Work around bugs in pre-3.0 UWIN ksh.
  9819. for as_var in ENV MAIL MAILPATH
  9820. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9821. done
  9822. PS1='$ '
  9823. PS2='> '
  9824. PS4='+ '
  9825. # NLS nuisances.
  9826. for as_var in \
  9827. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9828. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9829. LC_TELEPHONE LC_TIME
  9830. do
  9831. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9832. eval $as_var=C; export $as_var
  9833. else
  9834. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9835. fi
  9836. done
  9837. # Required to use basename.
  9838. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9839. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9840. as_expr=expr
  9841. else
  9842. as_expr=false
  9843. fi
  9844. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9845. as_basename=basename
  9846. else
  9847. as_basename=false
  9848. fi
  9849. # Name of the executable.
  9850. as_me=`$as_basename -- "$0" ||
  9851. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9852. X"$0" : 'X\(//\)$' \| \
  9853. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9854. echo X/"$0" |
  9855. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9856. s//\1/
  9857. q
  9858. }
  9859. /^X\/\(\/\/\)$/{
  9860. s//\1/
  9861. q
  9862. }
  9863. /^X\/\(\/\).*/{
  9864. s//\1/
  9865. q
  9866. }
  9867. s/.*/./; q'`
  9868. # CDPATH.
  9869. $as_unset CDPATH
  9870. as_lineno_1=$LINENO
  9871. as_lineno_2=$LINENO
  9872. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9873. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  9874. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9875. # uniformly replaced by the line number. The first 'sed' inserts a
  9876. # line-number line after each line using $LINENO; the second 'sed'
  9877. # does the real work. The second script uses 'N' to pair each
  9878. # line-number line with the line containing $LINENO, and appends
  9879. # trailing '-' during substitution so that $LINENO is not a special
  9880. # case at line end.
  9881. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9882. # scripts with optimization help from Paolo Bonzini. Blame Lee
  9883. # E. McMahon (1931-1989) for sed's syntax. :-)
  9884. sed -n '
  9885. p
  9886. /[$]LINENO/=
  9887. ' <$as_myself |
  9888. sed '
  9889. s/[$]LINENO.*/&-/
  9890. t lineno
  9891. b
  9892. :lineno
  9893. N
  9894. :loop
  9895. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  9896. t loop
  9897. s/-\n.*//
  9898. ' >$as_me.lineno &&
  9899. chmod +x "$as_me.lineno" ||
  9900. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  9901. { (exit 1); exit 1; }; }
  9902. # Don't try to exec as it changes $[0], causing all sort of problems
  9903. # (the dirname of $[0] is not the place where we might find the
  9904. # original and so on. Autoconf is especially sensitive to this).
  9905. . "./$as_me.lineno"
  9906. # Exit status is that of the last command.
  9907. exit
  9908. }
  9909. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9910. as_dirname=dirname
  9911. else
  9912. as_dirname=false
  9913. fi
  9914. ECHO_C= ECHO_N= ECHO_T=
  9915. case `echo -n x` in
  9916. -n*)
  9917. case `echo 'x\c'` in
  9918. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9919. *) ECHO_C='\c';;
  9920. esac;;
  9921. *)
  9922. ECHO_N='-n';;
  9923. esac
  9924. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9925. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9926. as_expr=expr
  9927. else
  9928. as_expr=false
  9929. fi
  9930. rm -f conf$$ conf$$.exe conf$$.file
  9931. if test -d conf$$.dir; then
  9932. rm -f conf$$.dir/conf$$.file
  9933. else
  9934. rm -f conf$$.dir
  9935. mkdir conf$$.dir
  9936. fi
  9937. echo >conf$$.file
  9938. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9939. as_ln_s='ln -s'
  9940. # ... but there are two gotchas:
  9941. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9942. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9943. # In both cases, we have to default to `cp -p'.
  9944. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9945. as_ln_s='cp -p'
  9946. elif ln conf$$.file conf$$ 2>/dev/null; then
  9947. as_ln_s=ln
  9948. else
  9949. as_ln_s='cp -p'
  9950. fi
  9951. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9952. rmdir conf$$.dir 2>/dev/null
  9953. if mkdir -p . 2>/dev/null; then
  9954. as_mkdir_p=:
  9955. else
  9956. test -d ./-p && rmdir ./-p
  9957. as_mkdir_p=false
  9958. fi
  9959. if test -x / >/dev/null 2>&1; then
  9960. as_test_x='test -x'
  9961. else
  9962. if ls -dL / >/dev/null 2>&1; then
  9963. as_ls_L_option=L
  9964. else
  9965. as_ls_L_option=
  9966. fi
  9967. as_test_x='
  9968. eval sh -c '\''
  9969. if test -d "$1"; then
  9970. test -d "$1/.";
  9971. else
  9972. case $1 in
  9973. -*)set "./$1";;
  9974. esac;
  9975. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  9976. ???[sx]*):;;*)false;;esac;fi
  9977. '\'' sh
  9978. '
  9979. fi
  9980. as_executable_p=$as_test_x
  9981. # Sed expression to map a string onto a valid CPP name.
  9982. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9983. # Sed expression to map a string onto a valid variable name.
  9984. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9985. exec 6>&1
  9986. # Save the log message, to keep $[0] and so on meaningful, and to
  9987. # report actual input values of CONFIG_FILES etc. instead of their
  9988. # values after options handling.
  9989. ac_log="
  9990. This file was extended by ngircd $as_me 15, which was
  9991. generated by GNU Autoconf 2.61. Invocation command line was
  9992. CONFIG_FILES = $CONFIG_FILES
  9993. CONFIG_HEADERS = $CONFIG_HEADERS
  9994. CONFIG_LINKS = $CONFIG_LINKS
  9995. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9996. $ $0 $@
  9997. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9998. "
  9999. _ACEOF
  10000. cat >>$CONFIG_STATUS <<_ACEOF
  10001. # Files that config.status was made for.
  10002. config_files="$ac_config_files"
  10003. config_headers="$ac_config_headers"
  10004. config_commands="$ac_config_commands"
  10005. _ACEOF
  10006. cat >>$CONFIG_STATUS <<\_ACEOF
  10007. ac_cs_usage="\
  10008. \`$as_me' instantiates files from templates according to the
  10009. current configuration.
  10010. Usage: $0 [OPTIONS] [FILE]...
  10011. -h, --help print this help, then exit
  10012. -V, --version print version number and configuration settings, then exit
  10013. -q, --quiet do not print progress messages
  10014. -d, --debug don't remove temporary files
  10015. --recheck update $as_me by reconfiguring in the same conditions
  10016. --file=FILE[:TEMPLATE]
  10017. instantiate the configuration file FILE
  10018. --header=FILE[:TEMPLATE]
  10019. instantiate the configuration header FILE
  10020. Configuration files:
  10021. $config_files
  10022. Configuration headers:
  10023. $config_headers
  10024. Configuration commands:
  10025. $config_commands
  10026. Report bugs to <bug-autoconf@gnu.org>."
  10027. _ACEOF
  10028. cat >>$CONFIG_STATUS <<_ACEOF
  10029. ac_cs_version="\\
  10030. ngircd config.status 15
  10031. configured by $0, generated by GNU Autoconf 2.61,
  10032. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10033. Copyright (C) 2006 Free Software Foundation, Inc.
  10034. This config.status script is free software; the Free Software Foundation
  10035. gives unlimited permission to copy, distribute and modify it."
  10036. ac_pwd='$ac_pwd'
  10037. srcdir='$srcdir'
  10038. INSTALL='$INSTALL'
  10039. MKDIR_P='$MKDIR_P'
  10040. _ACEOF
  10041. cat >>$CONFIG_STATUS <<\_ACEOF
  10042. # If no file are specified by the user, then we need to provide default
  10043. # value. By we need to know if files were specified by the user.
  10044. ac_need_defaults=:
  10045. while test $# != 0
  10046. do
  10047. case $1 in
  10048. --*=*)
  10049. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10050. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10051. ac_shift=:
  10052. ;;
  10053. *)
  10054. ac_option=$1
  10055. ac_optarg=$2
  10056. ac_shift=shift
  10057. ;;
  10058. esac
  10059. case $ac_option in
  10060. # Handling of the options.
  10061. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10062. ac_cs_recheck=: ;;
  10063. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10064. echo "$ac_cs_version"; exit ;;
  10065. --debug | --debu | --deb | --de | --d | -d )
  10066. debug=: ;;
  10067. --file | --fil | --fi | --f )
  10068. $ac_shift
  10069. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10070. ac_need_defaults=false;;
  10071. --header | --heade | --head | --hea )
  10072. $ac_shift
  10073. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10074. ac_need_defaults=false;;
  10075. --he | --h)
  10076. # Conflict between --help and --header
  10077. { echo "$as_me: error: ambiguous option: $1
  10078. Try \`$0 --help' for more information." >&2
  10079. { (exit 1); exit 1; }; };;
  10080. --help | --hel | -h )
  10081. echo "$ac_cs_usage"; exit ;;
  10082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10083. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10084. ac_cs_silent=: ;;
  10085. # This is an error.
  10086. -*) { echo "$as_me: error: unrecognized option: $1
  10087. Try \`$0 --help' for more information." >&2
  10088. { (exit 1); exit 1; }; } ;;
  10089. *) ac_config_targets="$ac_config_targets $1"
  10090. ac_need_defaults=false ;;
  10091. esac
  10092. shift
  10093. done
  10094. ac_configure_extra_args=
  10095. if $ac_cs_silent; then
  10096. exec 6>/dev/null
  10097. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10098. fi
  10099. _ACEOF
  10100. cat >>$CONFIG_STATUS <<_ACEOF
  10101. if \$ac_cs_recheck; then
  10102. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10103. CONFIG_SHELL=$SHELL
  10104. export CONFIG_SHELL
  10105. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10106. fi
  10107. _ACEOF
  10108. cat >>$CONFIG_STATUS <<\_ACEOF
  10109. exec 5>>config.log
  10110. {
  10111. echo
  10112. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10113. ## Running $as_me. ##
  10114. _ASBOX
  10115. echo "$ac_log"
  10116. } >&5
  10117. _ACEOF
  10118. cat >>$CONFIG_STATUS <<_ACEOF
  10119. #
  10120. # INIT-COMMANDS
  10121. #
  10122. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10123. _ACEOF
  10124. cat >>$CONFIG_STATUS <<\_ACEOF
  10125. # Handling of arguments.
  10126. for ac_config_target in $ac_config_targets
  10127. do
  10128. case $ac_config_target in
  10129. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  10130. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10131. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10132. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  10133. "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  10134. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10135. "src/portab/Makefile") CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  10136. "src/ipaddr/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipaddr/Makefile" ;;
  10137. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  10138. "src/ngircd/Makefile") CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  10139. "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  10140. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  10141. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  10142. "contrib/Debian/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  10143. "contrib/MacOSX/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  10144. "contrib/MacOSX/ngIRCd.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.xcodeproj/Makefile" ;;
  10145. "contrib/MacOSX/ngIRCd.pmdoc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.pmdoc/Makefile" ;;
  10146. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10147. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10148. { (exit 1); exit 1; }; };;
  10149. esac
  10150. done
  10151. # If the user did not use the arguments to specify the items to instantiate,
  10152. # then the envvar interface is used. Set only those that are not.
  10153. # We use the long form for the default assignment because of an extremely
  10154. # bizarre bug on SunOS 4.1.3.
  10155. if $ac_need_defaults; then
  10156. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10157. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10158. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10159. fi
  10160. # Have a temporary directory for convenience. Make it in the build tree
  10161. # simply because there is no reason against having it here, and in addition,
  10162. # creating and moving files from /tmp can sometimes cause problems.
  10163. # Hook for its removal unless debugging.
  10164. # Note that there is a small window in which the directory will not be cleaned:
  10165. # after its creation but before its name has been assigned to `$tmp'.
  10166. $debug ||
  10167. {
  10168. tmp=
  10169. trap 'exit_status=$?
  10170. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10171. ' 0
  10172. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10173. }
  10174. # Create a (secure) tmp directory for tmp files.
  10175. {
  10176. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10177. test -n "$tmp" && test -d "$tmp"
  10178. } ||
  10179. {
  10180. tmp=./conf$$-$RANDOM
  10181. (umask 077 && mkdir "$tmp")
  10182. } ||
  10183. {
  10184. echo "$me: cannot create a temporary directory in ." >&2
  10185. { (exit 1); exit 1; }
  10186. }
  10187. #
  10188. # Set up the sed scripts for CONFIG_FILES section.
  10189. #
  10190. # No need to generate the scripts if there are no CONFIG_FILES.
  10191. # This happens for instance when ./config.status config.h
  10192. if test -n "$CONFIG_FILES"; then
  10193. _ACEOF
  10194. ac_delim='%!_!# '
  10195. for ac_last_try in false false false false false :; do
  10196. cat >conf$$subs.sed <<_ACEOF
  10197. SHELL!$SHELL$ac_delim
  10198. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  10199. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  10200. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  10201. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  10202. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  10203. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  10204. exec_prefix!$exec_prefix$ac_delim
  10205. prefix!$prefix$ac_delim
  10206. program_transform_name!$program_transform_name$ac_delim
  10207. bindir!$bindir$ac_delim
  10208. sbindir!$sbindir$ac_delim
  10209. libexecdir!$libexecdir$ac_delim
  10210. datarootdir!$datarootdir$ac_delim
  10211. datadir!$datadir$ac_delim
  10212. sysconfdir!$sysconfdir$ac_delim
  10213. sharedstatedir!$sharedstatedir$ac_delim
  10214. localstatedir!$localstatedir$ac_delim
  10215. includedir!$includedir$ac_delim
  10216. oldincludedir!$oldincludedir$ac_delim
  10217. docdir!$docdir$ac_delim
  10218. infodir!$infodir$ac_delim
  10219. htmldir!$htmldir$ac_delim
  10220. dvidir!$dvidir$ac_delim
  10221. pdfdir!$pdfdir$ac_delim
  10222. psdir!$psdir$ac_delim
  10223. libdir!$libdir$ac_delim
  10224. localedir!$localedir$ac_delim
  10225. mandir!$mandir$ac_delim
  10226. DEFS!$DEFS$ac_delim
  10227. ECHO_C!$ECHO_C$ac_delim
  10228. ECHO_N!$ECHO_N$ac_delim
  10229. ECHO_T!$ECHO_T$ac_delim
  10230. LIBS!$LIBS$ac_delim
  10231. build_alias!$build_alias$ac_delim
  10232. host_alias!$host_alias$ac_delim
  10233. target_alias!$target_alias$ac_delim
  10234. build!$build$ac_delim
  10235. build_cpu!$build_cpu$ac_delim
  10236. build_vendor!$build_vendor$ac_delim
  10237. build_os!$build_os$ac_delim
  10238. host!$host$ac_delim
  10239. host_cpu!$host_cpu$ac_delim
  10240. host_vendor!$host_vendor$ac_delim
  10241. host_os!$host_os$ac_delim
  10242. target!$target$ac_delim
  10243. target_cpu!$target_cpu$ac_delim
  10244. target_vendor!$target_vendor$ac_delim
  10245. target_os!$target_os$ac_delim
  10246. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  10247. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  10248. INSTALL_DATA!$INSTALL_DATA$ac_delim
  10249. am__isrc!$am__isrc$ac_delim
  10250. CYGPATH_W!$CYGPATH_W$ac_delim
  10251. PACKAGE!$PACKAGE$ac_delim
  10252. VERSION!$VERSION$ac_delim
  10253. ACLOCAL!$ACLOCAL$ac_delim
  10254. AUTOCONF!$AUTOCONF$ac_delim
  10255. AUTOMAKE!$AUTOMAKE$ac_delim
  10256. AUTOHEADER!$AUTOHEADER$ac_delim
  10257. MAKEINFO!$MAKEINFO$ac_delim
  10258. install_sh!$install_sh$ac_delim
  10259. STRIP!$STRIP$ac_delim
  10260. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  10261. mkdir_p!$mkdir_p$ac_delim
  10262. AWK!$AWK$ac_delim
  10263. SET_MAKE!$SET_MAKE$ac_delim
  10264. am__leading_dot!$am__leading_dot$ac_delim
  10265. AMTAR!$AMTAR$ac_delim
  10266. am__tar!$am__tar$ac_delim
  10267. am__untar!$am__untar$ac_delim
  10268. CC!$CC$ac_delim
  10269. CFLAGS!$CFLAGS$ac_delim
  10270. LDFLAGS!$LDFLAGS$ac_delim
  10271. CPPFLAGS!$CPPFLAGS$ac_delim
  10272. ac_ct_CC!$ac_ct_CC$ac_delim
  10273. EXEEXT!$EXEEXT$ac_delim
  10274. OBJEXT!$OBJEXT$ac_delim
  10275. DEPDIR!$DEPDIR$ac_delim
  10276. am__include!$am__include$ac_delim
  10277. am__quote!$am__quote$ac_delim
  10278. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  10279. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  10280. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  10281. CCDEPMODE!$CCDEPMODE$ac_delim
  10282. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  10283. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  10284. LN_S!$LN_S$ac_delim
  10285. RANLIB!$RANLIB$ac_delim
  10286. CPP!$CPP$ac_delim
  10287. GREP!$GREP$ac_delim
  10288. EGREP!$EGREP$ac_delim
  10289. U!$U$ac_delim
  10290. ANSI2KNR!$ANSI2KNR$ac_delim
  10291. LIBOBJS!$LIBOBJS$ac_delim
  10292. LTLIBOBJS!$LTLIBOBJS$ac_delim
  10293. _ACEOF
  10294. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
  10295. break
  10296. elif $ac_last_try; then
  10297. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10298. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10299. { (exit 1); exit 1; }; }
  10300. else
  10301. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10302. fi
  10303. done
  10304. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  10305. if test -n "$ac_eof"; then
  10306. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  10307. ac_eof=`expr $ac_eof + 1`
  10308. fi
  10309. cat >>$CONFIG_STATUS <<_ACEOF
  10310. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  10311. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10312. _ACEOF
  10313. sed '
  10314. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  10315. s/^/s,@/; s/!/@,|#_!!_#|/
  10316. :n
  10317. t n
  10318. s/'"$ac_delim"'$/,g/; t
  10319. s/$/\\/; p
  10320. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  10321. ' >>$CONFIG_STATUS <conf$$subs.sed
  10322. rm -f conf$$subs.sed
  10323. cat >>$CONFIG_STATUS <<_ACEOF
  10324. CEOF$ac_eof
  10325. _ACEOF
  10326. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10327. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10328. # trailing colons and then remove the whole line if VPATH becomes empty
  10329. # (actually we leave an empty line to preserve line numbers).
  10330. if test "x$srcdir" = x.; then
  10331. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10332. s/:*\$(srcdir):*/:/
  10333. s/:*\${srcdir}:*/:/
  10334. s/:*@srcdir@:*/:/
  10335. s/^\([^=]*=[ ]*\):*/\1/
  10336. s/:*$//
  10337. s/^[^=]*=[ ]*$//
  10338. }'
  10339. fi
  10340. cat >>$CONFIG_STATUS <<\_ACEOF
  10341. fi # test -n "$CONFIG_FILES"
  10342. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  10343. do
  10344. case $ac_tag in
  10345. :[FHLC]) ac_mode=$ac_tag; continue;;
  10346. esac
  10347. case $ac_mode$ac_tag in
  10348. :[FHL]*:*);;
  10349. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  10350. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  10351. { (exit 1); exit 1; }; };;
  10352. :[FH]-) ac_tag=-:-;;
  10353. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10354. esac
  10355. ac_save_IFS=$IFS
  10356. IFS=:
  10357. set x $ac_tag
  10358. IFS=$ac_save_IFS
  10359. shift
  10360. ac_file=$1
  10361. shift
  10362. case $ac_mode in
  10363. :L) ac_source=$1;;
  10364. :[FH])
  10365. ac_file_inputs=
  10366. for ac_f
  10367. do
  10368. case $ac_f in
  10369. -) ac_f="$tmp/stdin";;
  10370. *) # Look for the file first in the build tree, then in the source tree
  10371. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10372. # because $ac_f cannot contain `:'.
  10373. test -f "$ac_f" ||
  10374. case $ac_f in
  10375. [\\/$]*) false;;
  10376. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10377. esac ||
  10378. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  10379. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  10380. { (exit 1); exit 1; }; };;
  10381. esac
  10382. ac_file_inputs="$ac_file_inputs $ac_f"
  10383. done
  10384. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10385. # use $as_me), people would be surprised to read:
  10386. # /* config.h. Generated by config.status. */
  10387. configure_input="Generated from "`IFS=:
  10388. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  10389. if test x"$ac_file" != x-; then
  10390. configure_input="$ac_file. $configure_input"
  10391. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10392. echo "$as_me: creating $ac_file" >&6;}
  10393. fi
  10394. case $ac_tag in
  10395. *:-:* | *:-) cat >"$tmp/stdin";;
  10396. esac
  10397. ;;
  10398. esac
  10399. ac_dir=`$as_dirname -- "$ac_file" ||
  10400. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10401. X"$ac_file" : 'X\(//\)[^/]' \| \
  10402. X"$ac_file" : 'X\(//\)$' \| \
  10403. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10404. echo X"$ac_file" |
  10405. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10406. s//\1/
  10407. q
  10408. }
  10409. /^X\(\/\/\)[^/].*/{
  10410. s//\1/
  10411. q
  10412. }
  10413. /^X\(\/\/\)$/{
  10414. s//\1/
  10415. q
  10416. }
  10417. /^X\(\/\).*/{
  10418. s//\1/
  10419. q
  10420. }
  10421. s/.*/./; q'`
  10422. { as_dir="$ac_dir"
  10423. case $as_dir in #(
  10424. -*) as_dir=./$as_dir;;
  10425. esac
  10426. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  10427. as_dirs=
  10428. while :; do
  10429. case $as_dir in #(
  10430. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  10431. *) as_qdir=$as_dir;;
  10432. esac
  10433. as_dirs="'$as_qdir' $as_dirs"
  10434. as_dir=`$as_dirname -- "$as_dir" ||
  10435. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10436. X"$as_dir" : 'X\(//\)[^/]' \| \
  10437. X"$as_dir" : 'X\(//\)$' \| \
  10438. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10439. echo X"$as_dir" |
  10440. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10441. s//\1/
  10442. q
  10443. }
  10444. /^X\(\/\/\)[^/].*/{
  10445. s//\1/
  10446. q
  10447. }
  10448. /^X\(\/\/\)$/{
  10449. s//\1/
  10450. q
  10451. }
  10452. /^X\(\/\).*/{
  10453. s//\1/
  10454. q
  10455. }
  10456. s/.*/./; q'`
  10457. test -d "$as_dir" && break
  10458. done
  10459. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10460. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  10461. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  10462. { (exit 1); exit 1; }; }; }
  10463. ac_builddir=.
  10464. case "$ac_dir" in
  10465. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10466. *)
  10467. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10468. # A ".." for each directory in $ac_dir_suffix.
  10469. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  10470. case $ac_top_builddir_sub in
  10471. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10472. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10473. esac ;;
  10474. esac
  10475. ac_abs_top_builddir=$ac_pwd
  10476. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10477. # for backward compatibility:
  10478. ac_top_builddir=$ac_top_build_prefix
  10479. case $srcdir in
  10480. .) # We are building in place.
  10481. ac_srcdir=.
  10482. ac_top_srcdir=$ac_top_builddir_sub
  10483. ac_abs_top_srcdir=$ac_pwd ;;
  10484. [\\/]* | ?:[\\/]* ) # Absolute name.
  10485. ac_srcdir=$srcdir$ac_dir_suffix;
  10486. ac_top_srcdir=$srcdir
  10487. ac_abs_top_srcdir=$srcdir ;;
  10488. *) # Relative name.
  10489. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10490. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10491. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10492. esac
  10493. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10494. case $ac_mode in
  10495. :F)
  10496. #
  10497. # CONFIG_FILE
  10498. #
  10499. case $INSTALL in
  10500. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10501. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10502. esac
  10503. ac_MKDIR_P=$MKDIR_P
  10504. case $MKDIR_P in
  10505. [\\/$]* | ?:[\\/]* ) ;;
  10506. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10507. esac
  10508. _ACEOF
  10509. cat >>$CONFIG_STATUS <<\_ACEOF
  10510. # If the template does not know about datarootdir, expand it.
  10511. # FIXME: This hack should be removed a few years after 2.60.
  10512. ac_datarootdir_hack=; ac_datarootdir_seen=
  10513. case `sed -n '/datarootdir/ {
  10514. p
  10515. q
  10516. }
  10517. /@datadir@/p
  10518. /@docdir@/p
  10519. /@infodir@/p
  10520. /@localedir@/p
  10521. /@mandir@/p
  10522. ' $ac_file_inputs` in
  10523. *datarootdir*) ac_datarootdir_seen=yes;;
  10524. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10525. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10526. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10527. _ACEOF
  10528. cat >>$CONFIG_STATUS <<_ACEOF
  10529. ac_datarootdir_hack='
  10530. s&@datadir@&$datadir&g
  10531. s&@docdir@&$docdir&g
  10532. s&@infodir@&$infodir&g
  10533. s&@localedir@&$localedir&g
  10534. s&@mandir@&$mandir&g
  10535. s&\\\${datarootdir}&$datarootdir&g' ;;
  10536. esac
  10537. _ACEOF
  10538. # Neutralize VPATH when `$srcdir' = `.'.
  10539. # Shell code in configure.ac might set extrasub.
  10540. # FIXME: do we really want to maintain this feature?
  10541. cat >>$CONFIG_STATUS <<_ACEOF
  10542. sed "$ac_vpsub
  10543. $extrasub
  10544. _ACEOF
  10545. cat >>$CONFIG_STATUS <<\_ACEOF
  10546. :t
  10547. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10548. s&@configure_input@&$configure_input&;t t
  10549. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10550. s&@srcdir@&$ac_srcdir&;t t
  10551. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10552. s&@top_srcdir@&$ac_top_srcdir&;t t
  10553. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10554. s&@builddir@&$ac_builddir&;t t
  10555. s&@abs_builddir@&$ac_abs_builddir&;t t
  10556. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10557. s&@INSTALL@&$ac_INSTALL&;t t
  10558. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10559. $ac_datarootdir_hack
  10560. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
  10561. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10562. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  10563. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  10564. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10565. which seems to be undefined. Please make sure it is defined." >&5
  10566. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10567. which seems to be undefined. Please make sure it is defined." >&2;}
  10568. rm -f "$tmp/stdin"
  10569. case $ac_file in
  10570. -) cat "$tmp/out"; rm -f "$tmp/out";;
  10571. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  10572. esac
  10573. ;;
  10574. :H)
  10575. #
  10576. # CONFIG_HEADER
  10577. #
  10578. _ACEOF
  10579. # Transform confdefs.h into a sed script `conftest.defines', that
  10580. # substitutes the proper values into config.h.in to produce config.h.
  10581. rm -f conftest.defines conftest.tail
  10582. # First, append a space to every undef/define line, to ease matching.
  10583. echo 's/$/ /' >conftest.defines
  10584. # Then, protect against being on the right side of a sed subst, or in
  10585. # an unquoted here document, in config.status. If some macros were
  10586. # called several times there might be several #defines for the same
  10587. # symbol, which is useless. But do not sort them, since the last
  10588. # AC_DEFINE must be honored.
  10589. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10590. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  10591. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  10592. # PARAMS is the parameter list in the macro definition--in most cases, it's
  10593. # just an empty string.
  10594. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  10595. ac_dB='\\)[ (].*,\\1define\\2'
  10596. ac_dC=' '
  10597. ac_dD=' ,'
  10598. uniq confdefs.h |
  10599. sed -n '
  10600. t rset
  10601. :rset
  10602. s/^[ ]*#[ ]*define[ ][ ]*//
  10603. t ok
  10604. d
  10605. :ok
  10606. s/[\\&,]/\\&/g
  10607. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  10608. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  10609. ' >>conftest.defines
  10610. # Remove the space that was appended to ease matching.
  10611. # Then replace #undef with comments. This is necessary, for
  10612. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10613. # on some systems where configure will not decide to define it.
  10614. # (The regexp can be short, since the line contains either #define or #undef.)
  10615. echo 's/ $//
  10616. s,^[ #]*u.*,/* & */,' >>conftest.defines
  10617. # Break up conftest.defines:
  10618. ac_max_sed_lines=50
  10619. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  10620. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  10621. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  10622. # et cetera.
  10623. ac_in='$ac_file_inputs'
  10624. ac_out='"$tmp/out1"'
  10625. ac_nxt='"$tmp/out2"'
  10626. while :
  10627. do
  10628. # Write a here document:
  10629. cat >>$CONFIG_STATUS <<_ACEOF
  10630. # First, check the format of the line:
  10631. cat >"\$tmp/defines.sed" <<\\CEOF
  10632. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  10633. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  10634. b
  10635. :def
  10636. _ACEOF
  10637. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  10638. echo 'CEOF
  10639. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  10640. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  10641. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  10642. grep . conftest.tail >/dev/null || break
  10643. rm -f conftest.defines
  10644. mv conftest.tail conftest.defines
  10645. done
  10646. rm -f conftest.defines conftest.tail
  10647. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  10648. cat >>$CONFIG_STATUS <<\_ACEOF
  10649. if test x"$ac_file" != x-; then
  10650. echo "/* $configure_input */" >"$tmp/config.h"
  10651. cat "$ac_result" >>"$tmp/config.h"
  10652. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  10653. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10654. echo "$as_me: $ac_file is unchanged" >&6;}
  10655. else
  10656. rm -f $ac_file
  10657. mv "$tmp/config.h" $ac_file
  10658. fi
  10659. else
  10660. echo "/* $configure_input */"
  10661. cat "$ac_result"
  10662. fi
  10663. rm -f "$tmp/out12"
  10664. # Compute $ac_file's index in $config_headers.
  10665. _am_stamp_count=1
  10666. for _am_header in $config_headers :; do
  10667. case $_am_header in
  10668. $ac_file | $ac_file:* )
  10669. break ;;
  10670. * )
  10671. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10672. esac
  10673. done
  10674. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  10675. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10676. X$ac_file : 'X\(//\)[^/]' \| \
  10677. X$ac_file : 'X\(//\)$' \| \
  10678. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  10679. echo X$ac_file |
  10680. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10681. s//\1/
  10682. q
  10683. }
  10684. /^X\(\/\/\)[^/].*/{
  10685. s//\1/
  10686. q
  10687. }
  10688. /^X\(\/\/\)$/{
  10689. s//\1/
  10690. q
  10691. }
  10692. /^X\(\/\).*/{
  10693. s//\1/
  10694. q
  10695. }
  10696. s/.*/./; q'`/stamp-h$_am_stamp_count
  10697. ;;
  10698. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  10699. echo "$as_me: executing $ac_file commands" >&6;}
  10700. ;;
  10701. esac
  10702. case $ac_file$ac_mode in
  10703. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  10704. # Strip MF so we end up with the name of the file.
  10705. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10706. # Check whether this is an Automake generated Makefile or not.
  10707. # We used to match only the files named `Makefile.in', but
  10708. # some people rename them; so instead we look at the file content.
  10709. # Grep'ing the first line is not enough: some people post-process
  10710. # each Makefile.in and add a new line on top of each file to say so.
  10711. # Grep'ing the whole file is not good either: AIX grep has a line
  10712. # limit of 2048, but all sed's we know have understand at least 4000.
  10713. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  10714. dirpart=`$as_dirname -- "$mf" ||
  10715. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10716. X"$mf" : 'X\(//\)[^/]' \| \
  10717. X"$mf" : 'X\(//\)$' \| \
  10718. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10719. echo X"$mf" |
  10720. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10721. s//\1/
  10722. q
  10723. }
  10724. /^X\(\/\/\)[^/].*/{
  10725. s//\1/
  10726. q
  10727. }
  10728. /^X\(\/\/\)$/{
  10729. s//\1/
  10730. q
  10731. }
  10732. /^X\(\/\).*/{
  10733. s//\1/
  10734. q
  10735. }
  10736. s/.*/./; q'`
  10737. else
  10738. continue
  10739. fi
  10740. # Extract the definition of DEPDIR, am__include, and am__quote
  10741. # from the Makefile without running `make'.
  10742. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10743. test -z "$DEPDIR" && continue
  10744. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10745. test -z "am__include" && continue
  10746. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10747. # When using ansi2knr, U may be empty or an underscore; expand it
  10748. U=`sed -n 's/^U = //p' < "$mf"`
  10749. # Find all dependency output files, they are included files with
  10750. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10751. # simplest approach to changing $(DEPDIR) to its actual value in the
  10752. # expansion.
  10753. for file in `sed -n "
  10754. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10755. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10756. # Make sure the directory exists.
  10757. test -f "$dirpart/$file" && continue
  10758. fdir=`$as_dirname -- "$file" ||
  10759. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10760. X"$file" : 'X\(//\)[^/]' \| \
  10761. X"$file" : 'X\(//\)$' \| \
  10762. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10763. echo X"$file" |
  10764. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10765. s//\1/
  10766. q
  10767. }
  10768. /^X\(\/\/\)[^/].*/{
  10769. s//\1/
  10770. q
  10771. }
  10772. /^X\(\/\/\)$/{
  10773. s//\1/
  10774. q
  10775. }
  10776. /^X\(\/\).*/{
  10777. s//\1/
  10778. q
  10779. }
  10780. s/.*/./; q'`
  10781. { as_dir=$dirpart/$fdir
  10782. case $as_dir in #(
  10783. -*) as_dir=./$as_dir;;
  10784. esac
  10785. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  10786. as_dirs=
  10787. while :; do
  10788. case $as_dir in #(
  10789. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  10790. *) as_qdir=$as_dir;;
  10791. esac
  10792. as_dirs="'$as_qdir' $as_dirs"
  10793. as_dir=`$as_dirname -- "$as_dir" ||
  10794. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10795. X"$as_dir" : 'X\(//\)[^/]' \| \
  10796. X"$as_dir" : 'X\(//\)$' \| \
  10797. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10798. echo X"$as_dir" |
  10799. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10800. s//\1/
  10801. q
  10802. }
  10803. /^X\(\/\/\)[^/].*/{
  10804. s//\1/
  10805. q
  10806. }
  10807. /^X\(\/\/\)$/{
  10808. s//\1/
  10809. q
  10810. }
  10811. /^X\(\/\).*/{
  10812. s//\1/
  10813. q
  10814. }
  10815. s/.*/./; q'`
  10816. test -d "$as_dir" && break
  10817. done
  10818. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10819. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  10820. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  10821. { (exit 1); exit 1; }; }; }
  10822. # echo "creating $dirpart/$file"
  10823. echo '# dummy' > "$dirpart/$file"
  10824. done
  10825. done
  10826. ;;
  10827. esac
  10828. done # for ac_tag
  10829. { (exit 0); exit 0; }
  10830. _ACEOF
  10831. chmod +x $CONFIG_STATUS
  10832. ac_clean_files=$ac_clean_files_save
  10833. # configure is writing to config.log, and then calls config.status.
  10834. # config.status does its own redirection, appending to config.log.
  10835. # Unfortunately, on DOS this fails, as config.log is still kept open
  10836. # by configure, so config.status won't be able to write to it; its
  10837. # output is simply discarded. So we exec the FD to /dev/null,
  10838. # effectively closing config.log, so it can be properly (re)opened and
  10839. # appended to by config.status. When coming back to configure, we
  10840. # need to make the FD available again.
  10841. if test "$no_create" != yes; then
  10842. ac_cs_success=:
  10843. ac_config_status_args=
  10844. test "$silent" = yes &&
  10845. ac_config_status_args="$ac_config_status_args --quiet"
  10846. exec 5>/dev/null
  10847. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10848. exec 5>>config.log
  10849. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10850. # would make configure fail if this is the last instruction.
  10851. $ac_cs_success || { (exit 1); exit 1; }
  10852. fi
  10853. type dpkg >/dev/null 2>&1
  10854. if test $? -eq 0; then
  10855. # Generate debian/ link if the dpkg command exists
  10856. # (read: if we are running on a debian compatible system)
  10857. echo "creating Debian-specific links ..."
  10858. test -f debian/rules || ln -s contrib/Debian debian
  10859. fi
  10860. # -- Result --
  10861. echo
  10862. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  10863. echo
  10864. # Someone please show me a better way :) [borrowed by OpenSSH]
  10865. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  10866. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  10867. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  10868. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  10869. D=`eval echo ${datadir}/doc/${PACKAGE}` ; D=`eval echo ${D}`
  10870. echo " Target: ${target}"
  10871. test "$target" != "$host" && echo " Host: ${host}"
  10872. echo " Compiler: ${CC}"
  10873. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  10874. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  10875. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  10876. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  10877. echo
  10878. echo " 'ngircd' binary: $S"
  10879. echo " Configuration file: $C"
  10880. echo " Manual pages: $M"
  10881. echo " Documentation: $D"
  10882. echo
  10883. echo $ECHO_N " Syslog support: $ECHO_C"
  10884. test "$x_syslog_on" = "yes" \
  10885. && echo $ECHO_N "yes $ECHO_C" \
  10886. || echo $ECHO_N "no $ECHO_C"
  10887. echo $ECHO_N " Enable debug code: $ECHO_C"
  10888. test "$x_debug_on" = "yes" \
  10889. && echo "yes" \
  10890. || echo "no"
  10891. echo $ECHO_N " zlib compression: $ECHO_C"
  10892. test "$x_zlib_on" = "yes" \
  10893. && echo $ECHO_N "yes $ECHO_C" \
  10894. || echo $ECHO_N "no $ECHO_C"
  10895. echo $ECHO_N " IRC sniffer: $ECHO_C"
  10896. test "$x_sniffer_on" = "yes" \
  10897. && echo "yes" \
  10898. || echo "no"
  10899. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  10900. test "$x_tcpwrap_on" = "yes" \
  10901. && echo $ECHO_N "yes $ECHO_C" \
  10902. || echo $ECHO_N "no $ECHO_C"
  10903. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  10904. test "$x_strict_rfc_on" = "yes" \
  10905. && echo "yes" \
  10906. || echo "no"
  10907. echo $ECHO_N " Zeroconf support: $ECHO_C"
  10908. case "$x_zeroconf_on" in
  10909. osx)
  10910. echo $ECHO_N "Apple $ECHO_C"
  10911. ;;
  10912. howl)
  10913. echo $ECHO_N "Howl $ECHO_C"
  10914. ;;
  10915. *)
  10916. echo $ECHO_N "no $ECHO_C"
  10917. ;;
  10918. esac
  10919. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  10920. test "$x_ircplus_on" = "yes" \
  10921. && echo "yes" \
  10922. || echo "no"
  10923. echo $ECHO_N " IDENT support: $ECHO_C"
  10924. test "$x_identauth_on" = "yes" \
  10925. && echo $ECHO_N "yes $ECHO_C" \
  10926. || echo $ECHO_N "no $ECHO_C"
  10927. echo $ECHO_N " I/O backend: $ECHO_C"
  10928. echo "\"$x_io_backend\""
  10929. echo $ECHO_N " IPv6 protocol: $ECHO_C"
  10930. echo $ECHO_N "$x_ipv6_on $ECHO_C"
  10931. echo $ECHO_N " SSL support: $ECHO_C"
  10932. echo "$x_ssl_lib"
  10933. echo
  10934. # -eof-