configure 241 KB

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