4
0

configure 246 KB

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