configure 246 KB

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