configure 243 KB

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