configure 239 KB

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