configure 235 KB

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