configure 245 KB

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