configure 244 KB

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