1
0

configure 238 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for ngIRCd 20.3.
  4. #
  5. # Report bugs to <ngircd-ml@ngircd.barton.de>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: ngircd-ml@ngircd.barton.de about your system, including
  217. $0: any error possibly output before this message. Then
  218. $0: install a modern shell, or manually run the script
  219. $0: under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  335. # ----------------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with STATUS, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$1; test $as_status -eq 0 && as_status=1
  342. if test "$4"; then
  343. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  345. fi
  346. $as_echo "$as_me: error: $2" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='ngIRCd'
  507. PACKAGE_TARNAME='ngircd'
  508. PACKAGE_VERSION='20.3'
  509. PACKAGE_STRING='ngIRCd 20.3'
  510. PACKAGE_BUGREPORT='ngircd-ml@ngircd.barton.de'
  511. PACKAGE_URL='http://ngircd.barton.de/'
  512. ac_unique_file="src/ngircd/ngircd.c"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. ac_header_list=
  549. ac_func_list=
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. ANSI2KNR
  555. U
  556. EGREP
  557. GREP
  558. CPP
  559. RANLIB
  560. LN_S
  561. am__fastdepCC_FALSE
  562. am__fastdepCC_TRUE
  563. CCDEPMODE
  564. AMDEPBACKSLASH
  565. AMDEP_FALSE
  566. AMDEP_TRUE
  567. am__quote
  568. am__include
  569. DEPDIR
  570. OBJEXT
  571. EXEEXT
  572. ac_ct_CC
  573. CPPFLAGS
  574. LDFLAGS
  575. CFLAGS
  576. CC
  577. AM_BACKSLASH
  578. AM_DEFAULT_VERBOSITY
  579. am__untar
  580. am__tar
  581. AMTAR
  582. am__leading_dot
  583. SET_MAKE
  584. AWK
  585. mkdir_p
  586. MKDIR_P
  587. INSTALL_STRIP_PROGRAM
  588. STRIP
  589. install_sh
  590. MAKEINFO
  591. AUTOHEADER
  592. AUTOMAKE
  593. AUTOCONF
  594. ACLOCAL
  595. VERSION
  596. PACKAGE
  597. CYGPATH_W
  598. am__isrc
  599. INSTALL_DATA
  600. INSTALL_SCRIPT
  601. INSTALL_PROGRAM
  602. host_os
  603. host_vendor
  604. host_cpu
  605. host
  606. build_os
  607. build_vendor
  608. build_cpu
  609. build
  610. target_alias
  611. host_alias
  612. build_alias
  613. LIBS
  614. ECHO_T
  615. ECHO_N
  616. ECHO_C
  617. DEFS
  618. mandir
  619. localedir
  620. libdir
  621. psdir
  622. pdfdir
  623. dvidir
  624. htmldir
  625. infodir
  626. docdir
  627. oldincludedir
  628. includedir
  629. localstatedir
  630. sharedstatedir
  631. sysconfdir
  632. datadir
  633. datarootdir
  634. libexecdir
  635. sbindir
  636. bindir
  637. program_transform_name
  638. prefix
  639. exec_prefix
  640. PACKAGE_URL
  641. PACKAGE_BUGREPORT
  642. PACKAGE_STRING
  643. PACKAGE_VERSION
  644. PACKAGE_TARNAME
  645. PACKAGE_NAME
  646. PATH_SEPARATOR
  647. SHELL'
  648. ac_subst_files=''
  649. ac_user_opts='
  650. enable_option_checking
  651. enable_silent_rules
  652. enable_dependency_tracking
  653. with_syslog
  654. with_zlib
  655. with_select
  656. with_poll
  657. with_devpoll
  658. with_epoll
  659. with_kqueue
  660. with_openssl
  661. with_gnutls
  662. with_tcp_wrappers
  663. with_ident
  664. with_pam
  665. enable_ircplus
  666. with_iconv
  667. enable_ipv6
  668. enable_sniffer
  669. enable_debug
  670. enable_strict_rfc
  671. '
  672. ac_precious_vars='build_alias
  673. host_alias
  674. target_alias
  675. CC
  676. CFLAGS
  677. LDFLAGS
  678. LIBS
  679. CPPFLAGS
  680. CPP'
  681. # Initialize some variables set by options.
  682. ac_init_help=
  683. ac_init_version=false
  684. ac_unrecognized_opts=
  685. ac_unrecognized_sep=
  686. # The variables have the same names as the options, with
  687. # dashes changed to underlines.
  688. cache_file=/dev/null
  689. exec_prefix=NONE
  690. no_create=
  691. no_recursion=
  692. prefix=NONE
  693. program_prefix=NONE
  694. program_suffix=NONE
  695. program_transform_name=s,x,x,
  696. silent=
  697. site=
  698. srcdir=
  699. verbose=
  700. x_includes=NONE
  701. x_libraries=NONE
  702. # Installation directory options.
  703. # These are left unexpanded so users can "make install exec_prefix=/foo"
  704. # and all the variables that are supposed to be based on exec_prefix
  705. # by default will actually change.
  706. # Use braces instead of parens because sh, perl, etc. also accept them.
  707. # (The list follows the same order as the GNU Coding Standards.)
  708. bindir='${exec_prefix}/bin'
  709. sbindir='${exec_prefix}/sbin'
  710. libexecdir='${exec_prefix}/libexec'
  711. datarootdir='${prefix}/share'
  712. datadir='${datarootdir}'
  713. sysconfdir='${prefix}/etc'
  714. sharedstatedir='${prefix}/com'
  715. localstatedir='${prefix}/var'
  716. includedir='${prefix}/include'
  717. oldincludedir='/usr/include'
  718. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  719. infodir='${datarootdir}/info'
  720. htmldir='${docdir}'
  721. dvidir='${docdir}'
  722. pdfdir='${docdir}'
  723. psdir='${docdir}'
  724. libdir='${exec_prefix}/lib'
  725. localedir='${datarootdir}/locale'
  726. mandir='${datarootdir}/man'
  727. ac_prev=
  728. ac_dashdash=
  729. for ac_option
  730. do
  731. # If the previous option needs an argument, assign it.
  732. if test -n "$ac_prev"; then
  733. eval $ac_prev=\$ac_option
  734. ac_prev=
  735. continue
  736. fi
  737. case $ac_option in
  738. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  739. *=) ac_optarg= ;;
  740. *) ac_optarg=yes ;;
  741. esac
  742. # Accept the important Cygnus configure options, so we can diagnose typos.
  743. case $ac_dashdash$ac_option in
  744. --)
  745. ac_dashdash=yes ;;
  746. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  747. ac_prev=bindir ;;
  748. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  749. bindir=$ac_optarg ;;
  750. -build | --build | --buil | --bui | --bu)
  751. ac_prev=build_alias ;;
  752. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  753. build_alias=$ac_optarg ;;
  754. -cache-file | --cache-file | --cache-fil | --cache-fi \
  755. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  756. ac_prev=cache_file ;;
  757. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  758. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  759. cache_file=$ac_optarg ;;
  760. --config-cache | -C)
  761. cache_file=config.cache ;;
  762. -datadir | --datadir | --datadi | --datad)
  763. ac_prev=datadir ;;
  764. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  765. datadir=$ac_optarg ;;
  766. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  767. | --dataroo | --dataro | --datar)
  768. ac_prev=datarootdir ;;
  769. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  770. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  771. datarootdir=$ac_optarg ;;
  772. -disable-* | --disable-*)
  773. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  774. # Reject names that are not valid shell variable names.
  775. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  776. as_fn_error $? "invalid feature name: $ac_useropt"
  777. ac_useropt_orig=$ac_useropt
  778. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  779. case $ac_user_opts in
  780. *"
  781. "enable_$ac_useropt"
  782. "*) ;;
  783. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  784. ac_unrecognized_sep=', ';;
  785. esac
  786. eval enable_$ac_useropt=no ;;
  787. -docdir | --docdir | --docdi | --doc | --do)
  788. ac_prev=docdir ;;
  789. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  790. docdir=$ac_optarg ;;
  791. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  792. ac_prev=dvidir ;;
  793. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  794. dvidir=$ac_optarg ;;
  795. -enable-* | --enable-*)
  796. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  797. # Reject names that are not valid shell variable names.
  798. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  799. as_fn_error $? "invalid feature name: $ac_useropt"
  800. ac_useropt_orig=$ac_useropt
  801. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  802. case $ac_user_opts in
  803. *"
  804. "enable_$ac_useropt"
  805. "*) ;;
  806. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  807. ac_unrecognized_sep=', ';;
  808. esac
  809. eval enable_$ac_useropt=\$ac_optarg ;;
  810. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  811. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  812. | --exec | --exe | --ex)
  813. ac_prev=exec_prefix ;;
  814. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  815. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  816. | --exec=* | --exe=* | --ex=*)
  817. exec_prefix=$ac_optarg ;;
  818. -gas | --gas | --ga | --g)
  819. # Obsolete; use --with-gas.
  820. with_gas=yes ;;
  821. -help | --help | --hel | --he | -h)
  822. ac_init_help=long ;;
  823. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  824. ac_init_help=recursive ;;
  825. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  826. ac_init_help=short ;;
  827. -host | --host | --hos | --ho)
  828. ac_prev=host_alias ;;
  829. -host=* | --host=* | --hos=* | --ho=*)
  830. host_alias=$ac_optarg ;;
  831. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  832. ac_prev=htmldir ;;
  833. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  834. | --ht=*)
  835. htmldir=$ac_optarg ;;
  836. -includedir | --includedir | --includedi | --included | --include \
  837. | --includ | --inclu | --incl | --inc)
  838. ac_prev=includedir ;;
  839. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  840. | --includ=* | --inclu=* | --incl=* | --inc=*)
  841. includedir=$ac_optarg ;;
  842. -infodir | --infodir | --infodi | --infod | --info | --inf)
  843. ac_prev=infodir ;;
  844. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  845. infodir=$ac_optarg ;;
  846. -libdir | --libdir | --libdi | --libd)
  847. ac_prev=libdir ;;
  848. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  849. libdir=$ac_optarg ;;
  850. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  851. | --libexe | --libex | --libe)
  852. ac_prev=libexecdir ;;
  853. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  854. | --libexe=* | --libex=* | --libe=*)
  855. libexecdir=$ac_optarg ;;
  856. -localedir | --localedir | --localedi | --localed | --locale)
  857. ac_prev=localedir ;;
  858. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  859. localedir=$ac_optarg ;;
  860. -localstatedir | --localstatedir | --localstatedi | --localstated \
  861. | --localstate | --localstat | --localsta | --localst | --locals)
  862. ac_prev=localstatedir ;;
  863. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  864. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  865. localstatedir=$ac_optarg ;;
  866. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  867. ac_prev=mandir ;;
  868. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  869. mandir=$ac_optarg ;;
  870. -nfp | --nfp | --nf)
  871. # Obsolete; use --without-fp.
  872. with_fp=no ;;
  873. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  874. | --no-cr | --no-c | -n)
  875. no_create=yes ;;
  876. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  877. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  878. no_recursion=yes ;;
  879. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  880. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  881. | --oldin | --oldi | --old | --ol | --o)
  882. ac_prev=oldincludedir ;;
  883. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  884. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  885. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  886. oldincludedir=$ac_optarg ;;
  887. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  888. ac_prev=prefix ;;
  889. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  890. prefix=$ac_optarg ;;
  891. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  892. | --program-pre | --program-pr | --program-p)
  893. ac_prev=program_prefix ;;
  894. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  895. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  896. program_prefix=$ac_optarg ;;
  897. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  898. | --program-suf | --program-su | --program-s)
  899. ac_prev=program_suffix ;;
  900. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  901. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  902. program_suffix=$ac_optarg ;;
  903. -program-transform-name | --program-transform-name \
  904. | --program-transform-nam | --program-transform-na \
  905. | --program-transform-n | --program-transform- \
  906. | --program-transform | --program-transfor \
  907. | --program-transfo | --program-transf \
  908. | --program-trans | --program-tran \
  909. | --progr-tra | --program-tr | --program-t)
  910. ac_prev=program_transform_name ;;
  911. -program-transform-name=* | --program-transform-name=* \
  912. | --program-transform-nam=* | --program-transform-na=* \
  913. | --program-transform-n=* | --program-transform-=* \
  914. | --program-transform=* | --program-transfor=* \
  915. | --program-transfo=* | --program-transf=* \
  916. | --program-trans=* | --program-tran=* \
  917. | --progr-tra=* | --program-tr=* | --program-t=*)
  918. program_transform_name=$ac_optarg ;;
  919. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  920. ac_prev=pdfdir ;;
  921. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  922. pdfdir=$ac_optarg ;;
  923. -psdir | --psdir | --psdi | --psd | --ps)
  924. ac_prev=psdir ;;
  925. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  926. psdir=$ac_optarg ;;
  927. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  928. | -silent | --silent | --silen | --sile | --sil)
  929. silent=yes ;;
  930. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  931. ac_prev=sbindir ;;
  932. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  933. | --sbi=* | --sb=*)
  934. sbindir=$ac_optarg ;;
  935. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  936. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  937. | --sharedst | --shareds | --shared | --share | --shar \
  938. | --sha | --sh)
  939. ac_prev=sharedstatedir ;;
  940. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  941. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  942. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  943. | --sha=* | --sh=*)
  944. sharedstatedir=$ac_optarg ;;
  945. -site | --site | --sit)
  946. ac_prev=site ;;
  947. -site=* | --site=* | --sit=*)
  948. site=$ac_optarg ;;
  949. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  950. ac_prev=srcdir ;;
  951. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  952. srcdir=$ac_optarg ;;
  953. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  954. | --syscon | --sysco | --sysc | --sys | --sy)
  955. ac_prev=sysconfdir ;;
  956. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  957. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  958. sysconfdir=$ac_optarg ;;
  959. -target | --target | --targe | --targ | --tar | --ta | --t)
  960. ac_prev=target_alias ;;
  961. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  962. target_alias=$ac_optarg ;;
  963. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  964. verbose=yes ;;
  965. -version | --version | --versio | --versi | --vers | -V)
  966. ac_init_version=: ;;
  967. -with-* | --with-*)
  968. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  969. # Reject names that are not valid shell variable names.
  970. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  971. as_fn_error $? "invalid package name: $ac_useropt"
  972. ac_useropt_orig=$ac_useropt
  973. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  974. case $ac_user_opts in
  975. *"
  976. "with_$ac_useropt"
  977. "*) ;;
  978. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  979. ac_unrecognized_sep=', ';;
  980. esac
  981. eval with_$ac_useropt=\$ac_optarg ;;
  982. -without-* | --without-*)
  983. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  984. # Reject names that are not valid shell variable names.
  985. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  986. as_fn_error $? "invalid package name: $ac_useropt"
  987. ac_useropt_orig=$ac_useropt
  988. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  989. case $ac_user_opts in
  990. *"
  991. "with_$ac_useropt"
  992. "*) ;;
  993. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  994. ac_unrecognized_sep=', ';;
  995. esac
  996. eval with_$ac_useropt=no ;;
  997. --x)
  998. # Obsolete; use --with-x.
  999. with_x=yes ;;
  1000. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1001. | --x-incl | --x-inc | --x-in | --x-i)
  1002. ac_prev=x_includes ;;
  1003. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1004. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1005. x_includes=$ac_optarg ;;
  1006. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1007. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1008. ac_prev=x_libraries ;;
  1009. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1010. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1011. x_libraries=$ac_optarg ;;
  1012. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1013. Try \`$0 --help' for more information"
  1014. ;;
  1015. *=*)
  1016. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1017. # Reject names that are not valid shell variable names.
  1018. case $ac_envvar in #(
  1019. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1020. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1021. esac
  1022. eval $ac_envvar=\$ac_optarg
  1023. export $ac_envvar ;;
  1024. *)
  1025. # FIXME: should be removed in autoconf 3.0.
  1026. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1027. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1028. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1029. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1030. ;;
  1031. esac
  1032. done
  1033. if test -n "$ac_prev"; then
  1034. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1035. as_fn_error $? "missing argument to $ac_option"
  1036. fi
  1037. if test -n "$ac_unrecognized_opts"; then
  1038. case $enable_option_checking in
  1039. no) ;;
  1040. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1041. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1042. esac
  1043. fi
  1044. # Check all directory arguments for consistency.
  1045. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1046. datadir sysconfdir sharedstatedir localstatedir includedir \
  1047. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1048. libdir localedir mandir
  1049. do
  1050. eval ac_val=\$$ac_var
  1051. # Remove trailing slashes.
  1052. case $ac_val in
  1053. */ )
  1054. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1055. eval $ac_var=\$ac_val;;
  1056. esac
  1057. # Be sure to have absolute directory names.
  1058. case $ac_val in
  1059. [\\/$]* | ?:[\\/]* ) continue;;
  1060. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1061. esac
  1062. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1063. done
  1064. # There might be people who depend on the old broken behavior: `$host'
  1065. # used to hold the argument of --host etc.
  1066. # FIXME: To remove some day.
  1067. build=$build_alias
  1068. host=$host_alias
  1069. target=$target_alias
  1070. # FIXME: To remove some day.
  1071. if test "x$host_alias" != x; then
  1072. if test "x$build_alias" = x; then
  1073. cross_compiling=maybe
  1074. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1075. If a cross compiler is detected then cross compile mode will be used" >&2
  1076. elif test "x$build_alias" != "x$host_alias"; then
  1077. cross_compiling=yes
  1078. fi
  1079. fi
  1080. ac_tool_prefix=
  1081. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1082. test "$silent" = yes && exec 6>/dev/null
  1083. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1084. ac_ls_di=`ls -di .` &&
  1085. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1086. as_fn_error $? "working directory cannot be determined"
  1087. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1088. as_fn_error $? "pwd does not report name of working directory"
  1089. # Find the source files, if location was not specified.
  1090. if test -z "$srcdir"; then
  1091. ac_srcdir_defaulted=yes
  1092. # Try the directory containing this script, then the parent directory.
  1093. ac_confdir=`$as_dirname -- "$as_myself" ||
  1094. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1095. X"$as_myself" : 'X\(//\)[^/]' \| \
  1096. X"$as_myself" : 'X\(//\)$' \| \
  1097. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1098. $as_echo X"$as_myself" |
  1099. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1100. s//\1/
  1101. q
  1102. }
  1103. /^X\(\/\/\)[^/].*/{
  1104. s//\1/
  1105. q
  1106. }
  1107. /^X\(\/\/\)$/{
  1108. s//\1/
  1109. q
  1110. }
  1111. /^X\(\/\).*/{
  1112. s//\1/
  1113. q
  1114. }
  1115. s/.*/./; q'`
  1116. srcdir=$ac_confdir
  1117. if test ! -r "$srcdir/$ac_unique_file"; then
  1118. srcdir=..
  1119. fi
  1120. else
  1121. ac_srcdir_defaulted=no
  1122. fi
  1123. if test ! -r "$srcdir/$ac_unique_file"; then
  1124. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1125. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1126. fi
  1127. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1128. ac_abs_confdir=`(
  1129. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1130. pwd)`
  1131. # When building in place, set srcdir=.
  1132. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1133. srcdir=.
  1134. fi
  1135. # Remove unnecessary trailing slashes from srcdir.
  1136. # Double slashes in file names in object file debugging info
  1137. # mess up M-x gdb in Emacs.
  1138. case $srcdir in
  1139. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1140. esac
  1141. for ac_var in $ac_precious_vars; do
  1142. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1143. eval ac_env_${ac_var}_value=\$${ac_var}
  1144. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1145. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1146. done
  1147. #
  1148. # Report the --help message.
  1149. #
  1150. if test "$ac_init_help" = "long"; then
  1151. # Omit some internal or obsolete options to make the list less imposing.
  1152. # This message is too long to be a string in the A/UX 3.1 sh.
  1153. cat <<_ACEOF
  1154. \`configure' configures ngIRCd 20.3 to adapt to many kinds of systems.
  1155. Usage: $0 [OPTION]... [VAR=VALUE]...
  1156. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1157. VAR=VALUE. See below for descriptions of some of the useful variables.
  1158. Defaults for the options are specified in brackets.
  1159. Configuration:
  1160. -h, --help display this help and exit
  1161. --help=short display options specific to this package
  1162. --help=recursive display the short help of all the included packages
  1163. -V, --version display version information and exit
  1164. -q, --quiet, --silent do not print \`checking ...' messages
  1165. --cache-file=FILE cache test results in FILE [disabled]
  1166. -C, --config-cache alias for \`--cache-file=config.cache'
  1167. -n, --no-create do not create output files
  1168. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1169. Installation directories:
  1170. --prefix=PREFIX install architecture-independent files in PREFIX
  1171. [$ac_default_prefix]
  1172. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1173. [PREFIX]
  1174. By default, \`make install' will install all the files in
  1175. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1176. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1177. for instance \`--prefix=\$HOME'.
  1178. For better control, use the options below.
  1179. Fine tuning of the installation directories:
  1180. --bindir=DIR user executables [EPREFIX/bin]
  1181. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1182. --libexecdir=DIR program executables [EPREFIX/libexec]
  1183. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1184. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1185. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1186. --libdir=DIR object code libraries [EPREFIX/lib]
  1187. --includedir=DIR C header files [PREFIX/include]
  1188. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1189. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1190. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1191. --infodir=DIR info documentation [DATAROOTDIR/info]
  1192. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1193. --mandir=DIR man documentation [DATAROOTDIR/man]
  1194. --docdir=DIR documentation root [DATAROOTDIR/doc/ngircd]
  1195. --htmldir=DIR html documentation [DOCDIR]
  1196. --dvidir=DIR dvi documentation [DOCDIR]
  1197. --pdfdir=DIR pdf documentation [DOCDIR]
  1198. --psdir=DIR ps documentation [DOCDIR]
  1199. _ACEOF
  1200. cat <<\_ACEOF
  1201. Program names:
  1202. --program-prefix=PREFIX prepend PREFIX to installed program names
  1203. --program-suffix=SUFFIX append SUFFIX to installed program names
  1204. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1205. System types:
  1206. --build=BUILD configure for building on BUILD [guessed]
  1207. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1208. _ACEOF
  1209. fi
  1210. if test -n "$ac_init_help"; then
  1211. case $ac_init_help in
  1212. short | recursive ) echo "Configuration of ngIRCd 20.3:";;
  1213. esac
  1214. cat <<\_ACEOF
  1215. Optional Features:
  1216. --disable-option-checking ignore unrecognized --enable/--with options
  1217. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1218. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1219. --enable-silent-rules less verbose build output (undo: `make V=1')
  1220. --disable-silent-rules verbose build output (undo: `make V=0')
  1221. --disable-dependency-tracking speeds up one-time build
  1222. --enable-dependency-tracking do not reject slow dependency extractors
  1223. --disable-ircplus disable IRC+ protocol
  1224. --enable-ipv6 enable IPv6 protocol support
  1225. --enable-sniffer enable IRC traffic sniffer (enables debug mode)
  1226. --enable-debug show additional debug output
  1227. --enable-strict-rfc strict RFC conformance -- may break clients!
  1228. Optional Packages:
  1229. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1230. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1231. --without-syslog disable syslog (autodetected by default)
  1232. --without-zlib disable zlib compression (autodetected by default)
  1233. --without-select disable select IO support (autodetected by default)
  1234. --without-poll disable poll support (autodetected by default)
  1235. --without-devpoll disable /dev/poll IO support (autodetected by
  1236. default)
  1237. --without-epoll disable epoll IO support (autodetected by default)
  1238. --without-kqueue disable kqueue IO support (autodetected by default)
  1239. --with-openssl enable SSL support using OpenSSL
  1240. --with-gnutls enable SSL support using gnutls
  1241. --with-tcp-wrappers enable TCP wrappers support
  1242. --with-ident enable "IDENT" ("AUTH") protocol support
  1243. --with-pam enable user authentication using PAM
  1244. --with-iconv enable character conversation using libiconv
  1245. Some influential environment variables:
  1246. CC C compiler command
  1247. CFLAGS C compiler flags
  1248. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1249. nonstandard directory <lib dir>
  1250. LIBS libraries to pass to the linker, e.g. -l<library>
  1251. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1252. you have headers in a nonstandard directory <include dir>
  1253. CPP C preprocessor
  1254. Use these variables to override the choices made by `configure' or to help
  1255. it to find libraries and programs with nonstandard names/locations.
  1256. Report bugs to <ngircd-ml@ngircd.barton.de>.
  1257. ngIRCd home page: <http://ngircd.barton.de/>.
  1258. _ACEOF
  1259. ac_status=$?
  1260. fi
  1261. if test "$ac_init_help" = "recursive"; then
  1262. # If there are subdirs, report their specific --help.
  1263. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1264. test -d "$ac_dir" ||
  1265. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1266. continue
  1267. ac_builddir=.
  1268. case "$ac_dir" in
  1269. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1270. *)
  1271. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1272. # A ".." for each directory in $ac_dir_suffix.
  1273. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1274. case $ac_top_builddir_sub in
  1275. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1276. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1277. esac ;;
  1278. esac
  1279. ac_abs_top_builddir=$ac_pwd
  1280. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1281. # for backward compatibility:
  1282. ac_top_builddir=$ac_top_build_prefix
  1283. case $srcdir in
  1284. .) # We are building in place.
  1285. ac_srcdir=.
  1286. ac_top_srcdir=$ac_top_builddir_sub
  1287. ac_abs_top_srcdir=$ac_pwd ;;
  1288. [\\/]* | ?:[\\/]* ) # Absolute name.
  1289. ac_srcdir=$srcdir$ac_dir_suffix;
  1290. ac_top_srcdir=$srcdir
  1291. ac_abs_top_srcdir=$srcdir ;;
  1292. *) # Relative name.
  1293. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1294. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1295. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1296. esac
  1297. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1298. cd "$ac_dir" || { ac_status=$?; continue; }
  1299. # Check for guested configure.
  1300. if test -f "$ac_srcdir/configure.gnu"; then
  1301. echo &&
  1302. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1303. elif test -f "$ac_srcdir/configure"; then
  1304. echo &&
  1305. $SHELL "$ac_srcdir/configure" --help=recursive
  1306. else
  1307. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1308. fi || ac_status=$?
  1309. cd "$ac_pwd" || { ac_status=$?; break; }
  1310. done
  1311. fi
  1312. test -n "$ac_init_help" && exit $ac_status
  1313. if $ac_init_version; then
  1314. cat <<\_ACEOF
  1315. ngIRCd configure 20.3
  1316. generated by GNU Autoconf 2.67
  1317. Copyright (C) 2010 Free Software Foundation, Inc.
  1318. This configure script is free software; the Free Software Foundation
  1319. gives unlimited permission to copy, distribute and modify it.
  1320. _ACEOF
  1321. exit
  1322. fi
  1323. ## ------------------------ ##
  1324. ## Autoconf initialization. ##
  1325. ## ------------------------ ##
  1326. # ac_fn_c_try_compile LINENO
  1327. # --------------------------
  1328. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1329. ac_fn_c_try_compile ()
  1330. {
  1331. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1332. rm -f conftest.$ac_objext
  1333. if { { ac_try="$ac_compile"
  1334. case "(($ac_try" in
  1335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1336. *) ac_try_echo=$ac_try;;
  1337. esac
  1338. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1339. $as_echo "$ac_try_echo"; } >&5
  1340. (eval "$ac_compile") 2>conftest.err
  1341. ac_status=$?
  1342. if test -s conftest.err; then
  1343. grep -v '^ *+' conftest.err >conftest.er1
  1344. cat conftest.er1 >&5
  1345. mv -f conftest.er1 conftest.err
  1346. fi
  1347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1348. test $ac_status = 0; } && {
  1349. test -z "$ac_c_werror_flag" ||
  1350. test ! -s conftest.err
  1351. } && test -s conftest.$ac_objext; then :
  1352. ac_retval=0
  1353. else
  1354. $as_echo "$as_me: failed program was:" >&5
  1355. sed 's/^/| /' conftest.$ac_ext >&5
  1356. ac_retval=1
  1357. fi
  1358. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1359. as_fn_set_status $ac_retval
  1360. } # ac_fn_c_try_compile
  1361. # ac_fn_c_try_cpp LINENO
  1362. # ----------------------
  1363. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1364. ac_fn_c_try_cpp ()
  1365. {
  1366. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1367. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1368. case "(($ac_try" in
  1369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1370. *) ac_try_echo=$ac_try;;
  1371. esac
  1372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1373. $as_echo "$ac_try_echo"; } >&5
  1374. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1375. ac_status=$?
  1376. if test -s conftest.err; then
  1377. grep -v '^ *+' conftest.err >conftest.er1
  1378. cat conftest.er1 >&5
  1379. mv -f conftest.er1 conftest.err
  1380. fi
  1381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1382. test $ac_status = 0; } > conftest.i && {
  1383. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1384. test ! -s conftest.err
  1385. }; then :
  1386. ac_retval=0
  1387. else
  1388. $as_echo "$as_me: failed program was:" >&5
  1389. sed 's/^/| /' conftest.$ac_ext >&5
  1390. ac_retval=1
  1391. fi
  1392. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1393. as_fn_set_status $ac_retval
  1394. } # ac_fn_c_try_cpp
  1395. # ac_fn_c_try_run LINENO
  1396. # ----------------------
  1397. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1398. # that executables *can* be run.
  1399. ac_fn_c_try_run ()
  1400. {
  1401. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1402. if { { ac_try="$ac_link"
  1403. case "(($ac_try" in
  1404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1405. *) ac_try_echo=$ac_try;;
  1406. esac
  1407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1408. $as_echo "$ac_try_echo"; } >&5
  1409. (eval "$ac_link") 2>&5
  1410. ac_status=$?
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1413. { { case "(($ac_try" in
  1414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1415. *) ac_try_echo=$ac_try;;
  1416. esac
  1417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1418. $as_echo "$ac_try_echo"; } >&5
  1419. (eval "$ac_try") 2>&5
  1420. ac_status=$?
  1421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1422. test $ac_status = 0; }; }; then :
  1423. ac_retval=0
  1424. else
  1425. $as_echo "$as_me: program exited with status $ac_status" >&5
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=$ac_status
  1429. fi
  1430. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1431. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1432. as_fn_set_status $ac_retval
  1433. } # ac_fn_c_try_run
  1434. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1435. # -------------------------------------------------------
  1436. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1437. # the include files in INCLUDES and setting the cache variable VAR
  1438. # accordingly.
  1439. ac_fn_c_check_header_mongrel ()
  1440. {
  1441. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1442. if eval "test \"\${$3+set}\"" = set; then :
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1444. $as_echo_n "checking for $2... " >&6; }
  1445. if eval "test \"\${$3+set}\"" = set; then :
  1446. $as_echo_n "(cached) " >&6
  1447. fi
  1448. eval ac_res=\$$3
  1449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1450. $as_echo "$ac_res" >&6; }
  1451. else
  1452. # Is the header compilable?
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1454. $as_echo_n "checking $2 usability... " >&6; }
  1455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1456. /* end confdefs.h. */
  1457. $4
  1458. #include <$2>
  1459. _ACEOF
  1460. if ac_fn_c_try_compile "$LINENO"; then :
  1461. ac_header_compiler=yes
  1462. else
  1463. ac_header_compiler=no
  1464. fi
  1465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1467. $as_echo "$ac_header_compiler" >&6; }
  1468. # Is the header present?
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1470. $as_echo_n "checking $2 presence... " >&6; }
  1471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end confdefs.h. */
  1473. #include <$2>
  1474. _ACEOF
  1475. if ac_fn_c_try_cpp "$LINENO"; then :
  1476. ac_header_preproc=yes
  1477. else
  1478. ac_header_preproc=no
  1479. fi
  1480. rm -f conftest.err conftest.i conftest.$ac_ext
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1482. $as_echo "$ac_header_preproc" >&6; }
  1483. # So? What about this header?
  1484. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1485. yes:no: )
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1487. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1489. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1490. ;;
  1491. no:yes:* )
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1493. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1495. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1497. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1499. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1501. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1502. ( $as_echo "## ----------------------------------------- ##
  1503. ## Report this to ngircd-ml@ngircd.barton.de ##
  1504. ## ----------------------------------------- ##"
  1505. ) | sed "s/^/$as_me: WARNING: /" >&2
  1506. ;;
  1507. esac
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1509. $as_echo_n "checking for $2... " >&6; }
  1510. if eval "test \"\${$3+set}\"" = set; then :
  1511. $as_echo_n "(cached) " >&6
  1512. else
  1513. eval "$3=\$ac_header_compiler"
  1514. fi
  1515. eval ac_res=\$$3
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1517. $as_echo "$ac_res" >&6; }
  1518. fi
  1519. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1520. } # ac_fn_c_check_header_mongrel
  1521. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1522. # -------------------------------------------------------
  1523. # Tests whether HEADER exists and can be compiled using the include files in
  1524. # INCLUDES, setting the cache variable VAR accordingly.
  1525. ac_fn_c_check_header_compile ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1529. $as_echo_n "checking for $2... " >&6; }
  1530. if eval "test \"\${$3+set}\"" = set; then :
  1531. $as_echo_n "(cached) " >&6
  1532. else
  1533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1534. /* end confdefs.h. */
  1535. $4
  1536. #include <$2>
  1537. _ACEOF
  1538. if ac_fn_c_try_compile "$LINENO"; then :
  1539. eval "$3=yes"
  1540. else
  1541. eval "$3=no"
  1542. fi
  1543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1544. fi
  1545. eval ac_res=\$$3
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1547. $as_echo "$ac_res" >&6; }
  1548. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1549. } # ac_fn_c_check_header_compile
  1550. # ac_fn_c_try_link LINENO
  1551. # -----------------------
  1552. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1553. ac_fn_c_try_link ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. rm -f conftest.$ac_objext conftest$ac_exeext
  1557. if { { ac_try="$ac_link"
  1558. case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_link") 2>conftest.err
  1565. ac_status=$?
  1566. if test -s conftest.err; then
  1567. grep -v '^ *+' conftest.err >conftest.er1
  1568. cat conftest.er1 >&5
  1569. mv -f conftest.er1 conftest.err
  1570. fi
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; } && {
  1573. test -z "$ac_c_werror_flag" ||
  1574. test ! -s conftest.err
  1575. } && test -s conftest$ac_exeext && {
  1576. test "$cross_compiling" = yes ||
  1577. $as_test_x conftest$ac_exeext
  1578. }; then :
  1579. ac_retval=0
  1580. else
  1581. $as_echo "$as_me: failed program was:" >&5
  1582. sed 's/^/| /' conftest.$ac_ext >&5
  1583. ac_retval=1
  1584. fi
  1585. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1586. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1587. # interfere with the next link command; also delete a directory that is
  1588. # left behind by Apple's compiler. We do this before executing the actions.
  1589. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1590. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1591. as_fn_set_status $ac_retval
  1592. } # ac_fn_c_try_link
  1593. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1594. # -------------------------------------------
  1595. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1596. # variable VAR accordingly.
  1597. ac_fn_c_check_type ()
  1598. {
  1599. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1601. $as_echo_n "checking for $2... " >&6; }
  1602. if eval "test \"\${$3+set}\"" = set; then :
  1603. $as_echo_n "(cached) " >&6
  1604. else
  1605. eval "$3=no"
  1606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1607. /* end confdefs.h. */
  1608. $4
  1609. int
  1610. main ()
  1611. {
  1612. if (sizeof ($2))
  1613. return 0;
  1614. ;
  1615. return 0;
  1616. }
  1617. _ACEOF
  1618. if ac_fn_c_try_compile "$LINENO"; then :
  1619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1620. /* end confdefs.h. */
  1621. $4
  1622. int
  1623. main ()
  1624. {
  1625. if (sizeof (($2)))
  1626. return 0;
  1627. ;
  1628. return 0;
  1629. }
  1630. _ACEOF
  1631. if ac_fn_c_try_compile "$LINENO"; then :
  1632. else
  1633. eval "$3=yes"
  1634. fi
  1635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1636. fi
  1637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1638. fi
  1639. eval ac_res=\$$3
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1641. $as_echo "$ac_res" >&6; }
  1642. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1643. } # ac_fn_c_check_type
  1644. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1645. # ------------------------------------
  1646. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1647. # accordingly.
  1648. ac_fn_c_find_uintX_t ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1652. $as_echo_n "checking for uint$2_t... " >&6; }
  1653. if eval "test \"\${$3+set}\"" = set; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. eval "$3=no"
  1657. # Order is important - never check a type that is potentially smaller
  1658. # than half of the expected target width.
  1659. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1660. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1662. /* end confdefs.h. */
  1663. $ac_includes_default
  1664. int
  1665. main ()
  1666. {
  1667. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1668. test_array [0] = 0
  1669. ;
  1670. return 0;
  1671. }
  1672. _ACEOF
  1673. if ac_fn_c_try_compile "$LINENO"; then :
  1674. case $ac_type in #(
  1675. uint$2_t) :
  1676. eval "$3=yes" ;; #(
  1677. *) :
  1678. eval "$3=\$ac_type" ;;
  1679. esac
  1680. fi
  1681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1682. if eval test \"x\$"$3"\" = x"no"; then :
  1683. else
  1684. break
  1685. fi
  1686. done
  1687. fi
  1688. eval ac_res=\$$3
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1690. $as_echo "$ac_res" >&6; }
  1691. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1692. } # ac_fn_c_find_uintX_t
  1693. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1694. # ----------------------------------------------------
  1695. # Tries to find if the field MEMBER exists in type AGGR, after including
  1696. # INCLUDES, setting cache variable VAR accordingly.
  1697. ac_fn_c_check_member ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1701. $as_echo_n "checking for $2.$3... " >&6; }
  1702. if eval "test \"\${$4+set}\"" = set; then :
  1703. $as_echo_n "(cached) " >&6
  1704. else
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $5
  1708. int
  1709. main ()
  1710. {
  1711. static $2 ac_aggr;
  1712. if (ac_aggr.$3)
  1713. return 0;
  1714. ;
  1715. return 0;
  1716. }
  1717. _ACEOF
  1718. if ac_fn_c_try_compile "$LINENO"; then :
  1719. eval "$4=yes"
  1720. else
  1721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end confdefs.h. */
  1723. $5
  1724. int
  1725. main ()
  1726. {
  1727. static $2 ac_aggr;
  1728. if (sizeof ac_aggr.$3)
  1729. return 0;
  1730. ;
  1731. return 0;
  1732. }
  1733. _ACEOF
  1734. if ac_fn_c_try_compile "$LINENO"; then :
  1735. eval "$4=yes"
  1736. else
  1737. eval "$4=no"
  1738. fi
  1739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1740. fi
  1741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1742. fi
  1743. eval ac_res=\$$4
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1745. $as_echo "$ac_res" >&6; }
  1746. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1747. } # ac_fn_c_check_member
  1748. # ac_fn_c_check_func LINENO FUNC VAR
  1749. # ----------------------------------
  1750. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1751. ac_fn_c_check_func ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1755. $as_echo_n "checking for $2... " >&6; }
  1756. if eval "test \"\${$3+set}\"" = set; then :
  1757. $as_echo_n "(cached) " >&6
  1758. else
  1759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1760. /* end confdefs.h. */
  1761. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1762. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1763. #define $2 innocuous_$2
  1764. /* System header to define __stub macros and hopefully few prototypes,
  1765. which can conflict with char $2 (); below.
  1766. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1767. <limits.h> exists even on freestanding compilers. */
  1768. #ifdef __STDC__
  1769. # include <limits.h>
  1770. #else
  1771. # include <assert.h>
  1772. #endif
  1773. #undef $2
  1774. /* Override any GCC internal prototype to avoid an error.
  1775. Use char because int might match the return type of a GCC
  1776. builtin and then its argument prototype would still apply. */
  1777. #ifdef __cplusplus
  1778. extern "C"
  1779. #endif
  1780. char $2 ();
  1781. /* The GNU C library defines this for functions which it implements
  1782. to always fail with ENOSYS. Some functions are actually named
  1783. something starting with __ and the normal name is an alias. */
  1784. #if defined __stub_$2 || defined __stub___$2
  1785. choke me
  1786. #endif
  1787. int
  1788. main ()
  1789. {
  1790. return $2 ();
  1791. ;
  1792. return 0;
  1793. }
  1794. _ACEOF
  1795. if ac_fn_c_try_link "$LINENO"; then :
  1796. eval "$3=yes"
  1797. else
  1798. eval "$3=no"
  1799. fi
  1800. rm -f core conftest.err conftest.$ac_objext \
  1801. conftest$ac_exeext conftest.$ac_ext
  1802. fi
  1803. eval ac_res=\$$3
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1805. $as_echo "$ac_res" >&6; }
  1806. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1807. } # ac_fn_c_check_func
  1808. cat >config.log <<_ACEOF
  1809. This file contains any messages produced by compilers while
  1810. running configure, to aid debugging if configure makes a mistake.
  1811. It was created by ngIRCd $as_me 20.3, which was
  1812. generated by GNU Autoconf 2.67. Invocation command line was
  1813. $ $0 $@
  1814. _ACEOF
  1815. exec 5>>config.log
  1816. {
  1817. cat <<_ASUNAME
  1818. ## --------- ##
  1819. ## Platform. ##
  1820. ## --------- ##
  1821. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1822. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1823. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1824. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1825. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1826. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1827. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1828. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1829. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1830. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1831. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1832. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1833. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1834. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1835. _ASUNAME
  1836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1837. for as_dir in $PATH
  1838. do
  1839. IFS=$as_save_IFS
  1840. test -z "$as_dir" && as_dir=.
  1841. $as_echo "PATH: $as_dir"
  1842. done
  1843. IFS=$as_save_IFS
  1844. } >&5
  1845. cat >&5 <<_ACEOF
  1846. ## ----------- ##
  1847. ## Core tests. ##
  1848. ## ----------- ##
  1849. _ACEOF
  1850. # Keep a trace of the command line.
  1851. # Strip out --no-create and --no-recursion so they do not pile up.
  1852. # Strip out --silent because we don't want to record it for future runs.
  1853. # Also quote any args containing shell meta-characters.
  1854. # Make two passes to allow for proper duplicate-argument suppression.
  1855. ac_configure_args=
  1856. ac_configure_args0=
  1857. ac_configure_args1=
  1858. ac_must_keep_next=false
  1859. for ac_pass in 1 2
  1860. do
  1861. for ac_arg
  1862. do
  1863. case $ac_arg in
  1864. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1865. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1866. | -silent | --silent | --silen | --sile | --sil)
  1867. continue ;;
  1868. *\'*)
  1869. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1870. esac
  1871. case $ac_pass in
  1872. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1873. 2)
  1874. as_fn_append ac_configure_args1 " '$ac_arg'"
  1875. if test $ac_must_keep_next = true; then
  1876. ac_must_keep_next=false # Got value, back to normal.
  1877. else
  1878. case $ac_arg in
  1879. *=* | --config-cache | -C | -disable-* | --disable-* \
  1880. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1881. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1882. | -with-* | --with-* | -without-* | --without-* | --x)
  1883. case "$ac_configure_args0 " in
  1884. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1885. esac
  1886. ;;
  1887. -* ) ac_must_keep_next=true ;;
  1888. esac
  1889. fi
  1890. as_fn_append ac_configure_args " '$ac_arg'"
  1891. ;;
  1892. esac
  1893. done
  1894. done
  1895. { ac_configure_args0=; unset ac_configure_args0;}
  1896. { ac_configure_args1=; unset ac_configure_args1;}
  1897. # When interrupted or exit'd, cleanup temporary files, and complete
  1898. # config.log. We remove comments because anyway the quotes in there
  1899. # would cause problems or look ugly.
  1900. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1901. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1902. trap 'exit_status=$?
  1903. # Save into config.log some information that might help in debugging.
  1904. {
  1905. echo
  1906. $as_echo "## ---------------- ##
  1907. ## Cache variables. ##
  1908. ## ---------------- ##"
  1909. echo
  1910. # The following way of writing the cache mishandles newlines in values,
  1911. (
  1912. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1913. eval ac_val=\$$ac_var
  1914. case $ac_val in #(
  1915. *${as_nl}*)
  1916. case $ac_var in #(
  1917. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1918. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1919. esac
  1920. case $ac_var in #(
  1921. _ | IFS | as_nl) ;; #(
  1922. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1923. *) { eval $ac_var=; unset $ac_var;} ;;
  1924. esac ;;
  1925. esac
  1926. done
  1927. (set) 2>&1 |
  1928. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1929. *${as_nl}ac_space=\ *)
  1930. sed -n \
  1931. "s/'\''/'\''\\\\'\'''\''/g;
  1932. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1933. ;; #(
  1934. *)
  1935. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1936. ;;
  1937. esac |
  1938. sort
  1939. )
  1940. echo
  1941. $as_echo "## ----------------- ##
  1942. ## Output variables. ##
  1943. ## ----------------- ##"
  1944. echo
  1945. for ac_var in $ac_subst_vars
  1946. do
  1947. eval ac_val=\$$ac_var
  1948. case $ac_val in
  1949. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1950. esac
  1951. $as_echo "$ac_var='\''$ac_val'\''"
  1952. done | sort
  1953. echo
  1954. if test -n "$ac_subst_files"; then
  1955. $as_echo "## ------------------- ##
  1956. ## File substitutions. ##
  1957. ## ------------------- ##"
  1958. echo
  1959. for ac_var in $ac_subst_files
  1960. do
  1961. eval ac_val=\$$ac_var
  1962. case $ac_val in
  1963. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1964. esac
  1965. $as_echo "$ac_var='\''$ac_val'\''"
  1966. done | sort
  1967. echo
  1968. fi
  1969. if test -s confdefs.h; then
  1970. $as_echo "## ----------- ##
  1971. ## confdefs.h. ##
  1972. ## ----------- ##"
  1973. echo
  1974. cat confdefs.h
  1975. echo
  1976. fi
  1977. test "$ac_signal" != 0 &&
  1978. $as_echo "$as_me: caught signal $ac_signal"
  1979. $as_echo "$as_me: exit $exit_status"
  1980. } >&5
  1981. rm -f core *.core core.conftest.* &&
  1982. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1983. exit $exit_status
  1984. ' 0
  1985. for ac_signal in 1 2 13 15; do
  1986. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1987. done
  1988. ac_signal=0
  1989. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1990. rm -f -r conftest* confdefs.h
  1991. $as_echo "/* confdefs.h */" > confdefs.h
  1992. # Predefined preprocessor variables.
  1993. cat >>confdefs.h <<_ACEOF
  1994. #define PACKAGE_NAME "$PACKAGE_NAME"
  1995. _ACEOF
  1996. cat >>confdefs.h <<_ACEOF
  1997. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1998. _ACEOF
  1999. cat >>confdefs.h <<_ACEOF
  2000. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2001. _ACEOF
  2002. cat >>confdefs.h <<_ACEOF
  2003. #define PACKAGE_STRING "$PACKAGE_STRING"
  2004. _ACEOF
  2005. cat >>confdefs.h <<_ACEOF
  2006. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2007. _ACEOF
  2008. cat >>confdefs.h <<_ACEOF
  2009. #define PACKAGE_URL "$PACKAGE_URL"
  2010. _ACEOF
  2011. # Let the site file select an alternate cache file if it wants to.
  2012. # Prefer an explicitly selected file to automatically selected ones.
  2013. ac_site_file1=NONE
  2014. ac_site_file2=NONE
  2015. if test -n "$CONFIG_SITE"; then
  2016. # We do not want a PATH search for config.site.
  2017. case $CONFIG_SITE in #((
  2018. -*) ac_site_file1=./$CONFIG_SITE;;
  2019. */*) ac_site_file1=$CONFIG_SITE;;
  2020. *) ac_site_file1=./$CONFIG_SITE;;
  2021. esac
  2022. elif test "x$prefix" != xNONE; then
  2023. ac_site_file1=$prefix/share/config.site
  2024. ac_site_file2=$prefix/etc/config.site
  2025. else
  2026. ac_site_file1=$ac_default_prefix/share/config.site
  2027. ac_site_file2=$ac_default_prefix/etc/config.site
  2028. fi
  2029. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2030. do
  2031. test "x$ac_site_file" = xNONE && continue
  2032. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2034. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2035. sed 's/^/| /' "$ac_site_file" >&5
  2036. . "$ac_site_file" \
  2037. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2039. as_fn_error $? "failed to load site script $ac_site_file
  2040. See \`config.log' for more details" "$LINENO" 5 ; }
  2041. fi
  2042. done
  2043. if test -r "$cache_file"; then
  2044. # Some versions of bash will fail to source /dev/null (special files
  2045. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2046. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2048. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2049. case $cache_file in
  2050. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2051. *) . "./$cache_file";;
  2052. esac
  2053. fi
  2054. else
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2056. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2057. >$cache_file
  2058. fi
  2059. as_fn_append ac_header_list " arpa/inet.h"
  2060. as_fn_append ac_header_list " inttypes.h"
  2061. as_fn_append ac_header_list " malloc.h"
  2062. as_fn_append ac_header_list " netinet/in_systm.h"
  2063. as_fn_append ac_header_list " netinet/ip.h"
  2064. as_fn_append ac_header_list " stdbool.h"
  2065. as_fn_append ac_header_list " stddef.h"
  2066. as_fn_append ac_header_list " stdint.h"
  2067. as_fn_append ac_header_list " varargs.h"
  2068. as_fn_append ac_func_list " gai_strerror"
  2069. as_fn_append ac_func_list " getaddrinfo"
  2070. as_fn_append ac_func_list " getnameinfo"
  2071. as_fn_append ac_func_list " inet_aton"
  2072. as_fn_append ac_func_list " sigaction"
  2073. as_fn_append ac_func_list " sigprocmask"
  2074. as_fn_append ac_func_list " snprintf"
  2075. as_fn_append ac_func_list " vsnprintf"
  2076. as_fn_append ac_func_list " strdup"
  2077. as_fn_append ac_func_list " strlcpy"
  2078. as_fn_append ac_func_list " strlcat"
  2079. as_fn_append ac_func_list " strtok_r"
  2080. as_fn_append ac_func_list " waitpid"
  2081. # Check that the precious variables saved in the cache have kept the same
  2082. # value.
  2083. ac_cache_corrupted=false
  2084. for ac_var in $ac_precious_vars; do
  2085. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2086. eval ac_new_set=\$ac_env_${ac_var}_set
  2087. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2088. eval ac_new_val=\$ac_env_${ac_var}_value
  2089. case $ac_old_set,$ac_new_set in
  2090. set,)
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2092. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2093. ac_cache_corrupted=: ;;
  2094. ,set)
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2096. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2097. ac_cache_corrupted=: ;;
  2098. ,);;
  2099. *)
  2100. if test "x$ac_old_val" != "x$ac_new_val"; then
  2101. # differences in whitespace do not lead to failure.
  2102. ac_old_val_w=`echo x $ac_old_val`
  2103. ac_new_val_w=`echo x $ac_new_val`
  2104. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2106. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2107. ac_cache_corrupted=:
  2108. else
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2110. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2111. eval $ac_var=\$ac_old_val
  2112. fi
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2114. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2116. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2117. fi;;
  2118. esac
  2119. # Pass precious variables to config.status.
  2120. if test "$ac_new_set" = set; then
  2121. case $ac_new_val in
  2122. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2123. *) ac_arg=$ac_var=$ac_new_val ;;
  2124. esac
  2125. case " $ac_configure_args " in
  2126. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2127. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2128. esac
  2129. fi
  2130. done
  2131. if $ac_cache_corrupted; then
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2133. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2135. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2136. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2137. fi
  2138. ## -------------------- ##
  2139. ## Main body of script. ##
  2140. ## -------------------- ##
  2141. ac_ext=c
  2142. ac_cpp='$CPP $CPPFLAGS'
  2143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2146. ac_config_headers="$ac_config_headers src/config.h"
  2147. ac_aux_dir=
  2148. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2149. if test -f "$ac_dir/install-sh"; then
  2150. ac_aux_dir=$ac_dir
  2151. ac_install_sh="$ac_aux_dir/install-sh -c"
  2152. break
  2153. elif test -f "$ac_dir/install.sh"; then
  2154. ac_aux_dir=$ac_dir
  2155. ac_install_sh="$ac_aux_dir/install.sh -c"
  2156. break
  2157. elif test -f "$ac_dir/shtool"; then
  2158. ac_aux_dir=$ac_dir
  2159. ac_install_sh="$ac_aux_dir/shtool install -c"
  2160. break
  2161. fi
  2162. done
  2163. if test -z "$ac_aux_dir"; then
  2164. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2165. fi
  2166. # These three variables are undocumented and unsupported,
  2167. # and are intended to be withdrawn in a future Autoconf release.
  2168. # They can cause serious problems if a builder's source tree is in a directory
  2169. # whose full name contains unusual characters.
  2170. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2171. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2172. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2173. # Make sure we can run config.sub.
  2174. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2175. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2177. $as_echo_n "checking build system type... " >&6; }
  2178. if test "${ac_cv_build+set}" = set; then :
  2179. $as_echo_n "(cached) " >&6
  2180. else
  2181. ac_build_alias=$build_alias
  2182. test "x$ac_build_alias" = x &&
  2183. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2184. test "x$ac_build_alias" = x &&
  2185. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2186. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2187. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2188. fi
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2190. $as_echo "$ac_cv_build" >&6; }
  2191. case $ac_cv_build in
  2192. *-*-*) ;;
  2193. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2194. esac
  2195. build=$ac_cv_build
  2196. ac_save_IFS=$IFS; IFS='-'
  2197. set x $ac_cv_build
  2198. shift
  2199. build_cpu=$1
  2200. build_vendor=$2
  2201. shift; shift
  2202. # Remember, the first character of IFS is used to create $*,
  2203. # except with old shells:
  2204. build_os=$*
  2205. IFS=$ac_save_IFS
  2206. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2208. $as_echo_n "checking host system type... " >&6; }
  2209. if test "${ac_cv_host+set}" = set; then :
  2210. $as_echo_n "(cached) " >&6
  2211. else
  2212. if test "x$host_alias" = x; then
  2213. ac_cv_host=$ac_cv_build
  2214. else
  2215. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2216. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2217. fi
  2218. fi
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2220. $as_echo "$ac_cv_host" >&6; }
  2221. case $ac_cv_host in
  2222. *-*-*) ;;
  2223. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2224. esac
  2225. host=$ac_cv_host
  2226. ac_save_IFS=$IFS; IFS='-'
  2227. set x $ac_cv_host
  2228. shift
  2229. host_cpu=$1
  2230. host_vendor=$2
  2231. shift; shift
  2232. # Remember, the first character of IFS is used to create $*,
  2233. # except with old shells:
  2234. host_os=$*
  2235. IFS=$ac_save_IFS
  2236. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2237. am__api_version='1.11'
  2238. # Find a good install program. We prefer a C program (faster),
  2239. # so one script is as good as another. But avoid the broken or
  2240. # incompatible versions:
  2241. # SysV /etc/install, /usr/sbin/install
  2242. # SunOS /usr/etc/install
  2243. # IRIX /sbin/install
  2244. # AIX /bin/install
  2245. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2246. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2247. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2248. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2249. # OS/2's system install, which has a completely different semantic
  2250. # ./install, which can be erroneously created by make from ./install.sh.
  2251. # Reject install programs that cannot install multiple files.
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2253. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2254. if test -z "$INSTALL"; then
  2255. if test "${ac_cv_path_install+set}" = set; then :
  2256. $as_echo_n "(cached) " >&6
  2257. else
  2258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2259. for as_dir in $PATH
  2260. do
  2261. IFS=$as_save_IFS
  2262. test -z "$as_dir" && as_dir=.
  2263. # Account for people who put trailing slashes in PATH elements.
  2264. case $as_dir/ in #((
  2265. ./ | .// | /[cC]/* | \
  2266. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2267. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2268. /usr/ucb/* ) ;;
  2269. *)
  2270. # OSF1 and SCO ODT 3.0 have their own names for install.
  2271. # Don't use installbsd from OSF since it installs stuff as root
  2272. # by default.
  2273. for ac_prog in ginstall scoinst install; do
  2274. for ac_exec_ext in '' $ac_executable_extensions; do
  2275. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2276. if test $ac_prog = install &&
  2277. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2278. # AIX install. It has an incompatible calling convention.
  2279. :
  2280. elif test $ac_prog = install &&
  2281. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2282. # program-specific install script used by HP pwplus--don't use.
  2283. :
  2284. else
  2285. rm -rf conftest.one conftest.two conftest.dir
  2286. echo one > conftest.one
  2287. echo two > conftest.two
  2288. mkdir conftest.dir
  2289. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2290. test -s conftest.one && test -s conftest.two &&
  2291. test -s conftest.dir/conftest.one &&
  2292. test -s conftest.dir/conftest.two
  2293. then
  2294. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2295. break 3
  2296. fi
  2297. fi
  2298. fi
  2299. done
  2300. done
  2301. ;;
  2302. esac
  2303. done
  2304. IFS=$as_save_IFS
  2305. rm -rf conftest.one conftest.two conftest.dir
  2306. fi
  2307. if test "${ac_cv_path_install+set}" = set; then
  2308. INSTALL=$ac_cv_path_install
  2309. else
  2310. # As a last resort, use the slow shell script. Don't cache a
  2311. # value for INSTALL within a source directory, because that will
  2312. # break other packages using the cache if that directory is
  2313. # removed, or if the value is a relative name.
  2314. INSTALL=$ac_install_sh
  2315. fi
  2316. fi
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2318. $as_echo "$INSTALL" >&6; }
  2319. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2320. # It thinks the first close brace ends the variable substitution.
  2321. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2322. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2323. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2325. $as_echo_n "checking whether build environment is sane... " >&6; }
  2326. # Just in case
  2327. sleep 1
  2328. echo timestamp > conftest.file
  2329. # Reject unsafe characters in $srcdir or the absolute working directory
  2330. # name. Accept space and tab only in the latter.
  2331. am_lf='
  2332. '
  2333. case `pwd` in
  2334. *[\\\"\#\$\&\'\`$am_lf]*)
  2335. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2336. esac
  2337. case $srcdir in
  2338. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2339. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2340. esac
  2341. # Do `set' in a subshell so we don't clobber the current shell's
  2342. # arguments. Must try -L first in case configure is actually a
  2343. # symlink; some systems play weird games with the mod time of symlinks
  2344. # (eg FreeBSD returns the mod time of the symlink's containing
  2345. # directory).
  2346. if (
  2347. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2348. if test "$*" = "X"; then
  2349. # -L didn't work.
  2350. set X `ls -t "$srcdir/configure" conftest.file`
  2351. fi
  2352. rm -f conftest.file
  2353. if test "$*" != "X $srcdir/configure conftest.file" \
  2354. && test "$*" != "X conftest.file $srcdir/configure"; then
  2355. # If neither matched, then we have a broken ls. This can happen
  2356. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2357. # broken ls alias from the environment. This has actually
  2358. # happened. Such a system could not be considered "sane".
  2359. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2360. alias in your environment" "$LINENO" 5
  2361. fi
  2362. test "$2" = conftest.file
  2363. )
  2364. then
  2365. # Ok.
  2366. :
  2367. else
  2368. as_fn_error $? "newly created file is older than distributed files!
  2369. Check your system clock" "$LINENO" 5
  2370. fi
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2372. $as_echo "yes" >&6; }
  2373. test "$program_prefix" != NONE &&
  2374. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2375. # Use a double $ so make ignores it.
  2376. test "$program_suffix" != NONE &&
  2377. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2378. # Double any \ or $.
  2379. # By default was `s,x,x', remove it if useless.
  2380. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2381. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2382. # expand $ac_aux_dir to an absolute path
  2383. am_aux_dir=`cd $ac_aux_dir && pwd`
  2384. if test x"${MISSING+set}" != xset; then
  2385. case $am_aux_dir in
  2386. *\ * | *\ *)
  2387. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2388. *)
  2389. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2390. esac
  2391. fi
  2392. # Use eval to expand $SHELL
  2393. if eval "$MISSING --run true"; then
  2394. am_missing_run="$MISSING --run "
  2395. else
  2396. am_missing_run=
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2398. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2399. fi
  2400. if test x"${install_sh}" != xset; then
  2401. case $am_aux_dir in
  2402. *\ * | *\ *)
  2403. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2404. *)
  2405. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2406. esac
  2407. fi
  2408. # Installed binaries are usually stripped using `strip' when the user
  2409. # run `make install-strip'. However `strip' might not be the right
  2410. # tool to use in cross-compilation environments, therefore Automake
  2411. # will honor the `STRIP' environment variable to overrule this program.
  2412. if test "$cross_compiling" != no; then
  2413. if test -n "$ac_tool_prefix"; then
  2414. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2415. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2417. $as_echo_n "checking for $ac_word... " >&6; }
  2418. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2419. $as_echo_n "(cached) " >&6
  2420. else
  2421. if test -n "$STRIP"; then
  2422. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2423. else
  2424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2425. for as_dir in $PATH
  2426. do
  2427. IFS=$as_save_IFS
  2428. test -z "$as_dir" && as_dir=.
  2429. for ac_exec_ext in '' $ac_executable_extensions; do
  2430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2431. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2433. break 2
  2434. fi
  2435. done
  2436. done
  2437. IFS=$as_save_IFS
  2438. fi
  2439. fi
  2440. STRIP=$ac_cv_prog_STRIP
  2441. if test -n "$STRIP"; then
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2443. $as_echo "$STRIP" >&6; }
  2444. else
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2446. $as_echo "no" >&6; }
  2447. fi
  2448. fi
  2449. if test -z "$ac_cv_prog_STRIP"; then
  2450. ac_ct_STRIP=$STRIP
  2451. # Extract the first word of "strip", so it can be a program name with args.
  2452. set dummy strip; ac_word=$2
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2454. $as_echo_n "checking for $ac_word... " >&6; }
  2455. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2456. $as_echo_n "(cached) " >&6
  2457. else
  2458. if test -n "$ac_ct_STRIP"; then
  2459. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2460. else
  2461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2462. for as_dir in $PATH
  2463. do
  2464. IFS=$as_save_IFS
  2465. test -z "$as_dir" && as_dir=.
  2466. for ac_exec_ext in '' $ac_executable_extensions; do
  2467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2468. ac_cv_prog_ac_ct_STRIP="strip"
  2469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2470. break 2
  2471. fi
  2472. done
  2473. done
  2474. IFS=$as_save_IFS
  2475. fi
  2476. fi
  2477. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2478. if test -n "$ac_ct_STRIP"; then
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2480. $as_echo "$ac_ct_STRIP" >&6; }
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2483. $as_echo "no" >&6; }
  2484. fi
  2485. if test "x$ac_ct_STRIP" = x; then
  2486. STRIP=":"
  2487. else
  2488. case $cross_compiling:$ac_tool_warned in
  2489. yes:)
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2491. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2492. ac_tool_warned=yes ;;
  2493. esac
  2494. STRIP=$ac_ct_STRIP
  2495. fi
  2496. else
  2497. STRIP="$ac_cv_prog_STRIP"
  2498. fi
  2499. fi
  2500. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2502. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2503. if test -z "$MKDIR_P"; then
  2504. if test "${ac_cv_path_mkdir+set}" = set; then :
  2505. $as_echo_n "(cached) " >&6
  2506. else
  2507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2508. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2509. do
  2510. IFS=$as_save_IFS
  2511. test -z "$as_dir" && as_dir=.
  2512. for ac_prog in mkdir gmkdir; do
  2513. for ac_exec_ext in '' $ac_executable_extensions; do
  2514. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2515. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2516. 'mkdir (GNU coreutils) '* | \
  2517. 'mkdir (coreutils) '* | \
  2518. 'mkdir (fileutils) '4.1*)
  2519. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2520. break 3;;
  2521. esac
  2522. done
  2523. done
  2524. done
  2525. IFS=$as_save_IFS
  2526. fi
  2527. test -d ./--version && rmdir ./--version
  2528. if test "${ac_cv_path_mkdir+set}" = set; then
  2529. MKDIR_P="$ac_cv_path_mkdir -p"
  2530. else
  2531. # As a last resort, use the slow shell script. Don't cache a
  2532. # value for MKDIR_P within a source directory, because that will
  2533. # break other packages using the cache if that directory is
  2534. # removed, or if the value is a relative name.
  2535. MKDIR_P="$ac_install_sh -d"
  2536. fi
  2537. fi
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2539. $as_echo "$MKDIR_P" >&6; }
  2540. mkdir_p="$MKDIR_P"
  2541. case $mkdir_p in
  2542. [\\/$]* | ?:[\\/]*) ;;
  2543. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2544. esac
  2545. for ac_prog in gawk mawk nawk awk
  2546. do
  2547. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2548. set dummy $ac_prog; ac_word=$2
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2550. $as_echo_n "checking for $ac_word... " >&6; }
  2551. if test "${ac_cv_prog_AWK+set}" = set; then :
  2552. $as_echo_n "(cached) " >&6
  2553. else
  2554. if test -n "$AWK"; then
  2555. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2556. else
  2557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2558. for as_dir in $PATH
  2559. do
  2560. IFS=$as_save_IFS
  2561. test -z "$as_dir" && as_dir=.
  2562. for ac_exec_ext in '' $ac_executable_extensions; do
  2563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2564. ac_cv_prog_AWK="$ac_prog"
  2565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2566. break 2
  2567. fi
  2568. done
  2569. done
  2570. IFS=$as_save_IFS
  2571. fi
  2572. fi
  2573. AWK=$ac_cv_prog_AWK
  2574. if test -n "$AWK"; then
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2576. $as_echo "$AWK" >&6; }
  2577. else
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2579. $as_echo "no" >&6; }
  2580. fi
  2581. test -n "$AWK" && break
  2582. done
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2584. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2585. set x ${MAKE-make}
  2586. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2587. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2588. $as_echo_n "(cached) " >&6
  2589. else
  2590. cat >conftest.make <<\_ACEOF
  2591. SHELL = /bin/sh
  2592. all:
  2593. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2594. _ACEOF
  2595. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2596. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2597. *@@@%%%=?*=@@@%%%*)
  2598. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2599. *)
  2600. eval ac_cv_prog_make_${ac_make}_set=no;;
  2601. esac
  2602. rm -f conftest.make
  2603. fi
  2604. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2606. $as_echo "yes" >&6; }
  2607. SET_MAKE=
  2608. else
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2610. $as_echo "no" >&6; }
  2611. SET_MAKE="MAKE=${MAKE-make}"
  2612. fi
  2613. rm -rf .tst 2>/dev/null
  2614. mkdir .tst 2>/dev/null
  2615. if test -d .tst; then
  2616. am__leading_dot=.
  2617. else
  2618. am__leading_dot=_
  2619. fi
  2620. rmdir .tst 2>/dev/null
  2621. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2622. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2623. # is not polluted with repeated "-I."
  2624. am__isrc=' -I$(srcdir)'
  2625. # test to see if srcdir already configured
  2626. if test -f $srcdir/config.status; then
  2627. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2628. fi
  2629. fi
  2630. # test whether we have cygpath
  2631. if test -z "$CYGPATH_W"; then
  2632. if (cygpath --version) >/dev/null 2>/dev/null; then
  2633. CYGPATH_W='cygpath -w'
  2634. else
  2635. CYGPATH_W=echo
  2636. fi
  2637. fi
  2638. # Define the identity of the package.
  2639. PACKAGE='ngircd'
  2640. VERSION='20.3'
  2641. cat >>confdefs.h <<_ACEOF
  2642. #define PACKAGE "$PACKAGE"
  2643. _ACEOF
  2644. cat >>confdefs.h <<_ACEOF
  2645. #define VERSION "$VERSION"
  2646. _ACEOF
  2647. # Some tools Automake needs.
  2648. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2649. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2650. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2651. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2652. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2653. # We need awk for the "check" target. The system "awk" is bad on
  2654. # some platforms.
  2655. # Always define AMTAR for backward compatibility.
  2656. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2657. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2658. # Check whether --enable-silent-rules was given.
  2659. if test "${enable_silent_rules+set}" = set; then :
  2660. enableval=$enable_silent_rules;
  2661. fi
  2662. case $enable_silent_rules in
  2663. yes) AM_DEFAULT_VERBOSITY=0;;
  2664. no) AM_DEFAULT_VERBOSITY=1;;
  2665. *) AM_DEFAULT_VERBOSITY=0;;
  2666. esac
  2667. AM_BACKSLASH='\'
  2668. # -- Templates for config.h --
  2669. # -- C Compiler --
  2670. ac_ext=c
  2671. ac_cpp='$CPP $CPPFLAGS'
  2672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2675. if test -n "$ac_tool_prefix"; then
  2676. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2677. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2679. $as_echo_n "checking for $ac_word... " >&6; }
  2680. if test "${ac_cv_prog_CC+set}" = set; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. if test -n "$CC"; then
  2684. ac_cv_prog_CC="$CC" # Let the user override the test.
  2685. else
  2686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2687. for as_dir in $PATH
  2688. do
  2689. IFS=$as_save_IFS
  2690. test -z "$as_dir" && as_dir=.
  2691. for ac_exec_ext in '' $ac_executable_extensions; do
  2692. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2693. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2695. break 2
  2696. fi
  2697. done
  2698. done
  2699. IFS=$as_save_IFS
  2700. fi
  2701. fi
  2702. CC=$ac_cv_prog_CC
  2703. if test -n "$CC"; then
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2705. $as_echo "$CC" >&6; }
  2706. else
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2708. $as_echo "no" >&6; }
  2709. fi
  2710. fi
  2711. if test -z "$ac_cv_prog_CC"; then
  2712. ac_ct_CC=$CC
  2713. # Extract the first word of "gcc", so it can be a program name with args.
  2714. set dummy gcc; ac_word=$2
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2716. $as_echo_n "checking for $ac_word... " >&6; }
  2717. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if test -n "$ac_ct_CC"; then
  2721. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2730. ac_cv_prog_ac_ct_CC="gcc"
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2732. break 2
  2733. fi
  2734. done
  2735. done
  2736. IFS=$as_save_IFS
  2737. fi
  2738. fi
  2739. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2740. if test -n "$ac_ct_CC"; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2742. $as_echo "$ac_ct_CC" >&6; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2745. $as_echo "no" >&6; }
  2746. fi
  2747. if test "x$ac_ct_CC" = x; then
  2748. CC=""
  2749. else
  2750. case $cross_compiling:$ac_tool_warned in
  2751. yes:)
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2754. ac_tool_warned=yes ;;
  2755. esac
  2756. CC=$ac_ct_CC
  2757. fi
  2758. else
  2759. CC="$ac_cv_prog_CC"
  2760. fi
  2761. if test -z "$CC"; then
  2762. if test -n "$ac_tool_prefix"; then
  2763. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2764. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2766. $as_echo_n "checking for $ac_word... " >&6; }
  2767. if test "${ac_cv_prog_CC+set}" = set; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if test -n "$CC"; then
  2771. ac_cv_prog_CC="$CC" # Let the user override the test.
  2772. else
  2773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2774. for as_dir in $PATH
  2775. do
  2776. IFS=$as_save_IFS
  2777. test -z "$as_dir" && as_dir=.
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2780. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2782. break 2
  2783. fi
  2784. done
  2785. done
  2786. IFS=$as_save_IFS
  2787. fi
  2788. fi
  2789. CC=$ac_cv_prog_CC
  2790. if test -n "$CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2792. $as_echo "$CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. fi
  2798. fi
  2799. if test -z "$CC"; then
  2800. # Extract the first word of "cc", so it can be a program name with args.
  2801. set dummy cc; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if test "${ac_cv_prog_CC+set}" = set; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$CC"; then
  2808. ac_cv_prog_CC="$CC" # Let the user override the test.
  2809. else
  2810. ac_prog_rejected=no
  2811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2812. for as_dir in $PATH
  2813. do
  2814. IFS=$as_save_IFS
  2815. test -z "$as_dir" && as_dir=.
  2816. for ac_exec_ext in '' $ac_executable_extensions; do
  2817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2818. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2819. ac_prog_rejected=yes
  2820. continue
  2821. fi
  2822. ac_cv_prog_CC="cc"
  2823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2824. break 2
  2825. fi
  2826. done
  2827. done
  2828. IFS=$as_save_IFS
  2829. if test $ac_prog_rejected = yes; then
  2830. # We found a bogon in the path, so make sure we never use it.
  2831. set dummy $ac_cv_prog_CC
  2832. shift
  2833. if test $# != 0; then
  2834. # We chose a different compiler from the bogus one.
  2835. # However, it has the same basename, so the bogon will be chosen
  2836. # first if we set CC to just the basename; use the full file name.
  2837. shift
  2838. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2839. fi
  2840. fi
  2841. fi
  2842. fi
  2843. CC=$ac_cv_prog_CC
  2844. if test -n "$CC"; then
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2846. $as_echo "$CC" >&6; }
  2847. else
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2849. $as_echo "no" >&6; }
  2850. fi
  2851. fi
  2852. if test -z "$CC"; then
  2853. if test -n "$ac_tool_prefix"; then
  2854. for ac_prog in cl.exe
  2855. do
  2856. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2857. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2859. $as_echo_n "checking for $ac_word... " >&6; }
  2860. if test "${ac_cv_prog_CC+set}" = set; then :
  2861. $as_echo_n "(cached) " >&6
  2862. else
  2863. if test -n "$CC"; then
  2864. ac_cv_prog_CC="$CC" # Let the user override the test.
  2865. else
  2866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2867. for as_dir in $PATH
  2868. do
  2869. IFS=$as_save_IFS
  2870. test -z "$as_dir" && as_dir=.
  2871. for ac_exec_ext in '' $ac_executable_extensions; do
  2872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2873. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2875. break 2
  2876. fi
  2877. done
  2878. done
  2879. IFS=$as_save_IFS
  2880. fi
  2881. fi
  2882. CC=$ac_cv_prog_CC
  2883. if test -n "$CC"; then
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2885. $as_echo "$CC" >&6; }
  2886. else
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2888. $as_echo "no" >&6; }
  2889. fi
  2890. test -n "$CC" && break
  2891. done
  2892. fi
  2893. if test -z "$CC"; then
  2894. ac_ct_CC=$CC
  2895. for ac_prog in cl.exe
  2896. do
  2897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2898. set dummy $ac_prog; ac_word=$2
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2900. $as_echo_n "checking for $ac_word... " >&6; }
  2901. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2902. $as_echo_n "(cached) " >&6
  2903. else
  2904. if test -n "$ac_ct_CC"; then
  2905. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2906. else
  2907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2908. for as_dir in $PATH
  2909. do
  2910. IFS=$as_save_IFS
  2911. test -z "$as_dir" && as_dir=.
  2912. for ac_exec_ext in '' $ac_executable_extensions; do
  2913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2914. ac_cv_prog_ac_ct_CC="$ac_prog"
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2916. break 2
  2917. fi
  2918. done
  2919. done
  2920. IFS=$as_save_IFS
  2921. fi
  2922. fi
  2923. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2924. if test -n "$ac_ct_CC"; then
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2926. $as_echo "$ac_ct_CC" >&6; }
  2927. else
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2929. $as_echo "no" >&6; }
  2930. fi
  2931. test -n "$ac_ct_CC" && break
  2932. done
  2933. if test "x$ac_ct_CC" = x; then
  2934. CC=""
  2935. else
  2936. case $cross_compiling:$ac_tool_warned in
  2937. yes:)
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2940. ac_tool_warned=yes ;;
  2941. esac
  2942. CC=$ac_ct_CC
  2943. fi
  2944. fi
  2945. fi
  2946. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2947. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2948. as_fn_error $? "no acceptable C compiler found in \$PATH
  2949. See \`config.log' for more details" "$LINENO" 5 ; }
  2950. # Provide some information about the compiler.
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2952. set X $ac_compile
  2953. ac_compiler=$2
  2954. for ac_option in --version -v -V -qversion; do
  2955. { { ac_try="$ac_compiler $ac_option >&5"
  2956. case "(($ac_try" in
  2957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2958. *) ac_try_echo=$ac_try;;
  2959. esac
  2960. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2961. $as_echo "$ac_try_echo"; } >&5
  2962. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2963. ac_status=$?
  2964. if test -s conftest.err; then
  2965. sed '10a\
  2966. ... rest of stderr output deleted ...
  2967. 10q' conftest.err >conftest.er1
  2968. cat conftest.er1 >&5
  2969. fi
  2970. rm -f conftest.er1 conftest.err
  2971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2972. test $ac_status = 0; }
  2973. done
  2974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2975. /* end confdefs.h. */
  2976. int
  2977. main ()
  2978. {
  2979. ;
  2980. return 0;
  2981. }
  2982. _ACEOF
  2983. ac_clean_files_save=$ac_clean_files
  2984. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2985. # Try to create an executable without -o first, disregard a.out.
  2986. # It will help us diagnose broken compilers, and finding out an intuition
  2987. # of exeext.
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2989. $as_echo_n "checking whether the C compiler works... " >&6; }
  2990. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2991. # The possible output files:
  2992. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2993. ac_rmfiles=
  2994. for ac_file in $ac_files
  2995. do
  2996. case $ac_file in
  2997. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2998. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2999. esac
  3000. done
  3001. rm -f $ac_rmfiles
  3002. if { { ac_try="$ac_link_default"
  3003. case "(($ac_try" in
  3004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3005. *) ac_try_echo=$ac_try;;
  3006. esac
  3007. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3008. $as_echo "$ac_try_echo"; } >&5
  3009. (eval "$ac_link_default") 2>&5
  3010. ac_status=$?
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3012. test $ac_status = 0; }; then :
  3013. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3014. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3015. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3016. # so that the user can short-circuit this test for compilers unknown to
  3017. # Autoconf.
  3018. for ac_file in $ac_files ''
  3019. do
  3020. test -f "$ac_file" || continue
  3021. case $ac_file in
  3022. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3023. ;;
  3024. [ab].out )
  3025. # We found the default executable, but exeext='' is most
  3026. # certainly right.
  3027. break;;
  3028. *.* )
  3029. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3030. then :; else
  3031. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3032. fi
  3033. # We set ac_cv_exeext here because the later test for it is not
  3034. # safe: cross compilers may not add the suffix if given an `-o'
  3035. # argument, so we may need to know it at that point already.
  3036. # Even if this section looks crufty: it has the advantage of
  3037. # actually working.
  3038. break;;
  3039. * )
  3040. break;;
  3041. esac
  3042. done
  3043. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3044. else
  3045. ac_file=''
  3046. fi
  3047. if test -z "$ac_file"; then :
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3049. $as_echo "no" >&6; }
  3050. $as_echo "$as_me: failed program was:" >&5
  3051. sed 's/^/| /' conftest.$ac_ext >&5
  3052. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3053. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3054. as_fn_error 77 "C compiler cannot create executables
  3055. See \`config.log' for more details" "$LINENO" 5 ; }
  3056. else
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3058. $as_echo "yes" >&6; }
  3059. fi
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3061. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3063. $as_echo "$ac_file" >&6; }
  3064. ac_exeext=$ac_cv_exeext
  3065. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3066. ac_clean_files=$ac_clean_files_save
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3068. $as_echo_n "checking for suffix of executables... " >&6; }
  3069. if { { ac_try="$ac_link"
  3070. case "(($ac_try" in
  3071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3072. *) ac_try_echo=$ac_try;;
  3073. esac
  3074. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3075. $as_echo "$ac_try_echo"; } >&5
  3076. (eval "$ac_link") 2>&5
  3077. ac_status=$?
  3078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3079. test $ac_status = 0; }; then :
  3080. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3081. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3082. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3083. # `rm'.
  3084. for ac_file in conftest.exe conftest conftest.*; do
  3085. test -f "$ac_file" || continue
  3086. case $ac_file in
  3087. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3088. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3089. break;;
  3090. * ) break;;
  3091. esac
  3092. done
  3093. else
  3094. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3096. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3097. See \`config.log' for more details" "$LINENO" 5 ; }
  3098. fi
  3099. rm -f conftest conftest$ac_cv_exeext
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3101. $as_echo "$ac_cv_exeext" >&6; }
  3102. rm -f conftest.$ac_ext
  3103. EXEEXT=$ac_cv_exeext
  3104. ac_exeext=$EXEEXT
  3105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3106. /* end confdefs.h. */
  3107. #include <stdio.h>
  3108. int
  3109. main ()
  3110. {
  3111. FILE *f = fopen ("conftest.out", "w");
  3112. return ferror (f) || fclose (f) != 0;
  3113. ;
  3114. return 0;
  3115. }
  3116. _ACEOF
  3117. ac_clean_files="$ac_clean_files conftest.out"
  3118. # Check that the compiler produces executables we can run. If not, either
  3119. # the compiler is broken, or we cross compile.
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3121. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3122. if test "$cross_compiling" != yes; then
  3123. { { ac_try="$ac_link"
  3124. case "(($ac_try" in
  3125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3126. *) ac_try_echo=$ac_try;;
  3127. esac
  3128. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3129. $as_echo "$ac_try_echo"; } >&5
  3130. (eval "$ac_link") 2>&5
  3131. ac_status=$?
  3132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3133. test $ac_status = 0; }
  3134. if { ac_try='./conftest$ac_cv_exeext'
  3135. { { case "(($ac_try" in
  3136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3137. *) ac_try_echo=$ac_try;;
  3138. esac
  3139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3140. $as_echo "$ac_try_echo"; } >&5
  3141. (eval "$ac_try") 2>&5
  3142. ac_status=$?
  3143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3144. test $ac_status = 0; }; }; then
  3145. cross_compiling=no
  3146. else
  3147. if test "$cross_compiling" = maybe; then
  3148. cross_compiling=yes
  3149. else
  3150. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3151. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3152. as_fn_error $? "cannot run C compiled programs.
  3153. If you meant to cross compile, use \`--host'.
  3154. See \`config.log' for more details" "$LINENO" 5 ; }
  3155. fi
  3156. fi
  3157. fi
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3159. $as_echo "$cross_compiling" >&6; }
  3160. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3161. ac_clean_files=$ac_clean_files_save
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3163. $as_echo_n "checking for suffix of object files... " >&6; }
  3164. if test "${ac_cv_objext+set}" = set; then :
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3168. /* end confdefs.h. */
  3169. int
  3170. main ()
  3171. {
  3172. ;
  3173. return 0;
  3174. }
  3175. _ACEOF
  3176. rm -f conftest.o conftest.obj
  3177. if { { ac_try="$ac_compile"
  3178. case "(($ac_try" in
  3179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3180. *) ac_try_echo=$ac_try;;
  3181. esac
  3182. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3183. $as_echo "$ac_try_echo"; } >&5
  3184. (eval "$ac_compile") 2>&5
  3185. ac_status=$?
  3186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3187. test $ac_status = 0; }; then :
  3188. for ac_file in conftest.o conftest.obj conftest.*; do
  3189. test -f "$ac_file" || continue;
  3190. case $ac_file in
  3191. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3192. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3193. break;;
  3194. esac
  3195. done
  3196. else
  3197. $as_echo "$as_me: failed program was:" >&5
  3198. sed 's/^/| /' conftest.$ac_ext >&5
  3199. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3201. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3202. See \`config.log' for more details" "$LINENO" 5 ; }
  3203. fi
  3204. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3205. fi
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3207. $as_echo "$ac_cv_objext" >&6; }
  3208. OBJEXT=$ac_cv_objext
  3209. ac_objext=$OBJEXT
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3211. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3212. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3213. $as_echo_n "(cached) " >&6
  3214. else
  3215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3216. /* end confdefs.h. */
  3217. int
  3218. main ()
  3219. {
  3220. #ifndef __GNUC__
  3221. choke me
  3222. #endif
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. if ac_fn_c_try_compile "$LINENO"; then :
  3228. ac_compiler_gnu=yes
  3229. else
  3230. ac_compiler_gnu=no
  3231. fi
  3232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3233. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3234. fi
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3236. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3237. if test $ac_compiler_gnu = yes; then
  3238. GCC=yes
  3239. else
  3240. GCC=
  3241. fi
  3242. ac_test_CFLAGS=${CFLAGS+set}
  3243. ac_save_CFLAGS=$CFLAGS
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3245. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3246. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3247. $as_echo_n "(cached) " >&6
  3248. else
  3249. ac_save_c_werror_flag=$ac_c_werror_flag
  3250. ac_c_werror_flag=yes
  3251. ac_cv_prog_cc_g=no
  3252. CFLAGS="-g"
  3253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3254. /* end confdefs.h. */
  3255. int
  3256. main ()
  3257. {
  3258. ;
  3259. return 0;
  3260. }
  3261. _ACEOF
  3262. if ac_fn_c_try_compile "$LINENO"; then :
  3263. ac_cv_prog_cc_g=yes
  3264. else
  3265. CFLAGS=""
  3266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3267. /* end confdefs.h. */
  3268. int
  3269. main ()
  3270. {
  3271. ;
  3272. return 0;
  3273. }
  3274. _ACEOF
  3275. if ac_fn_c_try_compile "$LINENO"; then :
  3276. else
  3277. ac_c_werror_flag=$ac_save_c_werror_flag
  3278. CFLAGS="-g"
  3279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3280. /* end confdefs.h. */
  3281. int
  3282. main ()
  3283. {
  3284. ;
  3285. return 0;
  3286. }
  3287. _ACEOF
  3288. if ac_fn_c_try_compile "$LINENO"; then :
  3289. ac_cv_prog_cc_g=yes
  3290. fi
  3291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3292. fi
  3293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3294. fi
  3295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3296. ac_c_werror_flag=$ac_save_c_werror_flag
  3297. fi
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3299. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3300. if test "$ac_test_CFLAGS" = set; then
  3301. CFLAGS=$ac_save_CFLAGS
  3302. elif test $ac_cv_prog_cc_g = yes; then
  3303. if test "$GCC" = yes; then
  3304. CFLAGS="-g -O2"
  3305. else
  3306. CFLAGS="-g"
  3307. fi
  3308. else
  3309. if test "$GCC" = yes; then
  3310. CFLAGS="-O2"
  3311. else
  3312. CFLAGS=
  3313. fi
  3314. fi
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3316. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3317. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3318. $as_echo_n "(cached) " >&6
  3319. else
  3320. ac_cv_prog_cc_c89=no
  3321. ac_save_CC=$CC
  3322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3323. /* end confdefs.h. */
  3324. #include <stdarg.h>
  3325. #include <stdio.h>
  3326. #include <sys/types.h>
  3327. #include <sys/stat.h>
  3328. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3329. struct buf { int x; };
  3330. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3331. static char *e (p, i)
  3332. char **p;
  3333. int i;
  3334. {
  3335. return p[i];
  3336. }
  3337. static char *f (char * (*g) (char **, int), char **p, ...)
  3338. {
  3339. char *s;
  3340. va_list v;
  3341. va_start (v,p);
  3342. s = g (p, va_arg (v,int));
  3343. va_end (v);
  3344. return s;
  3345. }
  3346. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3347. function prototypes and stuff, but not '\xHH' hex character constants.
  3348. These don't provoke an error unfortunately, instead are silently treated
  3349. as 'x'. The following induces an error, until -std is added to get
  3350. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3351. array size at least. It's necessary to write '\x00'==0 to get something
  3352. that's true only with -std. */
  3353. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3354. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3355. inside strings and character constants. */
  3356. #define FOO(x) 'x'
  3357. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3358. int test (int i, double x);
  3359. struct s1 {int (*f) (int a);};
  3360. struct s2 {int (*f) (double a);};
  3361. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3362. int argc;
  3363. char **argv;
  3364. int
  3365. main ()
  3366. {
  3367. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3368. ;
  3369. return 0;
  3370. }
  3371. _ACEOF
  3372. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3373. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3374. do
  3375. CC="$ac_save_CC $ac_arg"
  3376. if ac_fn_c_try_compile "$LINENO"; then :
  3377. ac_cv_prog_cc_c89=$ac_arg
  3378. fi
  3379. rm -f core conftest.err conftest.$ac_objext
  3380. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3381. done
  3382. rm -f conftest.$ac_ext
  3383. CC=$ac_save_CC
  3384. fi
  3385. # AC_CACHE_VAL
  3386. case "x$ac_cv_prog_cc_c89" in
  3387. x)
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3389. $as_echo "none needed" >&6; } ;;
  3390. xno)
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3392. $as_echo "unsupported" >&6; } ;;
  3393. *)
  3394. CC="$CC $ac_cv_prog_cc_c89"
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3396. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3397. esac
  3398. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3399. fi
  3400. ac_ext=c
  3401. ac_cpp='$CPP $CPPFLAGS'
  3402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3405. DEPDIR="${am__leading_dot}deps"
  3406. ac_config_commands="$ac_config_commands depfiles"
  3407. am_make=${MAKE-make}
  3408. cat > confinc << 'END'
  3409. am__doit:
  3410. @echo this is the am__doit target
  3411. .PHONY: am__doit
  3412. END
  3413. # If we don't find an include directive, just comment out the code.
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3415. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3416. am__include="#"
  3417. am__quote=
  3418. _am_result=none
  3419. # First try GNU make style include.
  3420. echo "include confinc" > confmf
  3421. # Ignore all kinds of additional output from `make'.
  3422. case `$am_make -s -f confmf 2> /dev/null` in #(
  3423. *the\ am__doit\ target*)
  3424. am__include=include
  3425. am__quote=
  3426. _am_result=GNU
  3427. ;;
  3428. esac
  3429. # Now try BSD make style include.
  3430. if test "$am__include" = "#"; then
  3431. echo '.include "confinc"' > confmf
  3432. case `$am_make -s -f confmf 2> /dev/null` in #(
  3433. *the\ am__doit\ target*)
  3434. am__include=.include
  3435. am__quote="\""
  3436. _am_result=BSD
  3437. ;;
  3438. esac
  3439. fi
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3441. $as_echo "$_am_result" >&6; }
  3442. rm -f confinc confmf
  3443. # Check whether --enable-dependency-tracking was given.
  3444. if test "${enable_dependency_tracking+set}" = set; then :
  3445. enableval=$enable_dependency_tracking;
  3446. fi
  3447. if test "x$enable_dependency_tracking" != xno; then
  3448. am_depcomp="$ac_aux_dir/depcomp"
  3449. AMDEPBACKSLASH='\'
  3450. fi
  3451. if test "x$enable_dependency_tracking" != xno; then
  3452. AMDEP_TRUE=
  3453. AMDEP_FALSE='#'
  3454. else
  3455. AMDEP_TRUE='#'
  3456. AMDEP_FALSE=
  3457. fi
  3458. depcc="$CC" am_compiler_list=
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3460. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3461. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3462. $as_echo_n "(cached) " >&6
  3463. else
  3464. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3465. # We make a subdir and do the tests there. Otherwise we can end up
  3466. # making bogus files that we don't know about and never remove. For
  3467. # instance it was reported that on HP-UX the gcc test will end up
  3468. # making a dummy file named `D' -- because `-MD' means `put the output
  3469. # in D'.
  3470. mkdir conftest.dir
  3471. # Copy depcomp to subdir because otherwise we won't find it if we're
  3472. # using a relative directory.
  3473. cp "$am_depcomp" conftest.dir
  3474. cd conftest.dir
  3475. # We will build objects and dependencies in a subdirectory because
  3476. # it helps to detect inapplicable dependency modes. For instance
  3477. # both Tru64's cc and ICC support -MD to output dependencies as a
  3478. # side effect of compilation, but ICC will put the dependencies in
  3479. # the current directory while Tru64 will put them in the object
  3480. # directory.
  3481. mkdir sub
  3482. am_cv_CC_dependencies_compiler_type=none
  3483. if test "$am_compiler_list" = ""; then
  3484. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3485. fi
  3486. am__universal=false
  3487. case " $depcc " in #(
  3488. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3489. esac
  3490. for depmode in $am_compiler_list; do
  3491. # Setup a source with many dependencies, because some compilers
  3492. # like to wrap large dependency lists on column 80 (with \), and
  3493. # we should not choose a depcomp mode which is confused by this.
  3494. #
  3495. # We need to recreate these files for each test, as the compiler may
  3496. # overwrite some of them when testing with obscure command lines.
  3497. # This happens at least with the AIX C compiler.
  3498. : > sub/conftest.c
  3499. for i in 1 2 3 4 5 6; do
  3500. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3501. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3502. # Solaris 8's {/usr,}/bin/sh.
  3503. touch sub/conftst$i.h
  3504. done
  3505. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3506. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3507. # mode. It turns out that the SunPro C++ compiler does not properly
  3508. # handle `-M -o', and we need to detect this. Also, some Intel
  3509. # versions had trouble with output in subdirs
  3510. am__obj=sub/conftest.${OBJEXT-o}
  3511. am__minus_obj="-o $am__obj"
  3512. case $depmode in
  3513. gcc)
  3514. # This depmode causes a compiler race in universal mode.
  3515. test "$am__universal" = false || continue
  3516. ;;
  3517. nosideeffect)
  3518. # after this tag, mechanisms are not by side-effect, so they'll
  3519. # only be used when explicitly requested
  3520. if test "x$enable_dependency_tracking" = xyes; then
  3521. continue
  3522. else
  3523. break
  3524. fi
  3525. ;;
  3526. msvisualcpp | msvcmsys)
  3527. # This compiler won't grok `-c -o', but also, the minuso test has
  3528. # not run yet. These depmodes are late enough in the game, and
  3529. # so weak that their functioning should not be impacted.
  3530. am__obj=conftest.${OBJEXT-o}
  3531. am__minus_obj=
  3532. ;;
  3533. none) break ;;
  3534. esac
  3535. if depmode=$depmode \
  3536. source=sub/conftest.c object=$am__obj \
  3537. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3538. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3539. >/dev/null 2>conftest.err &&
  3540. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3541. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3542. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3543. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3544. # icc doesn't choke on unknown options, it will just issue warnings
  3545. # or remarks (even with -Werror). So we grep stderr for any message
  3546. # that says an option was ignored or not supported.
  3547. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3548. # icc: Command line warning: ignoring option '-M'; no argument required
  3549. # The diagnosis changed in icc 8.0:
  3550. # icc: Command line remark: option '-MP' not supported
  3551. if (grep 'ignoring option' conftest.err ||
  3552. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3553. am_cv_CC_dependencies_compiler_type=$depmode
  3554. break
  3555. fi
  3556. fi
  3557. done
  3558. cd ..
  3559. rm -rf conftest.dir
  3560. else
  3561. am_cv_CC_dependencies_compiler_type=none
  3562. fi
  3563. fi
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3565. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3566. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3567. if
  3568. test "x$enable_dependency_tracking" != xno \
  3569. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3570. am__fastdepCC_TRUE=
  3571. am__fastdepCC_FALSE='#'
  3572. else
  3573. am__fastdepCC_TRUE='#'
  3574. am__fastdepCC_FALSE=
  3575. fi
  3576. case $ac_cv_prog_cc_stdc in #(
  3577. no) :
  3578. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3579. *) :
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3581. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3582. if test "${ac_cv_prog_cc_c99+set}" = set; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. ac_cv_prog_cc_c99=no
  3586. ac_save_CC=$CC
  3587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3588. /* end confdefs.h. */
  3589. #include <stdarg.h>
  3590. #include <stdbool.h>
  3591. #include <stdlib.h>
  3592. #include <wchar.h>
  3593. #include <stdio.h>
  3594. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3595. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3596. #define showlist(...) puts (#__VA_ARGS__)
  3597. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3598. static void
  3599. test_varargs_macros (void)
  3600. {
  3601. int x = 1234;
  3602. int y = 5678;
  3603. debug ("Flag");
  3604. debug ("X = %d\n", x);
  3605. showlist (The first, second, and third items.);
  3606. report (x>y, "x is %d but y is %d", x, y);
  3607. }
  3608. // Check long long types.
  3609. #define BIG64 18446744073709551615ull
  3610. #define BIG32 4294967295ul
  3611. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3612. #if !BIG_OK
  3613. your preprocessor is broken;
  3614. #endif
  3615. #if BIG_OK
  3616. #else
  3617. your preprocessor is broken;
  3618. #endif
  3619. static long long int bignum = -9223372036854775807LL;
  3620. static unsigned long long int ubignum = BIG64;
  3621. struct incomplete_array
  3622. {
  3623. int datasize;
  3624. double data[];
  3625. };
  3626. struct named_init {
  3627. int number;
  3628. const wchar_t *name;
  3629. double average;
  3630. };
  3631. typedef const char *ccp;
  3632. static inline int
  3633. test_restrict (ccp restrict text)
  3634. {
  3635. // See if C++-style comments work.
  3636. // Iterate through items via the restricted pointer.
  3637. // Also check for declarations in for loops.
  3638. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3639. continue;
  3640. return 0;
  3641. }
  3642. // Check varargs and va_copy.
  3643. static void
  3644. test_varargs (const char *format, ...)
  3645. {
  3646. va_list args;
  3647. va_start (args, format);
  3648. va_list args_copy;
  3649. va_copy (args_copy, args);
  3650. const char *str;
  3651. int number;
  3652. float fnumber;
  3653. while (*format)
  3654. {
  3655. switch (*format++)
  3656. {
  3657. case 's': // string
  3658. str = va_arg (args_copy, const char *);
  3659. break;
  3660. case 'd': // int
  3661. number = va_arg (args_copy, int);
  3662. break;
  3663. case 'f': // float
  3664. fnumber = va_arg (args_copy, double);
  3665. break;
  3666. default:
  3667. break;
  3668. }
  3669. }
  3670. va_end (args_copy);
  3671. va_end (args);
  3672. }
  3673. int
  3674. main ()
  3675. {
  3676. // Check bool.
  3677. _Bool success = false;
  3678. // Check restrict.
  3679. if (test_restrict ("String literal") == 0)
  3680. success = true;
  3681. char *restrict newvar = "Another string";
  3682. // Check varargs.
  3683. test_varargs ("s, d' f .", "string", 65, 34.234);
  3684. test_varargs_macros ();
  3685. // Check flexible array members.
  3686. struct incomplete_array *ia =
  3687. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3688. ia->datasize = 10;
  3689. for (int i = 0; i < ia->datasize; ++i)
  3690. ia->data[i] = i * 1.234;
  3691. // Check named initializers.
  3692. struct named_init ni = {
  3693. .number = 34,
  3694. .name = L"Test wide string",
  3695. .average = 543.34343,
  3696. };
  3697. ni.number = 58;
  3698. int dynamic_array[ni.number];
  3699. dynamic_array[ni.number - 1] = 543;
  3700. // work around unused variable warnings
  3701. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3702. || dynamic_array[ni.number - 1] != 543);
  3703. ;
  3704. return 0;
  3705. }
  3706. _ACEOF
  3707. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  3708. do
  3709. CC="$ac_save_CC $ac_arg"
  3710. if ac_fn_c_try_compile "$LINENO"; then :
  3711. ac_cv_prog_cc_c99=$ac_arg
  3712. fi
  3713. rm -f core conftest.err conftest.$ac_objext
  3714. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3715. done
  3716. rm -f conftest.$ac_ext
  3717. CC=$ac_save_CC
  3718. fi
  3719. # AC_CACHE_VAL
  3720. case "x$ac_cv_prog_cc_c99" in
  3721. x)
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3723. $as_echo "none needed" >&6; } ;;
  3724. xno)
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3726. $as_echo "unsupported" >&6; } ;;
  3727. *)
  3728. CC="$CC $ac_cv_prog_cc_c99"
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3730. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3731. esac
  3732. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3733. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3734. else
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3736. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3737. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3738. $as_echo_n "(cached) " >&6
  3739. else
  3740. ac_cv_prog_cc_c89=no
  3741. ac_save_CC=$CC
  3742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3743. /* end confdefs.h. */
  3744. #include <stdarg.h>
  3745. #include <stdio.h>
  3746. #include <sys/types.h>
  3747. #include <sys/stat.h>
  3748. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3749. struct buf { int x; };
  3750. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3751. static char *e (p, i)
  3752. char **p;
  3753. int i;
  3754. {
  3755. return p[i];
  3756. }
  3757. static char *f (char * (*g) (char **, int), char **p, ...)
  3758. {
  3759. char *s;
  3760. va_list v;
  3761. va_start (v,p);
  3762. s = g (p, va_arg (v,int));
  3763. va_end (v);
  3764. return s;
  3765. }
  3766. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3767. function prototypes and stuff, but not '\xHH' hex character constants.
  3768. These don't provoke an error unfortunately, instead are silently treated
  3769. as 'x'. The following induces an error, until -std is added to get
  3770. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3771. array size at least. It's necessary to write '\x00'==0 to get something
  3772. that's true only with -std. */
  3773. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3774. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3775. inside strings and character constants. */
  3776. #define FOO(x) 'x'
  3777. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3778. int test (int i, double x);
  3779. struct s1 {int (*f) (int a);};
  3780. struct s2 {int (*f) (double a);};
  3781. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3782. int argc;
  3783. char **argv;
  3784. int
  3785. main ()
  3786. {
  3787. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3788. ;
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3793. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3794. do
  3795. CC="$ac_save_CC $ac_arg"
  3796. if ac_fn_c_try_compile "$LINENO"; then :
  3797. ac_cv_prog_cc_c89=$ac_arg
  3798. fi
  3799. rm -f core conftest.err conftest.$ac_objext
  3800. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3801. done
  3802. rm -f conftest.$ac_ext
  3803. CC=$ac_save_CC
  3804. fi
  3805. # AC_CACHE_VAL
  3806. case "x$ac_cv_prog_cc_c89" in
  3807. x)
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3809. $as_echo "none needed" >&6; } ;;
  3810. xno)
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3812. $as_echo "unsupported" >&6; } ;;
  3813. *)
  3814. CC="$CC $ac_cv_prog_cc_c89"
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3816. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3817. esac
  3818. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3819. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3820. else
  3821. ac_cv_prog_cc_stdc=no
  3822. fi
  3823. fi
  3824. ;;
  3825. esac
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  3827. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  3828. if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  3829. $as_echo_n "(cached) " >&6
  3830. fi
  3831. case $ac_cv_prog_cc_stdc in #(
  3832. no) :
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3834. $as_echo "unsupported" >&6; } ;; #(
  3835. '') :
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3837. $as_echo "none needed" >&6; } ;; #(
  3838. *) :
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  3840. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  3841. esac
  3842. # -- Helper programs --
  3843. for ac_prog in gawk mawk nawk awk
  3844. do
  3845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3846. set dummy $ac_prog; ac_word=$2
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3848. $as_echo_n "checking for $ac_word... " >&6; }
  3849. if test "${ac_cv_prog_AWK+set}" = set; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. if test -n "$AWK"; then
  3853. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3854. else
  3855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3856. for as_dir in $PATH
  3857. do
  3858. IFS=$as_save_IFS
  3859. test -z "$as_dir" && as_dir=.
  3860. for ac_exec_ext in '' $ac_executable_extensions; do
  3861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3862. ac_cv_prog_AWK="$ac_prog"
  3863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3864. break 2
  3865. fi
  3866. done
  3867. done
  3868. IFS=$as_save_IFS
  3869. fi
  3870. fi
  3871. AWK=$ac_cv_prog_AWK
  3872. if test -n "$AWK"; then
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3874. $as_echo "$AWK" >&6; }
  3875. else
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3877. $as_echo "no" >&6; }
  3878. fi
  3879. test -n "$AWK" && break
  3880. done
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3882. $as_echo_n "checking whether ln -s works... " >&6; }
  3883. LN_S=$as_ln_s
  3884. if test "$LN_S" = "ln -s"; then
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3886. $as_echo "yes" >&6; }
  3887. else
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3889. $as_echo "no, using $LN_S" >&6; }
  3890. fi
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3892. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3893. set x ${MAKE-make}
  3894. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3895. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. cat >conftest.make <<\_ACEOF
  3899. SHELL = /bin/sh
  3900. all:
  3901. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3902. _ACEOF
  3903. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3904. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3905. *@@@%%%=?*=@@@%%%*)
  3906. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3907. *)
  3908. eval ac_cv_prog_make_${ac_make}_set=no;;
  3909. esac
  3910. rm -f conftest.make
  3911. fi
  3912. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3914. $as_echo "yes" >&6; }
  3915. SET_MAKE=
  3916. else
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3918. $as_echo "no" >&6; }
  3919. SET_MAKE="MAKE=${MAKE-make}"
  3920. fi
  3921. if test -n "$ac_tool_prefix"; then
  3922. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3923. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3925. $as_echo_n "checking for $ac_word... " >&6; }
  3926. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  3927. $as_echo_n "(cached) " >&6
  3928. else
  3929. if test -n "$RANLIB"; then
  3930. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3931. else
  3932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3933. for as_dir in $PATH
  3934. do
  3935. IFS=$as_save_IFS
  3936. test -z "$as_dir" && as_dir=.
  3937. for ac_exec_ext in '' $ac_executable_extensions; do
  3938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3939. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3941. break 2
  3942. fi
  3943. done
  3944. done
  3945. IFS=$as_save_IFS
  3946. fi
  3947. fi
  3948. RANLIB=$ac_cv_prog_RANLIB
  3949. if test -n "$RANLIB"; then
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3951. $as_echo "$RANLIB" >&6; }
  3952. else
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3954. $as_echo "no" >&6; }
  3955. fi
  3956. fi
  3957. if test -z "$ac_cv_prog_RANLIB"; then
  3958. ac_ct_RANLIB=$RANLIB
  3959. # Extract the first word of "ranlib", so it can be a program name with args.
  3960. set dummy ranlib; ac_word=$2
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3962. $as_echo_n "checking for $ac_word... " >&6; }
  3963. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  3964. $as_echo_n "(cached) " >&6
  3965. else
  3966. if test -n "$ac_ct_RANLIB"; then
  3967. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3968. else
  3969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3970. for as_dir in $PATH
  3971. do
  3972. IFS=$as_save_IFS
  3973. test -z "$as_dir" && as_dir=.
  3974. for ac_exec_ext in '' $ac_executable_extensions; do
  3975. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3976. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3978. break 2
  3979. fi
  3980. done
  3981. done
  3982. IFS=$as_save_IFS
  3983. fi
  3984. fi
  3985. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3986. if test -n "$ac_ct_RANLIB"; then
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3988. $as_echo "$ac_ct_RANLIB" >&6; }
  3989. else
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3991. $as_echo "no" >&6; }
  3992. fi
  3993. if test "x$ac_ct_RANLIB" = x; then
  3994. RANLIB=":"
  3995. else
  3996. case $cross_compiling:$ac_tool_warned in
  3997. yes:)
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4000. ac_tool_warned=yes ;;
  4001. esac
  4002. RANLIB=$ac_ct_RANLIB
  4003. fi
  4004. else
  4005. RANLIB="$ac_cv_prog_RANLIB"
  4006. fi
  4007. # -- Compiler Features --
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4009. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4010. if test "${ac_cv_c_const+set}" = set; then :
  4011. $as_echo_n "(cached) " >&6
  4012. else
  4013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4014. /* end confdefs.h. */
  4015. int
  4016. main ()
  4017. {
  4018. /* FIXME: Include the comments suggested by Paul. */
  4019. #ifndef __cplusplus
  4020. /* Ultrix mips cc rejects this. */
  4021. typedef int charset[2];
  4022. const charset cs;
  4023. /* SunOS 4.1.1 cc rejects this. */
  4024. char const *const *pcpcc;
  4025. char **ppc;
  4026. /* NEC SVR4.0.2 mips cc rejects this. */
  4027. struct point {int x, y;};
  4028. static struct point const zero = {0,0};
  4029. /* AIX XL C 1.02.0.0 rejects this.
  4030. It does not let you subtract one const X* pointer from another in
  4031. an arm of an if-expression whose if-part is not a constant
  4032. expression */
  4033. const char *g = "string";
  4034. pcpcc = &g + (g ? g-g : 0);
  4035. /* HPUX 7.0 cc rejects these. */
  4036. ++pcpcc;
  4037. ppc = (char**) pcpcc;
  4038. pcpcc = (char const *const *) ppc;
  4039. { /* SCO 3.2v4 cc rejects this. */
  4040. char *t;
  4041. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4042. *t++ = 0;
  4043. if (s) return 0;
  4044. }
  4045. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4046. int x[] = {25, 17};
  4047. const int *foo = &x[0];
  4048. ++foo;
  4049. }
  4050. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4051. typedef const int *iptr;
  4052. iptr p = 0;
  4053. ++p;
  4054. }
  4055. { /* AIX XL C 1.02.0.0 rejects this saying
  4056. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4057. struct s { int j; const int *ap[3]; };
  4058. struct s *b; b->j = 5;
  4059. }
  4060. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4061. const int foo = 10;
  4062. if (!foo) return 0;
  4063. }
  4064. return !cs[0] && !zero.x;
  4065. #endif
  4066. ;
  4067. return 0;
  4068. }
  4069. _ACEOF
  4070. if ac_fn_c_try_compile "$LINENO"; then :
  4071. ac_cv_c_const=yes
  4072. else
  4073. ac_cv_c_const=no
  4074. fi
  4075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4076. fi
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4078. $as_echo "$ac_cv_c_const" >&6; }
  4079. if test $ac_cv_c_const = no; then
  4080. $as_echo "#define const /**/" >>confdefs.h
  4081. fi
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4083. $as_echo_n "checking for inline... " >&6; }
  4084. if test "${ac_cv_c_inline+set}" = set; then :
  4085. $as_echo_n "(cached) " >&6
  4086. else
  4087. ac_cv_c_inline=no
  4088. for ac_kw in inline __inline__ __inline; do
  4089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4090. /* end confdefs.h. */
  4091. #ifndef __cplusplus
  4092. typedef int foo_t;
  4093. static $ac_kw foo_t static_foo () {return 0; }
  4094. $ac_kw foo_t foo () {return 0; }
  4095. #endif
  4096. _ACEOF
  4097. if ac_fn_c_try_compile "$LINENO"; then :
  4098. ac_cv_c_inline=$ac_kw
  4099. fi
  4100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4101. test "$ac_cv_c_inline" != no && break
  4102. done
  4103. fi
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4105. $as_echo "$ac_cv_c_inline" >&6; }
  4106. case $ac_cv_c_inline in
  4107. inline | yes) ;;
  4108. *)
  4109. case $ac_cv_c_inline in
  4110. no) ac_val=;;
  4111. *) ac_val=$ac_cv_c_inline;;
  4112. esac
  4113. cat >>confdefs.h <<_ACEOF
  4114. #ifndef __cplusplus
  4115. #define inline $ac_val
  4116. #endif
  4117. _ACEOF
  4118. ;;
  4119. esac
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  4121. $as_echo_n "checking for function prototypes... " >&6; }
  4122. if test "$ac_cv_prog_cc_c89" != no; then
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4124. $as_echo "yes" >&6; }
  4125. $as_echo "#define PROTOTYPES 1" >>confdefs.h
  4126. $as_echo "#define __PROTOTYPES 1" >>confdefs.h
  4127. else
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4129. $as_echo "no" >&6; }
  4130. fi
  4131. ac_ext=c
  4132. ac_cpp='$CPP $CPPFLAGS'
  4133. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4134. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4135. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4137. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4138. # On Suns, sometimes $CPP names a directory.
  4139. if test -n "$CPP" && test -d "$CPP"; then
  4140. CPP=
  4141. fi
  4142. if test -z "$CPP"; then
  4143. if test "${ac_cv_prog_CPP+set}" = set; then :
  4144. $as_echo_n "(cached) " >&6
  4145. else
  4146. # Double quotes because CPP needs to be expanded
  4147. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4148. do
  4149. ac_preproc_ok=false
  4150. for ac_c_preproc_warn_flag in '' yes
  4151. do
  4152. # Use a header file that comes with gcc, so configuring glibc
  4153. # with a fresh cross-compiler works.
  4154. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4155. # <limits.h> exists even on freestanding compilers.
  4156. # On the NeXT, cc -E runs the code through the compiler's parser,
  4157. # not just through cpp. "Syntax error" is here to catch this case.
  4158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4159. /* end confdefs.h. */
  4160. #ifdef __STDC__
  4161. # include <limits.h>
  4162. #else
  4163. # include <assert.h>
  4164. #endif
  4165. Syntax error
  4166. _ACEOF
  4167. if ac_fn_c_try_cpp "$LINENO"; then :
  4168. else
  4169. # Broken: fails on valid input.
  4170. continue
  4171. fi
  4172. rm -f conftest.err conftest.i conftest.$ac_ext
  4173. # OK, works on sane cases. Now check whether nonexistent headers
  4174. # can be detected and how.
  4175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4176. /* end confdefs.h. */
  4177. #include <ac_nonexistent.h>
  4178. _ACEOF
  4179. if ac_fn_c_try_cpp "$LINENO"; then :
  4180. # Broken: success on invalid input.
  4181. continue
  4182. else
  4183. # Passes both tests.
  4184. ac_preproc_ok=:
  4185. break
  4186. fi
  4187. rm -f conftest.err conftest.i conftest.$ac_ext
  4188. done
  4189. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4190. rm -f conftest.i conftest.err conftest.$ac_ext
  4191. if $ac_preproc_ok; then :
  4192. break
  4193. fi
  4194. done
  4195. ac_cv_prog_CPP=$CPP
  4196. fi
  4197. CPP=$ac_cv_prog_CPP
  4198. else
  4199. ac_cv_prog_CPP=$CPP
  4200. fi
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4202. $as_echo "$CPP" >&6; }
  4203. ac_preproc_ok=false
  4204. for ac_c_preproc_warn_flag in '' yes
  4205. do
  4206. # Use a header file that comes with gcc, so configuring glibc
  4207. # with a fresh cross-compiler works.
  4208. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4209. # <limits.h> exists even on freestanding compilers.
  4210. # On the NeXT, cc -E runs the code through the compiler's parser,
  4211. # not just through cpp. "Syntax error" is here to catch this case.
  4212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4213. /* end confdefs.h. */
  4214. #ifdef __STDC__
  4215. # include <limits.h>
  4216. #else
  4217. # include <assert.h>
  4218. #endif
  4219. Syntax error
  4220. _ACEOF
  4221. if ac_fn_c_try_cpp "$LINENO"; then :
  4222. else
  4223. # Broken: fails on valid input.
  4224. continue
  4225. fi
  4226. rm -f conftest.err conftest.i conftest.$ac_ext
  4227. # OK, works on sane cases. Now check whether nonexistent headers
  4228. # can be detected and how.
  4229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4230. /* end confdefs.h. */
  4231. #include <ac_nonexistent.h>
  4232. _ACEOF
  4233. if ac_fn_c_try_cpp "$LINENO"; then :
  4234. # Broken: success on invalid input.
  4235. continue
  4236. else
  4237. # Passes both tests.
  4238. ac_preproc_ok=:
  4239. break
  4240. fi
  4241. rm -f conftest.err conftest.i conftest.$ac_ext
  4242. done
  4243. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4244. rm -f conftest.i conftest.err conftest.$ac_ext
  4245. if $ac_preproc_ok; then :
  4246. else
  4247. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4248. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4249. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4250. See \`config.log' for more details" "$LINENO" 5 ; }
  4251. fi
  4252. ac_ext=c
  4253. ac_cpp='$CPP $CPPFLAGS'
  4254. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4255. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4256. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4258. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4259. if test "${ac_cv_path_GREP+set}" = set; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. if test -z "$GREP"; then
  4263. ac_path_GREP_found=false
  4264. # Loop through the user's path and test for each of PROGNAME-LIST
  4265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4266. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4267. do
  4268. IFS=$as_save_IFS
  4269. test -z "$as_dir" && as_dir=.
  4270. for ac_prog in grep ggrep; do
  4271. for ac_exec_ext in '' $ac_executable_extensions; do
  4272. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4273. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4274. # Check for GNU ac_path_GREP and select it if it is found.
  4275. # Check for GNU $ac_path_GREP
  4276. case `"$ac_path_GREP" --version 2>&1` in
  4277. *GNU*)
  4278. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4279. *)
  4280. ac_count=0
  4281. $as_echo_n 0123456789 >"conftest.in"
  4282. while :
  4283. do
  4284. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4285. mv "conftest.tmp" "conftest.in"
  4286. cp "conftest.in" "conftest.nl"
  4287. $as_echo 'GREP' >> "conftest.nl"
  4288. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4289. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4290. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4291. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4292. # Best one so far, save it but keep looking for a better one
  4293. ac_cv_path_GREP="$ac_path_GREP"
  4294. ac_path_GREP_max=$ac_count
  4295. fi
  4296. # 10*(2^10) chars as input seems more than enough
  4297. test $ac_count -gt 10 && break
  4298. done
  4299. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4300. esac
  4301. $ac_path_GREP_found && break 3
  4302. done
  4303. done
  4304. done
  4305. IFS=$as_save_IFS
  4306. if test -z "$ac_cv_path_GREP"; then
  4307. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4308. fi
  4309. else
  4310. ac_cv_path_GREP=$GREP
  4311. fi
  4312. fi
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4314. $as_echo "$ac_cv_path_GREP" >&6; }
  4315. GREP="$ac_cv_path_GREP"
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4317. $as_echo_n "checking for egrep... " >&6; }
  4318. if test "${ac_cv_path_EGREP+set}" = set; then :
  4319. $as_echo_n "(cached) " >&6
  4320. else
  4321. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4322. then ac_cv_path_EGREP="$GREP -E"
  4323. else
  4324. if test -z "$EGREP"; then
  4325. ac_path_EGREP_found=false
  4326. # Loop through the user's path and test for each of PROGNAME-LIST
  4327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4329. do
  4330. IFS=$as_save_IFS
  4331. test -z "$as_dir" && as_dir=.
  4332. for ac_prog in egrep; do
  4333. for ac_exec_ext in '' $ac_executable_extensions; do
  4334. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4335. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4336. # Check for GNU ac_path_EGREP and select it if it is found.
  4337. # Check for GNU $ac_path_EGREP
  4338. case `"$ac_path_EGREP" --version 2>&1` in
  4339. *GNU*)
  4340. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4341. *)
  4342. ac_count=0
  4343. $as_echo_n 0123456789 >"conftest.in"
  4344. while :
  4345. do
  4346. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4347. mv "conftest.tmp" "conftest.in"
  4348. cp "conftest.in" "conftest.nl"
  4349. $as_echo 'EGREP' >> "conftest.nl"
  4350. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4351. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4352. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4353. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4354. # Best one so far, save it but keep looking for a better one
  4355. ac_cv_path_EGREP="$ac_path_EGREP"
  4356. ac_path_EGREP_max=$ac_count
  4357. fi
  4358. # 10*(2^10) chars as input seems more than enough
  4359. test $ac_count -gt 10 && break
  4360. done
  4361. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4362. esac
  4363. $ac_path_EGREP_found && break 3
  4364. done
  4365. done
  4366. done
  4367. IFS=$as_save_IFS
  4368. if test -z "$ac_cv_path_EGREP"; then
  4369. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4370. fi
  4371. else
  4372. ac_cv_path_EGREP=$EGREP
  4373. fi
  4374. fi
  4375. fi
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4377. $as_echo "$ac_cv_path_EGREP" >&6; }
  4378. EGREP="$ac_cv_path_EGREP"
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4380. $as_echo_n "checking for ANSI C header files... " >&6; }
  4381. if test "${ac_cv_header_stdc+set}" = set; then :
  4382. $as_echo_n "(cached) " >&6
  4383. else
  4384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4385. /* end confdefs.h. */
  4386. #include <stdlib.h>
  4387. #include <stdarg.h>
  4388. #include <string.h>
  4389. #include <float.h>
  4390. int
  4391. main ()
  4392. {
  4393. ;
  4394. return 0;
  4395. }
  4396. _ACEOF
  4397. if ac_fn_c_try_compile "$LINENO"; then :
  4398. ac_cv_header_stdc=yes
  4399. else
  4400. ac_cv_header_stdc=no
  4401. fi
  4402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4403. if test $ac_cv_header_stdc = yes; then
  4404. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4406. /* end confdefs.h. */
  4407. #include <string.h>
  4408. _ACEOF
  4409. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4410. $EGREP "memchr" >/dev/null 2>&1; then :
  4411. else
  4412. ac_cv_header_stdc=no
  4413. fi
  4414. rm -f conftest*
  4415. fi
  4416. if test $ac_cv_header_stdc = yes; then
  4417. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4419. /* end confdefs.h. */
  4420. #include <stdlib.h>
  4421. _ACEOF
  4422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4423. $EGREP "free" >/dev/null 2>&1; then :
  4424. else
  4425. ac_cv_header_stdc=no
  4426. fi
  4427. rm -f conftest*
  4428. fi
  4429. if test $ac_cv_header_stdc = yes; then
  4430. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4431. if test "$cross_compiling" = yes; then :
  4432. :
  4433. else
  4434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4435. /* end confdefs.h. */
  4436. #include <ctype.h>
  4437. #include <stdlib.h>
  4438. #if ((' ' & 0x0FF) == 0x020)
  4439. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4440. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4441. #else
  4442. # define ISLOWER(c) \
  4443. (('a' <= (c) && (c) <= 'i') \
  4444. || ('j' <= (c) && (c) <= 'r') \
  4445. || ('s' <= (c) && (c) <= 'z'))
  4446. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4447. #endif
  4448. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4449. int
  4450. main ()
  4451. {
  4452. int i;
  4453. for (i = 0; i < 256; i++)
  4454. if (XOR (islower (i), ISLOWER (i))
  4455. || toupper (i) != TOUPPER (i))
  4456. return 2;
  4457. return 0;
  4458. }
  4459. _ACEOF
  4460. if ac_fn_c_try_run "$LINENO"; then :
  4461. else
  4462. ac_cv_header_stdc=no
  4463. fi
  4464. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4465. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4466. fi
  4467. fi
  4468. fi
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4470. $as_echo "$ac_cv_header_stdc" >&6; }
  4471. if test $ac_cv_header_stdc = yes; then
  4472. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4473. fi
  4474. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4475. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4476. inttypes.h stdint.h unistd.h
  4477. do :
  4478. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4479. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4480. "
  4481. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4482. cat >>confdefs.h <<_ACEOF
  4483. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4484. _ACEOF
  4485. fi
  4486. done
  4487. if test "$ac_cv_prog_cc_stdc" != no; then
  4488. U= ANSI2KNR=
  4489. else
  4490. U=_ ANSI2KNR=./ansi2knr
  4491. fi
  4492. # Ensure some checks needed by ansi2knr itself.
  4493. for ac_header in string.h
  4494. do :
  4495. ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  4496. if test "x$ac_cv_header_string_h" = x""yes; then :
  4497. cat >>confdefs.h <<_ACEOF
  4498. #define HAVE_STRING_H 1
  4499. _ACEOF
  4500. fi
  4501. done
  4502. # -- Hard coded system and compiler dependencies/features/options ... --
  4503. if test "$GCC" = "yes"; then
  4504. # We are using the GNU C compiler. Good!
  4505. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  4506. ssp_cc=yes
  4507. # we use -fstack-protector-all for the test to enfoce the use of the guard variable
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
  4509. $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
  4510. ssp_old_cflags="$CFLAGS"
  4511. CFLAGS="$CFLAGS -fstack-protector-all"
  4512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4513. /* end confdefs.h. */
  4514. int
  4515. main ()
  4516. {
  4517. ;
  4518. return 0;
  4519. }
  4520. _ACEOF
  4521. if ac_fn_c_try_link "$LINENO"; then :
  4522. else
  4523. ssp_cc=no
  4524. fi
  4525. rm -f core conftest.err conftest.$ac_objext \
  4526. conftest$ac_exeext conftest.$ac_ext
  4527. echo $ssp_cc
  4528. CFLAGS="$ssp_old_cflags"
  4529. if test "X$ssp_cc" = "Xyes"; then
  4530. CFLAGS="$CFLAGS -fstack-protector"
  4531. $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
  4532. fi
  4533. fi
  4534. case "$host_os" in
  4535. hpux*)
  4536. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  4537. # (tested with HP/UX 11.11)
  4538. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  4539. ;;
  4540. esac
  4541. # Add additional CFLAGS, eventually specified on the command line:
  4542. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  4543. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
  4544. # -- Headers --
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4546. $as_echo_n "checking for ANSI C header files... " >&6; }
  4547. if test "${ac_cv_header_stdc+set}" = set; then :
  4548. $as_echo_n "(cached) " >&6
  4549. else
  4550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4551. /* end confdefs.h. */
  4552. #include <stdlib.h>
  4553. #include <stdarg.h>
  4554. #include <string.h>
  4555. #include <float.h>
  4556. int
  4557. main ()
  4558. {
  4559. ;
  4560. return 0;
  4561. }
  4562. _ACEOF
  4563. if ac_fn_c_try_compile "$LINENO"; then :
  4564. ac_cv_header_stdc=yes
  4565. else
  4566. ac_cv_header_stdc=no
  4567. fi
  4568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4569. if test $ac_cv_header_stdc = yes; then
  4570. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4572. /* end confdefs.h. */
  4573. #include <string.h>
  4574. _ACEOF
  4575. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4576. $EGREP "memchr" >/dev/null 2>&1; then :
  4577. else
  4578. ac_cv_header_stdc=no
  4579. fi
  4580. rm -f conftest*
  4581. fi
  4582. if test $ac_cv_header_stdc = yes; then
  4583. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4585. /* end confdefs.h. */
  4586. #include <stdlib.h>
  4587. _ACEOF
  4588. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4589. $EGREP "free" >/dev/null 2>&1; then :
  4590. else
  4591. ac_cv_header_stdc=no
  4592. fi
  4593. rm -f conftest*
  4594. fi
  4595. if test $ac_cv_header_stdc = yes; then
  4596. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4597. if test "$cross_compiling" = yes; then :
  4598. :
  4599. else
  4600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4601. /* end confdefs.h. */
  4602. #include <ctype.h>
  4603. #include <stdlib.h>
  4604. #if ((' ' & 0x0FF) == 0x020)
  4605. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4606. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4607. #else
  4608. # define ISLOWER(c) \
  4609. (('a' <= (c) && (c) <= 'i') \
  4610. || ('j' <= (c) && (c) <= 'r') \
  4611. || ('s' <= (c) && (c) <= 'z'))
  4612. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4613. #endif
  4614. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4615. int
  4616. main ()
  4617. {
  4618. int i;
  4619. for (i = 0; i < 256; i++)
  4620. if (XOR (islower (i), ISLOWER (i))
  4621. || toupper (i) != TOUPPER (i))
  4622. return 2;
  4623. return 0;
  4624. }
  4625. _ACEOF
  4626. if ac_fn_c_try_run "$LINENO"; then :
  4627. else
  4628. ac_cv_header_stdc=no
  4629. fi
  4630. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4631. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4632. fi
  4633. fi
  4634. fi
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4636. $as_echo "$ac_cv_header_stdc" >&6; }
  4637. if test $ac_cv_header_stdc = yes; then
  4638. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4639. fi
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4641. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4642. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  4643. $as_echo_n "(cached) " >&6
  4644. else
  4645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4646. /* end confdefs.h. */
  4647. #include <sys/types.h>
  4648. #include <sys/wait.h>
  4649. #ifndef WEXITSTATUS
  4650. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4651. #endif
  4652. #ifndef WIFEXITED
  4653. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4654. #endif
  4655. int
  4656. main ()
  4657. {
  4658. int s;
  4659. wait (&s);
  4660. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4661. ;
  4662. return 0;
  4663. }
  4664. _ACEOF
  4665. if ac_fn_c_try_compile "$LINENO"; then :
  4666. ac_cv_header_sys_wait_h=yes
  4667. else
  4668. ac_cv_header_sys_wait_h=no
  4669. fi
  4670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4671. fi
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4673. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4674. if test $ac_cv_header_sys_wait_h = yes; then
  4675. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4676. fi
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4678. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4679. if test "${ac_cv_header_time+set}" = set; then :
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4683. /* end confdefs.h. */
  4684. #include <sys/types.h>
  4685. #include <sys/time.h>
  4686. #include <time.h>
  4687. int
  4688. main ()
  4689. {
  4690. if ((struct tm *) 0)
  4691. return 0;
  4692. ;
  4693. return 0;
  4694. }
  4695. _ACEOF
  4696. if ac_fn_c_try_compile "$LINENO"; then :
  4697. ac_cv_header_time=yes
  4698. else
  4699. ac_cv_header_time=no
  4700. fi
  4701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4702. fi
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4704. $as_echo "$ac_cv_header_time" >&6; }
  4705. if test $ac_cv_header_time = yes; then
  4706. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4707. fi
  4708. # Required header files
  4709. for ac_header in \
  4710. fcntl.h netdb.h netinet/in.h stdlib.h string.h \
  4711. strings.h sys/socket.h sys/time.h unistd.h \
  4712. do :
  4713. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4714. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4715. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4716. cat >>confdefs.h <<_ACEOF
  4717. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4718. _ACEOF
  4719. else
  4720. as_fn_error $? "required C header missing!" "$LINENO" 5
  4721. fi
  4722. done
  4723. # Optional header files
  4724. for ac_header in $ac_header_list
  4725. do :
  4726. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4727. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4728. "
  4729. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4730. cat >>confdefs.h <<_ACEOF
  4731. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4732. _ACEOF
  4733. fi
  4734. done
  4735. # -- Datatypes --
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t exists" >&5
  4737. $as_echo_n "checking whether socklen_t exists... " >&6; }
  4738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4739. /* end confdefs.h. */
  4740. #include <sys/types.h>
  4741. #include <sys/socket.h>
  4742. int
  4743. main ()
  4744. {
  4745. socklen_t a, b;
  4746. a = 2; b = 4; a += b;
  4747. ;
  4748. return 0;
  4749. }
  4750. _ACEOF
  4751. if ac_fn_c_try_compile "$LINENO"; then :
  4752. $as_echo "#define HAVE_socklen_t 1" >>confdefs.h
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4754. $as_echo "yes" >&6; }
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4757. $as_echo "no" >&6; }
  4758. fi
  4759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4760. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4761. if test "x$ac_cv_type_pid_t" = x""yes; then :
  4762. else
  4763. cat >>confdefs.h <<_ACEOF
  4764. #define pid_t int
  4765. _ACEOF
  4766. fi
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  4768. $as_echo_n "checking return type of signal handlers... " >&6; }
  4769. if test "${ac_cv_type_signal+set}" = set; then :
  4770. $as_echo_n "(cached) " >&6
  4771. else
  4772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4773. /* end confdefs.h. */
  4774. #include <sys/types.h>
  4775. #include <signal.h>
  4776. int
  4777. main ()
  4778. {
  4779. return *(signal (0, 0)) (0) == 1;
  4780. ;
  4781. return 0;
  4782. }
  4783. _ACEOF
  4784. if ac_fn_c_try_compile "$LINENO"; then :
  4785. ac_cv_type_signal=int
  4786. else
  4787. ac_cv_type_signal=void
  4788. fi
  4789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4790. fi
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  4792. $as_echo "$ac_cv_type_signal" >&6; }
  4793. cat >>confdefs.h <<_ACEOF
  4794. #define RETSIGTYPE $ac_cv_type_signal
  4795. _ACEOF
  4796. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4797. if test "x$ac_cv_type_size_t" = x""yes; then :
  4798. else
  4799. cat >>confdefs.h <<_ACEOF
  4800. #define size_t unsigned int
  4801. _ACEOF
  4802. fi
  4803. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  4804. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  4805. else
  4806. cat >>confdefs.h <<_ACEOF
  4807. #define ssize_t int
  4808. _ACEOF
  4809. fi
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  4811. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  4812. if test "${ac_cv_type_uid_t+set}" = set; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4816. /* end confdefs.h. */
  4817. #include <sys/types.h>
  4818. _ACEOF
  4819. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4820. $EGREP "uid_t" >/dev/null 2>&1; then :
  4821. ac_cv_type_uid_t=yes
  4822. else
  4823. ac_cv_type_uid_t=no
  4824. fi
  4825. rm -f conftest*
  4826. fi
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  4828. $as_echo "$ac_cv_type_uid_t" >&6; }
  4829. if test $ac_cv_type_uid_t = no; then
  4830. $as_echo "#define uid_t int" >>confdefs.h
  4831. $as_echo "#define gid_t int" >>confdefs.h
  4832. fi
  4833. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  4834. case $ac_cv_c_uint16_t in #(
  4835. no|yes) ;; #(
  4836. *)
  4837. cat >>confdefs.h <<_ACEOF
  4838. #define uint16_t $ac_cv_c_uint16_t
  4839. _ACEOF
  4840. ;;
  4841. esac
  4842. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  4843. case $ac_cv_c_uint32_t in #(
  4844. no|yes) ;; #(
  4845. *)
  4846. $as_echo "#define _UINT32_T 1" >>confdefs.h
  4847. cat >>confdefs.h <<_ACEOF
  4848. #define uint32_t $ac_cv_c_uint32_t
  4849. _ACEOF
  4850. ;;
  4851. esac
  4852. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  4853. case $ac_cv_c_uint8_t in #(
  4854. no|yes) ;; #(
  4855. *)
  4856. $as_echo "#define _UINT8_T 1" >>confdefs.h
  4857. cat >>confdefs.h <<_ACEOF
  4858. #define uint8_t $ac_cv_c_uint8_t
  4859. _ACEOF
  4860. ;;
  4861. esac
  4862. ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <arpa/inet.h>
  4863. "
  4864. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  4865. $as_echo "#define HAVE_sockaddr_in_len 1" >>confdefs.h
  4866. fi
  4867. # -- Libraries --
  4868. # memmove: A/UX libUTIL
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memmove" >&5
  4870. $as_echo_n "checking for library containing memmove... " >&6; }
  4871. if test "${ac_cv_search_memmove+set}" = set; then :
  4872. $as_echo_n "(cached) " >&6
  4873. else
  4874. ac_func_search_save_LIBS=$LIBS
  4875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4876. /* end confdefs.h. */
  4877. /* Override any GCC internal prototype to avoid an error.
  4878. Use char because int might match the return type of a GCC
  4879. builtin and then its argument prototype would still apply. */
  4880. #ifdef __cplusplus
  4881. extern "C"
  4882. #endif
  4883. char memmove ();
  4884. int
  4885. main ()
  4886. {
  4887. return memmove ();
  4888. ;
  4889. return 0;
  4890. }
  4891. _ACEOF
  4892. for ac_lib in '' UTIL; do
  4893. if test -z "$ac_lib"; then
  4894. ac_res="none required"
  4895. else
  4896. ac_res=-l$ac_lib
  4897. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4898. fi
  4899. if ac_fn_c_try_link "$LINENO"; then :
  4900. ac_cv_search_memmove=$ac_res
  4901. fi
  4902. rm -f core conftest.err conftest.$ac_objext \
  4903. conftest$ac_exeext
  4904. if test "${ac_cv_search_memmove+set}" = set; then :
  4905. break
  4906. fi
  4907. done
  4908. if test "${ac_cv_search_memmove+set}" = set; then :
  4909. else
  4910. ac_cv_search_memmove=no
  4911. fi
  4912. rm conftest.$ac_ext
  4913. LIBS=$ac_func_search_save_LIBS
  4914. fi
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memmove" >&5
  4916. $as_echo "$ac_cv_search_memmove" >&6; }
  4917. ac_res=$ac_cv_search_memmove
  4918. if test "$ac_res" != no; then :
  4919. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4920. else
  4921. as_fn_error $? "unable to find the memmove() function" "$LINENO" 5
  4922. fi
  4923. # gethostbyname: Solaris libnsl
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  4925. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  4926. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4927. $as_echo_n "(cached) " >&6
  4928. else
  4929. ac_func_search_save_LIBS=$LIBS
  4930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4931. /* end confdefs.h. */
  4932. /* Override any GCC internal prototype to avoid an error.
  4933. Use char because int might match the return type of a GCC
  4934. builtin and then its argument prototype would still apply. */
  4935. #ifdef __cplusplus
  4936. extern "C"
  4937. #endif
  4938. char gethostbyname ();
  4939. int
  4940. main ()
  4941. {
  4942. return gethostbyname ();
  4943. ;
  4944. return 0;
  4945. }
  4946. _ACEOF
  4947. for ac_lib in '' bind nsl network; do
  4948. if test -z "$ac_lib"; then
  4949. ac_res="none required"
  4950. else
  4951. ac_res=-l$ac_lib
  4952. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4953. fi
  4954. if ac_fn_c_try_link "$LINENO"; then :
  4955. ac_cv_search_gethostbyname=$ac_res
  4956. fi
  4957. rm -f core conftest.err conftest.$ac_objext \
  4958. conftest$ac_exeext
  4959. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4960. break
  4961. fi
  4962. done
  4963. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  4964. else
  4965. ac_cv_search_gethostbyname=no
  4966. fi
  4967. rm conftest.$ac_ext
  4968. LIBS=$ac_func_search_save_LIBS
  4969. fi
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  4971. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  4972. ac_res=$ac_cv_search_gethostbyname
  4973. if test "$ac_res" != no; then :
  4974. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4975. else
  4976. as_fn_error $? "unable to find the gethostbyname() function" "$LINENO" 5
  4977. fi
  4978. # bind: SVR4 libsocket
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
  4980. $as_echo_n "checking for library containing bind... " >&6; }
  4981. if test "${ac_cv_search_bind+set}" = set; then :
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. ac_func_search_save_LIBS=$LIBS
  4985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4986. /* end confdefs.h. */
  4987. /* Override any GCC internal prototype to avoid an error.
  4988. Use char because int might match the return type of a GCC
  4989. builtin and then its argument prototype would still apply. */
  4990. #ifdef __cplusplus
  4991. extern "C"
  4992. #endif
  4993. char bind ();
  4994. int
  4995. main ()
  4996. {
  4997. return bind ();
  4998. ;
  4999. return 0;
  5000. }
  5001. _ACEOF
  5002. for ac_lib in '' socket network; do
  5003. if test -z "$ac_lib"; then
  5004. ac_res="none required"
  5005. else
  5006. ac_res=-l$ac_lib
  5007. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5008. fi
  5009. if ac_fn_c_try_link "$LINENO"; then :
  5010. ac_cv_search_bind=$ac_res
  5011. fi
  5012. rm -f core conftest.err conftest.$ac_objext \
  5013. conftest$ac_exeext
  5014. if test "${ac_cv_search_bind+set}" = set; then :
  5015. break
  5016. fi
  5017. done
  5018. if test "${ac_cv_search_bind+set}" = set; then :
  5019. else
  5020. ac_cv_search_bind=no
  5021. fi
  5022. rm conftest.$ac_ext
  5023. LIBS=$ac_func_search_save_LIBS
  5024. fi
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
  5026. $as_echo "$ac_cv_search_bind" >&6; }
  5027. ac_res=$ac_cv_search_bind
  5028. if test "$ac_res" != no; then :
  5029. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5030. else
  5031. as_fn_error $? "unable to find the bind() function" "$LINENO" 5
  5032. fi
  5033. # -- Functions --
  5034. for ac_header in vfork.h
  5035. do :
  5036. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  5037. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  5038. cat >>confdefs.h <<_ACEOF
  5039. #define HAVE_VFORK_H 1
  5040. _ACEOF
  5041. fi
  5042. done
  5043. for ac_func in fork vfork
  5044. do :
  5045. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5046. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5047. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5048. cat >>confdefs.h <<_ACEOF
  5049. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5050. _ACEOF
  5051. fi
  5052. done
  5053. if test "x$ac_cv_func_fork" = xyes; then
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5055. $as_echo_n "checking for working fork... " >&6; }
  5056. if test "${ac_cv_func_fork_works+set}" = set; then :
  5057. $as_echo_n "(cached) " >&6
  5058. else
  5059. if test "$cross_compiling" = yes; then :
  5060. ac_cv_func_fork_works=cross
  5061. else
  5062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5063. /* end confdefs.h. */
  5064. $ac_includes_default
  5065. int
  5066. main ()
  5067. {
  5068. /* By Ruediger Kuhlmann. */
  5069. return fork () < 0;
  5070. ;
  5071. return 0;
  5072. }
  5073. _ACEOF
  5074. if ac_fn_c_try_run "$LINENO"; then :
  5075. ac_cv_func_fork_works=yes
  5076. else
  5077. ac_cv_func_fork_works=no
  5078. fi
  5079. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5080. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5081. fi
  5082. fi
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5084. $as_echo "$ac_cv_func_fork_works" >&6; }
  5085. else
  5086. ac_cv_func_fork_works=$ac_cv_func_fork
  5087. fi
  5088. if test "x$ac_cv_func_fork_works" = xcross; then
  5089. case $host in
  5090. *-*-amigaos* | *-*-msdosdjgpp*)
  5091. # Override, as these systems have only a dummy fork() stub
  5092. ac_cv_func_fork_works=no
  5093. ;;
  5094. *)
  5095. ac_cv_func_fork_works=yes
  5096. ;;
  5097. esac
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5099. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5100. fi
  5101. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5102. if test "x$ac_cv_func_vfork" = xyes; then
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5104. $as_echo_n "checking for working vfork... " >&6; }
  5105. if test "${ac_cv_func_vfork_works+set}" = set; then :
  5106. $as_echo_n "(cached) " >&6
  5107. else
  5108. if test "$cross_compiling" = yes; then :
  5109. ac_cv_func_vfork_works=cross
  5110. else
  5111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5112. /* end confdefs.h. */
  5113. /* Thanks to Paul Eggert for this test. */
  5114. $ac_includes_default
  5115. #include <sys/wait.h>
  5116. #ifdef HAVE_VFORK_H
  5117. # include <vfork.h>
  5118. #endif
  5119. /* On some sparc systems, changes by the child to local and incoming
  5120. argument registers are propagated back to the parent. The compiler
  5121. is told about this with #include <vfork.h>, but some compilers
  5122. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5123. static variable whose address is put into a register that is
  5124. clobbered by the vfork. */
  5125. static void
  5126. #ifdef __cplusplus
  5127. sparc_address_test (int arg)
  5128. # else
  5129. sparc_address_test (arg) int arg;
  5130. #endif
  5131. {
  5132. static pid_t child;
  5133. if (!child) {
  5134. child = vfork ();
  5135. if (child < 0) {
  5136. perror ("vfork");
  5137. _exit(2);
  5138. }
  5139. if (!child) {
  5140. arg = getpid();
  5141. write(-1, "", 0);
  5142. _exit (arg);
  5143. }
  5144. }
  5145. }
  5146. int
  5147. main ()
  5148. {
  5149. pid_t parent = getpid ();
  5150. pid_t child;
  5151. sparc_address_test (0);
  5152. child = vfork ();
  5153. if (child == 0) {
  5154. /* Here is another test for sparc vfork register problems. This
  5155. test uses lots of local variables, at least as many local
  5156. variables as main has allocated so far including compiler
  5157. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5158. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5159. reuse the register of parent for one of the local variables,
  5160. since it will think that parent can't possibly be used any more
  5161. in this routine. Assigning to the local variable will thus
  5162. munge parent in the parent process. */
  5163. pid_t
  5164. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5165. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5166. /* Convince the compiler that p..p7 are live; otherwise, it might
  5167. use the same hardware register for all 8 local variables. */
  5168. if (p != p1 || p != p2 || p != p3 || p != p4
  5169. || p != p5 || p != p6 || p != p7)
  5170. _exit(1);
  5171. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5172. from child file descriptors. If the child closes a descriptor
  5173. before it execs or exits, this munges the parent's descriptor
  5174. as well. Test for this by closing stdout in the child. */
  5175. _exit(close(fileno(stdout)) != 0);
  5176. } else {
  5177. int status;
  5178. struct stat st;
  5179. while (wait(&status) != child)
  5180. ;
  5181. return (
  5182. /* Was there some problem with vforking? */
  5183. child < 0
  5184. /* Did the child fail? (This shouldn't happen.) */
  5185. || status
  5186. /* Did the vfork/compiler bug occur? */
  5187. || parent != getpid()
  5188. /* Did the file descriptor bug occur? */
  5189. || fstat(fileno(stdout), &st) != 0
  5190. );
  5191. }
  5192. }
  5193. _ACEOF
  5194. if ac_fn_c_try_run "$LINENO"; then :
  5195. ac_cv_func_vfork_works=yes
  5196. else
  5197. ac_cv_func_vfork_works=no
  5198. fi
  5199. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5200. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5201. fi
  5202. fi
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  5204. $as_echo "$ac_cv_func_vfork_works" >&6; }
  5205. fi;
  5206. if test "x$ac_cv_func_fork_works" = xcross; then
  5207. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5209. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5210. fi
  5211. if test "x$ac_cv_func_vfork_works" = xyes; then
  5212. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  5213. else
  5214. $as_echo "#define vfork fork" >>confdefs.h
  5215. fi
  5216. if test "x$ac_cv_func_fork_works" = xyes; then
  5217. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  5218. fi
  5219. for ac_func in strftime
  5220. do :
  5221. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  5222. if test "x$ac_cv_func_strftime" = x""yes; then :
  5223. cat >>confdefs.h <<_ACEOF
  5224. #define HAVE_STRFTIME 1
  5225. _ACEOF
  5226. else
  5227. # strftime is in -lintl on SCO UNIX.
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  5229. $as_echo_n "checking for strftime in -lintl... " >&6; }
  5230. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. ac_check_lib_save_LIBS=$LIBS
  5234. LIBS="-lintl $LIBS"
  5235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5236. /* end confdefs.h. */
  5237. /* Override any GCC internal prototype to avoid an error.
  5238. Use char because int might match the return type of a GCC
  5239. builtin and then its argument prototype would still apply. */
  5240. #ifdef __cplusplus
  5241. extern "C"
  5242. #endif
  5243. char strftime ();
  5244. int
  5245. main ()
  5246. {
  5247. return strftime ();
  5248. ;
  5249. return 0;
  5250. }
  5251. _ACEOF
  5252. if ac_fn_c_try_link "$LINENO"; then :
  5253. ac_cv_lib_intl_strftime=yes
  5254. else
  5255. ac_cv_lib_intl_strftime=no
  5256. fi
  5257. rm -f core conftest.err conftest.$ac_objext \
  5258. conftest$ac_exeext conftest.$ac_ext
  5259. LIBS=$ac_check_lib_save_LIBS
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  5262. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  5263. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  5264. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  5265. LIBS="-lintl $LIBS"
  5266. fi
  5267. fi
  5268. done
  5269. # Required functions
  5270. for ac_func in \
  5271. alarm dup2 endpwent gethostbyaddr gethostbyname gethostname \
  5272. gettimeofday inet_ntoa memmove memset setsid socket strcasecmp \
  5273. strchr strcspn strerror strncasecmp strrchr strspn strstr \
  5274. do :
  5275. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5276. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5277. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5278. cat >>confdefs.h <<_ACEOF
  5279. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5280. _ACEOF
  5281. else
  5282. as_fn_error $? "required function missing!" "$LINENO" 5
  5283. fi
  5284. done
  5285. # Optional functions
  5286. for ac_func in $ac_func_list
  5287. do :
  5288. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5289. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5290. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5291. cat >>confdefs.h <<_ACEOF
  5292. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5293. _ACEOF
  5294. fi
  5295. done
  5296. # -- Configuration options --
  5297. # use syslog?
  5298. x_syslog_on=no
  5299. # Check whether --with-syslog was given.
  5300. if test "${with_syslog+set}" = set; then :
  5301. withval=$with_syslog; if test "$withval" != "no"; then
  5302. if test "$withval" != "yes"; then
  5303. CFLAGS="-I$withval/include $CFLAGS"
  5304. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5305. LDFLAGS="-L$withval/lib $LDFLAGS"
  5306. fi
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
  5308. $as_echo_n "checking for library containing syslog... " >&6; }
  5309. if test "${ac_cv_search_syslog+set}" = set; then :
  5310. $as_echo_n "(cached) " >&6
  5311. else
  5312. ac_func_search_save_LIBS=$LIBS
  5313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5314. /* end confdefs.h. */
  5315. /* Override any GCC internal prototype to avoid an error.
  5316. Use char because int might match the return type of a GCC
  5317. builtin and then its argument prototype would still apply. */
  5318. #ifdef __cplusplus
  5319. extern "C"
  5320. #endif
  5321. char syslog ();
  5322. int
  5323. main ()
  5324. {
  5325. return syslog ();
  5326. ;
  5327. return 0;
  5328. }
  5329. _ACEOF
  5330. for ac_lib in '' be; do
  5331. if test -z "$ac_lib"; then
  5332. ac_res="none required"
  5333. else
  5334. ac_res=-l$ac_lib
  5335. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5336. fi
  5337. if ac_fn_c_try_link "$LINENO"; then :
  5338. ac_cv_search_syslog=$ac_res
  5339. fi
  5340. rm -f core conftest.err conftest.$ac_objext \
  5341. conftest$ac_exeext
  5342. if test "${ac_cv_search_syslog+set}" = set; then :
  5343. break
  5344. fi
  5345. done
  5346. if test "${ac_cv_search_syslog+set}" = set; then :
  5347. else
  5348. ac_cv_search_syslog=no
  5349. fi
  5350. rm conftest.$ac_ext
  5351. LIBS=$ac_func_search_save_LIBS
  5352. fi
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
  5354. $as_echo "$ac_cv_search_syslog" >&6; }
  5355. ac_res=$ac_cv_search_syslog
  5356. if test "$ac_res" != no; then :
  5357. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5358. x_syslog_on=yes
  5359. else
  5360. as_fn_error $? "Can't enable syslog!" "$LINENO" 5
  5361. fi
  5362. fi
  5363. else
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
  5365. $as_echo_n "checking for library containing syslog... " >&6; }
  5366. if test "${ac_cv_search_syslog+set}" = set; then :
  5367. $as_echo_n "(cached) " >&6
  5368. else
  5369. ac_func_search_save_LIBS=$LIBS
  5370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5371. /* end confdefs.h. */
  5372. /* Override any GCC internal prototype to avoid an error.
  5373. Use char because int might match the return type of a GCC
  5374. builtin and then its argument prototype would still apply. */
  5375. #ifdef __cplusplus
  5376. extern "C"
  5377. #endif
  5378. char syslog ();
  5379. int
  5380. main ()
  5381. {
  5382. return syslog ();
  5383. ;
  5384. return 0;
  5385. }
  5386. _ACEOF
  5387. for ac_lib in '' be; do
  5388. if test -z "$ac_lib"; then
  5389. ac_res="none required"
  5390. else
  5391. ac_res=-l$ac_lib
  5392. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5393. fi
  5394. if ac_fn_c_try_link "$LINENO"; then :
  5395. ac_cv_search_syslog=$ac_res
  5396. fi
  5397. rm -f core conftest.err conftest.$ac_objext \
  5398. conftest$ac_exeext
  5399. if test "${ac_cv_search_syslog+set}" = set; then :
  5400. break
  5401. fi
  5402. done
  5403. if test "${ac_cv_search_syslog+set}" = set; then :
  5404. else
  5405. ac_cv_search_syslog=no
  5406. fi
  5407. rm conftest.$ac_ext
  5408. LIBS=$ac_func_search_save_LIBS
  5409. fi
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
  5411. $as_echo "$ac_cv_search_syslog" >&6; }
  5412. ac_res=$ac_cv_search_syslog
  5413. if test "$ac_res" != no; then :
  5414. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5415. x_syslog_on=yes
  5416. fi
  5417. fi
  5418. if test "$x_syslog_on" = "yes"; then
  5419. $as_echo "#define SYSLOG 1" >>confdefs.h
  5420. for ac_header in syslog.h
  5421. do :
  5422. ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  5423. if test "x$ac_cv_header_syslog_h" = x""yes; then :
  5424. cat >>confdefs.h <<_ACEOF
  5425. #define HAVE_SYSLOG_H 1
  5426. _ACEOF
  5427. else
  5428. as_fn_error $? "required C header missing!" "$LINENO" 5
  5429. fi
  5430. done
  5431. fi
  5432. # use zlib compression?
  5433. x_zlib_on=no
  5434. # Check whether --with-zlib was given.
  5435. if test "${with_zlib+set}" = set; then :
  5436. withval=$with_zlib; if test "$withval" != "no"; then
  5437. if test "$withval" != "yes"; then
  5438. CFLAGS="-I$withval/include $CFLAGS"
  5439. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5440. LDFLAGS="-L$withval/lib $LDFLAGS"
  5441. fi
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  5443. $as_echo_n "checking for deflate in -lz... " >&6; }
  5444. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. ac_check_lib_save_LIBS=$LIBS
  5448. LIBS="-lz $LIBS"
  5449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5450. /* end confdefs.h. */
  5451. /* Override any GCC internal prototype to avoid an error.
  5452. Use char because int might match the return type of a GCC
  5453. builtin and then its argument prototype would still apply. */
  5454. #ifdef __cplusplus
  5455. extern "C"
  5456. #endif
  5457. char deflate ();
  5458. int
  5459. main ()
  5460. {
  5461. return deflate ();
  5462. ;
  5463. return 0;
  5464. }
  5465. _ACEOF
  5466. if ac_fn_c_try_link "$LINENO"; then :
  5467. ac_cv_lib_z_deflate=yes
  5468. else
  5469. ac_cv_lib_z_deflate=no
  5470. fi
  5471. rm -f core conftest.err conftest.$ac_objext \
  5472. conftest$ac_exeext conftest.$ac_ext
  5473. LIBS=$ac_check_lib_save_LIBS
  5474. fi
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  5476. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  5477. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  5478. cat >>confdefs.h <<_ACEOF
  5479. #define HAVE_LIBZ 1
  5480. _ACEOF
  5481. LIBS="-lz $LIBS"
  5482. fi
  5483. for ac_func in deflate
  5484. do :
  5485. ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
  5486. if test "x$ac_cv_func_deflate" = x""yes; then :
  5487. cat >>confdefs.h <<_ACEOF
  5488. #define HAVE_DEFLATE 1
  5489. _ACEOF
  5490. x_zlib_on=yes
  5491. else
  5492. as_fn_error $? "Can't enable zlib!" "$LINENO" 5
  5493. fi
  5494. done
  5495. fi
  5496. else
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  5498. $as_echo_n "checking for deflate in -lz... " >&6; }
  5499. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  5500. $as_echo_n "(cached) " >&6
  5501. else
  5502. ac_check_lib_save_LIBS=$LIBS
  5503. LIBS="-lz $LIBS"
  5504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5505. /* end confdefs.h. */
  5506. /* Override any GCC internal prototype to avoid an error.
  5507. Use char because int might match the return type of a GCC
  5508. builtin and then its argument prototype would still apply. */
  5509. #ifdef __cplusplus
  5510. extern "C"
  5511. #endif
  5512. char deflate ();
  5513. int
  5514. main ()
  5515. {
  5516. return deflate ();
  5517. ;
  5518. return 0;
  5519. }
  5520. _ACEOF
  5521. if ac_fn_c_try_link "$LINENO"; then :
  5522. ac_cv_lib_z_deflate=yes
  5523. else
  5524. ac_cv_lib_z_deflate=no
  5525. fi
  5526. rm -f core conftest.err conftest.$ac_objext \
  5527. conftest$ac_exeext conftest.$ac_ext
  5528. LIBS=$ac_check_lib_save_LIBS
  5529. fi
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  5531. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  5532. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  5533. cat >>confdefs.h <<_ACEOF
  5534. #define HAVE_LIBZ 1
  5535. _ACEOF
  5536. LIBS="-lz $LIBS"
  5537. fi
  5538. for ac_func in deflate
  5539. do :
  5540. ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
  5541. if test "x$ac_cv_func_deflate" = x""yes; then :
  5542. cat >>confdefs.h <<_ACEOF
  5543. #define HAVE_DEFLATE 1
  5544. _ACEOF
  5545. x_zlib_on=yes
  5546. fi
  5547. done
  5548. fi
  5549. if test "$x_zlib_on" = "yes"; then
  5550. $as_echo "#define ZLIB 1" >>confdefs.h
  5551. for ac_header in zlib.h
  5552. do :
  5553. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5554. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  5555. cat >>confdefs.h <<_ACEOF
  5556. #define HAVE_ZLIB_H 1
  5557. _ACEOF
  5558. else
  5559. as_fn_error $? "required C header missing!" "$LINENO" 5
  5560. fi
  5561. done
  5562. fi
  5563. # detect which IO API to use:
  5564. x_io_backend=none
  5565. # Check whether --with-select was given.
  5566. if test "${with_select+set}" = set; then :
  5567. withval=$with_select; if test "$withval" != "no"; then
  5568. if test "$withval" != "yes"; then
  5569. CFLAGS="-I$withval/include $CFLAGS"
  5570. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5571. LDFLAGS="-L$withval/lib $LDFLAGS"
  5572. fi
  5573. for ac_func in select
  5574. do :
  5575. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  5576. if test "x$ac_cv_func_select" = x""yes; then :
  5577. cat >>confdefs.h <<_ACEOF
  5578. #define HAVE_SELECT 1
  5579. _ACEOF
  5580. x_io_select=yes
  5581. else
  5582. as_fn_error $? "Can't enable select IO support!" "$LINENO" 5
  5583. fi
  5584. done
  5585. fi
  5586. else
  5587. for ac_func in select
  5588. do :
  5589. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  5590. if test "x$ac_cv_func_select" = x""yes; then :
  5591. cat >>confdefs.h <<_ACEOF
  5592. #define HAVE_SELECT 1
  5593. _ACEOF
  5594. x_io_select=yes
  5595. fi
  5596. done
  5597. fi
  5598. # Check whether --with-poll was given.
  5599. if test "${with_poll+set}" = set; then :
  5600. withval=$with_poll; if test "$withval" != "no"; then
  5601. if test "$withval" != "yes"; then
  5602. CFLAGS="-I$withval/include $CFLAGS"
  5603. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5604. LDFLAGS="-L$withval/lib $LDFLAGS"
  5605. fi
  5606. for ac_func in poll
  5607. do :
  5608. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5609. if test "x$ac_cv_func_poll" = x""yes; then :
  5610. cat >>confdefs.h <<_ACEOF
  5611. #define HAVE_POLL 1
  5612. _ACEOF
  5613. for ac_header in poll.h
  5614. do :
  5615. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  5616. if test "x$ac_cv_header_poll_h" = x""yes; then :
  5617. cat >>confdefs.h <<_ACEOF
  5618. #define HAVE_POLL_H 1
  5619. _ACEOF
  5620. x_io_backend=poll\(\)
  5621. else
  5622. as_fn_error $? "Can't enable poll IO support!" "$LINENO" 5
  5623. fi
  5624. done
  5625. else
  5626. as_fn_error $? "Can't enable poll IO support!" "$LINENO" 5
  5627. fi
  5628. done
  5629. fi
  5630. else
  5631. for ac_func in poll
  5632. do :
  5633. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5634. if test "x$ac_cv_func_poll" = x""yes; then :
  5635. cat >>confdefs.h <<_ACEOF
  5636. #define HAVE_POLL 1
  5637. _ACEOF
  5638. for ac_header in poll.h
  5639. do :
  5640. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  5641. if test "x$ac_cv_header_poll_h" = x""yes; then :
  5642. cat >>confdefs.h <<_ACEOF
  5643. #define HAVE_POLL_H 1
  5644. _ACEOF
  5645. x_io_backend=poll\(\)
  5646. fi
  5647. done
  5648. fi
  5649. done
  5650. fi
  5651. # Check whether --with-devpoll was given.
  5652. if test "${with_devpoll+set}" = set; then :
  5653. withval=$with_devpoll; if test "$withval" != "no"; then
  5654. if test "$withval" != "yes"; then
  5655. CFLAGS="-I$withval/include $CFLAGS"
  5656. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5657. LDFLAGS="-L$withval/lib $LDFLAGS"
  5658. fi
  5659. for ac_header in sys/devpoll.h
  5660. do :
  5661. ac_fn_c_check_header_mongrel "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
  5662. if test "x$ac_cv_header_sys_devpoll_h" = x""yes; then :
  5663. cat >>confdefs.h <<_ACEOF
  5664. #define HAVE_SYS_DEVPOLL_H 1
  5665. _ACEOF
  5666. else
  5667. as_fn_error $? "required C header missing!" "$LINENO" 5
  5668. fi
  5669. done
  5670. fi
  5671. else
  5672. for ac_header in sys/devpoll.h
  5673. do :
  5674. ac_fn_c_check_header_mongrel "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
  5675. if test "x$ac_cv_header_sys_devpoll_h" = x""yes; then :
  5676. cat >>confdefs.h <<_ACEOF
  5677. #define HAVE_SYS_DEVPOLL_H 1
  5678. _ACEOF
  5679. x_io_backend=/dev/poll
  5680. fi
  5681. done
  5682. fi
  5683. # Check whether --with-epoll was given.
  5684. if test "${with_epoll+set}" = set; then :
  5685. withval=$with_epoll; if test "$withval" != "no"; then
  5686. if test "$withval" != "yes"; then
  5687. CFLAGS="-I$withval/include $CFLAGS"
  5688. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5689. LDFLAGS="-L$withval/lib $LDFLAGS"
  5690. fi
  5691. for ac_func in epoll_create
  5692. do :
  5693. ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  5694. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  5695. cat >>confdefs.h <<_ACEOF
  5696. #define HAVE_EPOLL_CREATE 1
  5697. _ACEOF
  5698. x_io_epoll=yes
  5699. else
  5700. as_fn_error $? "Can't enable epoll IO support!" "$LINENO" 5
  5701. fi
  5702. done
  5703. fi
  5704. else
  5705. for ac_func in epoll_create
  5706. do :
  5707. ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  5708. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  5709. cat >>confdefs.h <<_ACEOF
  5710. #define HAVE_EPOLL_CREATE 1
  5711. _ACEOF
  5712. x_io_epoll=yes
  5713. fi
  5714. done
  5715. fi
  5716. # Check whether --with-kqueue was given.
  5717. if test "${with_kqueue+set}" = set; then :
  5718. withval=$with_kqueue; if test "$withval" != "no"; then
  5719. if test "$withval" != "yes"; then
  5720. CFLAGS="-I$withval/include $CFLAGS"
  5721. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5722. LDFLAGS="-L$withval/lib $LDFLAGS"
  5723. fi
  5724. for ac_func in kqueue
  5725. do :
  5726. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  5727. if test "x$ac_cv_func_kqueue" = x""yes; then :
  5728. cat >>confdefs.h <<_ACEOF
  5729. #define HAVE_KQUEUE 1
  5730. _ACEOF
  5731. x_io_backend=kqueue\(\)
  5732. else
  5733. as_fn_error $? "Can't enable kqueue IO support!" "$LINENO" 5
  5734. fi
  5735. done
  5736. fi
  5737. else
  5738. for ac_func in kqueue
  5739. do :
  5740. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  5741. if test "x$ac_cv_func_kqueue" = x""yes; then :
  5742. cat >>confdefs.h <<_ACEOF
  5743. #define HAVE_KQUEUE 1
  5744. _ACEOF
  5745. x_io_backend=kqueue\(\)
  5746. fi
  5747. done
  5748. fi
  5749. if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
  5750. # when epoll() and select() are available, we'll use both!
  5751. x_io_backend="epoll(), select()"
  5752. else
  5753. if test "$x_io_epoll" = "yes"; then
  5754. # we prefere epoll() if it is available
  5755. x_io_backend="epoll()"
  5756. else
  5757. if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
  5758. # we'll use select, when available and no "better"
  5759. # interface has been detected ...
  5760. x_io_backend="select()"
  5761. fi
  5762. fi
  5763. fi
  5764. if test "$x_io_backend" = "none"; then
  5765. as_fn_error $? "No useable IO API activated/found!?" "$LINENO" 5
  5766. fi
  5767. # use SSL?
  5768. # Check whether --with-openssl was given.
  5769. if test "${with_openssl+set}" = set; then :
  5770. withval=$with_openssl; if test "$withval" != "no"; then
  5771. if test "$withval" != "yes"; then
  5772. CFLAGS="-I$withval/include $CFLAGS"
  5773. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5774. LDFLAGS="-L$withval/lib $LDFLAGS"
  5775. fi
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_s_mem in -lcrypto" >&5
  5777. $as_echo_n "checking for BIO_s_mem in -lcrypto... " >&6; }
  5778. if test "${ac_cv_lib_crypto_BIO_s_mem+set}" = set; then :
  5779. $as_echo_n "(cached) " >&6
  5780. else
  5781. ac_check_lib_save_LIBS=$LIBS
  5782. LIBS="-lcrypto $LIBS"
  5783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5784. /* end confdefs.h. */
  5785. /* Override any GCC internal prototype to avoid an error.
  5786. Use char because int might match the return type of a GCC
  5787. builtin and then its argument prototype would still apply. */
  5788. #ifdef __cplusplus
  5789. extern "C"
  5790. #endif
  5791. char BIO_s_mem ();
  5792. int
  5793. main ()
  5794. {
  5795. return BIO_s_mem ();
  5796. ;
  5797. return 0;
  5798. }
  5799. _ACEOF
  5800. if ac_fn_c_try_link "$LINENO"; then :
  5801. ac_cv_lib_crypto_BIO_s_mem=yes
  5802. else
  5803. ac_cv_lib_crypto_BIO_s_mem=no
  5804. fi
  5805. rm -f core conftest.err conftest.$ac_objext \
  5806. conftest$ac_exeext conftest.$ac_ext
  5807. LIBS=$ac_check_lib_save_LIBS
  5808. fi
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_s_mem" >&5
  5810. $as_echo "$ac_cv_lib_crypto_BIO_s_mem" >&6; }
  5811. if test "x$ac_cv_lib_crypto_BIO_s_mem" = x""yes; then :
  5812. cat >>confdefs.h <<_ACEOF
  5813. #define HAVE_LIBCRYPTO 1
  5814. _ACEOF
  5815. LIBS="-lcrypto $LIBS"
  5816. fi
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  5818. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  5819. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. ac_check_lib_save_LIBS=$LIBS
  5823. LIBS="-lssl $LIBS"
  5824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5825. /* end confdefs.h. */
  5826. /* Override any GCC internal prototype to avoid an error.
  5827. Use char because int might match the return type of a GCC
  5828. builtin and then its argument prototype would still apply. */
  5829. #ifdef __cplusplus
  5830. extern "C"
  5831. #endif
  5832. char SSL_library_init ();
  5833. int
  5834. main ()
  5835. {
  5836. return SSL_library_init ();
  5837. ;
  5838. return 0;
  5839. }
  5840. _ACEOF
  5841. if ac_fn_c_try_link "$LINENO"; then :
  5842. ac_cv_lib_ssl_SSL_library_init=yes
  5843. else
  5844. ac_cv_lib_ssl_SSL_library_init=no
  5845. fi
  5846. rm -f core conftest.err conftest.$ac_objext \
  5847. conftest$ac_exeext conftest.$ac_ext
  5848. LIBS=$ac_check_lib_save_LIBS
  5849. fi
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5851. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5852. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  5853. cat >>confdefs.h <<_ACEOF
  5854. #define HAVE_LIBSSL 1
  5855. _ACEOF
  5856. LIBS="-lssl $LIBS"
  5857. fi
  5858. for ac_func in SSL_library_init
  5859. do :
  5860. ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init"
  5861. if test "x$ac_cv_func_SSL_library_init" = x""yes; then :
  5862. cat >>confdefs.h <<_ACEOF
  5863. #define HAVE_SSL_LIBRARY_INIT 1
  5864. _ACEOF
  5865. x_ssl_openssl=yes
  5866. else
  5867. as_fn_error $? "Can't enable openssl" "$LINENO" 5
  5868. fi
  5869. done
  5870. fi
  5871. fi
  5872. # Check whether --with-gnutls was given.
  5873. if test "${with_gnutls+set}" = set; then :
  5874. withval=$with_gnutls; if test "$withval" != "no"; then
  5875. if test "$withval" != "yes"; then
  5876. CFLAGS="-I$withval/include $CFLAGS"
  5877. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5878. LDFLAGS="-L$withval/lib $LDFLAGS"
  5879. fi
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
  5881. $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
  5882. if test "${ac_cv_lib_gnutls_gnutls_global_init+set}" = set; then :
  5883. $as_echo_n "(cached) " >&6
  5884. else
  5885. ac_check_lib_save_LIBS=$LIBS
  5886. LIBS="-lgnutls $LIBS"
  5887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5888. /* end confdefs.h. */
  5889. /* Override any GCC internal prototype to avoid an error.
  5890. Use char because int might match the return type of a GCC
  5891. builtin and then its argument prototype would still apply. */
  5892. #ifdef __cplusplus
  5893. extern "C"
  5894. #endif
  5895. char gnutls_global_init ();
  5896. int
  5897. main ()
  5898. {
  5899. return gnutls_global_init ();
  5900. ;
  5901. return 0;
  5902. }
  5903. _ACEOF
  5904. if ac_fn_c_try_link "$LINENO"; then :
  5905. ac_cv_lib_gnutls_gnutls_global_init=yes
  5906. else
  5907. ac_cv_lib_gnutls_gnutls_global_init=no
  5908. fi
  5909. rm -f core conftest.err conftest.$ac_objext \
  5910. conftest$ac_exeext conftest.$ac_ext
  5911. LIBS=$ac_check_lib_save_LIBS
  5912. fi
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
  5914. $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
  5915. if test "x$ac_cv_lib_gnutls_gnutls_global_init" = x""yes; then :
  5916. cat >>confdefs.h <<_ACEOF
  5917. #define HAVE_LIBGNUTLS 1
  5918. _ACEOF
  5919. LIBS="-lgnutls $LIBS"
  5920. fi
  5921. for ac_func in gnutls_global_init
  5922. do :
  5923. ac_fn_c_check_func "$LINENO" "gnutls_global_init" "ac_cv_func_gnutls_global_init"
  5924. if test "x$ac_cv_func_gnutls_global_init" = x""yes; then :
  5925. cat >>confdefs.h <<_ACEOF
  5926. #define HAVE_GNUTLS_GLOBAL_INIT 1
  5927. _ACEOF
  5928. x_ssl_gnutls=yes
  5929. else
  5930. as_fn_error $? "Can't enable gnutls" "$LINENO" 5
  5931. fi
  5932. done
  5933. fi
  5934. fi
  5935. x_ssl_lib="no"
  5936. if test "$x_ssl_gnutls" = "yes"; then
  5937. if test "$x_ssl_openssl" = "yes";then
  5938. as_fn_error $? "Cannot enable both gnutls and openssl" "$LINENO" 5
  5939. fi
  5940. x_ssl_lib=gnutls
  5941. fi
  5942. if test "$x_ssl_openssl" = "yes"; then
  5943. x_ssl_lib=openssl
  5944. fi
  5945. # use TCP wrappers?
  5946. x_tcpwrap_on=no
  5947. # Check whether --with-tcp-wrappers was given.
  5948. if test "${with_tcp_wrappers+set}" = set; then :
  5949. withval=$with_tcp_wrappers; if test "$withval" != "no"; then
  5950. if test "$withval" != "yes"; then
  5951. CFLAGS="-I$withval/include $CFLAGS"
  5952. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5953. LDFLAGS="-L$withval/lib $LDFLAGS"
  5954. fi
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access" >&5
  5956. $as_echo_n "checking for hosts_access... " >&6; }
  5957. LIBS="-lwrap $LIBS"
  5958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5959. /* end confdefs.h. */
  5960. #include <tcpd.h>
  5961. int allow_severity = 0;
  5962. int deny_severity = 0;
  5963. int
  5964. main ()
  5965. {
  5966. tcpd_warn("link test");
  5967. ;
  5968. return 0;
  5969. }
  5970. _ACEOF
  5971. if ac_fn_c_try_link "$LINENO"; then :
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5973. $as_echo "yes" >&6; }
  5974. $as_echo "#define TCPWRAP 1" >>confdefs.h
  5975. x_tcpwrap_on=yes
  5976. else
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5978. $as_echo "no" >&6; }
  5979. as_fn_error $? "Can't enable TCP wrappers!" "$LINENO" 5
  5980. fi
  5981. rm -f core conftest.err conftest.$ac_objext \
  5982. conftest$ac_exeext conftest.$ac_ext
  5983. fi
  5984. fi
  5985. # do IDENT requests using libident?
  5986. x_identauth_on=no
  5987. # Check whether --with-ident was given.
  5988. if test "${with_ident+set}" = set; then :
  5989. withval=$with_ident; if test "$withval" != "no"; then
  5990. if test "$withval" != "yes"; then
  5991. CFLAGS="-I$withval/include $CFLAGS"
  5992. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5993. LDFLAGS="-L$withval/lib $LDFLAGS"
  5994. fi
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ident_id in -lident" >&5
  5996. $as_echo_n "checking for ident_id in -lident... " >&6; }
  5997. if test "${ac_cv_lib_ident_ident_id+set}" = set; then :
  5998. $as_echo_n "(cached) " >&6
  5999. else
  6000. ac_check_lib_save_LIBS=$LIBS
  6001. LIBS="-lident $LIBS"
  6002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6003. /* end confdefs.h. */
  6004. /* Override any GCC internal prototype to avoid an error.
  6005. Use char because int might match the return type of a GCC
  6006. builtin and then its argument prototype would still apply. */
  6007. #ifdef __cplusplus
  6008. extern "C"
  6009. #endif
  6010. char ident_id ();
  6011. int
  6012. main ()
  6013. {
  6014. return ident_id ();
  6015. ;
  6016. return 0;
  6017. }
  6018. _ACEOF
  6019. if ac_fn_c_try_link "$LINENO"; then :
  6020. ac_cv_lib_ident_ident_id=yes
  6021. else
  6022. ac_cv_lib_ident_ident_id=no
  6023. fi
  6024. rm -f core conftest.err conftest.$ac_objext \
  6025. conftest$ac_exeext conftest.$ac_ext
  6026. LIBS=$ac_check_lib_save_LIBS
  6027. fi
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ident_ident_id" >&5
  6029. $as_echo "$ac_cv_lib_ident_ident_id" >&6; }
  6030. if test "x$ac_cv_lib_ident_ident_id" = x""yes; then :
  6031. cat >>confdefs.h <<_ACEOF
  6032. #define HAVE_LIBIDENT 1
  6033. _ACEOF
  6034. LIBS="-lident $LIBS"
  6035. fi
  6036. for ac_func in ident_id
  6037. do :
  6038. ac_fn_c_check_func "$LINENO" "ident_id" "ac_cv_func_ident_id"
  6039. if test "x$ac_cv_func_ident_id" = x""yes; then :
  6040. cat >>confdefs.h <<_ACEOF
  6041. #define HAVE_IDENT_ID 1
  6042. _ACEOF
  6043. x_identauth_on=yes
  6044. else
  6045. as_fn_error $? "Can't enable IDENT support!" "$LINENO" 5
  6046. fi
  6047. done
  6048. fi
  6049. fi
  6050. if test "$x_identauth_on" = "yes"; then
  6051. $as_echo "#define IDENTAUTH 1" >>confdefs.h
  6052. for ac_header in ident.h
  6053. do :
  6054. ac_fn_c_check_header_mongrel "$LINENO" "ident.h" "ac_cv_header_ident_h" "$ac_includes_default"
  6055. if test "x$ac_cv_header_ident_h" = x""yes; then :
  6056. cat >>confdefs.h <<_ACEOF
  6057. #define HAVE_IDENT_H 1
  6058. _ACEOF
  6059. else
  6060. as_fn_error $? "required C header missing!" "$LINENO" 5
  6061. fi
  6062. done
  6063. fi
  6064. # compile in PAM support?
  6065. x_pam_on=no
  6066. # Check whether --with-pam was given.
  6067. if test "${with_pam+set}" = set; then :
  6068. withval=$with_pam; if test "$withval" != "no"; then
  6069. if test "$withval" != "yes"; then
  6070. CFLAGS="-I$withval/include $CFLAGS"
  6071. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6072. LDFLAGS="-L$withval/lib $LDFLAGS"
  6073. fi
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
  6075. $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
  6076. if test "${ac_cv_lib_pam_pam_authenticate+set}" = set; then :
  6077. $as_echo_n "(cached) " >&6
  6078. else
  6079. ac_check_lib_save_LIBS=$LIBS
  6080. LIBS="-lpam $LIBS"
  6081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  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 pam_authenticate ();
  6090. int
  6091. main ()
  6092. {
  6093. return pam_authenticate ();
  6094. ;
  6095. return 0;
  6096. }
  6097. _ACEOF
  6098. if ac_fn_c_try_link "$LINENO"; then :
  6099. ac_cv_lib_pam_pam_authenticate=yes
  6100. else
  6101. ac_cv_lib_pam_pam_authenticate=no
  6102. fi
  6103. rm -f core conftest.err conftest.$ac_objext \
  6104. conftest$ac_exeext conftest.$ac_ext
  6105. LIBS=$ac_check_lib_save_LIBS
  6106. fi
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
  6108. $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
  6109. if test "x$ac_cv_lib_pam_pam_authenticate" = x""yes; then :
  6110. cat >>confdefs.h <<_ACEOF
  6111. #define HAVE_LIBPAM 1
  6112. _ACEOF
  6113. LIBS="-lpam $LIBS"
  6114. fi
  6115. for ac_func in pam_authenticate
  6116. do :
  6117. ac_fn_c_check_func "$LINENO" "pam_authenticate" "ac_cv_func_pam_authenticate"
  6118. if test "x$ac_cv_func_pam_authenticate" = x""yes; then :
  6119. cat >>confdefs.h <<_ACEOF
  6120. #define HAVE_PAM_AUTHENTICATE 1
  6121. _ACEOF
  6122. x_pam_on=yes
  6123. else
  6124. as_fn_error $? "Can't enable PAM support!" "$LINENO" 5
  6125. fi
  6126. done
  6127. fi
  6128. fi
  6129. if test "$x_pam_on" = "yes"; then
  6130. $as_echo "#define PAM 1" >>confdefs.h
  6131. for ac_header in security/pam_appl.h
  6132. do :
  6133. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  6134. if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
  6135. cat >>confdefs.h <<_ACEOF
  6136. #define HAVE_SECURITY_PAM_APPL_H 1
  6137. _ACEOF
  6138. pam_ok=yes
  6139. fi
  6140. done
  6141. if test "$pam_ok" != "yes"; then
  6142. for ac_header in pam/pam_appl.h
  6143. do :
  6144. ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
  6145. if test "x$ac_cv_header_pam_pam_appl_h" = x""yes; then :
  6146. cat >>confdefs.h <<_ACEOF
  6147. #define HAVE_PAM_PAM_APPL_H 1
  6148. _ACEOF
  6149. pam_ok=yes
  6150. else
  6151. as_fn_error $? "required C header missing!" "$LINENO" 5
  6152. fi
  6153. done
  6154. fi
  6155. fi
  6156. # compile in IRC+ protocol support?
  6157. x_ircplus_on=yes
  6158. # Check whether --enable-ircplus was given.
  6159. if test "${enable_ircplus+set}" = set; then :
  6160. enableval=$enable_ircplus; if test "$enableval" = "no"; then x_ircplus_on=no; fi
  6161. fi
  6162. if test "$x_ircplus_on" = "yes"; then
  6163. $as_echo "#define IRCPLUS 1" >>confdefs.h
  6164. # Compile in iconv support?
  6165. # We only check for it when IRC+ is enabled, because the IRC+ command
  6166. # CHARCONV is the only function depending on it.
  6167. x_iconv_on=no
  6168. # Check whether --with-iconv was given.
  6169. if test "${with_iconv+set}" = set; then :
  6170. withval=$with_iconv; if test "$withval" != "no"; then
  6171. if test "$withval" != "yes"; then
  6172. CFLAGS="-I$withval/include $CFLAGS"
  6173. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6174. LDFLAGS="-L$withval/lib $LDFLAGS"
  6175. fi
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  6177. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  6178. if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then :
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. ac_check_lib_save_LIBS=$LIBS
  6182. LIBS="-liconv $LIBS"
  6183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6184. /* end confdefs.h. */
  6185. /* Override any GCC internal prototype to avoid an error.
  6186. Use char because int might match the return type of a GCC
  6187. builtin and then its argument prototype would still apply. */
  6188. #ifdef __cplusplus
  6189. extern "C"
  6190. #endif
  6191. char iconv_open ();
  6192. int
  6193. main ()
  6194. {
  6195. return iconv_open ();
  6196. ;
  6197. return 0;
  6198. }
  6199. _ACEOF
  6200. if ac_fn_c_try_link "$LINENO"; then :
  6201. ac_cv_lib_iconv_iconv_open=yes
  6202. else
  6203. ac_cv_lib_iconv_iconv_open=no
  6204. fi
  6205. rm -f core conftest.err conftest.$ac_objext \
  6206. conftest$ac_exeext conftest.$ac_ext
  6207. LIBS=$ac_check_lib_save_LIBS
  6208. fi
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  6210. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  6211. if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then :
  6212. cat >>confdefs.h <<_ACEOF
  6213. #define HAVE_LIBICONV 1
  6214. _ACEOF
  6215. LIBS="-liconv $LIBS"
  6216. fi
  6217. for ac_func in iconv_open
  6218. do :
  6219. ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
  6220. if test "x$ac_cv_func_iconv_open" = x""yes; then :
  6221. cat >>confdefs.h <<_ACEOF
  6222. #define HAVE_ICONV_OPEN 1
  6223. _ACEOF
  6224. x_iconv_on=yes
  6225. else
  6226. as_fn_error $? "Can't enable libiconv support!" "$LINENO" 5
  6227. fi
  6228. done
  6229. fi
  6230. fi
  6231. if test "$x_iconv_on" = "yes"; then
  6232. $as_echo "#define ICONV 1" >>confdefs.h
  6233. fi
  6234. fi
  6235. # enable support for IPv6?
  6236. x_ipv6_on=no
  6237. # Check whether --enable-ipv6 was given.
  6238. if test "${enable_ipv6+set}" = set; then :
  6239. enableval=$enable_ipv6; if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
  6240. fi
  6241. if test "$x_ipv6_on" = "yes"; then
  6242. # getaddrinfo() and getnameinfo() are optional when not compiling
  6243. # with IPv6 support, but are required for IPv6 to work!
  6244. for ac_func in \
  6245. getaddrinfo getnameinfo \
  6246. do :
  6247. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6248. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6249. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6250. cat >>confdefs.h <<_ACEOF
  6251. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6252. _ACEOF
  6253. else
  6254. as_fn_error $? "required function missing for IPv6 support!" "$LINENO" 5
  6255. fi
  6256. done
  6257. $as_echo "#define WANT_IPV6 1" >>confdefs.h
  6258. fi
  6259. # compile in IRC "sniffer"?
  6260. x_sniffer_on=no; x_debug_on=no
  6261. # Check whether --enable-sniffer was given.
  6262. if test "${enable_sniffer+set}" = set; then :
  6263. enableval=$enable_sniffer; if test "$enableval" = "yes"; then
  6264. $as_echo "#define SNIFFER 1" >>confdefs.h
  6265. x_sniffer_on=yes; x_debug_on=yes
  6266. fi
  6267. fi
  6268. # enable additional debugging code?
  6269. # Check whether --enable-debug was given.
  6270. if test "${enable_debug+set}" = set; then :
  6271. enableval=$enable_debug; if test "$enableval" = "yes"; then x_debug_on=yes; fi
  6272. fi
  6273. if test "$x_debug_on" = "yes"; then
  6274. $as_echo "#define DEBUG 1" >>confdefs.h
  6275. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  6276. for ac_func in mtrace
  6277. do :
  6278. ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace"
  6279. if test "x$ac_cv_func_mtrace" = x""yes; then :
  6280. cat >>confdefs.h <<_ACEOF
  6281. #define HAVE_MTRACE 1
  6282. _ACEOF
  6283. fi
  6284. done
  6285. fi
  6286. # enable "strict RFC rules"?
  6287. x_strict_rfc_on=no
  6288. # Check whether --enable-strict-rfc was given.
  6289. if test "${enable_strict_rfc+set}" = set; then :
  6290. enableval=$enable_strict_rfc; if test "$enableval" = "yes"; then
  6291. $as_echo "#define STRICT_RFC 1" >>confdefs.h
  6292. x_strict_rfc_on=yes
  6293. fi
  6294. fi
  6295. # -- Definitions --
  6296. cat >>confdefs.h <<_ACEOF
  6297. #define HOST_CPU "$host_cpu"
  6298. _ACEOF
  6299. cat >>confdefs.h <<_ACEOF
  6300. #define HOST_VENDOR "$host_vendor"
  6301. _ACEOF
  6302. cat >>confdefs.h <<_ACEOF
  6303. #define HOST_OS "$host_os"
  6304. _ACEOF
  6305. # Add additional CFLAGS, eventually specified on the command line, but after
  6306. # running this configure script. Useful for "-Werror" for example.
  6307. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  6308. # -- Generate files --
  6309. ac_config_files="$ac_config_files Makefile contrib/Debian/Makefile contrib/MacOSX/Makefile contrib/MacOSX/ngIRCd.pmdoc/Makefile contrib/MacOSX/ngIRCd.xcodeproj/Makefile contrib/Makefile doc/Makefile doc/src/Makefile man/Makefile src/ipaddr/Makefile src/Makefile src/ngircd/Makefile src/portab/Makefile src/testsuite/Makefile src/tool/Makefile"
  6310. cat >confcache <<\_ACEOF
  6311. # This file is a shell script that caches the results of configure
  6312. # tests run on this system so they can be shared between configure
  6313. # scripts and configure runs, see configure's option --config-cache.
  6314. # It is not useful on other systems. If it contains results you don't
  6315. # want to keep, you may remove or edit it.
  6316. #
  6317. # config.status only pays attention to the cache file if you give it
  6318. # the --recheck option to rerun configure.
  6319. #
  6320. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6321. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6322. # following values.
  6323. _ACEOF
  6324. # The following way of writing the cache mishandles newlines in values,
  6325. # but we know of no workaround that is simple, portable, and efficient.
  6326. # So, we kill variables containing newlines.
  6327. # Ultrix sh set writes to stderr and can't be redirected directly,
  6328. # and sets the high bit in the cache file unless we assign to the vars.
  6329. (
  6330. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6331. eval ac_val=\$$ac_var
  6332. case $ac_val in #(
  6333. *${as_nl}*)
  6334. case $ac_var in #(
  6335. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6336. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6337. esac
  6338. case $ac_var in #(
  6339. _ | IFS | as_nl) ;; #(
  6340. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6341. *) { eval $ac_var=; unset $ac_var;} ;;
  6342. esac ;;
  6343. esac
  6344. done
  6345. (set) 2>&1 |
  6346. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6347. *${as_nl}ac_space=\ *)
  6348. # `set' does not quote correctly, so add quotes: double-quote
  6349. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6350. sed -n \
  6351. "s/'/'\\\\''/g;
  6352. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6353. ;; #(
  6354. *)
  6355. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6356. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6357. ;;
  6358. esac |
  6359. sort
  6360. ) |
  6361. sed '
  6362. /^ac_cv_env_/b end
  6363. t clear
  6364. :clear
  6365. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6366. t end
  6367. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6368. :end' >>confcache
  6369. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6370. if test -w "$cache_file"; then
  6371. test "x$cache_file" != "x/dev/null" &&
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6373. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6374. cat confcache >$cache_file
  6375. else
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6377. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6378. fi
  6379. fi
  6380. rm -f confcache
  6381. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6382. # Let make expand exec_prefix.
  6383. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6384. DEFS=-DHAVE_CONFIG_H
  6385. ac_libobjs=
  6386. ac_ltlibobjs=
  6387. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6388. # 1. Remove the extension, and $U if already installed.
  6389. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6390. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6391. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6392. # will be set to the directory where LIBOBJS objects are built.
  6393. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6394. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6395. done
  6396. LIBOBJS=$ac_libobjs
  6397. LTLIBOBJS=$ac_ltlibobjs
  6398. if test -n "$EXEEXT"; then
  6399. am__EXEEXT_TRUE=
  6400. am__EXEEXT_FALSE='#'
  6401. else
  6402. am__EXEEXT_TRUE='#'
  6403. am__EXEEXT_FALSE=
  6404. fi
  6405. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  6406. as_fn_error $? "conditional \"AMDEP\" was never defined.
  6407. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6408. fi
  6409. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  6410. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  6411. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6412. fi
  6413. : ${CONFIG_STATUS=./config.status}
  6414. ac_write_fail=0
  6415. ac_clean_files_save=$ac_clean_files
  6416. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6418. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6419. as_write_fail=0
  6420. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6421. #! $SHELL
  6422. # Generated by $as_me.
  6423. # Run this file to recreate the current configuration.
  6424. # Compiler output produced by configure, useful for debugging
  6425. # configure, is in config.log if it exists.
  6426. debug=false
  6427. ac_cs_recheck=false
  6428. ac_cs_silent=false
  6429. SHELL=\${CONFIG_SHELL-$SHELL}
  6430. export SHELL
  6431. _ASEOF
  6432. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6433. ## -------------------- ##
  6434. ## M4sh Initialization. ##
  6435. ## -------------------- ##
  6436. # Be more Bourne compatible
  6437. DUALCASE=1; export DUALCASE # for MKS sh
  6438. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6439. emulate sh
  6440. NULLCMD=:
  6441. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6442. # is contrary to our usage. Disable this feature.
  6443. alias -g '${1+"$@"}'='"$@"'
  6444. setopt NO_GLOB_SUBST
  6445. else
  6446. case `(set -o) 2>/dev/null` in #(
  6447. *posix*) :
  6448. set -o posix ;; #(
  6449. *) :
  6450. ;;
  6451. esac
  6452. fi
  6453. as_nl='
  6454. '
  6455. export as_nl
  6456. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6457. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6458. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6459. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6460. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6461. # but without wasting forks for bash or zsh.
  6462. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6463. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6464. as_echo='print -r --'
  6465. as_echo_n='print -rn --'
  6466. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6467. as_echo='printf %s\n'
  6468. as_echo_n='printf %s'
  6469. else
  6470. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6471. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6472. as_echo_n='/usr/ucb/echo -n'
  6473. else
  6474. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6475. as_echo_n_body='eval
  6476. arg=$1;
  6477. case $arg in #(
  6478. *"$as_nl"*)
  6479. expr "X$arg" : "X\\(.*\\)$as_nl";
  6480. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6481. esac;
  6482. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6483. '
  6484. export as_echo_n_body
  6485. as_echo_n='sh -c $as_echo_n_body as_echo'
  6486. fi
  6487. export as_echo_body
  6488. as_echo='sh -c $as_echo_body as_echo'
  6489. fi
  6490. # The user is always right.
  6491. if test "${PATH_SEPARATOR+set}" != set; then
  6492. PATH_SEPARATOR=:
  6493. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6494. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6495. PATH_SEPARATOR=';'
  6496. }
  6497. fi
  6498. # IFS
  6499. # We need space, tab and new line, in precisely that order. Quoting is
  6500. # there to prevent editors from complaining about space-tab.
  6501. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6502. # splitting by setting IFS to empty value.)
  6503. IFS=" "" $as_nl"
  6504. # Find who we are. Look in the path if we contain no directory separator.
  6505. case $0 in #((
  6506. *[\\/]* ) as_myself=$0 ;;
  6507. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6508. for as_dir in $PATH
  6509. do
  6510. IFS=$as_save_IFS
  6511. test -z "$as_dir" && as_dir=.
  6512. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6513. done
  6514. IFS=$as_save_IFS
  6515. ;;
  6516. esac
  6517. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6518. # in which case we are not to be found in the path.
  6519. if test "x$as_myself" = x; then
  6520. as_myself=$0
  6521. fi
  6522. if test ! -f "$as_myself"; then
  6523. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6524. exit 1
  6525. fi
  6526. # Unset variables that we do not need and which cause bugs (e.g. in
  6527. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6528. # suppresses any "Segmentation fault" message there. '((' could
  6529. # trigger a bug in pdksh 5.2.14.
  6530. for as_var in BASH_ENV ENV MAIL MAILPATH
  6531. do eval test x\${$as_var+set} = xset \
  6532. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6533. done
  6534. PS1='$ '
  6535. PS2='> '
  6536. PS4='+ '
  6537. # NLS nuisances.
  6538. LC_ALL=C
  6539. export LC_ALL
  6540. LANGUAGE=C
  6541. export LANGUAGE
  6542. # CDPATH.
  6543. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6544. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6545. # ----------------------------------------
  6546. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6547. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6548. # script with STATUS, using 1 if that was 0.
  6549. as_fn_error ()
  6550. {
  6551. as_status=$1; test $as_status -eq 0 && as_status=1
  6552. if test "$4"; then
  6553. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6554. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6555. fi
  6556. $as_echo "$as_me: error: $2" >&2
  6557. as_fn_exit $as_status
  6558. } # as_fn_error
  6559. # as_fn_set_status STATUS
  6560. # -----------------------
  6561. # Set $? to STATUS, without forking.
  6562. as_fn_set_status ()
  6563. {
  6564. return $1
  6565. } # as_fn_set_status
  6566. # as_fn_exit STATUS
  6567. # -----------------
  6568. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6569. as_fn_exit ()
  6570. {
  6571. set +e
  6572. as_fn_set_status $1
  6573. exit $1
  6574. } # as_fn_exit
  6575. # as_fn_unset VAR
  6576. # ---------------
  6577. # Portably unset VAR.
  6578. as_fn_unset ()
  6579. {
  6580. { eval $1=; unset $1;}
  6581. }
  6582. as_unset=as_fn_unset
  6583. # as_fn_append VAR VALUE
  6584. # ----------------------
  6585. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6586. # advantage of any shell optimizations that allow amortized linear growth over
  6587. # repeated appends, instead of the typical quadratic growth present in naive
  6588. # implementations.
  6589. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6590. eval 'as_fn_append ()
  6591. {
  6592. eval $1+=\$2
  6593. }'
  6594. else
  6595. as_fn_append ()
  6596. {
  6597. eval $1=\$$1\$2
  6598. }
  6599. fi # as_fn_append
  6600. # as_fn_arith ARG...
  6601. # ------------------
  6602. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6603. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6604. # must be portable across $(()) and expr.
  6605. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6606. eval 'as_fn_arith ()
  6607. {
  6608. as_val=$(( $* ))
  6609. }'
  6610. else
  6611. as_fn_arith ()
  6612. {
  6613. as_val=`expr "$@" || test $? -eq 1`
  6614. }
  6615. fi # as_fn_arith
  6616. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6617. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6618. as_expr=expr
  6619. else
  6620. as_expr=false
  6621. fi
  6622. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6623. as_basename=basename
  6624. else
  6625. as_basename=false
  6626. fi
  6627. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6628. as_dirname=dirname
  6629. else
  6630. as_dirname=false
  6631. fi
  6632. as_me=`$as_basename -- "$0" ||
  6633. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6634. X"$0" : 'X\(//\)$' \| \
  6635. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6636. $as_echo X/"$0" |
  6637. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6638. s//\1/
  6639. q
  6640. }
  6641. /^X\/\(\/\/\)$/{
  6642. s//\1/
  6643. q
  6644. }
  6645. /^X\/\(\/\).*/{
  6646. s//\1/
  6647. q
  6648. }
  6649. s/.*/./; q'`
  6650. # Avoid depending upon Character Ranges.
  6651. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6652. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6653. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6654. as_cr_digits='0123456789'
  6655. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6656. ECHO_C= ECHO_N= ECHO_T=
  6657. case `echo -n x` in #(((((
  6658. -n*)
  6659. case `echo 'xy\c'` in
  6660. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6661. xy) ECHO_C='\c';;
  6662. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6663. ECHO_T=' ';;
  6664. esac;;
  6665. *)
  6666. ECHO_N='-n';;
  6667. esac
  6668. rm -f conf$$ conf$$.exe conf$$.file
  6669. if test -d conf$$.dir; then
  6670. rm -f conf$$.dir/conf$$.file
  6671. else
  6672. rm -f conf$$.dir
  6673. mkdir conf$$.dir 2>/dev/null
  6674. fi
  6675. if (echo >conf$$.file) 2>/dev/null; then
  6676. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6677. as_ln_s='ln -s'
  6678. # ... but there are two gotchas:
  6679. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6680. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6681. # In both cases, we have to default to `cp -p'.
  6682. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6683. as_ln_s='cp -p'
  6684. elif ln conf$$.file conf$$ 2>/dev/null; then
  6685. as_ln_s=ln
  6686. else
  6687. as_ln_s='cp -p'
  6688. fi
  6689. else
  6690. as_ln_s='cp -p'
  6691. fi
  6692. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6693. rmdir conf$$.dir 2>/dev/null
  6694. # as_fn_mkdir_p
  6695. # -------------
  6696. # Create "$as_dir" as a directory, including parents if necessary.
  6697. as_fn_mkdir_p ()
  6698. {
  6699. case $as_dir in #(
  6700. -*) as_dir=./$as_dir;;
  6701. esac
  6702. test -d "$as_dir" || eval $as_mkdir_p || {
  6703. as_dirs=
  6704. while :; do
  6705. case $as_dir in #(
  6706. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6707. *) as_qdir=$as_dir;;
  6708. esac
  6709. as_dirs="'$as_qdir' $as_dirs"
  6710. as_dir=`$as_dirname -- "$as_dir" ||
  6711. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6712. X"$as_dir" : 'X\(//\)[^/]' \| \
  6713. X"$as_dir" : 'X\(//\)$' \| \
  6714. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6715. $as_echo X"$as_dir" |
  6716. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6717. s//\1/
  6718. q
  6719. }
  6720. /^X\(\/\/\)[^/].*/{
  6721. s//\1/
  6722. q
  6723. }
  6724. /^X\(\/\/\)$/{
  6725. s//\1/
  6726. q
  6727. }
  6728. /^X\(\/\).*/{
  6729. s//\1/
  6730. q
  6731. }
  6732. s/.*/./; q'`
  6733. test -d "$as_dir" && break
  6734. done
  6735. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6736. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6737. } # as_fn_mkdir_p
  6738. if mkdir -p . 2>/dev/null; then
  6739. as_mkdir_p='mkdir -p "$as_dir"'
  6740. else
  6741. test -d ./-p && rmdir ./-p
  6742. as_mkdir_p=false
  6743. fi
  6744. if test -x / >/dev/null 2>&1; then
  6745. as_test_x='test -x'
  6746. else
  6747. if ls -dL / >/dev/null 2>&1; then
  6748. as_ls_L_option=L
  6749. else
  6750. as_ls_L_option=
  6751. fi
  6752. as_test_x='
  6753. eval sh -c '\''
  6754. if test -d "$1"; then
  6755. test -d "$1/.";
  6756. else
  6757. case $1 in #(
  6758. -*)set "./$1";;
  6759. esac;
  6760. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6761. ???[sx]*):;;*)false;;esac;fi
  6762. '\'' sh
  6763. '
  6764. fi
  6765. as_executable_p=$as_test_x
  6766. # Sed expression to map a string onto a valid CPP name.
  6767. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6768. # Sed expression to map a string onto a valid variable name.
  6769. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6770. exec 6>&1
  6771. ## ----------------------------------- ##
  6772. ## Main body of $CONFIG_STATUS script. ##
  6773. ## ----------------------------------- ##
  6774. _ASEOF
  6775. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6776. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6777. # Save the log message, to keep $0 and so on meaningful, and to
  6778. # report actual input values of CONFIG_FILES etc. instead of their
  6779. # values after options handling.
  6780. ac_log="
  6781. This file was extended by ngIRCd $as_me 20.3, which was
  6782. generated by GNU Autoconf 2.67. Invocation command line was
  6783. CONFIG_FILES = $CONFIG_FILES
  6784. CONFIG_HEADERS = $CONFIG_HEADERS
  6785. CONFIG_LINKS = $CONFIG_LINKS
  6786. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6787. $ $0 $@
  6788. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6789. "
  6790. _ACEOF
  6791. case $ac_config_files in *"
  6792. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6793. esac
  6794. case $ac_config_headers in *"
  6795. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6796. esac
  6797. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6798. # Files that config.status was made for.
  6799. config_files="$ac_config_files"
  6800. config_headers="$ac_config_headers"
  6801. config_commands="$ac_config_commands"
  6802. _ACEOF
  6803. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6804. ac_cs_usage="\
  6805. \`$as_me' instantiates files and other configuration actions
  6806. from templates according to the current configuration. Unless the files
  6807. and actions are specified as TAGs, all are instantiated by default.
  6808. Usage: $0 [OPTION]... [TAG]...
  6809. -h, --help print this help, then exit
  6810. -V, --version print version number and configuration settings, then exit
  6811. --config print configuration, then exit
  6812. -q, --quiet, --silent
  6813. do not print progress messages
  6814. -d, --debug don't remove temporary files
  6815. --recheck update $as_me by reconfiguring in the same conditions
  6816. --file=FILE[:TEMPLATE]
  6817. instantiate the configuration file FILE
  6818. --header=FILE[:TEMPLATE]
  6819. instantiate the configuration header FILE
  6820. Configuration files:
  6821. $config_files
  6822. Configuration headers:
  6823. $config_headers
  6824. Configuration commands:
  6825. $config_commands
  6826. Report bugs to <ngircd-ml@ngircd.barton.de>.
  6827. ngIRCd home page: <http://ngircd.barton.de/>."
  6828. _ACEOF
  6829. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6830. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6831. ac_cs_version="\\
  6832. ngIRCd config.status 20.3
  6833. configured by $0, generated by GNU Autoconf 2.67,
  6834. with options \\"\$ac_cs_config\\"
  6835. Copyright (C) 2010 Free Software Foundation, Inc.
  6836. This config.status script is free software; the Free Software Foundation
  6837. gives unlimited permission to copy, distribute and modify it."
  6838. ac_pwd='$ac_pwd'
  6839. srcdir='$srcdir'
  6840. INSTALL='$INSTALL'
  6841. MKDIR_P='$MKDIR_P'
  6842. AWK='$AWK'
  6843. test -n "\$AWK" || AWK=awk
  6844. _ACEOF
  6845. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6846. # The default lists apply if the user does not specify any file.
  6847. ac_need_defaults=:
  6848. while test $# != 0
  6849. do
  6850. case $1 in
  6851. --*=?*)
  6852. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6853. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6854. ac_shift=:
  6855. ;;
  6856. --*=)
  6857. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6858. ac_optarg=
  6859. ac_shift=:
  6860. ;;
  6861. *)
  6862. ac_option=$1
  6863. ac_optarg=$2
  6864. ac_shift=shift
  6865. ;;
  6866. esac
  6867. case $ac_option in
  6868. # Handling of the options.
  6869. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6870. ac_cs_recheck=: ;;
  6871. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6872. $as_echo "$ac_cs_version"; exit ;;
  6873. --config | --confi | --conf | --con | --co | --c )
  6874. $as_echo "$ac_cs_config"; exit ;;
  6875. --debug | --debu | --deb | --de | --d | -d )
  6876. debug=: ;;
  6877. --file | --fil | --fi | --f )
  6878. $ac_shift
  6879. case $ac_optarg in
  6880. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6881. '') as_fn_error $? "missing file argument" ;;
  6882. esac
  6883. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6884. ac_need_defaults=false;;
  6885. --header | --heade | --head | --hea )
  6886. $ac_shift
  6887. case $ac_optarg in
  6888. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6889. esac
  6890. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6891. ac_need_defaults=false;;
  6892. --he | --h)
  6893. # Conflict between --help and --header
  6894. as_fn_error $? "ambiguous option: \`$1'
  6895. Try \`$0 --help' for more information.";;
  6896. --help | --hel | -h )
  6897. $as_echo "$ac_cs_usage"; exit ;;
  6898. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6899. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6900. ac_cs_silent=: ;;
  6901. # This is an error.
  6902. -*) as_fn_error $? "unrecognized option: \`$1'
  6903. Try \`$0 --help' for more information." ;;
  6904. *) as_fn_append ac_config_targets " $1"
  6905. ac_need_defaults=false ;;
  6906. esac
  6907. shift
  6908. done
  6909. ac_configure_extra_args=
  6910. if $ac_cs_silent; then
  6911. exec 6>/dev/null
  6912. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6913. fi
  6914. _ACEOF
  6915. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6916. if \$ac_cs_recheck; then
  6917. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6918. shift
  6919. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6920. CONFIG_SHELL='$SHELL'
  6921. export CONFIG_SHELL
  6922. exec "\$@"
  6923. fi
  6924. _ACEOF
  6925. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6926. exec 5>>config.log
  6927. {
  6928. echo
  6929. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6930. ## Running $as_me. ##
  6931. _ASBOX
  6932. $as_echo "$ac_log"
  6933. } >&5
  6934. _ACEOF
  6935. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6936. #
  6937. # INIT-COMMANDS
  6938. #
  6939. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  6940. _ACEOF
  6941. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6942. # Handling of arguments.
  6943. for ac_config_target in $ac_config_targets
  6944. do
  6945. case $ac_config_target in
  6946. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  6947. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  6948. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6949. "contrib/Debian/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  6950. "contrib/MacOSX/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  6951. "contrib/MacOSX/ngIRCd.pmdoc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.pmdoc/Makefile" ;;
  6952. "contrib/MacOSX/ngIRCd.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.xcodeproj/Makefile" ;;
  6953. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  6954. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  6955. "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  6956. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  6957. "src/ipaddr/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipaddr/Makefile" ;;
  6958. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  6959. "src/ngircd/Makefile") CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  6960. "src/portab/Makefile") CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  6961. "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  6962. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  6963. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  6964. esac
  6965. done
  6966. # If the user did not use the arguments to specify the items to instantiate,
  6967. # then the envvar interface is used. Set only those that are not.
  6968. # We use the long form for the default assignment because of an extremely
  6969. # bizarre bug on SunOS 4.1.3.
  6970. if $ac_need_defaults; then
  6971. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6972. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6973. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6974. fi
  6975. # Have a temporary directory for convenience. Make it in the build tree
  6976. # simply because there is no reason against having it here, and in addition,
  6977. # creating and moving files from /tmp can sometimes cause problems.
  6978. # Hook for its removal unless debugging.
  6979. # Note that there is a small window in which the directory will not be cleaned:
  6980. # after its creation but before its name has been assigned to `$tmp'.
  6981. $debug ||
  6982. {
  6983. tmp=
  6984. trap 'exit_status=$?
  6985. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6986. ' 0
  6987. trap 'as_fn_exit 1' 1 2 13 15
  6988. }
  6989. # Create a (secure) tmp directory for tmp files.
  6990. {
  6991. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6992. test -n "$tmp" && test -d "$tmp"
  6993. } ||
  6994. {
  6995. tmp=./conf$$-$RANDOM
  6996. (umask 077 && mkdir "$tmp")
  6997. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6998. # Set up the scripts for CONFIG_FILES section.
  6999. # No need to generate them if there are no CONFIG_FILES.
  7000. # This happens for instance with `./config.status config.h'.
  7001. if test -n "$CONFIG_FILES"; then
  7002. ac_cr=`echo X | tr X '\015'`
  7003. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7004. # But we know of no other shell where ac_cr would be empty at this
  7005. # point, so we can use a bashism as a fallback.
  7006. if test "x$ac_cr" = x; then
  7007. eval ac_cr=\$\'\\r\'
  7008. fi
  7009. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7010. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7011. ac_cs_awk_cr='\\r'
  7012. else
  7013. ac_cs_awk_cr=$ac_cr
  7014. fi
  7015. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7016. _ACEOF
  7017. {
  7018. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7019. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7020. echo "_ACEOF"
  7021. } >conf$$subs.sh ||
  7022. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7023. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7024. ac_delim='%!_!# '
  7025. for ac_last_try in false false false false false :; do
  7026. . ./conf$$subs.sh ||
  7027. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7028. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7029. if test $ac_delim_n = $ac_delim_num; then
  7030. break
  7031. elif $ac_last_try; then
  7032. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7033. else
  7034. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7035. fi
  7036. done
  7037. rm -f conf$$subs.sh
  7038. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7039. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7040. _ACEOF
  7041. sed -n '
  7042. h
  7043. s/^/S["/; s/!.*/"]=/
  7044. p
  7045. g
  7046. s/^[^!]*!//
  7047. :repl
  7048. t repl
  7049. s/'"$ac_delim"'$//
  7050. t delim
  7051. :nl
  7052. h
  7053. s/\(.\{148\}\)..*/\1/
  7054. t more1
  7055. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7056. p
  7057. n
  7058. b repl
  7059. :more1
  7060. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7061. p
  7062. g
  7063. s/.\{148\}//
  7064. t nl
  7065. :delim
  7066. h
  7067. s/\(.\{148\}\)..*/\1/
  7068. t more2
  7069. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7070. p
  7071. b
  7072. :more2
  7073. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7074. p
  7075. g
  7076. s/.\{148\}//
  7077. t delim
  7078. ' <conf$$subs.awk | sed '
  7079. /^[^""]/{
  7080. N
  7081. s/\n//
  7082. }
  7083. ' >>$CONFIG_STATUS || ac_write_fail=1
  7084. rm -f conf$$subs.awk
  7085. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7086. _ACAWK
  7087. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7088. for (key in S) S_is_set[key] = 1
  7089. FS = ""
  7090. }
  7091. {
  7092. line = $ 0
  7093. nfields = split(line, field, "@")
  7094. substed = 0
  7095. len = length(field[1])
  7096. for (i = 2; i < nfields; i++) {
  7097. key = field[i]
  7098. keylen = length(key)
  7099. if (S_is_set[key]) {
  7100. value = S[key]
  7101. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7102. len += length(value) + length(field[++i])
  7103. substed = 1
  7104. } else
  7105. len += 1 + keylen
  7106. }
  7107. print line
  7108. }
  7109. _ACAWK
  7110. _ACEOF
  7111. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7112. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7113. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7114. else
  7115. cat
  7116. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7117. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7118. _ACEOF
  7119. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7120. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7121. # trailing colons and then remove the whole line if VPATH becomes empty
  7122. # (actually we leave an empty line to preserve line numbers).
  7123. if test "x$srcdir" = x.; then
  7124. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7125. h
  7126. s///
  7127. s/^/:/
  7128. s/[ ]*$/:/
  7129. s/:\$(srcdir):/:/g
  7130. s/:\${srcdir}:/:/g
  7131. s/:@srcdir@:/:/g
  7132. s/^:*//
  7133. s/:*$//
  7134. x
  7135. s/\(=[ ]*\).*/\1/
  7136. G
  7137. s/\n//
  7138. s/^[^=]*=[ ]*$//
  7139. }'
  7140. fi
  7141. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7142. fi # test -n "$CONFIG_FILES"
  7143. # Set up the scripts for CONFIG_HEADERS section.
  7144. # No need to generate them if there are no CONFIG_HEADERS.
  7145. # This happens for instance with `./config.status Makefile'.
  7146. if test -n "$CONFIG_HEADERS"; then
  7147. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7148. BEGIN {
  7149. _ACEOF
  7150. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7151. # here-document in config.status, that substitutes the proper values into
  7152. # config.h.in to produce config.h.
  7153. # Create a delimiter string that does not exist in confdefs.h, to ease
  7154. # handling of long lines.
  7155. ac_delim='%!_!# '
  7156. for ac_last_try in false false :; do
  7157. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7158. if test -z "$ac_t"; then
  7159. break
  7160. elif $ac_last_try; then
  7161. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7162. else
  7163. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7164. fi
  7165. done
  7166. # For the awk script, D is an array of macro values keyed by name,
  7167. # likewise P contains macro parameters if any. Preserve backslash
  7168. # newline sequences.
  7169. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7170. sed -n '
  7171. s/.\{148\}/&'"$ac_delim"'/g
  7172. t rset
  7173. :rset
  7174. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7175. t def
  7176. d
  7177. :def
  7178. s/\\$//
  7179. t bsnl
  7180. s/["\\]/\\&/g
  7181. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7182. D["\1"]=" \3"/p
  7183. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7184. d
  7185. :bsnl
  7186. s/["\\]/\\&/g
  7187. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7188. D["\1"]=" \3\\\\\\n"\\/p
  7189. t cont
  7190. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7191. t cont
  7192. d
  7193. :cont
  7194. n
  7195. s/.\{148\}/&'"$ac_delim"'/g
  7196. t clear
  7197. :clear
  7198. s/\\$//
  7199. t bsnlc
  7200. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7201. d
  7202. :bsnlc
  7203. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7204. b cont
  7205. ' <confdefs.h | sed '
  7206. s/'"$ac_delim"'/"\\\
  7207. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7208. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7209. for (key in D) D_is_set[key] = 1
  7210. FS = ""
  7211. }
  7212. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7213. line = \$ 0
  7214. split(line, arg, " ")
  7215. if (arg[1] == "#") {
  7216. defundef = arg[2]
  7217. mac1 = arg[3]
  7218. } else {
  7219. defundef = substr(arg[1], 2)
  7220. mac1 = arg[2]
  7221. }
  7222. split(mac1, mac2, "(") #)
  7223. macro = mac2[1]
  7224. prefix = substr(line, 1, index(line, defundef) - 1)
  7225. if (D_is_set[macro]) {
  7226. # Preserve the white space surrounding the "#".
  7227. print prefix "define", macro P[macro] D[macro]
  7228. next
  7229. } else {
  7230. # Replace #undef with comments. This is necessary, for example,
  7231. # in the case of _POSIX_SOURCE, which is predefined and required
  7232. # on some systems where configure will not decide to define it.
  7233. if (defundef == "undef") {
  7234. print "/*", prefix defundef, macro, "*/"
  7235. next
  7236. }
  7237. }
  7238. }
  7239. { print }
  7240. _ACAWK
  7241. _ACEOF
  7242. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7243. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7244. fi # test -n "$CONFIG_HEADERS"
  7245. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7246. shift
  7247. for ac_tag
  7248. do
  7249. case $ac_tag in
  7250. :[FHLC]) ac_mode=$ac_tag; continue;;
  7251. esac
  7252. case $ac_mode$ac_tag in
  7253. :[FHL]*:*);;
  7254. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  7255. :[FH]-) ac_tag=-:-;;
  7256. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7257. esac
  7258. ac_save_IFS=$IFS
  7259. IFS=:
  7260. set x $ac_tag
  7261. IFS=$ac_save_IFS
  7262. shift
  7263. ac_file=$1
  7264. shift
  7265. case $ac_mode in
  7266. :L) ac_source=$1;;
  7267. :[FH])
  7268. ac_file_inputs=
  7269. for ac_f
  7270. do
  7271. case $ac_f in
  7272. -) ac_f="$tmp/stdin";;
  7273. *) # Look for the file first in the build tree, then in the source tree
  7274. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7275. # because $ac_f cannot contain `:'.
  7276. test -f "$ac_f" ||
  7277. case $ac_f in
  7278. [\\/$]*) false;;
  7279. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7280. esac ||
  7281. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  7282. esac
  7283. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7284. as_fn_append ac_file_inputs " '$ac_f'"
  7285. done
  7286. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7287. # use $as_me), people would be surprised to read:
  7288. # /* config.h. Generated by config.status. */
  7289. configure_input='Generated from '`
  7290. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7291. `' by configure.'
  7292. if test x"$ac_file" != x-; then
  7293. configure_input="$ac_file. $configure_input"
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7295. $as_echo "$as_me: creating $ac_file" >&6;}
  7296. fi
  7297. # Neutralize special characters interpreted by sed in replacement strings.
  7298. case $configure_input in #(
  7299. *\&* | *\|* | *\\* )
  7300. ac_sed_conf_input=`$as_echo "$configure_input" |
  7301. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7302. *) ac_sed_conf_input=$configure_input;;
  7303. esac
  7304. case $ac_tag in
  7305. *:-:* | *:-) cat >"$tmp/stdin" \
  7306. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7307. esac
  7308. ;;
  7309. esac
  7310. ac_dir=`$as_dirname -- "$ac_file" ||
  7311. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7312. X"$ac_file" : 'X\(//\)[^/]' \| \
  7313. X"$ac_file" : 'X\(//\)$' \| \
  7314. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7315. $as_echo X"$ac_file" |
  7316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7317. s//\1/
  7318. q
  7319. }
  7320. /^X\(\/\/\)[^/].*/{
  7321. s//\1/
  7322. q
  7323. }
  7324. /^X\(\/\/\)$/{
  7325. s//\1/
  7326. q
  7327. }
  7328. /^X\(\/\).*/{
  7329. s//\1/
  7330. q
  7331. }
  7332. s/.*/./; q'`
  7333. as_dir="$ac_dir"; as_fn_mkdir_p
  7334. ac_builddir=.
  7335. case "$ac_dir" in
  7336. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7337. *)
  7338. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7339. # A ".." for each directory in $ac_dir_suffix.
  7340. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7341. case $ac_top_builddir_sub in
  7342. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7343. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7344. esac ;;
  7345. esac
  7346. ac_abs_top_builddir=$ac_pwd
  7347. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7348. # for backward compatibility:
  7349. ac_top_builddir=$ac_top_build_prefix
  7350. case $srcdir in
  7351. .) # We are building in place.
  7352. ac_srcdir=.
  7353. ac_top_srcdir=$ac_top_builddir_sub
  7354. ac_abs_top_srcdir=$ac_pwd ;;
  7355. [\\/]* | ?:[\\/]* ) # Absolute name.
  7356. ac_srcdir=$srcdir$ac_dir_suffix;
  7357. ac_top_srcdir=$srcdir
  7358. ac_abs_top_srcdir=$srcdir ;;
  7359. *) # Relative name.
  7360. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7361. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7362. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7363. esac
  7364. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7365. case $ac_mode in
  7366. :F)
  7367. #
  7368. # CONFIG_FILE
  7369. #
  7370. case $INSTALL in
  7371. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7372. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7373. esac
  7374. ac_MKDIR_P=$MKDIR_P
  7375. case $MKDIR_P in
  7376. [\\/$]* | ?:[\\/]* ) ;;
  7377. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  7378. esac
  7379. _ACEOF
  7380. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7381. # If the template does not know about datarootdir, expand it.
  7382. # FIXME: This hack should be removed a few years after 2.60.
  7383. ac_datarootdir_hack=; ac_datarootdir_seen=
  7384. ac_sed_dataroot='
  7385. /datarootdir/ {
  7386. p
  7387. q
  7388. }
  7389. /@datadir@/p
  7390. /@docdir@/p
  7391. /@infodir@/p
  7392. /@localedir@/p
  7393. /@mandir@/p'
  7394. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7395. *datarootdir*) ac_datarootdir_seen=yes;;
  7396. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7398. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7399. _ACEOF
  7400. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7401. ac_datarootdir_hack='
  7402. s&@datadir@&$datadir&g
  7403. s&@docdir@&$docdir&g
  7404. s&@infodir@&$infodir&g
  7405. s&@localedir@&$localedir&g
  7406. s&@mandir@&$mandir&g
  7407. s&\\\${datarootdir}&$datarootdir&g' ;;
  7408. esac
  7409. _ACEOF
  7410. # Neutralize VPATH when `$srcdir' = `.'.
  7411. # Shell code in configure.ac might set extrasub.
  7412. # FIXME: do we really want to maintain this feature?
  7413. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7414. ac_sed_extra="$ac_vpsub
  7415. $extrasub
  7416. _ACEOF
  7417. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7418. :t
  7419. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7420. s|@configure_input@|$ac_sed_conf_input|;t t
  7421. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7422. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7423. s&@srcdir@&$ac_srcdir&;t t
  7424. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7425. s&@top_srcdir@&$ac_top_srcdir&;t t
  7426. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7427. s&@builddir@&$ac_builddir&;t t
  7428. s&@abs_builddir@&$ac_abs_builddir&;t t
  7429. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7430. s&@INSTALL@&$ac_INSTALL&;t t
  7431. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  7432. $ac_datarootdir_hack
  7433. "
  7434. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  7435. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7436. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7437. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7438. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7440. which seems to be undefined. Please make sure it is defined" >&5
  7441. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7442. which seems to be undefined. Please make sure it is defined" >&2;}
  7443. rm -f "$tmp/stdin"
  7444. case $ac_file in
  7445. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7446. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7447. esac \
  7448. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7449. ;;
  7450. :H)
  7451. #
  7452. # CONFIG_HEADER
  7453. #
  7454. if test x"$ac_file" != x-; then
  7455. {
  7456. $as_echo "/* $configure_input */" \
  7457. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7458. } >"$tmp/config.h" \
  7459. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7460. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7462. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7463. else
  7464. rm -f "$ac_file"
  7465. mv "$tmp/config.h" "$ac_file" \
  7466. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7467. fi
  7468. else
  7469. $as_echo "/* $configure_input */" \
  7470. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7471. || as_fn_error $? "could not create -" "$LINENO" 5
  7472. fi
  7473. # Compute "$ac_file"'s index in $config_headers.
  7474. _am_arg="$ac_file"
  7475. _am_stamp_count=1
  7476. for _am_header in $config_headers :; do
  7477. case $_am_header in
  7478. $_am_arg | $_am_arg:* )
  7479. break ;;
  7480. * )
  7481. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  7482. esac
  7483. done
  7484. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  7485. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7486. X"$_am_arg" : 'X\(//\)[^/]' \| \
  7487. X"$_am_arg" : 'X\(//\)$' \| \
  7488. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  7489. $as_echo X"$_am_arg" |
  7490. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7491. s//\1/
  7492. q
  7493. }
  7494. /^X\(\/\/\)[^/].*/{
  7495. s//\1/
  7496. q
  7497. }
  7498. /^X\(\/\/\)$/{
  7499. s//\1/
  7500. q
  7501. }
  7502. /^X\(\/\).*/{
  7503. s//\1/
  7504. q
  7505. }
  7506. s/.*/./; q'`/stamp-h$_am_stamp_count
  7507. ;;
  7508. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7509. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7510. ;;
  7511. esac
  7512. case $ac_file$ac_mode in
  7513. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  7514. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  7515. # are listed without --file. Let's play safe and only enable the eval
  7516. # if we detect the quoting.
  7517. case $CONFIG_FILES in
  7518. *\'*) eval set x "$CONFIG_FILES" ;;
  7519. *) set x $CONFIG_FILES ;;
  7520. esac
  7521. shift
  7522. for mf
  7523. do
  7524. # Strip MF so we end up with the name of the file.
  7525. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7526. # Check whether this is an Automake generated Makefile or not.
  7527. # We used to match only the files named `Makefile.in', but
  7528. # some people rename them; so instead we look at the file content.
  7529. # Grep'ing the first line is not enough: some people post-process
  7530. # each Makefile.in and add a new line on top of each file to say so.
  7531. # Grep'ing the whole file is not good either: AIX grep has a line
  7532. # limit of 2048, but all sed's we know have understand at least 4000.
  7533. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  7534. dirpart=`$as_dirname -- "$mf" ||
  7535. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7536. X"$mf" : 'X\(//\)[^/]' \| \
  7537. X"$mf" : 'X\(//\)$' \| \
  7538. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  7539. $as_echo X"$mf" |
  7540. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7541. s//\1/
  7542. q
  7543. }
  7544. /^X\(\/\/\)[^/].*/{
  7545. s//\1/
  7546. q
  7547. }
  7548. /^X\(\/\/\)$/{
  7549. s//\1/
  7550. q
  7551. }
  7552. /^X\(\/\).*/{
  7553. s//\1/
  7554. q
  7555. }
  7556. s/.*/./; q'`
  7557. else
  7558. continue
  7559. fi
  7560. # Extract the definition of DEPDIR, am__include, and am__quote
  7561. # from the Makefile without running `make'.
  7562. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7563. test -z "$DEPDIR" && continue
  7564. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7565. test -z "am__include" && continue
  7566. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7567. # When using ansi2knr, U may be empty or an underscore; expand it
  7568. U=`sed -n 's/^U = //p' < "$mf"`
  7569. # Find all dependency output files, they are included files with
  7570. # $(DEPDIR) in their names. We invoke sed twice because it is the
  7571. # simplest approach to changing $(DEPDIR) to its actual value in the
  7572. # expansion.
  7573. for file in `sed -n "
  7574. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7575. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7576. # Make sure the directory exists.
  7577. test -f "$dirpart/$file" && continue
  7578. fdir=`$as_dirname -- "$file" ||
  7579. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7580. X"$file" : 'X\(//\)[^/]' \| \
  7581. X"$file" : 'X\(//\)$' \| \
  7582. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  7583. $as_echo X"$file" |
  7584. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7585. s//\1/
  7586. q
  7587. }
  7588. /^X\(\/\/\)[^/].*/{
  7589. s//\1/
  7590. q
  7591. }
  7592. /^X\(\/\/\)$/{
  7593. s//\1/
  7594. q
  7595. }
  7596. /^X\(\/\).*/{
  7597. s//\1/
  7598. q
  7599. }
  7600. s/.*/./; q'`
  7601. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  7602. # echo "creating $dirpart/$file"
  7603. echo '# dummy' > "$dirpart/$file"
  7604. done
  7605. done
  7606. }
  7607. ;;
  7608. esac
  7609. done # for ac_tag
  7610. as_fn_exit 0
  7611. _ACEOF
  7612. ac_clean_files=$ac_clean_files_save
  7613. test $ac_write_fail = 0 ||
  7614. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7615. # configure is writing to config.log, and then calls config.status.
  7616. # config.status does its own redirection, appending to config.log.
  7617. # Unfortunately, on DOS this fails, as config.log is still kept open
  7618. # by configure, so config.status won't be able to write to it; its
  7619. # output is simply discarded. So we exec the FD to /dev/null,
  7620. # effectively closing config.log, so it can be properly (re)opened and
  7621. # appended to by config.status. When coming back to configure, we
  7622. # need to make the FD available again.
  7623. if test "$no_create" != yes; then
  7624. ac_cs_success=:
  7625. ac_config_status_args=
  7626. test "$silent" = yes &&
  7627. ac_config_status_args="$ac_config_status_args --quiet"
  7628. exec 5>/dev/null
  7629. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7630. exec 5>>config.log
  7631. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7632. # would make configure fail if this is the last instruction.
  7633. $ac_cs_success || as_fn_exit 1
  7634. fi
  7635. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7637. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7638. fi
  7639. type dpkg >/dev/null 2>&1
  7640. if test $? -eq 0; then
  7641. # Generate debian/ link if the dpkg command exists
  7642. # (read: if we are running on a debian compatible system)
  7643. echo "creating Debian-specific links ..."
  7644. test -f debian/rules || ln -s contrib/Debian debian
  7645. fi
  7646. # -- Result --
  7647. echo
  7648. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  7649. echo
  7650. # Someone please show me a better way :) [borrowed by OpenSSH]
  7651. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  7652. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  7653. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  7654. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  7655. D=`eval echo ${docdir}` ; D=`eval echo ${D}`
  7656. echo " Host: ${host}"
  7657. echo " Compiler: ${CC}"
  7658. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  7659. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  7660. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  7661. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  7662. echo
  7663. echo " 'ngircd' binary: $S"
  7664. echo " Configuration file: $C"
  7665. echo " Manual pages: $M"
  7666. echo " Documentation: $D"
  7667. echo
  7668. echo $ECHO_N " Syslog support: $ECHO_C"
  7669. test "$x_syslog_on" = "yes" \
  7670. && echo $ECHO_N "yes $ECHO_C" \
  7671. || echo $ECHO_N "no $ECHO_C"
  7672. echo $ECHO_N " Enable debug code: $ECHO_C"
  7673. test "$x_debug_on" = "yes" \
  7674. && echo "yes" \
  7675. || echo "no"
  7676. echo $ECHO_N " zlib compression: $ECHO_C"
  7677. test "$x_zlib_on" = "yes" \
  7678. && echo $ECHO_N "yes $ECHO_C" \
  7679. || echo $ECHO_N "no $ECHO_C"
  7680. echo $ECHO_N " IRC sniffer: $ECHO_C"
  7681. test "$x_sniffer_on" = "yes" \
  7682. && echo "yes" \
  7683. || echo "no"
  7684. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  7685. test "$x_tcpwrap_on" = "yes" \
  7686. && echo $ECHO_N "yes $ECHO_C" \
  7687. || echo $ECHO_N "no $ECHO_C"
  7688. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  7689. test "$x_strict_rfc_on" = "yes" \
  7690. && echo "yes" \
  7691. || echo "no"
  7692. echo $ECHO_N " IDENT support: $ECHO_C"
  7693. test "$x_identauth_on" = "yes" \
  7694. && echo $ECHO_N "yes $ECHO_C" \
  7695. || echo $ECHO_N "no $ECHO_C"
  7696. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  7697. test "$x_ircplus_on" = "yes" \
  7698. && echo "yes" \
  7699. || echo "no"
  7700. echo $ECHO_N " IPv6 protocol: $ECHO_C"
  7701. test "$x_ipv6_on" = "yes" \
  7702. && echo $ECHO_N "yes $ECHO_C" \
  7703. || echo $ECHO_N "no $ECHO_C"
  7704. echo $ECHO_N " I/O backend: $ECHO_C"
  7705. echo "\"$x_io_backend\""
  7706. echo $ECHO_N " PAM support: $ECHO_C"
  7707. test "$x_pam_on" = "yes" \
  7708. && echo $ECHO_N "yes $ECHO_C" \
  7709. || echo $ECHO_N "no $ECHO_C"
  7710. echo $ECHO_N " SSL support: $ECHO_C"
  7711. echo "$x_ssl_lib"
  7712. echo $ECHO_N " libiconv support: $ECHO_C"
  7713. echo "$x_iconv_on"
  7714. echo
  7715. if ! grep "^AUTOMAKE_OPTIONS = [a-z .\-]*/portab/ansi2knr" src/ngircd/Makefile.am >/dev/null 2>&1; then
  7716. echo "WARNING:"
  7717. echo "This GNU automake generated build system does not support \"de-ANSI-fication\","
  7718. echo "therefore don't use it to generate \"official\" distribution archives!"
  7719. echo "(Most probably you want to use GNU automake 1.11.x for this purpose ...)"
  7720. echo
  7721. fi
  7722. # -eof-