configure 287 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for nrpe newdate.
  4. #
  5. # Report bugs to <nagios-users@lists.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  20. then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else case e in #(
  28. e) case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed 'exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  129. then :
  130. emulate sh
  131. NULLCMD=:
  132. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  133. # is contrary to our usage. Disable this feature.
  134. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  135. setopt NO_GLOB_SUBST
  136. else case e in #(
  137. e) case \`(set -o) 2>/dev/null\` in #(
  138. *posix*) :
  139. set -o posix ;; #(
  140. *) :
  141. ;;
  142. esac ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else case e in #(
  159. e) exitcode=1; echo positional parameters were not saved. ;;
  160. esac
  161. fi
  162. test x\$exitcode = x0 || exit 1
  163. blah=\$(echo \$(echo blah))
  164. test x\"\$blah\" = xblah || exit 1
  165. test -x / || exit 1"
  166. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  167. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  168. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  169. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null
  172. then :
  173. as_have_required=yes
  174. else case e in #(
  175. e) as_have_required=no ;;
  176. esac
  177. fi
  178. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  179. then :
  180. else case e in #(
  181. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  182. as_found=false
  183. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  184. do
  185. IFS=$as_save_IFS
  186. case $as_dir in #(((
  187. '') as_dir=./ ;;
  188. */) ;;
  189. *) as_dir=$as_dir/ ;;
  190. esac
  191. as_found=:
  192. case $as_dir in #(
  193. /*)
  194. for as_base in sh bash ksh sh5; do
  195. # Try only shells that exist, to save several forks.
  196. as_shell=$as_dir$as_base
  197. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  198. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  199. then :
  200. CONFIG_SHELL=$as_shell as_have_required=yes
  201. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  202. then :
  203. break 2
  204. fi
  205. fi
  206. done;;
  207. esac
  208. as_found=false
  209. done
  210. IFS=$as_save_IFS
  211. if $as_found
  212. then :
  213. else case e in #(
  214. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  215. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  216. then :
  217. CONFIG_SHELL=$SHELL as_have_required=yes
  218. fi ;;
  219. esac
  220. fi
  221. if test "x$CONFIG_SHELL" != x
  222. then :
  223. export CONFIG_SHELL
  224. # We cannot yet assume a decent shell, so we have to provide a
  225. # neutralization value for shells without unset; and this also
  226. # works around shells that cannot unset nonexistent variables.
  227. # Preserve -v and -x to the replacement shell.
  228. BASH_ENV=/dev/null
  229. ENV=/dev/null
  230. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  231. case $- in # ((((
  232. *v*x* | *x*v* ) as_opts=-vx ;;
  233. *v* ) as_opts=-v ;;
  234. *x* ) as_opts=-x ;;
  235. * ) as_opts= ;;
  236. esac
  237. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  238. # Admittedly, this is quite paranoid, since all the known shells bail
  239. # out after a failed 'exec'.
  240. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  241. exit 255
  242. fi
  243. if test x$as_have_required = xno
  244. then :
  245. printf "%s\n" "$0: This script requires a shell more modern than all"
  246. printf "%s\n" "$0: the shells that I found on your system."
  247. if test ${ZSH_VERSION+y} ; then
  248. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. printf "%s\n" "$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. esac
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. printf "%s\n" X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  352. then :
  353. eval 'as_fn_append ()
  354. {
  355. eval $1+=\$2
  356. }'
  357. else case e in #(
  358. e) as_fn_append ()
  359. {
  360. eval $1=\$$1\$2
  361. } ;;
  362. esac
  363. fi # as_fn_append
  364. # as_fn_arith ARG...
  365. # ------------------
  366. # Perform arithmetic evaluation on the ARGs, and store the result in the
  367. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  368. # must be portable across $(()) and expr.
  369. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  370. then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else case e in #(
  376. e) as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. } ;;
  380. esac
  381. fi # as_fn_arith
  382. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  383. # ----------------------------------------
  384. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  385. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  386. # script with STATUS, using 1 if that was 0.
  387. as_fn_error ()
  388. {
  389. as_status=$1; test $as_status -eq 0 && as_status=1
  390. if test "$4"; then
  391. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  392. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  393. fi
  394. printf "%s\n" "$as_me: error: $2" >&2
  395. as_fn_exit $as_status
  396. } # as_fn_error
  397. if expr a : '\(a\)' >/dev/null 2>&1 &&
  398. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  399. as_expr=expr
  400. else
  401. as_expr=false
  402. fi
  403. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  404. as_basename=basename
  405. else
  406. as_basename=false
  407. fi
  408. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  409. as_dirname=dirname
  410. else
  411. as_dirname=false
  412. fi
  413. as_me=`$as_basename -- "$0" ||
  414. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  415. X"$0" : 'X\(//\)$' \| \
  416. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  417. printf "%s\n" X/"$0" |
  418. sed '/^.*\/\([^/][^/]*\)\/*$/{
  419. s//\1/
  420. q
  421. }
  422. /^X\/\(\/\/\)$/{
  423. s//\1/
  424. q
  425. }
  426. /^X\/\(\/\).*/{
  427. s//\1/
  428. q
  429. }
  430. s/.*/./; q'`
  431. # Avoid depending upon Character Ranges.
  432. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  433. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  434. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  435. as_cr_digits='0123456789'
  436. as_cr_alnum=$as_cr_Letters$as_cr_digits
  437. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  438. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  439. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  440. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  441. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  442. sed -n '
  443. p
  444. /[$]LINENO/=
  445. ' <$as_myself |
  446. sed '
  447. t clear
  448. :clear
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. # Determine whether it's possible to make 'echo' print without a newline.
  473. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  474. # for compatibility with existing Makefiles.
  475. ECHO_C= ECHO_N= ECHO_T=
  476. case `echo -n x` in #(((((
  477. -n*)
  478. case `echo 'xy\c'` in
  479. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  480. xy) ECHO_C='\c';;
  481. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  482. ECHO_T=' ';;
  483. esac;;
  484. *)
  485. ECHO_N='-n';;
  486. esac
  487. # For backward compatibility with old third-party macros, we provide
  488. # the shell variables $as_echo and $as_echo_n. New code should use
  489. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  490. as_echo='printf %s\n'
  491. as_echo_n='printf %s'
  492. rm -f conf$$ conf$$.exe conf$$.file
  493. if test -d conf$$.dir; then
  494. rm -f conf$$.dir/conf$$.file
  495. else
  496. rm -f conf$$.dir
  497. mkdir conf$$.dir 2>/dev/null
  498. fi
  499. if (echo >conf$$.file) 2>/dev/null; then
  500. if ln -s conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s='ln -s'
  502. # ... but there are two gotchas:
  503. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  504. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  505. # In both cases, we have to default to 'cp -pR'.
  506. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  507. as_ln_s='cp -pR'
  508. elif ln conf$$.file conf$$ 2>/dev/null; then
  509. as_ln_s=ln
  510. else
  511. as_ln_s='cp -pR'
  512. fi
  513. else
  514. as_ln_s='cp -pR'
  515. fi
  516. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  517. rmdir conf$$.dir 2>/dev/null
  518. if mkdir -p . 2>/dev/null; then
  519. as_mkdir_p='mkdir -p "$as_dir"'
  520. else
  521. test -d ./-p && rmdir ./-p
  522. as_mkdir_p=false
  523. fi
  524. as_test_x='test -x'
  525. as_executable_p=as_fn_executable_p
  526. # Sed expression to map a string onto a valid CPP name.
  527. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  528. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  529. # Sed expression to map a string onto a valid variable name.
  530. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  531. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  532. test -n "$DJDIR" || exec 7<&0 </dev/null
  533. exec 6>&1
  534. # Name of the host.
  535. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  536. # so uname gets run too.
  537. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  538. #
  539. # Initializations.
  540. #
  541. ac_default_prefix=/usr/local
  542. ac_clean_files=
  543. ac_config_libobj_dir=.
  544. LIBOBJS=
  545. cross_compiling=no
  546. subdirs=
  547. MFLAGS=
  548. MAKEFLAGS=
  549. # Identity of this package.
  550. PACKAGE_NAME='nrpe'
  551. PACKAGE_TARNAME='nrpe'
  552. PACKAGE_VERSION='newdate'
  553. PACKAGE_STRING='nrpe newdate'
  554. PACKAGE_BUGREPORT='nagios-users@lists.sourceforge.net'
  555. PACKAGE_URL='https://www.nagios.org/downloads/nagios-core-addons/'
  556. ac_unique_file="src/nrpe.c"
  557. ac_default_prefix=/usr/local/nagios
  558. # Factoring default headers for most tests.
  559. ac_includes_default="\
  560. #include <stddef.h>
  561. #ifdef HAVE_STDIO_H
  562. # include <stdio.h>
  563. #endif
  564. #ifdef HAVE_STDLIB_H
  565. # include <stdlib.h>
  566. #endif
  567. #ifdef HAVE_STRING_H
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_STRINGS_H
  577. # include <strings.h>
  578. #endif
  579. #ifdef HAVE_SYS_TYPES_H
  580. # include <sys/types.h>
  581. #endif
  582. #ifdef HAVE_SYS_STAT_H
  583. # include <sys/stat.h>
  584. #endif
  585. #ifdef HAVE_UNISTD_H
  586. # include <unistd.h>
  587. #endif"
  588. ac_header_c_list=
  589. enable_year2038=no
  590. enable_year2038=no
  591. ac_subst_vars='PERL
  592. SSL_DH_HEADER_MAKE
  593. sslbin
  594. PKG_CONFIG
  595. SSL_OBJS
  596. SSL_DH_HEADER
  597. SSL_LIB_DIR
  598. SSL_INC_PREFIX
  599. SSL_HDR
  600. SSL_TYPE
  601. HAVE_SSL
  602. SET_MAKE
  603. LTLIBOBJS
  604. LIBOBJS
  605. bsd_enable
  606. src_tmpfile
  607. src_inetd
  608. src_init
  609. subsyslockfile
  610. subsyslockdir
  611. tmpfilesd
  612. inetddir
  613. initdir
  614. spooldir
  615. pipedir
  616. piddir
  617. logdir
  618. pkglocalstatedir
  619. privatesysconfdir
  620. webdir
  621. cgibindir
  622. brokersdir
  623. pluginsdir
  624. inetdname
  625. initname
  626. objsysconfdir
  627. pkgsysconfdir
  628. inetd_type
  629. init_type
  630. dist_ver
  631. dist_type
  632. arch
  633. opsys
  634. INSTALL_DATA
  635. INSTALL_SCRIPT
  636. INSTALL_PROGRAM
  637. OBJEXT
  638. EXEEXT
  639. ac_ct_CC
  640. CPPFLAGS
  641. CFLAGS
  642. CC
  643. TARGET_PLATFORM
  644. TARGET_ARCH
  645. TARGET_OS
  646. TARGET_VER
  647. NAGIOS_INSTALL_OPTS
  648. nagios_group
  649. nagios_user
  650. nrpe_port
  651. nrpe_group
  652. nrpe_user
  653. log_facility
  654. NRPE_INSTALL_OPTS
  655. LIBWRAPLIBS
  656. SOCKETLIBS
  657. OTHERLIBS
  658. LDFLAGS
  659. SNPRINTF_O
  660. INSTALL
  661. RPM_RELEASE
  662. PKG_REL_DATE
  663. PKG_HOME_URL
  664. PKG_VERSION
  665. PKG_NAME
  666. target_alias
  667. host_alias
  668. build_alias
  669. LIBS
  670. ECHO_T
  671. ECHO_N
  672. ECHO_C
  673. DEFS
  674. mandir
  675. localedir
  676. libdir
  677. psdir
  678. pdfdir
  679. dvidir
  680. htmldir
  681. infodir
  682. docdir
  683. oldincludedir
  684. includedir
  685. runstatedir
  686. localstatedir
  687. sharedstatedir
  688. sysconfdir
  689. datadir
  690. datarootdir
  691. libexecdir
  692. sbindir
  693. bindir
  694. program_transform_name
  695. prefix
  696. exec_prefix
  697. PACKAGE_URL
  698. PACKAGE_BUGREPORT
  699. PACKAGE_STRING
  700. PACKAGE_VERSION
  701. PACKAGE_TARNAME
  702. PACKAGE_NAME
  703. PATH_SEPARATOR
  704. SHELL'
  705. ac_subst_files=''
  706. ac_user_opts='
  707. enable_option_checking
  708. enable_largefile
  709. with_opsys
  710. with_dist_type
  711. with_init_type
  712. with_inetd_type
  713. enable_install_method
  714. enable_showdirs_only
  715. with_pkgsysconfdir
  716. with_objsysconfdir
  717. with_privatesysconfdir
  718. with_webdir
  719. with_pluginsdir
  720. with_brokersdir
  721. with_cgibindir
  722. with_logdir
  723. with_piddir
  724. with_pipedir
  725. enable_year2038
  726. enable_tcpd
  727. enable_ssl
  728. with_need_dh
  729. with_ssl
  730. with_ssl_inc
  731. with_ssl_lib
  732. enable_auto_dh
  733. with_kerberos_inc
  734. with_log_facility
  735. with_nrpe_user
  736. with_nrpe_group
  737. with_nrpe_port
  738. with_nagios_user
  739. with_nagios_group
  740. enable_command_args
  741. enable_bash_command_substitution
  742. '
  743. ac_precious_vars='build_alias
  744. host_alias
  745. target_alias
  746. CC
  747. CFLAGS
  748. LDFLAGS
  749. LIBS
  750. CPPFLAGS'
  751. # Initialize some variables set by options.
  752. ac_init_help=
  753. ac_init_version=false
  754. ac_unrecognized_opts=
  755. ac_unrecognized_sep=
  756. # The variables have the same names as the options, with
  757. # dashes changed to underlines.
  758. cache_file=/dev/null
  759. exec_prefix=NONE
  760. no_create=
  761. no_recursion=
  762. prefix=NONE
  763. program_prefix=NONE
  764. program_suffix=NONE
  765. program_transform_name=s,x,x,
  766. silent=
  767. site=
  768. srcdir=
  769. verbose=
  770. x_includes=NONE
  771. x_libraries=NONE
  772. # Installation directory options.
  773. # These are left unexpanded so users can "make install exec_prefix=/foo"
  774. # and all the variables that are supposed to be based on exec_prefix
  775. # by default will actually change.
  776. # Use braces instead of parens because sh, perl, etc. also accept them.
  777. # (The list follows the same order as the GNU Coding Standards.)
  778. bindir='${exec_prefix}/bin'
  779. sbindir='${exec_prefix}/sbin'
  780. libexecdir='${exec_prefix}/libexec'
  781. datarootdir='${prefix}/share'
  782. datadir='${datarootdir}'
  783. sysconfdir='${prefix}/etc'
  784. sharedstatedir='${prefix}/com'
  785. localstatedir='${prefix}/var'
  786. runstatedir='${localstatedir}/run'
  787. includedir='${prefix}/include'
  788. oldincludedir='/usr/include'
  789. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  790. infodir='${datarootdir}/info'
  791. htmldir='${docdir}'
  792. dvidir='${docdir}'
  793. pdfdir='${docdir}'
  794. psdir='${docdir}'
  795. libdir='${exec_prefix}/lib'
  796. localedir='${datarootdir}/locale'
  797. mandir='${datarootdir}/man'
  798. ac_prev=
  799. ac_dashdash=
  800. for ac_option
  801. do
  802. # If the previous option needs an argument, assign it.
  803. if test -n "$ac_prev"; then
  804. eval $ac_prev=\$ac_option
  805. ac_prev=
  806. continue
  807. fi
  808. case $ac_option in
  809. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  810. *=) ac_optarg= ;;
  811. *) ac_optarg=yes ;;
  812. esac
  813. case $ac_dashdash$ac_option in
  814. --)
  815. ac_dashdash=yes ;;
  816. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  817. ac_prev=bindir ;;
  818. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  819. bindir=$ac_optarg ;;
  820. -build | --build | --buil | --bui | --bu)
  821. ac_prev=build_alias ;;
  822. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  823. build_alias=$ac_optarg ;;
  824. -cache-file | --cache-file | --cache-fil | --cache-fi \
  825. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  826. ac_prev=cache_file ;;
  827. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  828. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  829. cache_file=$ac_optarg ;;
  830. --config-cache | -C)
  831. cache_file=config.cache ;;
  832. -datadir | --datadir | --datadi | --datad)
  833. ac_prev=datadir ;;
  834. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  835. datadir=$ac_optarg ;;
  836. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  837. | --dataroo | --dataro | --datar)
  838. ac_prev=datarootdir ;;
  839. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  840. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  841. datarootdir=$ac_optarg ;;
  842. -disable-* | --disable-*)
  843. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  844. # Reject names that are not valid shell variable names.
  845. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  846. as_fn_error $? "invalid feature name: '$ac_useropt'"
  847. ac_useropt_orig=$ac_useropt
  848. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  849. case $ac_user_opts in
  850. *"
  851. "enable_$ac_useropt"
  852. "*) ;;
  853. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  854. ac_unrecognized_sep=', ';;
  855. esac
  856. eval enable_$ac_useropt=no ;;
  857. -docdir | --docdir | --docdi | --doc | --do)
  858. ac_prev=docdir ;;
  859. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  860. docdir=$ac_optarg ;;
  861. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  862. ac_prev=dvidir ;;
  863. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  864. dvidir=$ac_optarg ;;
  865. -enable-* | --enable-*)
  866. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  867. # Reject names that are not valid shell variable names.
  868. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  869. as_fn_error $? "invalid feature name: '$ac_useropt'"
  870. ac_useropt_orig=$ac_useropt
  871. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  872. case $ac_user_opts in
  873. *"
  874. "enable_$ac_useropt"
  875. "*) ;;
  876. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  877. ac_unrecognized_sep=', ';;
  878. esac
  879. eval enable_$ac_useropt=\$ac_optarg ;;
  880. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  881. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  882. | --exec | --exe | --ex)
  883. ac_prev=exec_prefix ;;
  884. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  885. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  886. | --exec=* | --exe=* | --ex=*)
  887. exec_prefix=$ac_optarg ;;
  888. -gas | --gas | --ga | --g)
  889. # Obsolete; use --with-gas.
  890. with_gas=yes ;;
  891. -help | --help | --hel | --he | -h)
  892. ac_init_help=long ;;
  893. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  894. ac_init_help=recursive ;;
  895. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  896. ac_init_help=short ;;
  897. -host | --host | --hos | --ho)
  898. ac_prev=host_alias ;;
  899. -host=* | --host=* | --hos=* | --ho=*)
  900. host_alias=$ac_optarg ;;
  901. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  902. ac_prev=htmldir ;;
  903. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  904. | --ht=*)
  905. htmldir=$ac_optarg ;;
  906. -includedir | --includedir | --includedi | --included | --include \
  907. | --includ | --inclu | --incl | --inc)
  908. ac_prev=includedir ;;
  909. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  910. | --includ=* | --inclu=* | --incl=* | --inc=*)
  911. includedir=$ac_optarg ;;
  912. -infodir | --infodir | --infodi | --infod | --info | --inf)
  913. ac_prev=infodir ;;
  914. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  915. infodir=$ac_optarg ;;
  916. -libdir | --libdir | --libdi | --libd)
  917. ac_prev=libdir ;;
  918. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  919. libdir=$ac_optarg ;;
  920. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  921. | --libexe | --libex | --libe)
  922. ac_prev=libexecdir ;;
  923. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  924. | --libexe=* | --libex=* | --libe=*)
  925. libexecdir=$ac_optarg ;;
  926. -localedir | --localedir | --localedi | --localed | --locale)
  927. ac_prev=localedir ;;
  928. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  929. localedir=$ac_optarg ;;
  930. -localstatedir | --localstatedir | --localstatedi | --localstated \
  931. | --localstate | --localstat | --localsta | --localst | --locals)
  932. ac_prev=localstatedir ;;
  933. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  934. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  935. localstatedir=$ac_optarg ;;
  936. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  937. ac_prev=mandir ;;
  938. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  939. mandir=$ac_optarg ;;
  940. -nfp | --nfp | --nf)
  941. # Obsolete; use --without-fp.
  942. with_fp=no ;;
  943. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  944. | --no-cr | --no-c | -n)
  945. no_create=yes ;;
  946. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  947. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  948. no_recursion=yes ;;
  949. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  950. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  951. | --oldin | --oldi | --old | --ol | --o)
  952. ac_prev=oldincludedir ;;
  953. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  954. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  955. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  956. oldincludedir=$ac_optarg ;;
  957. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  958. ac_prev=prefix ;;
  959. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  960. prefix=$ac_optarg ;;
  961. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  962. | --program-pre | --program-pr | --program-p)
  963. ac_prev=program_prefix ;;
  964. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  965. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  966. program_prefix=$ac_optarg ;;
  967. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  968. | --program-suf | --program-su | --program-s)
  969. ac_prev=program_suffix ;;
  970. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  971. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  972. program_suffix=$ac_optarg ;;
  973. -program-transform-name | --program-transform-name \
  974. | --program-transform-nam | --program-transform-na \
  975. | --program-transform-n | --program-transform- \
  976. | --program-transform | --program-transfor \
  977. | --program-transfo | --program-transf \
  978. | --program-trans | --program-tran \
  979. | --progr-tra | --program-tr | --program-t)
  980. ac_prev=program_transform_name ;;
  981. -program-transform-name=* | --program-transform-name=* \
  982. | --program-transform-nam=* | --program-transform-na=* \
  983. | --program-transform-n=* | --program-transform-=* \
  984. | --program-transform=* | --program-transfor=* \
  985. | --program-transfo=* | --program-transf=* \
  986. | --program-trans=* | --program-tran=* \
  987. | --progr-tra=* | --program-tr=* | --program-t=*)
  988. program_transform_name=$ac_optarg ;;
  989. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  990. ac_prev=pdfdir ;;
  991. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  992. pdfdir=$ac_optarg ;;
  993. -psdir | --psdir | --psdi | --psd | --ps)
  994. ac_prev=psdir ;;
  995. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  996. psdir=$ac_optarg ;;
  997. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  998. | -silent | --silent | --silen | --sile | --sil)
  999. silent=yes ;;
  1000. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1001. | --runstate | --runstat | --runsta | --runst | --runs \
  1002. | --run | --ru | --r)
  1003. ac_prev=runstatedir ;;
  1004. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1005. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1006. | --run=* | --ru=* | --r=*)
  1007. runstatedir=$ac_optarg ;;
  1008. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1009. ac_prev=sbindir ;;
  1010. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1011. | --sbi=* | --sb=*)
  1012. sbindir=$ac_optarg ;;
  1013. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1014. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1015. | --sharedst | --shareds | --shared | --share | --shar \
  1016. | --sha | --sh)
  1017. ac_prev=sharedstatedir ;;
  1018. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1019. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1020. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1021. | --sha=* | --sh=*)
  1022. sharedstatedir=$ac_optarg ;;
  1023. -site | --site | --sit)
  1024. ac_prev=site ;;
  1025. -site=* | --site=* | --sit=*)
  1026. site=$ac_optarg ;;
  1027. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1028. ac_prev=srcdir ;;
  1029. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1030. srcdir=$ac_optarg ;;
  1031. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1032. | --syscon | --sysco | --sysc | --sys | --sy)
  1033. ac_prev=sysconfdir ;;
  1034. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1035. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1036. sysconfdir=$ac_optarg ;;
  1037. -target | --target | --targe | --targ | --tar | --ta | --t)
  1038. ac_prev=target_alias ;;
  1039. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1040. target_alias=$ac_optarg ;;
  1041. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1042. verbose=yes ;;
  1043. -version | --version | --versio | --versi | --vers | -V)
  1044. ac_init_version=: ;;
  1045. -with-* | --with-*)
  1046. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1047. # Reject names that are not valid shell variable names.
  1048. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1049. as_fn_error $? "invalid package name: '$ac_useropt'"
  1050. ac_useropt_orig=$ac_useropt
  1051. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1052. case $ac_user_opts in
  1053. *"
  1054. "with_$ac_useropt"
  1055. "*) ;;
  1056. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1057. ac_unrecognized_sep=', ';;
  1058. esac
  1059. eval with_$ac_useropt=\$ac_optarg ;;
  1060. -without-* | --without-*)
  1061. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1062. # Reject names that are not valid shell variable names.
  1063. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1064. as_fn_error $? "invalid package name: '$ac_useropt'"
  1065. ac_useropt_orig=$ac_useropt
  1066. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1067. case $ac_user_opts in
  1068. *"
  1069. "with_$ac_useropt"
  1070. "*) ;;
  1071. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1072. ac_unrecognized_sep=', ';;
  1073. esac
  1074. eval with_$ac_useropt=no ;;
  1075. --x)
  1076. # Obsolete; use --with-x.
  1077. with_x=yes ;;
  1078. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1079. | --x-incl | --x-inc | --x-in | --x-i)
  1080. ac_prev=x_includes ;;
  1081. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1082. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1083. x_includes=$ac_optarg ;;
  1084. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1085. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1086. ac_prev=x_libraries ;;
  1087. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1088. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1089. x_libraries=$ac_optarg ;;
  1090. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1091. Try '$0 --help' for more information"
  1092. ;;
  1093. *=*)
  1094. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1095. # Reject names that are not valid shell variable names.
  1096. case $ac_envvar in #(
  1097. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1098. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1099. esac
  1100. eval $ac_envvar=\$ac_optarg
  1101. export $ac_envvar ;;
  1102. *)
  1103. # FIXME: should be removed in autoconf 3.0.
  1104. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1105. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1106. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1107. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1108. ;;
  1109. esac
  1110. done
  1111. if test -n "$ac_prev"; then
  1112. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1113. as_fn_error $? "missing argument to $ac_option"
  1114. fi
  1115. if test -n "$ac_unrecognized_opts"; then
  1116. case $enable_option_checking in
  1117. no) ;;
  1118. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1119. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1120. esac
  1121. fi
  1122. # Check all directory arguments for consistency.
  1123. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1124. datadir sysconfdir sharedstatedir localstatedir includedir \
  1125. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1126. libdir localedir mandir runstatedir
  1127. do
  1128. eval ac_val=\$$ac_var
  1129. # Remove trailing slashes.
  1130. case $ac_val in
  1131. */ )
  1132. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1133. eval $ac_var=\$ac_val;;
  1134. esac
  1135. # Be sure to have absolute directory names.
  1136. case $ac_val in
  1137. [\\/$]* | ?:[\\/]* ) continue;;
  1138. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1139. esac
  1140. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1141. done
  1142. # There might be people who depend on the old broken behavior: '$host'
  1143. # used to hold the argument of --host etc.
  1144. # FIXME: To remove some day.
  1145. build=$build_alias
  1146. host=$host_alias
  1147. target=$target_alias
  1148. # FIXME: To remove some day.
  1149. if test "x$host_alias" != x; then
  1150. if test "x$build_alias" = x; then
  1151. cross_compiling=maybe
  1152. elif test "x$build_alias" != "x$host_alias"; then
  1153. cross_compiling=yes
  1154. fi
  1155. fi
  1156. ac_tool_prefix=
  1157. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1158. test "$silent" = yes && exec 6>/dev/null
  1159. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1160. ac_ls_di=`ls -di .` &&
  1161. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1162. as_fn_error $? "working directory cannot be determined"
  1163. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1164. as_fn_error $? "pwd does not report name of working directory"
  1165. # Find the source files, if location was not specified.
  1166. if test -z "$srcdir"; then
  1167. ac_srcdir_defaulted=yes
  1168. # Try the directory containing this script, then the parent directory.
  1169. ac_confdir=`$as_dirname -- "$as_myself" ||
  1170. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1171. X"$as_myself" : 'X\(//\)[^/]' \| \
  1172. X"$as_myself" : 'X\(//\)$' \| \
  1173. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1174. printf "%s\n" X"$as_myself" |
  1175. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1176. s//\1/
  1177. q
  1178. }
  1179. /^X\(\/\/\)[^/].*/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\/\)$/{
  1184. s//\1/
  1185. q
  1186. }
  1187. /^X\(\/\).*/{
  1188. s//\1/
  1189. q
  1190. }
  1191. s/.*/./; q'`
  1192. srcdir=$ac_confdir
  1193. if test ! -r "$srcdir/$ac_unique_file"; then
  1194. srcdir=..
  1195. fi
  1196. else
  1197. ac_srcdir_defaulted=no
  1198. fi
  1199. if test ! -r "$srcdir/$ac_unique_file"; then
  1200. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1201. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1202. fi
  1203. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1204. ac_abs_confdir=`(
  1205. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1206. pwd)`
  1207. # When building in place, set srcdir=.
  1208. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1209. srcdir=.
  1210. fi
  1211. # Remove unnecessary trailing slashes from srcdir.
  1212. # Double slashes in file names in object file debugging info
  1213. # mess up M-x gdb in Emacs.
  1214. case $srcdir in
  1215. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1216. esac
  1217. for ac_var in $ac_precious_vars; do
  1218. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1219. eval ac_env_${ac_var}_value=\$${ac_var}
  1220. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1221. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1222. done
  1223. #
  1224. # Report the --help message.
  1225. #
  1226. if test "$ac_init_help" = "long"; then
  1227. # Omit some internal or obsolete options to make the list less imposing.
  1228. # This message is too long to be a string in the A/UX 3.1 sh.
  1229. cat <<_ACEOF
  1230. \`configure' configures nrpe newdate to adapt to many kinds of systems.
  1231. Usage: $0 [OPTION]... [VAR=VALUE]...
  1232. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1233. VAR=VALUE. See below for descriptions of some of the useful variables.
  1234. Defaults for the options are specified in brackets.
  1235. Configuration:
  1236. -h, --help display this help and exit
  1237. --help=short display options specific to this package
  1238. --help=recursive display the short help of all the included packages
  1239. -V, --version display version information and exit
  1240. -q, --quiet, --silent do not print \`checking ...' messages
  1241. --cache-file=FILE cache test results in FILE [disabled]
  1242. -C, --config-cache alias for \`--cache-file=config.cache'
  1243. -n, --no-create do not create output files
  1244. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1245. Installation directories:
  1246. --prefix=PREFIX install architecture-independent files in PREFIX
  1247. [/usr/local/nagios]
  1248. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1249. [PREFIX]
  1250. By default, \`make install' will install all the files in
  1251. \`/usr/local/nagios/bin', \`/usr/local/nagios/lib' etc. You can specify
  1252. an installation prefix other than \`/usr/local/nagios' using \`--prefix',
  1253. for instance \`--prefix=$HOME'.
  1254. For better control, use the options below.
  1255. Fine tuning of the installation directories:
  1256. --bindir=DIR user executables [EPREFIX/bin]
  1257. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1258. --libexecdir=DIR plugins, brokers, CGI [EPREFIX/libexec]
  1259. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1260. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1261. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1262. --datadir=DIR r/o arch.-independent data [DATAROOTDIR/PKG_NAME]
  1263. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1264. _ACEOF
  1265. cat <<\_ACEOF
  1266. _ACEOF
  1267. fi
  1268. if test -n "$ac_init_help"; then
  1269. case $ac_init_help in
  1270. short | recursive ) echo "Configuration of nrpe newdate:";;
  1271. esac
  1272. cat <<\_ACEOF
  1273. Optional Features:
  1274. --disable-option-checking ignore unrecognized --enable/--with options
  1275. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1276. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1277. --disable-largefile omit support for large files
  1278. --enable-install-method=<method>
  1279. sets the install method to use: 'default' (the
  1280. default) will install to /usr/local/nagios, 'os'
  1281. will try to determine which method to use based on
  1282. OS type and distribution. Fine tuning using the
  1283. '--bindir', etc. overrides above will still work
  1284. --enable-showdirs-only=yes
  1285. This option will cause 'configure' to stop after
  1286. determining the install locations based on
  1287. '--enable-install-method', so you can see the
  1288. destinations before a full './configure', 'make',
  1289. 'make install' process.
  1290. --enable-year2038 support timestamps after 2038
  1291. --disable-tcpd disables support for tcpd even if present
  1292. --disable-ssl disables native SSL support [default=check]
  1293. --disable-auto-dh disables using builtin DH parameters (if available)
  1294. and generates custom parameters
  1295. --enable-command-args allows clients to specify command arguments. ***
  1296. THIS IS A SECURITY RISK! *** Read the SECURITY file
  1297. before using this option!
  1298. --enable-bash-command-substitution
  1299. allows clients to pass bash command substitutions of
  1300. the form $(command). *** THIS IS A HIGH SECURITY
  1301. RISK! *** Read the SECURITY file before using this
  1302. option!
  1303. Optional Packages:
  1304. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1305. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1306. --with-opsys=OS specify operating system (linux, osx, bsd, solaris,
  1307. irix, cygwin, aix, hp-ux, etc.)
  1308. --with-dist-type=type specify distribution type (suse, rh, debian, etc.)
  1309. --with-init-type=type specify init type (bsd, sysv, systemd, launchd,
  1310. smf10, smf11, upstart, openrc, etc.)
  1311. --with-inetd-type=type which super-server the system runs (inetd, xinetd,
  1312. systemd, launchd, smf10, smf11, etc.)
  1313. --with-pkgsysconfdir=DIR
  1314. where configuration files should be placed
  1315. --with-objsysconfdir=DIR
  1316. where object configuration files should be placed
  1317. --with-privatesysconfdir=DIR
  1318. where private configuration files should be placed
  1319. --with-webdir=DIR where the website files should be placed
  1320. --with-pluginsdir=DIR where the plugins should be placed
  1321. --with-brokersdir=DIR where the broker modules should be placed
  1322. --with-cgibindir=DIR where the CGI programs should be placed
  1323. --with-logdir=DIR where log files should be placed
  1324. --with-piddir=DIR where the PID file should be placed
  1325. --with-pipedir=DIR where socket and pipe files should be placed
  1326. --with-need-dh set to 'no' to not include Diffie-Hellman SSL logic
  1327. --with-ssl=DIR sets location of the SSL installation
  1328. --with-ssl-inc=DIR sets location of the SSL include files
  1329. --with-ssl-lib=DIR sets location of the SSL libraries
  1330. --with-kerberos-inc=DIR sets location of the Kerberos include files
  1331. --with-log-facility=<facility>
  1332. sets NRPE syslog facility
  1333. --with-nrpe-user=<user> sets user name to run NRPE
  1334. --with-nrpe-group=<group>
  1335. sets group name to run NRPE
  1336. --with-nrpe-port=<port> sets port number for NRPE to listen on
  1337. --with-nagios-user=<user>
  1338. sets user name for file permissions
  1339. --with-nagios-group=<grp>
  1340. sets group name file permissions
  1341. Some influential environment variables:
  1342. CC C compiler command
  1343. CFLAGS C compiler flags
  1344. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1345. nonstandard directory <lib dir>
  1346. LIBS libraries to pass to the linker, e.g. -l<library>
  1347. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1348. you have headers in a nonstandard directory <include dir>
  1349. Use these variables to override the choices made by 'configure' or to help
  1350. it to find libraries and programs with nonstandard names/locations.
  1351. Report bugs to <nagios-users@lists.sourceforge.net>.
  1352. nrpe home page: <https://www.nagios.org/downloads/nagios-core-addons/>.
  1353. _ACEOF
  1354. ac_status=$?
  1355. fi
  1356. if test "$ac_init_help" = "recursive"; then
  1357. # If there are subdirs, report their specific --help.
  1358. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1359. test -d "$ac_dir" ||
  1360. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1361. continue
  1362. ac_builddir=.
  1363. case "$ac_dir" in
  1364. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1365. *)
  1366. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1367. # A ".." for each directory in $ac_dir_suffix.
  1368. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1369. case $ac_top_builddir_sub in
  1370. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1371. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1372. esac ;;
  1373. esac
  1374. ac_abs_top_builddir=$ac_pwd
  1375. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1376. # for backward compatibility:
  1377. ac_top_builddir=$ac_top_build_prefix
  1378. case $srcdir in
  1379. .) # We are building in place.
  1380. ac_srcdir=.
  1381. ac_top_srcdir=$ac_top_builddir_sub
  1382. ac_abs_top_srcdir=$ac_pwd ;;
  1383. [\\/]* | ?:[\\/]* ) # Absolute name.
  1384. ac_srcdir=$srcdir$ac_dir_suffix;
  1385. ac_top_srcdir=$srcdir
  1386. ac_abs_top_srcdir=$srcdir ;;
  1387. *) # Relative name.
  1388. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1389. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1390. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1391. esac
  1392. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1393. cd "$ac_dir" || { ac_status=$?; continue; }
  1394. # Check for guested configure.
  1395. if test -f "$ac_srcdir/configure.gnu"; then
  1396. echo &&
  1397. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1398. elif test -f "$ac_srcdir/configure"; then
  1399. echo &&
  1400. $SHELL "$ac_srcdir/configure" --help=recursive
  1401. else
  1402. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1403. fi || ac_status=$?
  1404. cd "$ac_pwd" || { ac_status=$?; break; }
  1405. done
  1406. fi
  1407. test -n "$ac_init_help" && exit $ac_status
  1408. if $ac_init_version; then
  1409. cat <<\_ACEOF
  1410. nrpe configure newdate
  1411. generated by GNU Autoconf 2.72
  1412. Copyright (C) 2023 Free Software Foundation, Inc.
  1413. This configure script is free software; the Free Software Foundation
  1414. gives unlimited permission to copy, distribute and modify it.
  1415. _ACEOF
  1416. exit
  1417. fi
  1418. ## ------------------------ ##
  1419. ## Autoconf initialization. ##
  1420. ## ------------------------ ##
  1421. # ac_fn_c_try_compile LINENO
  1422. # --------------------------
  1423. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1424. ac_fn_c_try_compile ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. rm -f conftest.$ac_objext conftest.beam
  1428. if { { ac_try="$ac_compile"
  1429. case "(($ac_try" in
  1430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1431. *) ac_try_echo=$ac_try;;
  1432. esac
  1433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1434. printf "%s\n" "$ac_try_echo"; } >&5
  1435. (eval "$ac_compile") 2>conftest.err
  1436. ac_status=$?
  1437. if test -s conftest.err; then
  1438. grep -v '^ *+' conftest.err >conftest.er1
  1439. cat conftest.er1 >&5
  1440. mv -f conftest.er1 conftest.err
  1441. fi
  1442. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1443. test $ac_status = 0; } && {
  1444. test -z "$ac_c_werror_flag" ||
  1445. test ! -s conftest.err
  1446. } && test -s conftest.$ac_objext
  1447. then :
  1448. ac_retval=0
  1449. else case e in #(
  1450. e) printf "%s\n" "$as_me: failed program was:" >&5
  1451. sed 's/^/| /' conftest.$ac_ext >&5
  1452. ac_retval=1 ;;
  1453. esac
  1454. fi
  1455. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1456. as_fn_set_status $ac_retval
  1457. } # ac_fn_c_try_compile
  1458. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1459. # -------------------------------------------------------
  1460. # Tests whether HEADER exists and can be compiled using the include files in
  1461. # INCLUDES, setting the cache variable VAR accordingly.
  1462. ac_fn_c_check_header_compile ()
  1463. {
  1464. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1466. printf %s "checking for $2... " >&6; }
  1467. if eval test \${$3+y}
  1468. then :
  1469. printf %s "(cached) " >&6
  1470. else case e in #(
  1471. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end confdefs.h. */
  1473. $4
  1474. #include <$2>
  1475. _ACEOF
  1476. if ac_fn_c_try_compile "$LINENO"
  1477. then :
  1478. eval "$3=yes"
  1479. else case e in #(
  1480. e) eval "$3=no" ;;
  1481. esac
  1482. fi
  1483. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1484. esac
  1485. fi
  1486. eval ac_res=\$$3
  1487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1488. printf "%s\n" "$ac_res" >&6; }
  1489. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1490. } # ac_fn_c_check_header_compile
  1491. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1492. # -------------------------------------------
  1493. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1494. # variable VAR accordingly.
  1495. ac_fn_c_check_type ()
  1496. {
  1497. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1499. printf %s "checking for $2... " >&6; }
  1500. if eval test \${$3+y}
  1501. then :
  1502. printf %s "(cached) " >&6
  1503. else case e in #(
  1504. e) eval "$3=no"
  1505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1506. /* end confdefs.h. */
  1507. $4
  1508. int
  1509. main (void)
  1510. {
  1511. if (sizeof ($2))
  1512. return 0;
  1513. ;
  1514. return 0;
  1515. }
  1516. _ACEOF
  1517. if ac_fn_c_try_compile "$LINENO"
  1518. then :
  1519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1520. /* end confdefs.h. */
  1521. $4
  1522. int
  1523. main (void)
  1524. {
  1525. if (sizeof (($2)))
  1526. return 0;
  1527. ;
  1528. return 0;
  1529. }
  1530. _ACEOF
  1531. if ac_fn_c_try_compile "$LINENO"
  1532. then :
  1533. else case e in #(
  1534. e) eval "$3=yes" ;;
  1535. esac
  1536. fi
  1537. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1538. fi
  1539. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1540. esac
  1541. fi
  1542. eval ac_res=\$$3
  1543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1544. printf "%s\n" "$ac_res" >&6; }
  1545. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1546. } # ac_fn_c_check_type
  1547. # ac_fn_c_try_run LINENO
  1548. # ----------------------
  1549. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1550. # executables *can* be run.
  1551. ac_fn_c_try_run ()
  1552. {
  1553. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1554. if { { ac_try="$ac_link"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. printf "%s\n" "$ac_try_echo"; } >&5
  1561. (eval "$ac_link") 2>&5
  1562. ac_status=$?
  1563. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1564. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1565. { { case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. printf "%s\n" "$ac_try_echo"; } >&5
  1571. (eval "$ac_try") 2>&5
  1572. ac_status=$?
  1573. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1574. test $ac_status = 0; }; }
  1575. then :
  1576. ac_retval=0
  1577. else case e in #(
  1578. e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1579. printf "%s\n" "$as_me: failed program was:" >&5
  1580. sed 's/^/| /' conftest.$ac_ext >&5
  1581. ac_retval=$ac_status ;;
  1582. esac
  1583. fi
  1584. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1585. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1586. as_fn_set_status $ac_retval
  1587. } # ac_fn_c_try_run
  1588. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1589. # --------------------------------------------
  1590. # Tries to find the compile-time value of EXPR in a program that includes
  1591. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1592. # computed
  1593. ac_fn_c_compute_int ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. if test "$cross_compiling" = yes; then
  1597. # Depending upon the size, compute the lo and hi bounds.
  1598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1599. /* end confdefs.h. */
  1600. $4
  1601. int
  1602. main (void)
  1603. {
  1604. static int test_array [1 - 2 * !(($2) >= 0)];
  1605. test_array [0] = 0;
  1606. return test_array [0];
  1607. ;
  1608. return 0;
  1609. }
  1610. _ACEOF
  1611. if ac_fn_c_try_compile "$LINENO"
  1612. then :
  1613. ac_lo=0 ac_mid=0
  1614. while :; do
  1615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1616. /* end confdefs.h. */
  1617. $4
  1618. int
  1619. main (void)
  1620. {
  1621. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1622. test_array [0] = 0;
  1623. return test_array [0];
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. if ac_fn_c_try_compile "$LINENO"
  1629. then :
  1630. ac_hi=$ac_mid; break
  1631. else case e in #(
  1632. e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1633. if test $ac_lo -le $ac_mid; then
  1634. ac_lo= ac_hi=
  1635. break
  1636. fi
  1637. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
  1638. esac
  1639. fi
  1640. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1641. done
  1642. else case e in #(
  1643. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1644. /* end confdefs.h. */
  1645. $4
  1646. int
  1647. main (void)
  1648. {
  1649. static int test_array [1 - 2 * !(($2) < 0)];
  1650. test_array [0] = 0;
  1651. return test_array [0];
  1652. ;
  1653. return 0;
  1654. }
  1655. _ACEOF
  1656. if ac_fn_c_try_compile "$LINENO"
  1657. then :
  1658. ac_hi=-1 ac_mid=-1
  1659. while :; do
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. $4
  1663. int
  1664. main (void)
  1665. {
  1666. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1667. test_array [0] = 0;
  1668. return test_array [0];
  1669. ;
  1670. return 0;
  1671. }
  1672. _ACEOF
  1673. if ac_fn_c_try_compile "$LINENO"
  1674. then :
  1675. ac_lo=$ac_mid; break
  1676. else case e in #(
  1677. e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1678. if test $ac_mid -le $ac_hi; then
  1679. ac_lo= ac_hi=
  1680. break
  1681. fi
  1682. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
  1683. esac
  1684. fi
  1685. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1686. done
  1687. else case e in #(
  1688. e) ac_lo= ac_hi= ;;
  1689. esac
  1690. fi
  1691. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1692. esac
  1693. fi
  1694. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1695. # Binary search between lo and hi bounds.
  1696. while test "x$ac_lo" != "x$ac_hi"; do
  1697. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1699. /* end confdefs.h. */
  1700. $4
  1701. int
  1702. main (void)
  1703. {
  1704. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1705. test_array [0] = 0;
  1706. return test_array [0];
  1707. ;
  1708. return 0;
  1709. }
  1710. _ACEOF
  1711. if ac_fn_c_try_compile "$LINENO"
  1712. then :
  1713. ac_hi=$ac_mid
  1714. else case e in #(
  1715. e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
  1716. esac
  1717. fi
  1718. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1719. done
  1720. case $ac_lo in #((
  1721. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1722. '') ac_retval=1 ;;
  1723. esac
  1724. else
  1725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1726. /* end confdefs.h. */
  1727. $4
  1728. static long int longval (void) { return $2; }
  1729. static unsigned long int ulongval (void) { return $2; }
  1730. #include <stdio.h>
  1731. #include <stdlib.h>
  1732. int
  1733. main (void)
  1734. {
  1735. FILE *f = fopen ("conftest.val", "w");
  1736. if (! f)
  1737. return 1;
  1738. if (($2) < 0)
  1739. {
  1740. long int i = longval ();
  1741. if (i != ($2))
  1742. return 1;
  1743. fprintf (f, "%ld", i);
  1744. }
  1745. else
  1746. {
  1747. unsigned long int i = ulongval ();
  1748. if (i != ($2))
  1749. return 1;
  1750. fprintf (f, "%lu", i);
  1751. }
  1752. /* Do not output a trailing newline, as this causes \r\n confusion
  1753. on some platforms. */
  1754. return ferror (f) || fclose (f) != 0;
  1755. ;
  1756. return 0;
  1757. }
  1758. _ACEOF
  1759. if ac_fn_c_try_run "$LINENO"
  1760. then :
  1761. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1762. else case e in #(
  1763. e) ac_retval=1 ;;
  1764. esac
  1765. fi
  1766. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1767. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1768. rm -f conftest.val
  1769. fi
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_c_compute_int
  1773. # ac_fn_c_try_link LINENO
  1774. # -----------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_c_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. printf "%s\n" "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_c_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. test -x conftest$ac_exeext
  1801. }
  1802. then :
  1803. ac_retval=0
  1804. else case e in #(
  1805. e) printf "%s\n" "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807. ac_retval=1 ;;
  1808. esac
  1809. fi
  1810. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1811. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1812. # interfere with the next link command; also delete a directory that is
  1813. # left behind by Apple's compiler. We do this before executing the actions.
  1814. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1815. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1816. as_fn_set_status $ac_retval
  1817. } # ac_fn_c_try_link
  1818. # ac_fn_c_check_func LINENO FUNC VAR
  1819. # ----------------------------------
  1820. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1821. ac_fn_c_check_func ()
  1822. {
  1823. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1825. printf %s "checking for $2... " >&6; }
  1826. if eval test \${$3+y}
  1827. then :
  1828. printf %s "(cached) " >&6
  1829. else case e in #(
  1830. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1833. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1834. #define $2 innocuous_$2
  1835. /* System header to define __stub macros and hopefully few prototypes,
  1836. which can conflict with char $2 (void); below. */
  1837. #include <limits.h>
  1838. #undef $2
  1839. /* Override any GCC internal prototype to avoid an error.
  1840. Use char because int might match the return type of a GCC
  1841. builtin and then its argument prototype would still apply. */
  1842. #ifdef __cplusplus
  1843. extern "C"
  1844. #endif
  1845. char $2 (void);
  1846. /* The GNU C library defines this for functions which it implements
  1847. to always fail with ENOSYS. Some functions are actually named
  1848. something starting with __ and the normal name is an alias. */
  1849. #if defined __stub_$2 || defined __stub___$2
  1850. choke me
  1851. #endif
  1852. int
  1853. main (void)
  1854. {
  1855. return $2 ();
  1856. ;
  1857. return 0;
  1858. }
  1859. _ACEOF
  1860. if ac_fn_c_try_link "$LINENO"
  1861. then :
  1862. eval "$3=yes"
  1863. else case e in #(
  1864. e) eval "$3=no" ;;
  1865. esac
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1868. conftest$ac_exeext conftest.$ac_ext ;;
  1869. esac
  1870. fi
  1871. eval ac_res=\$$3
  1872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1873. printf "%s\n" "$ac_res" >&6; }
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. } # ac_fn_c_check_func
  1876. ac_configure_args_raw=
  1877. for ac_arg
  1878. do
  1879. case $ac_arg in
  1880. *\'*)
  1881. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1882. esac
  1883. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1884. done
  1885. case $ac_configure_args_raw in
  1886. *$as_nl*)
  1887. ac_safe_unquote= ;;
  1888. *)
  1889. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1890. ac_unsafe_a="$ac_unsafe_z#~"
  1891. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1892. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1893. esac
  1894. cat >config.log <<_ACEOF
  1895. This file contains any messages produced by compilers while
  1896. running configure, to aid debugging if configure makes a mistake.
  1897. It was created by nrpe $as_me newdate, which was
  1898. generated by GNU Autoconf 2.72. Invocation command line was
  1899. $ $0$ac_configure_args_raw
  1900. _ACEOF
  1901. exec 5>>config.log
  1902. {
  1903. cat <<_ASUNAME
  1904. ## --------- ##
  1905. ## Platform. ##
  1906. ## --------- ##
  1907. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1908. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1909. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1910. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1911. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1912. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1913. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1914. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1915. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1916. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1917. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1918. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1919. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1920. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1921. _ASUNAME
  1922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1923. for as_dir in $PATH
  1924. do
  1925. IFS=$as_save_IFS
  1926. case $as_dir in #(((
  1927. '') as_dir=./ ;;
  1928. */) ;;
  1929. *) as_dir=$as_dir/ ;;
  1930. esac
  1931. printf "%s\n" "PATH: $as_dir"
  1932. done
  1933. IFS=$as_save_IFS
  1934. } >&5
  1935. cat >&5 <<_ACEOF
  1936. ## ----------- ##
  1937. ## Core tests. ##
  1938. ## ----------- ##
  1939. _ACEOF
  1940. # Keep a trace of the command line.
  1941. # Strip out --no-create and --no-recursion so they do not pile up.
  1942. # Strip out --silent because we don't want to record it for future runs.
  1943. # Also quote any args containing shell meta-characters.
  1944. # Make two passes to allow for proper duplicate-argument suppression.
  1945. ac_configure_args=
  1946. ac_configure_args0=
  1947. ac_configure_args1=
  1948. ac_must_keep_next=false
  1949. for ac_pass in 1 2
  1950. do
  1951. for ac_arg
  1952. do
  1953. case $ac_arg in
  1954. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1955. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1956. | -silent | --silent | --silen | --sile | --sil)
  1957. continue ;;
  1958. *\'*)
  1959. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1960. esac
  1961. case $ac_pass in
  1962. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1963. 2)
  1964. as_fn_append ac_configure_args1 " '$ac_arg'"
  1965. if test $ac_must_keep_next = true; then
  1966. ac_must_keep_next=false # Got value, back to normal.
  1967. else
  1968. case $ac_arg in
  1969. *=* | --config-cache | -C | -disable-* | --disable-* \
  1970. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1971. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1972. | -with-* | --with-* | -without-* | --without-* | --x)
  1973. case "$ac_configure_args0 " in
  1974. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1975. esac
  1976. ;;
  1977. -* ) ac_must_keep_next=true ;;
  1978. esac
  1979. fi
  1980. as_fn_append ac_configure_args " '$ac_arg'"
  1981. ;;
  1982. esac
  1983. done
  1984. done
  1985. { ac_configure_args0=; unset ac_configure_args0;}
  1986. { ac_configure_args1=; unset ac_configure_args1;}
  1987. # When interrupted or exit'd, cleanup temporary files, and complete
  1988. # config.log. We remove comments because anyway the quotes in there
  1989. # would cause problems or look ugly.
  1990. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1991. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1992. trap 'exit_status=$?
  1993. # Sanitize IFS.
  1994. IFS=" "" $as_nl"
  1995. # Save into config.log some information that might help in debugging.
  1996. {
  1997. echo
  1998. printf "%s\n" "## ---------------- ##
  1999. ## Cache variables. ##
  2000. ## ---------------- ##"
  2001. echo
  2002. # The following way of writing the cache mishandles newlines in values,
  2003. (
  2004. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2005. eval ac_val=\$$ac_var
  2006. case $ac_val in #(
  2007. *${as_nl}*)
  2008. case $ac_var in #(
  2009. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2010. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2011. esac
  2012. case $ac_var in #(
  2013. _ | IFS | as_nl) ;; #(
  2014. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2015. *) { eval $ac_var=; unset $ac_var;} ;;
  2016. esac ;;
  2017. esac
  2018. done
  2019. (set) 2>&1 |
  2020. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2021. *${as_nl}ac_space=\ *)
  2022. sed -n \
  2023. "s/'\''/'\''\\\\'\'''\''/g;
  2024. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2025. ;; #(
  2026. *)
  2027. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2028. ;;
  2029. esac |
  2030. sort
  2031. )
  2032. echo
  2033. printf "%s\n" "## ----------------- ##
  2034. ## Output variables. ##
  2035. ## ----------------- ##"
  2036. echo
  2037. for ac_var in $ac_subst_vars
  2038. do
  2039. eval ac_val=\$$ac_var
  2040. case $ac_val in
  2041. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2042. esac
  2043. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2044. done | sort
  2045. echo
  2046. if test -n "$ac_subst_files"; then
  2047. printf "%s\n" "## ------------------- ##
  2048. ## File substitutions. ##
  2049. ## ------------------- ##"
  2050. echo
  2051. for ac_var in $ac_subst_files
  2052. do
  2053. eval ac_val=\$$ac_var
  2054. case $ac_val in
  2055. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2056. esac
  2057. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2058. done | sort
  2059. echo
  2060. fi
  2061. if test -s confdefs.h; then
  2062. printf "%s\n" "## ----------- ##
  2063. ## confdefs.h. ##
  2064. ## ----------- ##"
  2065. echo
  2066. cat confdefs.h
  2067. echo
  2068. fi
  2069. test "$ac_signal" != 0 &&
  2070. printf "%s\n" "$as_me: caught signal $ac_signal"
  2071. printf "%s\n" "$as_me: exit $exit_status"
  2072. } >&5
  2073. rm -f core *.core core.conftest.* &&
  2074. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2075. exit $exit_status
  2076. ' 0
  2077. for ac_signal in 1 2 13 15; do
  2078. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2079. done
  2080. ac_signal=0
  2081. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2082. rm -f -r conftest* confdefs.h
  2083. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2084. # Predefined preprocessor variables.
  2085. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2086. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2087. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2088. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2089. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2090. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2091. # Let the site file select an alternate cache file if it wants to.
  2092. # Prefer an explicitly selected file to automatically selected ones.
  2093. if test -n "$CONFIG_SITE"; then
  2094. ac_site_files="$CONFIG_SITE"
  2095. elif test "x$prefix" != xNONE; then
  2096. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2097. else
  2098. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2099. fi
  2100. for ac_site_file in $ac_site_files
  2101. do
  2102. case $ac_site_file in #(
  2103. */*) :
  2104. ;; #(
  2105. *) :
  2106. ac_site_file=./$ac_site_file ;;
  2107. esac
  2108. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2110. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2111. sed 's/^/| /' "$ac_site_file" >&5
  2112. . "$ac_site_file" \
  2113. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2114. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2115. as_fn_error $? "failed to load site script $ac_site_file
  2116. See 'config.log' for more details" "$LINENO" 5; }
  2117. fi
  2118. done
  2119. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2120. # Test code for whether the C compiler supports C89 (global declarations)
  2121. ac_c_conftest_c89_globals='
  2122. /* Does the compiler advertise C89 conformance?
  2123. Do not test the value of __STDC__, because some compilers set it to 0
  2124. while being otherwise adequately conformant. */
  2125. #if !defined __STDC__
  2126. # error "Compiler does not advertise C89 conformance"
  2127. #endif
  2128. #include <stddef.h>
  2129. #include <stdarg.h>
  2130. struct stat;
  2131. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2132. struct buf { int x; };
  2133. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2134. static char *e (char **p, int i)
  2135. {
  2136. return p[i];
  2137. }
  2138. static char *f (char * (*g) (char **, int), char **p, ...)
  2139. {
  2140. char *s;
  2141. va_list v;
  2142. va_start (v,p);
  2143. s = g (p, va_arg (v,int));
  2144. va_end (v);
  2145. return s;
  2146. }
  2147. /* C89 style stringification. */
  2148. #define noexpand_stringify(a) #a
  2149. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  2150. /* C89 style token pasting. Exercises some of the corner cases that
  2151. e.g. old MSVC gets wrong, but not very hard. */
  2152. #define noexpand_concat(a,b) a##b
  2153. #define expand_concat(a,b) noexpand_concat(a,b)
  2154. extern int vA;
  2155. extern int vbee;
  2156. #define aye A
  2157. #define bee B
  2158. int *pvA = &expand_concat(v,aye);
  2159. int *pvbee = &noexpand_concat(v,bee);
  2160. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2161. function prototypes and stuff, but not \xHH hex character constants.
  2162. These do not provoke an error unfortunately, instead are silently treated
  2163. as an "x". The following induces an error, until -std is added to get
  2164. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2165. array size at least. It is necessary to write \x00 == 0 to get something
  2166. that is true only with -std. */
  2167. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2168. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2169. inside strings and character constants. */
  2170. #define FOO(x) '\''x'\''
  2171. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2172. int test (int i, double x);
  2173. struct s1 {int (*f) (int a);};
  2174. struct s2 {int (*f) (double a);};
  2175. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2176. int, int);'
  2177. # Test code for whether the C compiler supports C89 (body of main).
  2178. ac_c_conftest_c89_main='
  2179. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2180. '
  2181. # Test code for whether the C compiler supports C99 (global declarations)
  2182. ac_c_conftest_c99_globals='
  2183. /* Does the compiler advertise C99 conformance? */
  2184. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2185. # error "Compiler does not advertise C99 conformance"
  2186. #endif
  2187. // See if C++-style comments work.
  2188. #include <stdbool.h>
  2189. extern int puts (const char *);
  2190. extern int printf (const char *, ...);
  2191. extern int dprintf (int, const char *, ...);
  2192. extern void *malloc (size_t);
  2193. extern void free (void *);
  2194. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2195. // dprintf is used instead of fprintf to avoid needing to declare
  2196. // FILE and stderr.
  2197. #define debug(...) dprintf (2, __VA_ARGS__)
  2198. #define showlist(...) puts (#__VA_ARGS__)
  2199. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2200. static void
  2201. test_varargs_macros (void)
  2202. {
  2203. int x = 1234;
  2204. int y = 5678;
  2205. debug ("Flag");
  2206. debug ("X = %d\n", x);
  2207. showlist (The first, second, and third items.);
  2208. report (x>y, "x is %d but y is %d", x, y);
  2209. }
  2210. // Check long long types.
  2211. #define BIG64 18446744073709551615ull
  2212. #define BIG32 4294967295ul
  2213. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2214. #if !BIG_OK
  2215. #error "your preprocessor is broken"
  2216. #endif
  2217. #if BIG_OK
  2218. #else
  2219. #error "your preprocessor is broken"
  2220. #endif
  2221. static long long int bignum = -9223372036854775807LL;
  2222. static unsigned long long int ubignum = BIG64;
  2223. struct incomplete_array
  2224. {
  2225. int datasize;
  2226. double data[];
  2227. };
  2228. struct named_init {
  2229. int number;
  2230. const wchar_t *name;
  2231. double average;
  2232. };
  2233. typedef const char *ccp;
  2234. static inline int
  2235. test_restrict (ccp restrict text)
  2236. {
  2237. // Iterate through items via the restricted pointer.
  2238. // Also check for declarations in for loops.
  2239. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2240. continue;
  2241. return 0;
  2242. }
  2243. // Check varargs and va_copy.
  2244. static bool
  2245. test_varargs (const char *format, ...)
  2246. {
  2247. va_list args;
  2248. va_start (args, format);
  2249. va_list args_copy;
  2250. va_copy (args_copy, args);
  2251. const char *str = "";
  2252. int number = 0;
  2253. float fnumber = 0;
  2254. while (*format)
  2255. {
  2256. switch (*format++)
  2257. {
  2258. case '\''s'\'': // string
  2259. str = va_arg (args_copy, const char *);
  2260. break;
  2261. case '\''d'\'': // int
  2262. number = va_arg (args_copy, int);
  2263. break;
  2264. case '\''f'\'': // float
  2265. fnumber = va_arg (args_copy, double);
  2266. break;
  2267. default:
  2268. break;
  2269. }
  2270. }
  2271. va_end (args_copy);
  2272. va_end (args);
  2273. return *str && number && fnumber;
  2274. }
  2275. '
  2276. # Test code for whether the C compiler supports C99 (body of main).
  2277. ac_c_conftest_c99_main='
  2278. // Check bool.
  2279. _Bool success = false;
  2280. success |= (argc != 0);
  2281. // Check restrict.
  2282. if (test_restrict ("String literal") == 0)
  2283. success = true;
  2284. char *restrict newvar = "Another string";
  2285. // Check varargs.
  2286. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2287. test_varargs_macros ();
  2288. // Check flexible array members.
  2289. struct incomplete_array *ia =
  2290. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2291. ia->datasize = 10;
  2292. for (int i = 0; i < ia->datasize; ++i)
  2293. ia->data[i] = i * 1.234;
  2294. // Work around memory leak warnings.
  2295. free (ia);
  2296. // Check named initializers.
  2297. struct named_init ni = {
  2298. .number = 34,
  2299. .name = L"Test wide string",
  2300. .average = 543.34343,
  2301. };
  2302. ni.number = 58;
  2303. int dynamic_array[ni.number];
  2304. dynamic_array[0] = argv[0][0];
  2305. dynamic_array[ni.number - 1] = 543;
  2306. // work around unused variable warnings
  2307. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2308. || dynamic_array[ni.number - 1] != 543);
  2309. '
  2310. # Test code for whether the C compiler supports C11 (global declarations)
  2311. ac_c_conftest_c11_globals='
  2312. /* Does the compiler advertise C11 conformance? */
  2313. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2314. # error "Compiler does not advertise C11 conformance"
  2315. #endif
  2316. // Check _Alignas.
  2317. char _Alignas (double) aligned_as_double;
  2318. char _Alignas (0) no_special_alignment;
  2319. extern char aligned_as_int;
  2320. char _Alignas (0) _Alignas (int) aligned_as_int;
  2321. // Check _Alignof.
  2322. enum
  2323. {
  2324. int_alignment = _Alignof (int),
  2325. int_array_alignment = _Alignof (int[100]),
  2326. char_alignment = _Alignof (char)
  2327. };
  2328. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2329. // Check _Noreturn.
  2330. int _Noreturn does_not_return (void) { for (;;) continue; }
  2331. // Check _Static_assert.
  2332. struct test_static_assert
  2333. {
  2334. int x;
  2335. _Static_assert (sizeof (int) <= sizeof (long int),
  2336. "_Static_assert does not work in struct");
  2337. long int y;
  2338. };
  2339. // Check UTF-8 literals.
  2340. #define u8 syntax error!
  2341. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2342. // Check duplicate typedefs.
  2343. typedef long *long_ptr;
  2344. typedef long int *long_ptr;
  2345. typedef long_ptr long_ptr;
  2346. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2347. struct anonymous
  2348. {
  2349. union {
  2350. struct { int i; int j; };
  2351. struct { int k; long int l; } w;
  2352. };
  2353. int m;
  2354. } v1;
  2355. '
  2356. # Test code for whether the C compiler supports C11 (body of main).
  2357. ac_c_conftest_c11_main='
  2358. _Static_assert ((offsetof (struct anonymous, i)
  2359. == offsetof (struct anonymous, w.k)),
  2360. "Anonymous union alignment botch");
  2361. v1.i = 2;
  2362. v1.w.k = 5;
  2363. ok |= v1.i != 5;
  2364. '
  2365. # Test code for whether the C compiler supports C11 (complete).
  2366. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2367. ${ac_c_conftest_c99_globals}
  2368. ${ac_c_conftest_c11_globals}
  2369. int
  2370. main (int argc, char **argv)
  2371. {
  2372. int ok = 0;
  2373. ${ac_c_conftest_c89_main}
  2374. ${ac_c_conftest_c99_main}
  2375. ${ac_c_conftest_c11_main}
  2376. return ok;
  2377. }
  2378. "
  2379. # Test code for whether the C compiler supports C99 (complete).
  2380. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2381. ${ac_c_conftest_c99_globals}
  2382. int
  2383. main (int argc, char **argv)
  2384. {
  2385. int ok = 0;
  2386. ${ac_c_conftest_c89_main}
  2387. ${ac_c_conftest_c99_main}
  2388. return ok;
  2389. }
  2390. "
  2391. # Test code for whether the C compiler supports C89 (complete).
  2392. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2393. int
  2394. main (int argc, char **argv)
  2395. {
  2396. int ok = 0;
  2397. ${ac_c_conftest_c89_main}
  2398. return ok;
  2399. }
  2400. "
  2401. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2402. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2403. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2404. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2405. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2406. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2407. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2408. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2409. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2410. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2411. # Auxiliary files required by this configure script.
  2412. ac_aux_files="install-sh"
  2413. # Locations in which to look for auxiliary files.
  2414. ac_aux_dir_candidates="${srcdir}/build-aux"
  2415. # Search for a directory containing all of the required auxiliary files,
  2416. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2417. # If we don't find one directory that contains all the files we need,
  2418. # we report the set of missing files from the *first* directory in
  2419. # $ac_aux_dir_candidates and give up.
  2420. ac_missing_aux_files=""
  2421. ac_first_candidate=:
  2422. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2424. as_found=false
  2425. for as_dir in $ac_aux_dir_candidates
  2426. do
  2427. IFS=$as_save_IFS
  2428. case $as_dir in #(((
  2429. '') as_dir=./ ;;
  2430. */) ;;
  2431. *) as_dir=$as_dir/ ;;
  2432. esac
  2433. as_found=:
  2434. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2435. ac_aux_dir_found=yes
  2436. ac_install_sh=
  2437. for ac_aux in $ac_aux_files
  2438. do
  2439. # As a special case, if "install-sh" is required, that requirement
  2440. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2441. # and $ac_install_sh is set appropriately for whichever one is found.
  2442. if test x"$ac_aux" = x"install-sh"
  2443. then
  2444. if test -f "${as_dir}install-sh"; then
  2445. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2446. ac_install_sh="${as_dir}install-sh -c"
  2447. elif test -f "${as_dir}install.sh"; then
  2448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2449. ac_install_sh="${as_dir}install.sh -c"
  2450. elif test -f "${as_dir}shtool"; then
  2451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2452. ac_install_sh="${as_dir}shtool install -c"
  2453. else
  2454. ac_aux_dir_found=no
  2455. if $ac_first_candidate; then
  2456. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2457. else
  2458. break
  2459. fi
  2460. fi
  2461. else
  2462. if test -f "${as_dir}${ac_aux}"; then
  2463. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2464. else
  2465. ac_aux_dir_found=no
  2466. if $ac_first_candidate; then
  2467. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2468. else
  2469. break
  2470. fi
  2471. fi
  2472. fi
  2473. done
  2474. if test "$ac_aux_dir_found" = yes; then
  2475. ac_aux_dir="$as_dir"
  2476. break
  2477. fi
  2478. ac_first_candidate=false
  2479. as_found=false
  2480. done
  2481. IFS=$as_save_IFS
  2482. if $as_found
  2483. then :
  2484. else case e in #(
  2485. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  2486. esac
  2487. fi
  2488. # These three variables are undocumented and unsupported,
  2489. # and are intended to be withdrawn in a future Autoconf release.
  2490. # They can cause serious problems if a builder's source tree is in a directory
  2491. # whose full name contains unusual characters.
  2492. if test -f "${ac_aux_dir}config.guess"; then
  2493. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2494. fi
  2495. if test -f "${ac_aux_dir}config.sub"; then
  2496. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2497. fi
  2498. if test -f "$ac_aux_dir/configure"; then
  2499. ac_configure="$SHELL ${ac_aux_dir}configure"
  2500. fi
  2501. # Check that the precious variables saved in the cache have kept the same
  2502. # value.
  2503. ac_cache_corrupted=false
  2504. for ac_var in $ac_precious_vars; do
  2505. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2506. eval ac_new_set=\$ac_env_${ac_var}_set
  2507. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2508. eval ac_new_val=\$ac_env_${ac_var}_value
  2509. case $ac_old_set,$ac_new_set in
  2510. set,)
  2511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2512. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2513. ac_cache_corrupted=: ;;
  2514. ,set)
  2515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2516. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2517. ac_cache_corrupted=: ;;
  2518. ,);;
  2519. *)
  2520. if test "x$ac_old_val" != "x$ac_new_val"; then
  2521. # differences in whitespace do not lead to failure.
  2522. ac_old_val_w=`echo x $ac_old_val`
  2523. ac_new_val_w=`echo x $ac_new_val`
  2524. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2526. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2527. ac_cache_corrupted=:
  2528. else
  2529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2530. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2531. eval $ac_var=\$ac_old_val
  2532. fi
  2533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2534. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2536. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2537. fi;;
  2538. esac
  2539. # Pass precious variables to config.status.
  2540. if test "$ac_new_set" = set; then
  2541. case $ac_new_val in
  2542. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2543. *) ac_arg=$ac_var=$ac_new_val ;;
  2544. esac
  2545. case " $ac_configure_args " in
  2546. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2547. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2548. esac
  2549. fi
  2550. done
  2551. if $ac_cache_corrupted; then
  2552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2553. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2555. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2556. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2557. and start over" "$LINENO" 5
  2558. fi
  2559. ## -------------------- ##
  2560. ## Main body of script. ##
  2561. ## -------------------- ##
  2562. ac_ext=c
  2563. ac_cpp='$CPP $CPPFLAGS'
  2564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2567. PKG_NAME=nrpe
  2568. PKG_VERSION="4.1.3"
  2569. PKG_HOME_URL="http://www.nagios.org/"
  2570. PKG_REL_DATE="2024-12-10"
  2571. RPM_RELEASE=1
  2572. LANG=C
  2573. LC_ALL=C
  2574. LC_COLLATE=C
  2575. LC_CTYPE=C
  2576. LC_MESSAGES=C
  2577. LC_MONETARY=C
  2578. LC_NUMERIC=C
  2579. LC_TIME=C
  2580. ac_ext=c
  2581. ac_cpp='$CPP $CPPFLAGS'
  2582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2585. if test -n "$ac_tool_prefix"; then
  2586. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2587. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2589. printf %s "checking for $ac_word... " >&6; }
  2590. if test ${ac_cv_prog_CC+y}
  2591. then :
  2592. printf %s "(cached) " >&6
  2593. else case e in #(
  2594. e) if test -n "$CC"; then
  2595. ac_cv_prog_CC="$CC" # Let the user override the test.
  2596. else
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600. IFS=$as_save_IFS
  2601. case $as_dir in #(((
  2602. '') as_dir=./ ;;
  2603. */) ;;
  2604. *) as_dir=$as_dir/ ;;
  2605. esac
  2606. for ac_exec_ext in '' $ac_executable_extensions; do
  2607. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2608. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2609. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2610. break 2
  2611. fi
  2612. done
  2613. done
  2614. IFS=$as_save_IFS
  2615. fi ;;
  2616. esac
  2617. fi
  2618. CC=$ac_cv_prog_CC
  2619. if test -n "$CC"; then
  2620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2621. printf "%s\n" "$CC" >&6; }
  2622. else
  2623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2624. printf "%s\n" "no" >&6; }
  2625. fi
  2626. fi
  2627. if test -z "$ac_cv_prog_CC"; then
  2628. ac_ct_CC=$CC
  2629. # Extract the first word of "gcc", so it can be a program name with args.
  2630. set dummy gcc; ac_word=$2
  2631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2632. printf %s "checking for $ac_word... " >&6; }
  2633. if test ${ac_cv_prog_ac_ct_CC+y}
  2634. then :
  2635. printf %s "(cached) " >&6
  2636. else case e in #(
  2637. e) if test -n "$ac_ct_CC"; then
  2638. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2639. else
  2640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2641. for as_dir in $PATH
  2642. do
  2643. IFS=$as_save_IFS
  2644. case $as_dir in #(((
  2645. '') as_dir=./ ;;
  2646. */) ;;
  2647. *) as_dir=$as_dir/ ;;
  2648. esac
  2649. for ac_exec_ext in '' $ac_executable_extensions; do
  2650. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2651. ac_cv_prog_ac_ct_CC="gcc"
  2652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2653. break 2
  2654. fi
  2655. done
  2656. done
  2657. IFS=$as_save_IFS
  2658. fi ;;
  2659. esac
  2660. fi
  2661. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2662. if test -n "$ac_ct_CC"; then
  2663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2664. printf "%s\n" "$ac_ct_CC" >&6; }
  2665. else
  2666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2667. printf "%s\n" "no" >&6; }
  2668. fi
  2669. if test "x$ac_ct_CC" = x; then
  2670. CC=""
  2671. else
  2672. case $cross_compiling:$ac_tool_warned in
  2673. yes:)
  2674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2675. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2676. ac_tool_warned=yes ;;
  2677. esac
  2678. CC=$ac_ct_CC
  2679. fi
  2680. else
  2681. CC="$ac_cv_prog_CC"
  2682. fi
  2683. if test -z "$CC"; then
  2684. if test -n "$ac_tool_prefix"; then
  2685. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2686. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2688. printf %s "checking for $ac_word... " >&6; }
  2689. if test ${ac_cv_prog_CC+y}
  2690. then :
  2691. printf %s "(cached) " >&6
  2692. else case e in #(
  2693. e) if test -n "$CC"; then
  2694. ac_cv_prog_CC="$CC" # Let the user override the test.
  2695. else
  2696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2697. for as_dir in $PATH
  2698. do
  2699. IFS=$as_save_IFS
  2700. case $as_dir in #(((
  2701. '') as_dir=./ ;;
  2702. */) ;;
  2703. *) as_dir=$as_dir/ ;;
  2704. esac
  2705. for ac_exec_ext in '' $ac_executable_extensions; do
  2706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2707. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2709. break 2
  2710. fi
  2711. done
  2712. done
  2713. IFS=$as_save_IFS
  2714. fi ;;
  2715. esac
  2716. fi
  2717. CC=$ac_cv_prog_CC
  2718. if test -n "$CC"; then
  2719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2720. printf "%s\n" "$CC" >&6; }
  2721. else
  2722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2723. printf "%s\n" "no" >&6; }
  2724. fi
  2725. fi
  2726. fi
  2727. if test -z "$CC"; then
  2728. # Extract the first word of "cc", so it can be a program name with args.
  2729. set dummy cc; ac_word=$2
  2730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2731. printf %s "checking for $ac_word... " >&6; }
  2732. if test ${ac_cv_prog_CC+y}
  2733. then :
  2734. printf %s "(cached) " >&6
  2735. else case e in #(
  2736. e) if test -n "$CC"; then
  2737. ac_cv_prog_CC="$CC" # Let the user override the test.
  2738. else
  2739. ac_prog_rejected=no
  2740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2741. for as_dir in $PATH
  2742. do
  2743. IFS=$as_save_IFS
  2744. case $as_dir in #(((
  2745. '') as_dir=./ ;;
  2746. */) ;;
  2747. *) as_dir=$as_dir/ ;;
  2748. esac
  2749. for ac_exec_ext in '' $ac_executable_extensions; do
  2750. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2751. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2752. ac_prog_rejected=yes
  2753. continue
  2754. fi
  2755. ac_cv_prog_CC="cc"
  2756. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2757. break 2
  2758. fi
  2759. done
  2760. done
  2761. IFS=$as_save_IFS
  2762. if test $ac_prog_rejected = yes; then
  2763. # We found a bogon in the path, so make sure we never use it.
  2764. set dummy $ac_cv_prog_CC
  2765. shift
  2766. if test $# != 0; then
  2767. # We chose a different compiler from the bogus one.
  2768. # However, it has the same basename, so the bogon will be chosen
  2769. # first if we set CC to just the basename; use the full file name.
  2770. shift
  2771. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  2772. fi
  2773. fi
  2774. fi ;;
  2775. esac
  2776. fi
  2777. CC=$ac_cv_prog_CC
  2778. if test -n "$CC"; then
  2779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2780. printf "%s\n" "$CC" >&6; }
  2781. else
  2782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2783. printf "%s\n" "no" >&6; }
  2784. fi
  2785. fi
  2786. if test -z "$CC"; then
  2787. if test -n "$ac_tool_prefix"; then
  2788. for ac_prog in cl.exe
  2789. do
  2790. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2791. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2793. printf %s "checking for $ac_word... " >&6; }
  2794. if test ${ac_cv_prog_CC+y}
  2795. then :
  2796. printf %s "(cached) " >&6
  2797. else case e in #(
  2798. e) if test -n "$CC"; then
  2799. ac_cv_prog_CC="$CC" # Let the user override the test.
  2800. else
  2801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2802. for as_dir in $PATH
  2803. do
  2804. IFS=$as_save_IFS
  2805. case $as_dir in #(((
  2806. '') as_dir=./ ;;
  2807. */) ;;
  2808. *) as_dir=$as_dir/ ;;
  2809. esac
  2810. for ac_exec_ext in '' $ac_executable_extensions; do
  2811. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2812. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2813. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2814. break 2
  2815. fi
  2816. done
  2817. done
  2818. IFS=$as_save_IFS
  2819. fi ;;
  2820. esac
  2821. fi
  2822. CC=$ac_cv_prog_CC
  2823. if test -n "$CC"; then
  2824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2825. printf "%s\n" "$CC" >&6; }
  2826. else
  2827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2828. printf "%s\n" "no" >&6; }
  2829. fi
  2830. test -n "$CC" && break
  2831. done
  2832. fi
  2833. if test -z "$CC"; then
  2834. ac_ct_CC=$CC
  2835. for ac_prog in cl.exe
  2836. do
  2837. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2838. set dummy $ac_prog; ac_word=$2
  2839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2840. printf %s "checking for $ac_word... " >&6; }
  2841. if test ${ac_cv_prog_ac_ct_CC+y}
  2842. then :
  2843. printf %s "(cached) " >&6
  2844. else case e in #(
  2845. e) if test -n "$ac_ct_CC"; then
  2846. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2847. else
  2848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2849. for as_dir in $PATH
  2850. do
  2851. IFS=$as_save_IFS
  2852. case $as_dir in #(((
  2853. '') as_dir=./ ;;
  2854. */) ;;
  2855. *) as_dir=$as_dir/ ;;
  2856. esac
  2857. for ac_exec_ext in '' $ac_executable_extensions; do
  2858. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2859. ac_cv_prog_ac_ct_CC="$ac_prog"
  2860. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2861. break 2
  2862. fi
  2863. done
  2864. done
  2865. IFS=$as_save_IFS
  2866. fi ;;
  2867. esac
  2868. fi
  2869. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2870. if test -n "$ac_ct_CC"; then
  2871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2872. printf "%s\n" "$ac_ct_CC" >&6; }
  2873. else
  2874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2875. printf "%s\n" "no" >&6; }
  2876. fi
  2877. test -n "$ac_ct_CC" && break
  2878. done
  2879. if test "x$ac_ct_CC" = x; then
  2880. CC=""
  2881. else
  2882. case $cross_compiling:$ac_tool_warned in
  2883. yes:)
  2884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2885. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2886. ac_tool_warned=yes ;;
  2887. esac
  2888. CC=$ac_ct_CC
  2889. fi
  2890. fi
  2891. fi
  2892. if test -z "$CC"; then
  2893. if test -n "$ac_tool_prefix"; then
  2894. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  2895. set dummy ${ac_tool_prefix}clang; ac_word=$2
  2896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2897. printf %s "checking for $ac_word... " >&6; }
  2898. if test ${ac_cv_prog_CC+y}
  2899. then :
  2900. printf %s "(cached) " >&6
  2901. else case e in #(
  2902. e) if test -n "$CC"; then
  2903. ac_cv_prog_CC="$CC" # Let the user override the test.
  2904. else
  2905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2906. for as_dir in $PATH
  2907. do
  2908. IFS=$as_save_IFS
  2909. case $as_dir in #(((
  2910. '') as_dir=./ ;;
  2911. */) ;;
  2912. *) as_dir=$as_dir/ ;;
  2913. esac
  2914. for ac_exec_ext in '' $ac_executable_extensions; do
  2915. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2916. ac_cv_prog_CC="${ac_tool_prefix}clang"
  2917. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. IFS=$as_save_IFS
  2923. fi ;;
  2924. esac
  2925. fi
  2926. CC=$ac_cv_prog_CC
  2927. if test -n "$CC"; then
  2928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2929. printf "%s\n" "$CC" >&6; }
  2930. else
  2931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2932. printf "%s\n" "no" >&6; }
  2933. fi
  2934. fi
  2935. if test -z "$ac_cv_prog_CC"; then
  2936. ac_ct_CC=$CC
  2937. # Extract the first word of "clang", so it can be a program name with args.
  2938. set dummy clang; ac_word=$2
  2939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2940. printf %s "checking for $ac_word... " >&6; }
  2941. if test ${ac_cv_prog_ac_ct_CC+y}
  2942. then :
  2943. printf %s "(cached) " >&6
  2944. else case e in #(
  2945. e) if test -n "$ac_ct_CC"; then
  2946. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2947. else
  2948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2949. for as_dir in $PATH
  2950. do
  2951. IFS=$as_save_IFS
  2952. case $as_dir in #(((
  2953. '') as_dir=./ ;;
  2954. */) ;;
  2955. *) as_dir=$as_dir/ ;;
  2956. esac
  2957. for ac_exec_ext in '' $ac_executable_extensions; do
  2958. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2959. ac_cv_prog_ac_ct_CC="clang"
  2960. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2961. break 2
  2962. fi
  2963. done
  2964. done
  2965. IFS=$as_save_IFS
  2966. fi ;;
  2967. esac
  2968. fi
  2969. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2970. if test -n "$ac_ct_CC"; then
  2971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2972. printf "%s\n" "$ac_ct_CC" >&6; }
  2973. else
  2974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. printf "%s\n" "no" >&6; }
  2976. fi
  2977. if test "x$ac_ct_CC" = x; then
  2978. CC=""
  2979. else
  2980. case $cross_compiling:$ac_tool_warned in
  2981. yes:)
  2982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2983. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2984. ac_tool_warned=yes ;;
  2985. esac
  2986. CC=$ac_ct_CC
  2987. fi
  2988. else
  2989. CC="$ac_cv_prog_CC"
  2990. fi
  2991. fi
  2992. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2993. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2994. as_fn_error $? "no acceptable C compiler found in \$PATH
  2995. See 'config.log' for more details" "$LINENO" 5; }
  2996. # Provide some information about the compiler.
  2997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2998. set X $ac_compile
  2999. ac_compiler=$2
  3000. for ac_option in --version -v -V -qversion -version; do
  3001. { { ac_try="$ac_compiler $ac_option >&5"
  3002. case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3007. printf "%s\n" "$ac_try_echo"; } >&5
  3008. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3009. ac_status=$?
  3010. if test -s conftest.err; then
  3011. sed '10a\
  3012. ... rest of stderr output deleted ...
  3013. 10q' conftest.err >conftest.er1
  3014. cat conftest.er1 >&5
  3015. fi
  3016. rm -f conftest.er1 conftest.err
  3017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3018. test $ac_status = 0; }
  3019. done
  3020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3021. /* end confdefs.h. */
  3022. int
  3023. main (void)
  3024. {
  3025. ;
  3026. return 0;
  3027. }
  3028. _ACEOF
  3029. ac_clean_files_save=$ac_clean_files
  3030. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3031. # Try to create an executable without -o first, disregard a.out.
  3032. # It will help us diagnose broken compilers, and finding out an intuition
  3033. # of exeext.
  3034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3035. printf %s "checking whether the C compiler works... " >&6; }
  3036. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3037. # The possible output files:
  3038. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3039. ac_rmfiles=
  3040. for ac_file in $ac_files
  3041. do
  3042. case $ac_file in
  3043. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3044. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3045. esac
  3046. done
  3047. rm -f $ac_rmfiles
  3048. if { { ac_try="$ac_link_default"
  3049. case "(($ac_try" in
  3050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3051. *) ac_try_echo=$ac_try;;
  3052. esac
  3053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3054. printf "%s\n" "$ac_try_echo"; } >&5
  3055. (eval "$ac_link_default") 2>&5
  3056. ac_status=$?
  3057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3058. test $ac_status = 0; }
  3059. then :
  3060. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  3061. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  3062. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3063. # so that the user can short-circuit this test for compilers unknown to
  3064. # Autoconf.
  3065. for ac_file in $ac_files ''
  3066. do
  3067. test -f "$ac_file" || continue
  3068. case $ac_file in
  3069. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3070. ;;
  3071. [ab].out )
  3072. # We found the default executable, but exeext='' is most
  3073. # certainly right.
  3074. break;;
  3075. *.* )
  3076. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3077. then :; else
  3078. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3079. fi
  3080. # We set ac_cv_exeext here because the later test for it is not
  3081. # safe: cross compilers may not add the suffix if given an '-o'
  3082. # argument, so we may need to know it at that point already.
  3083. # Even if this section looks crufty: it has the advantage of
  3084. # actually working.
  3085. break;;
  3086. * )
  3087. break;;
  3088. esac
  3089. done
  3090. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3091. else case e in #(
  3092. e) ac_file='' ;;
  3093. esac
  3094. fi
  3095. if test -z "$ac_file"
  3096. then :
  3097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3098. printf "%s\n" "no" >&6; }
  3099. printf "%s\n" "$as_me: failed program was:" >&5
  3100. sed 's/^/| /' conftest.$ac_ext >&5
  3101. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3102. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3103. as_fn_error 77 "C compiler cannot create executables
  3104. See 'config.log' for more details" "$LINENO" 5; }
  3105. else case e in #(
  3106. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3107. printf "%s\n" "yes" >&6; } ;;
  3108. esac
  3109. fi
  3110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3111. printf %s "checking for C compiler default output file name... " >&6; }
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3113. printf "%s\n" "$ac_file" >&6; }
  3114. ac_exeext=$ac_cv_exeext
  3115. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3116. ac_clean_files=$ac_clean_files_save
  3117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3118. printf %s "checking for suffix of executables... " >&6; }
  3119. if { { ac_try="$ac_link"
  3120. case "(($ac_try" in
  3121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3122. *) ac_try_echo=$ac_try;;
  3123. esac
  3124. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3125. printf "%s\n" "$ac_try_echo"; } >&5
  3126. (eval "$ac_link") 2>&5
  3127. ac_status=$?
  3128. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3129. test $ac_status = 0; }
  3130. then :
  3131. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  3132. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  3133. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  3134. # 'rm'.
  3135. for ac_file in conftest.exe conftest conftest.*; do
  3136. test -f "$ac_file" || continue
  3137. case $ac_file in
  3138. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3139. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3140. break;;
  3141. * ) break;;
  3142. esac
  3143. done
  3144. else case e in #(
  3145. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3146. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3147. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3148. See 'config.log' for more details" "$LINENO" 5; } ;;
  3149. esac
  3150. fi
  3151. rm -f conftest conftest$ac_cv_exeext
  3152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3153. printf "%s\n" "$ac_cv_exeext" >&6; }
  3154. rm -f conftest.$ac_ext
  3155. EXEEXT=$ac_cv_exeext
  3156. ac_exeext=$EXEEXT
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. #include <stdio.h>
  3160. int
  3161. main (void)
  3162. {
  3163. FILE *f = fopen ("conftest.out", "w");
  3164. if (!f)
  3165. return 1;
  3166. return ferror (f) || fclose (f) != 0;
  3167. ;
  3168. return 0;
  3169. }
  3170. _ACEOF
  3171. ac_clean_files="$ac_clean_files conftest.out"
  3172. # Check that the compiler produces executables we can run. If not, either
  3173. # the compiler is broken, or we cross compile.
  3174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3175. printf %s "checking whether we are cross compiling... " >&6; }
  3176. if test "$cross_compiling" != yes; then
  3177. { { ac_try="$ac_link"
  3178. case "(($ac_try" in
  3179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3180. *) ac_try_echo=$ac_try;;
  3181. esac
  3182. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3183. printf "%s\n" "$ac_try_echo"; } >&5
  3184. (eval "$ac_link") 2>&5
  3185. ac_status=$?
  3186. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3187. test $ac_status = 0; }
  3188. if { ac_try='./conftest$ac_cv_exeext'
  3189. { { case "(($ac_try" in
  3190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3191. *) ac_try_echo=$ac_try;;
  3192. esac
  3193. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3194. printf "%s\n" "$ac_try_echo"; } >&5
  3195. (eval "$ac_try") 2>&5
  3196. ac_status=$?
  3197. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3198. test $ac_status = 0; }; }; then
  3199. cross_compiling=no
  3200. else
  3201. if test "$cross_compiling" = maybe; then
  3202. cross_compiling=yes
  3203. else
  3204. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3205. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3206. as_fn_error 77 "cannot run C compiled programs.
  3207. If you meant to cross compile, use '--host'.
  3208. See 'config.log' for more details" "$LINENO" 5; }
  3209. fi
  3210. fi
  3211. fi
  3212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3213. printf "%s\n" "$cross_compiling" >&6; }
  3214. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  3215. conftest.o conftest.obj conftest.out
  3216. ac_clean_files=$ac_clean_files_save
  3217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3218. printf %s "checking for suffix of object files... " >&6; }
  3219. if test ${ac_cv_objext+y}
  3220. then :
  3221. printf %s "(cached) " >&6
  3222. else case e in #(
  3223. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. int
  3226. main (void)
  3227. {
  3228. ;
  3229. return 0;
  3230. }
  3231. _ACEOF
  3232. rm -f conftest.o conftest.obj
  3233. if { { ac_try="$ac_compile"
  3234. case "(($ac_try" in
  3235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3236. *) ac_try_echo=$ac_try;;
  3237. esac
  3238. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3239. printf "%s\n" "$ac_try_echo"; } >&5
  3240. (eval "$ac_compile") 2>&5
  3241. ac_status=$?
  3242. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3243. test $ac_status = 0; }
  3244. then :
  3245. for ac_file in conftest.o conftest.obj conftest.*; do
  3246. test -f "$ac_file" || continue;
  3247. case $ac_file in
  3248. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3249. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3250. break;;
  3251. esac
  3252. done
  3253. else case e in #(
  3254. e) printf "%s\n" "$as_me: failed program was:" >&5
  3255. sed 's/^/| /' conftest.$ac_ext >&5
  3256. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3257. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3258. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3259. See 'config.log' for more details" "$LINENO" 5; } ;;
  3260. esac
  3261. fi
  3262. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  3263. esac
  3264. fi
  3265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3266. printf "%s\n" "$ac_cv_objext" >&6; }
  3267. OBJEXT=$ac_cv_objext
  3268. ac_objext=$OBJEXT
  3269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3270. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3271. if test ${ac_cv_c_compiler_gnu+y}
  3272. then :
  3273. printf %s "(cached) " >&6
  3274. else case e in #(
  3275. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3276. /* end confdefs.h. */
  3277. int
  3278. main (void)
  3279. {
  3280. #ifndef __GNUC__
  3281. choke me
  3282. #endif
  3283. ;
  3284. return 0;
  3285. }
  3286. _ACEOF
  3287. if ac_fn_c_try_compile "$LINENO"
  3288. then :
  3289. ac_compiler_gnu=yes
  3290. else case e in #(
  3291. e) ac_compiler_gnu=no ;;
  3292. esac
  3293. fi
  3294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3295. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3296. ;;
  3297. esac
  3298. fi
  3299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3300. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3302. if test $ac_compiler_gnu = yes; then
  3303. GCC=yes
  3304. else
  3305. GCC=
  3306. fi
  3307. ac_test_CFLAGS=${CFLAGS+y}
  3308. ac_save_CFLAGS=$CFLAGS
  3309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3310. printf %s "checking whether $CC accepts -g... " >&6; }
  3311. if test ${ac_cv_prog_cc_g+y}
  3312. then :
  3313. printf %s "(cached) " >&6
  3314. else case e in #(
  3315. e) ac_save_c_werror_flag=$ac_c_werror_flag
  3316. ac_c_werror_flag=yes
  3317. ac_cv_prog_cc_g=no
  3318. CFLAGS="-g"
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. int
  3322. main (void)
  3323. {
  3324. ;
  3325. return 0;
  3326. }
  3327. _ACEOF
  3328. if ac_fn_c_try_compile "$LINENO"
  3329. then :
  3330. ac_cv_prog_cc_g=yes
  3331. else case e in #(
  3332. e) CFLAGS=""
  3333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3334. /* end confdefs.h. */
  3335. int
  3336. main (void)
  3337. {
  3338. ;
  3339. return 0;
  3340. }
  3341. _ACEOF
  3342. if ac_fn_c_try_compile "$LINENO"
  3343. then :
  3344. else case e in #(
  3345. e) ac_c_werror_flag=$ac_save_c_werror_flag
  3346. CFLAGS="-g"
  3347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3348. /* end confdefs.h. */
  3349. int
  3350. main (void)
  3351. {
  3352. ;
  3353. return 0;
  3354. }
  3355. _ACEOF
  3356. if ac_fn_c_try_compile "$LINENO"
  3357. then :
  3358. ac_cv_prog_cc_g=yes
  3359. fi
  3360. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3361. esac
  3362. fi
  3363. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3364. esac
  3365. fi
  3366. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3367. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  3368. esac
  3369. fi
  3370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3371. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3372. if test $ac_test_CFLAGS; then
  3373. CFLAGS=$ac_save_CFLAGS
  3374. elif test $ac_cv_prog_cc_g = yes; then
  3375. if test "$GCC" = yes; then
  3376. CFLAGS="-g -O2"
  3377. else
  3378. CFLAGS="-g"
  3379. fi
  3380. else
  3381. if test "$GCC" = yes; then
  3382. CFLAGS="-O2"
  3383. else
  3384. CFLAGS=
  3385. fi
  3386. fi
  3387. ac_prog_cc_stdc=no
  3388. if test x$ac_prog_cc_stdc = xno
  3389. then :
  3390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3391. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3392. if test ${ac_cv_prog_cc_c11+y}
  3393. then :
  3394. printf %s "(cached) " >&6
  3395. else case e in #(
  3396. e) ac_cv_prog_cc_c11=no
  3397. ac_save_CC=$CC
  3398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3399. /* end confdefs.h. */
  3400. $ac_c_conftest_c11_program
  3401. _ACEOF
  3402. for ac_arg in '' -std=gnu11
  3403. do
  3404. CC="$ac_save_CC $ac_arg"
  3405. if ac_fn_c_try_compile "$LINENO"
  3406. then :
  3407. ac_cv_prog_cc_c11=$ac_arg
  3408. fi
  3409. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3410. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3411. done
  3412. rm -f conftest.$ac_ext
  3413. CC=$ac_save_CC ;;
  3414. esac
  3415. fi
  3416. if test "x$ac_cv_prog_cc_c11" = xno
  3417. then :
  3418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3419. printf "%s\n" "unsupported" >&6; }
  3420. else case e in #(
  3421. e) if test "x$ac_cv_prog_cc_c11" = x
  3422. then :
  3423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3424. printf "%s\n" "none needed" >&6; }
  3425. else case e in #(
  3426. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3427. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3428. CC="$CC $ac_cv_prog_cc_c11" ;;
  3429. esac
  3430. fi
  3431. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3432. ac_prog_cc_stdc=c11 ;;
  3433. esac
  3434. fi
  3435. fi
  3436. if test x$ac_prog_cc_stdc = xno
  3437. then :
  3438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3439. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3440. if test ${ac_cv_prog_cc_c99+y}
  3441. then :
  3442. printf %s "(cached) " >&6
  3443. else case e in #(
  3444. e) ac_cv_prog_cc_c99=no
  3445. ac_save_CC=$CC
  3446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3447. /* end confdefs.h. */
  3448. $ac_c_conftest_c99_program
  3449. _ACEOF
  3450. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3451. do
  3452. CC="$ac_save_CC $ac_arg"
  3453. if ac_fn_c_try_compile "$LINENO"
  3454. then :
  3455. ac_cv_prog_cc_c99=$ac_arg
  3456. fi
  3457. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3458. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3459. done
  3460. rm -f conftest.$ac_ext
  3461. CC=$ac_save_CC ;;
  3462. esac
  3463. fi
  3464. if test "x$ac_cv_prog_cc_c99" = xno
  3465. then :
  3466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3467. printf "%s\n" "unsupported" >&6; }
  3468. else case e in #(
  3469. e) if test "x$ac_cv_prog_cc_c99" = x
  3470. then :
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3472. printf "%s\n" "none needed" >&6; }
  3473. else case e in #(
  3474. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3475. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3476. CC="$CC $ac_cv_prog_cc_c99" ;;
  3477. esac
  3478. fi
  3479. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3480. ac_prog_cc_stdc=c99 ;;
  3481. esac
  3482. fi
  3483. fi
  3484. if test x$ac_prog_cc_stdc = xno
  3485. then :
  3486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3487. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3488. if test ${ac_cv_prog_cc_c89+y}
  3489. then :
  3490. printf %s "(cached) " >&6
  3491. else case e in #(
  3492. e) ac_cv_prog_cc_c89=no
  3493. ac_save_CC=$CC
  3494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3495. /* end confdefs.h. */
  3496. $ac_c_conftest_c89_program
  3497. _ACEOF
  3498. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3499. do
  3500. CC="$ac_save_CC $ac_arg"
  3501. if ac_fn_c_try_compile "$LINENO"
  3502. then :
  3503. ac_cv_prog_cc_c89=$ac_arg
  3504. fi
  3505. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3506. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3507. done
  3508. rm -f conftest.$ac_ext
  3509. CC=$ac_save_CC ;;
  3510. esac
  3511. fi
  3512. if test "x$ac_cv_prog_cc_c89" = xno
  3513. then :
  3514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3515. printf "%s\n" "unsupported" >&6; }
  3516. else case e in #(
  3517. e) if test "x$ac_cv_prog_cc_c89" = x
  3518. then :
  3519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3520. printf "%s\n" "none needed" >&6; }
  3521. else case e in #(
  3522. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3523. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3524. CC="$CC $ac_cv_prog_cc_c89" ;;
  3525. esac
  3526. fi
  3527. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3528. ac_prog_cc_stdc=c89 ;;
  3529. esac
  3530. fi
  3531. fi
  3532. ac_ext=c
  3533. ac_cpp='$CPP $CPPFLAGS'
  3534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3537. ac_header= ac_cache=
  3538. for ac_item in $ac_header_c_list
  3539. do
  3540. if test $ac_cache; then
  3541. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  3542. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  3543. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  3544. fi
  3545. ac_header= ac_cache=
  3546. elif test $ac_header; then
  3547. ac_cache=$ac_item
  3548. else
  3549. ac_header=$ac_item
  3550. fi
  3551. done
  3552. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  3553. then :
  3554. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  3555. fi
  3556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3557. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3558. if test ${ac_cv_safe_to_define___extensions__+y}
  3559. then :
  3560. printf %s "(cached) " >&6
  3561. else case e in #(
  3562. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3563. /* end confdefs.h. */
  3564. # define __EXTENSIONS__ 1
  3565. $ac_includes_default
  3566. int
  3567. main (void)
  3568. {
  3569. ;
  3570. return 0;
  3571. }
  3572. _ACEOF
  3573. if ac_fn_c_try_compile "$LINENO"
  3574. then :
  3575. ac_cv_safe_to_define___extensions__=yes
  3576. else case e in #(
  3577. e) ac_cv_safe_to_define___extensions__=no ;;
  3578. esac
  3579. fi
  3580. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3581. esac
  3582. fi
  3583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3584. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  3585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  3586. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  3587. if test ${ac_cv_should_define__xopen_source+y}
  3588. then :
  3589. printf %s "(cached) " >&6
  3590. else case e in #(
  3591. e) ac_cv_should_define__xopen_source=no
  3592. if test $ac_cv_header_wchar_h = yes
  3593. then :
  3594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3595. /* end confdefs.h. */
  3596. #include <wchar.h>
  3597. mbstate_t x;
  3598. int
  3599. main (void)
  3600. {
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. if ac_fn_c_try_compile "$LINENO"
  3606. then :
  3607. else case e in #(
  3608. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3609. /* end confdefs.h. */
  3610. #define _XOPEN_SOURCE 500
  3611. #include <wchar.h>
  3612. mbstate_t x;
  3613. int
  3614. main (void)
  3615. {
  3616. ;
  3617. return 0;
  3618. }
  3619. _ACEOF
  3620. if ac_fn_c_try_compile "$LINENO"
  3621. then :
  3622. ac_cv_should_define__xopen_source=yes
  3623. fi
  3624. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3625. esac
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3628. fi ;;
  3629. esac
  3630. fi
  3631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  3632. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  3633. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  3634. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  3635. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  3636. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  3637. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  3638. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  3639. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3640. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  3641. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  3642. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  3643. printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
  3644. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  3645. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  3646. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  3647. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  3648. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  3649. if test $ac_cv_header_minix_config_h = yes
  3650. then :
  3651. MINIX=yes
  3652. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  3653. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  3654. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3655. else case e in #(
  3656. e) MINIX= ;;
  3657. esac
  3658. fi
  3659. if test $ac_cv_safe_to_define___extensions__ = yes
  3660. then :
  3661. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  3662. fi
  3663. if test $ac_cv_should_define__xopen_source = yes
  3664. then :
  3665. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  3666. fi
  3667. # Check whether --enable-largefile was given.
  3668. if test ${enable_largefile+y}
  3669. then :
  3670. enableval=$enable_largefile;
  3671. fi
  3672. if test "$enable_largefile,$enable_year2038" != no,no
  3673. then :
  3674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
  3675. printf %s "checking for $CPPFLAGS option for large files... " >&6; }
  3676. if test ${ac_cv_sys_largefile_opts+y}
  3677. then :
  3678. printf %s "(cached) " >&6
  3679. else case e in #(
  3680. e) ac_save_CPPFLAGS=$CPPFLAGS
  3681. ac_opt_found=no
  3682. for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
  3683. if test x"$ac_opt" != x"none needed"
  3684. then :
  3685. CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
  3686. fi
  3687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3688. /* end confdefs.h. */
  3689. #include <sys/types.h>
  3690. #ifndef FTYPE
  3691. # define FTYPE off_t
  3692. #endif
  3693. /* Check that FTYPE can represent 2**63 - 1 correctly.
  3694. We can't simply define LARGE_FTYPE to be 9223372036854775807,
  3695. since some C++ compilers masquerading as C compilers
  3696. incorrectly reject 9223372036854775807. */
  3697. #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
  3698. int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
  3699. && LARGE_FTYPE % 2147483647 == 1)
  3700. ? 1 : -1];
  3701. int
  3702. main (void)
  3703. {
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. if ac_fn_c_try_compile "$LINENO"
  3709. then :
  3710. if test x"$ac_opt" = x"none needed"
  3711. then :
  3712. # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
  3713. CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
  3714. if ac_fn_c_try_compile "$LINENO"
  3715. then :
  3716. else case e in #(
  3717. e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
  3718. if ac_fn_c_try_compile "$LINENO"
  3719. then :
  3720. ac_opt='-D_FILE_OFFSET_BITS=64'
  3721. fi
  3722. rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
  3723. esac
  3724. fi
  3725. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3726. fi
  3727. ac_cv_sys_largefile_opts=$ac_opt
  3728. ac_opt_found=yes
  3729. fi
  3730. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3731. test $ac_opt_found = no || break
  3732. done
  3733. CPPFLAGS=$ac_save_CPPFLAGS
  3734. test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
  3735. esac
  3736. fi
  3737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
  3738. printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
  3739. ac_have_largefile=yes
  3740. case $ac_cv_sys_largefile_opts in #(
  3741. "none needed") :
  3742. ;; #(
  3743. "supported through gnulib") :
  3744. ;; #(
  3745. "support not detected") :
  3746. ac_have_largefile=no ;; #(
  3747. "-D_FILE_OFFSET_BITS=64") :
  3748. printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
  3749. ;; #(
  3750. "-D_LARGE_FILES=1") :
  3751. printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
  3752. ;; #(
  3753. *) :
  3754. as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
  3755. esac
  3756. if test "$enable_year2038" != no
  3757. then :
  3758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
  3759. printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
  3760. if test ${ac_cv_sys_year2038_opts+y}
  3761. then :
  3762. printf %s "(cached) " >&6
  3763. else case e in #(
  3764. e) ac_save_CPPFLAGS="$CPPFLAGS"
  3765. ac_opt_found=no
  3766. for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
  3767. if test x"$ac_opt" != x"none needed"
  3768. then :
  3769. CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
  3770. fi
  3771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3772. /* end confdefs.h. */
  3773. #include <time.h>
  3774. /* Check that time_t can represent 2**32 - 1 correctly. */
  3775. #define LARGE_TIME_T \\
  3776. ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
  3777. int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
  3778. && LARGE_TIME_T % 65537 == 0)
  3779. ? 1 : -1];
  3780. int
  3781. main (void)
  3782. {
  3783. ;
  3784. return 0;
  3785. }
  3786. _ACEOF
  3787. if ac_fn_c_try_compile "$LINENO"
  3788. then :
  3789. ac_cv_sys_year2038_opts="$ac_opt"
  3790. ac_opt_found=yes
  3791. fi
  3792. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3793. test $ac_opt_found = no || break
  3794. done
  3795. CPPFLAGS="$ac_save_CPPFLAGS"
  3796. test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
  3797. esac
  3798. fi
  3799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
  3800. printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
  3801. ac_have_year2038=yes
  3802. case $ac_cv_sys_year2038_opts in #(
  3803. "none needed") :
  3804. ;; #(
  3805. "support not detected") :
  3806. ac_have_year2038=no ;; #(
  3807. "-D_TIME_BITS=64") :
  3808. printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
  3809. ;; #(
  3810. "-D__MINGW_USE_VC2005_COMPAT") :
  3811. printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
  3812. ;; #(
  3813. "-U_USE_32_BIT_TIME_T"*) :
  3814. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3815. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3816. as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
  3817. will stop working after mid-January 2038. Remove
  3818. _USE_32BIT_TIME_T from the compiler flags.
  3819. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  3820. *) :
  3821. as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
  3822. esac
  3823. fi
  3824. fi
  3825. # Find a good install program. We prefer a C program (faster),
  3826. # so one script is as good as another. But avoid the broken or
  3827. # incompatible versions:
  3828. # SysV /etc/install, /usr/sbin/install
  3829. # SunOS /usr/etc/install
  3830. # IRIX /sbin/install
  3831. # AIX /bin/install
  3832. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3833. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3834. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3835. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3836. # OS/2's system install, which has a completely different semantic
  3837. # ./install, which can be erroneously created by make from ./install.sh.
  3838. # Reject install programs that cannot install multiple files.
  3839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3840. printf %s "checking for a BSD-compatible install... " >&6; }
  3841. if test -z "$INSTALL"; then
  3842. if test ${ac_cv_path_install+y}
  3843. then :
  3844. printf %s "(cached) " >&6
  3845. else case e in #(
  3846. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3847. for as_dir in $PATH
  3848. do
  3849. IFS=$as_save_IFS
  3850. case $as_dir in #(((
  3851. '') as_dir=./ ;;
  3852. */) ;;
  3853. *) as_dir=$as_dir/ ;;
  3854. esac
  3855. # Account for fact that we put trailing slashes in our PATH walk.
  3856. case $as_dir in #((
  3857. ./ | /[cC]/* | \
  3858. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3859. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3860. /usr/ucb/* ) ;;
  3861. *)
  3862. # OSF1 and SCO ODT 3.0 have their own names for install.
  3863. # Don't use installbsd from OSF since it installs stuff as root
  3864. # by default.
  3865. for ac_prog in ginstall scoinst install; do
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3868. if test $ac_prog = install &&
  3869. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3870. # AIX install. It has an incompatible calling convention.
  3871. :
  3872. elif test $ac_prog = install &&
  3873. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3874. # program-specific install script used by HP pwplus--don't use.
  3875. :
  3876. else
  3877. rm -rf conftest.one conftest.two conftest.dir
  3878. echo one > conftest.one
  3879. echo two > conftest.two
  3880. mkdir conftest.dir
  3881. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3882. test -s conftest.one && test -s conftest.two &&
  3883. test -s conftest.dir/conftest.one &&
  3884. test -s conftest.dir/conftest.two
  3885. then
  3886. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3887. break 3
  3888. fi
  3889. fi
  3890. fi
  3891. done
  3892. done
  3893. ;;
  3894. esac
  3895. done
  3896. IFS=$as_save_IFS
  3897. rm -rf conftest.one conftest.two conftest.dir
  3898. ;;
  3899. esac
  3900. fi
  3901. if test ${ac_cv_path_install+y}; then
  3902. INSTALL=$ac_cv_path_install
  3903. else
  3904. # As a last resort, use the slow shell script. Don't cache a
  3905. # value for INSTALL within a source directory, because that will
  3906. # break other packages using the cache if that directory is
  3907. # removed, or if the value is a relative name.
  3908. INSTALL=$ac_install_sh
  3909. fi
  3910. fi
  3911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3912. printf "%s\n" "$INSTALL" >&6; }
  3913. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3914. # It thinks the first close brace ends the variable substitution.
  3915. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3916. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3917. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3918. #
  3919. # Get user hints
  3920. #
  3921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what the operating system is " >&5
  3922. printf %s "checking what the operating system is ... " >&6; }
  3923. # Check whether --with-opsys was given.
  3924. if test ${with_opsys+y}
  3925. then :
  3926. withval=$with_opsys;
  3927. #
  3928. # Run this if --with was specified
  3929. #
  3930. if test "x$withval" = x -o x$withval = xno; then
  3931. opsys_wanted=yes
  3932. else
  3933. opsys_wanted=no
  3934. opsys="$withval"
  3935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $opsys" >&5
  3936. printf "%s\n" "$opsys" >&6; }
  3937. fi
  3938. else case e in #(
  3939. e)
  3940. #
  3941. # Run this if --with was not specified
  3942. #
  3943. opsys_wanted=yes
  3944. ;;
  3945. esac
  3946. fi
  3947. if test x$opsys = xno; then
  3948. opsys=""
  3949. opsys_wanted=yes
  3950. elif test x$opsys = xyes; then
  3951. as_fn_error $? "you must enter an O/S type if '--with-opsys' is specified" "$LINENO" 5
  3952. fi
  3953. #
  3954. # Determine operating system if it wasn't supplied
  3955. #
  3956. if test $opsys_wanted=yes; then
  3957. opsys=`uname -s | tr "[A-Z]" "[a-z]"`
  3958. if test x"$opsys" = "x"; then opsys="unknown"; fi
  3959. case $opsys in #(
  3960. darwin*) :
  3961. opsys="osx" ;; #(
  3962. *bsd*) :
  3963. opsys="bsd" ;; #(
  3964. dragonfly) :
  3965. opsys="bsd" ;; #(
  3966. sunos) :
  3967. opsys="solaris" ;; #(
  3968. gnu/hurd) :
  3969. opsys="linux" ;; #(
  3970. irix*) :
  3971. opsys="irix" ;; #(
  3972. cygwin*) :
  3973. opsys="cygwin" ;; #(
  3974. mingw*) :
  3975. opsys="mingw" ;; #(
  3976. msys*) :
  3977. opsys="msys" ;; #(
  3978. *) :
  3979. ;;
  3980. esac
  3981. fi
  3982. arch=`uname -m | tr "[A-Z]" "[a-z]"`
  3983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $opsys" >&5
  3984. printf "%s\n" "$opsys" >&6; }
  3985. #
  3986. # Get user hints for possible cross-compile
  3987. #
  3988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what the distribution type is " >&5
  3989. printf %s "checking what the distribution type is ... " >&6; }
  3990. # Check whether --with-dist-type was given.
  3991. if test ${with_dist_type+y}
  3992. then :
  3993. withval=$with_dist_type;
  3994. #
  3995. # Run this if --with was specified
  3996. #
  3997. if test "x$withval" = x -o x$withval = xno; then
  3998. dist_type_wanted=yes
  3999. else
  4000. dist_type_wanted=no
  4001. dist_type="$withval"
  4002. dist_ver="unknown"
  4003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dist_type" >&5
  4004. printf "%s\n" "$dist_type" >&6; }
  4005. fi
  4006. else case e in #(
  4007. e)
  4008. #
  4009. # Run this if --with was not specified
  4010. #
  4011. dist_type_wanted=yes
  4012. ;;
  4013. esac
  4014. fi
  4015. if test x$dist_type = xno; then
  4016. dist_type_wanted=yes
  4017. elif test x$dist_type = xyes; then
  4018. as_fn_error $? "you must enter a distribution type if '--with-dist-type' is specified" "$LINENO" 5
  4019. fi
  4020. #
  4021. # Determine distribution type if it wasn't supplied
  4022. #
  4023. dist_ver="unknown"
  4024. if test $dist_type_wanted=yes; then
  4025. dist_type="unknown"
  4026. if test "$opsys" != "linux"; then
  4027. dist_type="$opsys"
  4028. case $opsys in #(
  4029. bsd) :
  4030. dist_type=`uname -s | tr "A-Z" "a-z"`
  4031. dist_ver=`uname -r` ;; #(
  4032. aix) :
  4033. dist_ver="`uname -v`.`uname -r`" ;; #(
  4034. hp-ux) :
  4035. dist_ver=`uname -r | cut -d'.' -f1-3` ;; #(
  4036. solaris) :
  4037. dist_ver=`uname -r | cut -d'.' -f2` ;; #(
  4038. *) :
  4039. dist_ver=$OSTYPE
  4040. ;; #(
  4041. *) :
  4042. ;;
  4043. esac
  4044. else
  4045. if test -r "/etc/gentoo-release"; then
  4046. dist_type="gentoo"
  4047. dist_ver=`cat /etc/gentoo-release`
  4048. elif test -r "/etc/os-release"; then
  4049. . /etc/os-release
  4050. if test x"$ID_LIKE" != x; then
  4051. dist_type=`echo $ID_LIKE | cut -d' ' -f1 | tr "[A-Z]" "[a-z]"`
  4052. elif test x"$ID" = xol; then
  4053. dist_type=rh
  4054. else
  4055. dist_type=`echo $ID | tr "[A-Z]" "[a-z]"`
  4056. fi
  4057. if test x"$dist_type" = sles; then
  4058. dist_type=suse
  4059. fi
  4060. if test x"$VERSION_ID" != x; then
  4061. dist_ver=$VERSION_ID
  4062. elif test x"$VERSION" != x; then
  4063. dist_ver=`echo $VERSION | cut -d'.' -f1 | tr -d :alpha::blank::punct:`
  4064. fi
  4065. elif test -r "/etc/redhat-release"; then
  4066. dist_type=rh
  4067. dist_ver=`cat /etc/redhat-release`
  4068. elif test -r "/etc/debian_version"; then
  4069. dist_type="debian"
  4070. if test -r "/etc/lsb-release"; then
  4071. . /etc/lsb-release
  4072. dist_ver=`echo "$DISTRIB_RELEASE"`
  4073. else
  4074. dist_ver=`cat /etc/debian_version`
  4075. fi
  4076. elif test -r "/etc/SuSE-release"; then
  4077. dist_type=suse
  4078. dist_ver=`grep VERSION /etc/SuSE-release`
  4079. fi
  4080. fi
  4081. if test "$dist_ver" != "unknown"; then
  4082. dist_ver=`echo "$dist_ver" | cut -d'.' -f1 | tr -d :alpha::blank::punct:`
  4083. fi
  4084. fi
  4085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dist_type" >&5
  4086. printf "%s\n" "$dist_type" >&6; }
  4087. #
  4088. # Get user hints for possible cross-compile
  4089. #
  4090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what init system is being used " >&5
  4091. printf %s "checking what init system is being used ... " >&6; }
  4092. # Check whether --with-init_type was given.
  4093. if test ${with_init_type+y}
  4094. then :
  4095. withval=$with_init_type;
  4096. #
  4097. # Run this if --with was specified
  4098. #
  4099. if test "x$withval" = x -o x$withval = xno; then
  4100. init_type_wanted=yes
  4101. else
  4102. init_type_wanted=no
  4103. init_type="$withval"
  4104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $init_type" >&5
  4105. printf "%s\n" "$init_type" >&6; }
  4106. fi
  4107. else case e in #(
  4108. e)
  4109. #
  4110. # Run this if --with was not specified
  4111. #
  4112. init_type_wanted=yes
  4113. ;;
  4114. esac
  4115. fi
  4116. if test x$init_type = xno; then
  4117. init_type_wanted=yes
  4118. elif test x$init_type = xyes; then
  4119. as_fn_error $? "you must enter an init type if '--with-init-type' is specified" "$LINENO" 5
  4120. fi
  4121. #
  4122. # Determine init type if it wasn't supplied
  4123. #
  4124. if test $init_type_wanted = yes; then
  4125. init_type=""
  4126. if test x"$opsys" = x; then
  4127. init_type="unknown"
  4128. init_type_wanted=no
  4129. elif test x"$dist_type" = x; then
  4130. init_type="unknown"
  4131. init_type_wanted=no
  4132. elif test "$opsys" = "osx"; then
  4133. init_type="launchd"
  4134. init_type_wanted=no
  4135. elif test "$opsys" = "bsd"; then
  4136. init_type="newbsd"
  4137. init_type_wanted=no
  4138. elif test "$dist_type" = "solaris"; then
  4139. if test -d "/lib/svc/manifest"; then
  4140. init_type="smf11"
  4141. init_type_wanted=no
  4142. elif test -d "/lib/svc/monitor"; then
  4143. init_type="smf10"
  4144. init_type_wanted=no
  4145. else
  4146. init_type="sysv"
  4147. init_type_wanted=no
  4148. fi
  4149. elif test "$dist_type" = "slackware"; then
  4150. init_type="bsd"
  4151. init_type_wanted=no
  4152. elif test "$dist_type" = "aix"; then
  4153. init_type="bsd"
  4154. init_type_wanted=no
  4155. elif test "$dist_type" = "hp-ux"; then
  4156. init_type="unknown"
  4157. init_type_wanted=no
  4158. fi
  4159. fi
  4160. PSCMD="ps -p1 -o args"
  4161. if test $dist_type = solaris; then
  4162. PSCMD="env UNIX95=1; ps -p1 -o args"
  4163. fi
  4164. if test "$init_type_wanted" = yes; then
  4165. pid1=`$PSCMD | grep -vi COMMAND | cut -d' ' -f1`
  4166. if test x"$pid1" = "x"; then
  4167. init_type="unknown"
  4168. init_type_wanted=no
  4169. fi
  4170. if `echo $pid1 | grep "systemd" > /dev/null`; then
  4171. init_type="systemd"
  4172. init_type_wanted=no
  4173. fi
  4174. if test "$init_type_wanted" = yes; then
  4175. if test "$pid1" = "init"; then
  4176. if test -e "/sbin/init"; then
  4177. pid1="/sbin/init";
  4178. elif test -e "/usr/sbin/init"; then
  4179. pid1="/usr/sbin/init"
  4180. else
  4181. init_type="unknown"
  4182. init_type_wanted=no
  4183. fi
  4184. fi
  4185. if test -L "$pid1"; then
  4186. pid1=`readlink "$pid1"`
  4187. fi
  4188. fi
  4189. if test "$init_type_wanted" = yes; then
  4190. if `echo $pid1 | grep "systemd" > /dev/null`; then
  4191. init_type="systemd"
  4192. init_type_wanted=no
  4193. elif test -f "/sbin/rc"; then
  4194. if test -f /sbin/runscript; then
  4195. init_type_wanted=no
  4196. if `/sbin/start-stop-daemon -V | grep "OpenRC" > /dev/null`; then
  4197. init_type="openrc"
  4198. else
  4199. init_type="gentoo"
  4200. fi
  4201. fi
  4202. fi
  4203. fi
  4204. if test "$init_type_wanted" = yes; then
  4205. if test "$pid1" = "/sbin/init" -o "$pid1" = "/usr/sbin/init"; then
  4206. if `$pid1 --version 2>/dev/null | grep "upstart" >/dev/null`; then
  4207. init_type="upstart"
  4208. init_type_wanted=no
  4209. elif test -f "/etc/rc" -a ! -L "/etc/rc"; then
  4210. init_type="newbsd"
  4211. init_type_wanted=no
  4212. else
  4213. init_type="sysv"
  4214. init_type_wanted=no
  4215. fi
  4216. fi
  4217. fi
  4218. if test "$init_type_wanted" = yes; then
  4219. init_type="unknown"
  4220. fi
  4221. fi
  4222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $init_type" >&5
  4223. printf "%s\n" "$init_type" >&6; }
  4224. #
  4225. # Get user hints for possible cross-compile
  4226. #
  4227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what inetd is being used " >&5
  4228. printf %s "checking what inetd is being used ... " >&6; }
  4229. # Check whether --with-inetd_type was given.
  4230. if test ${with_inetd_type+y}
  4231. then :
  4232. withval=$with_inetd_type;
  4233. inetd_type_wanted=yes
  4234. #
  4235. # Run this if --with was specified
  4236. #
  4237. if test "x$withval" = x -o x$withval = xno; then
  4238. inetd_type_wanted=yes
  4239. else
  4240. inetd_type_wanted=no
  4241. inetd_type="$withval"
  4242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $inetd_type" >&5
  4243. printf "%s\n" "$inetd_type" >&6; }
  4244. fi
  4245. else case e in #(
  4246. e)
  4247. #
  4248. # Run this if --with was not specified
  4249. #
  4250. inetd_type_wanted=yes
  4251. ;;
  4252. esac
  4253. fi
  4254. if test x$inetd_type = xno; then
  4255. inetd_type_wanted=yes
  4256. elif test x$inetd_type = xyes; then
  4257. as_fn_error $? "you must enter an inetd type if '--with-inetd-type' is specified" "$LINENO" 5
  4258. fi
  4259. #
  4260. # Determine inetd type if it wasn't supplied
  4261. #
  4262. if test $inetd_type_wanted = yes; then
  4263. inetd_disabled=""
  4264. case $dist_type in #(
  4265. solaris) :
  4266. if test x"$init_type" = "xsmf10" -o x"$init_type" = "xsmf11"; then
  4267. inetd_type="$init_type"
  4268. else
  4269. inetd_type="inetd"
  4270. fi ;; #(
  4271. *bsd*) :
  4272. inetd_type=`ps -A -o comm -c | grep inetd` ;; #(
  4273. osx) :
  4274. inetd_type=`launchd` ;; #(
  4275. aix|hp-ux) :
  4276. inetd_type=`UNIX95= ps -A -o comm | grep inetd | head -1` ;; #(
  4277. *) :
  4278. inetd_type=`ps -C "inetd,xinetd" -o fname | grep -vi COMMAND | head -1` ;; #(
  4279. *) :
  4280. ;;
  4281. esac
  4282. if test x"$inetd_type" = x; then
  4283. if test -f /etc/xinetd.conf -a -d /etc/xinetd.d; then
  4284. inetd_disabled="(Not running)"
  4285. inetd_type=xinetd
  4286. elif test -f /etc/inetd.conf -o -f /usr/sbin/inetd; then
  4287. inetd_type=inetd
  4288. inetd_disabled="(Not running)"
  4289. fi
  4290. fi
  4291. if test x"$inetd_type" = x; then
  4292. if test x"$init_type" = "xupstart"; then
  4293. inetd_type="upstart"
  4294. fi
  4295. fi
  4296. if test x"$inetd_type" = x; then
  4297. if test x"$init_type" = "xsystemd"; then
  4298. inetd_type="systemd"
  4299. else
  4300. inetd_type="unknown"
  4301. fi
  4302. fi
  4303. if test -n "$inetd_disabled"; then
  4304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $inetd_type $inetd_disabled" >&5
  4305. printf "%s\n" "$inetd_type $inetd_disabled" >&6; }
  4306. else
  4307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $inetd_type" >&5
  4308. printf "%s\n" "$inetd_type" >&6; }
  4309. fi
  4310. fi
  4311. if test x$DBG_PATHS != x; then
  4312. echo
  4313. echo Incoming paths:
  4314. echo " prefix $prefix"
  4315. echo " exec_prefix $exec_prefix"
  4316. echo " bindir $bindir"
  4317. echo " sbindir $sbindir"
  4318. echo " libexecdir $libexecdir"
  4319. echo " sysconfdir $sysconfdir"
  4320. echo " localstatedir $localstatedir"
  4321. echo " datarootdir $datarootdir"
  4322. echo " datadir $datadir"
  4323. echo " localedir $localedir"
  4324. echo
  4325. fi
  4326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for which paths to use " >&5
  4327. printf %s "checking for which paths to use ... " >&6; }
  4328. # Check whether --enable-install_method was given.
  4329. if test ${enable_install_method+y}
  4330. then :
  4331. enableval=$enable_install_method; install_method=$enableval
  4332. else case e in #(
  4333. e) install_method=default
  4334. ;;
  4335. esac
  4336. fi
  4337. # Check whether --enable-showdirs_only was given.
  4338. if test ${enable_showdirs_only+y}
  4339. then :
  4340. enableval=$enable_showdirs_only; showdirs_only=$enableval
  4341. else case e in #(
  4342. e) showdirs_only=no
  4343. ;;
  4344. esac
  4345. fi
  4346. case $install_method in #(
  4347. yes) :
  4348. install_method="os" ;; #(
  4349. no) :
  4350. install_method="default" ;; #(
  4351. default|os) :
  4352. : ;; #(
  4353. *) :
  4354. echo >&6; as_fn_error $? "'--enable-install-method=$install_method' is invalid" "$LINENO" 5
  4355. ;; #(
  4356. *) :
  4357. ;;
  4358. esac
  4359. if test $showdirs_only != "no"; then showdirs_only="yes"; fi
  4360. case $dist_type in #(
  4361. *solaris*|*hp-ux*|*aix*|*osx*) :
  4362. opsys=unix ;; #(
  4363. *) :
  4364. ;;
  4365. esac
  4366. # Does this package need to know:
  4367. need_cgi=no # where the cgi-bin directory is
  4368. need_web=no # where the website directory is
  4369. need_brk=no # where the event broker modules directory is
  4370. need_plg=no # where the plugins directory is
  4371. need_pipe=no # where the pipe directory is
  4372. need_spl=no # where the spool directory is
  4373. need_loc=no # where the locale directory is
  4374. need_log_subdir=no # where the loc sub-directory is
  4375. need_etc_subdir=no # where the etc sub-directory is
  4376. need_pls_dir=no # where the package locate state directory is
  4377. if test x"$INIT_PROG" = x; then
  4378. INIT_PROG="$PKG_NAME"
  4379. fi
  4380. case $PKG_NAME in #(
  4381. nagios) :
  4382. need_log_subdir=yes
  4383. need_etc_subdir=yes
  4384. need_pls_dir=yes
  4385. need_brk=yes
  4386. need_pipe=yes
  4387. need_spl=yes
  4388. need_loc=yes
  4389. need_cgi=yes
  4390. need_web=yes ;; #(
  4391. ndoutils) :
  4392. need_brk=yes
  4393. need_spl=yes ;; #(
  4394. nrpe) :
  4395. need_plg=yes ;; #(
  4396. nsca) :
  4397. need_cgi=no ;; #(
  4398. plugins) :
  4399. need_loc=yes
  4400. need_plg=yes
  4401. ;; #(
  4402. *) :
  4403. ;;
  4404. esac
  4405. # Check whether --with-pkgsysconfdir was given.
  4406. if test ${with_pkgsysconfdir+y}
  4407. then :
  4408. withval=$with_pkgsysconfdir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4409. pkgsysconfdir="$withval"
  4410. fi
  4411. fi
  4412. # Check whether --with-objsysconfdir was given.
  4413. if test ${with_objsysconfdir+y}
  4414. then :
  4415. withval=$with_objsysconfdir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4416. objsysconfdir="$withval"
  4417. fi
  4418. fi
  4419. # Check whether --with-privatesysconfdir was given.
  4420. if test ${with_privatesysconfdir+y}
  4421. then :
  4422. withval=$with_privatesysconfdir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4423. privatesysconfdir="$withval"
  4424. fi
  4425. fi
  4426. # Check whether --with-webdir was given.
  4427. if test ${with_webdir+y}
  4428. then :
  4429. withval=$with_webdir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4430. webdir="$withval"
  4431. fi
  4432. fi
  4433. # Check whether --with-pluginsdir was given.
  4434. if test ${with_pluginsdir+y}
  4435. then :
  4436. withval=$with_pluginsdir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4437. pluginsdir="$withval"
  4438. fi
  4439. fi
  4440. # Check whether --with-brokersdir was given.
  4441. if test ${with_brokersdir+y}
  4442. then :
  4443. withval=$with_brokersdir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4444. brokersdir="$withval"
  4445. fi
  4446. fi
  4447. # Check whether --with-cgibindir was given.
  4448. if test ${with_cgibindir+y}
  4449. then :
  4450. withval=$with_cgibindir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4451. cgibindir="$withval"
  4452. fi
  4453. fi
  4454. # Check whether --with-logdir was given.
  4455. if test ${with_logdir+y}
  4456. then :
  4457. withval=$with_logdir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4458. logdir="$withval"
  4459. fi
  4460. fi
  4461. # Check whether --with-piddir was given.
  4462. if test ${with_piddir+y}
  4463. then :
  4464. withval=$with_piddir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4465. piddir="$withval"
  4466. fi
  4467. fi
  4468. # Check whether --with-pipedir was given.
  4469. if test ${with_pipedir+y}
  4470. then :
  4471. withval=$with_pipedir; if test x$withval != x -a x$withval != xno -a x$withval != xyes; then
  4472. pipedir="$withval"
  4473. fi
  4474. fi
  4475. #
  4476. # Setup the base directory
  4477. #
  4478. if test $install_method = "default"; then
  4479. if test $opsys = "unix"; then
  4480. if test x"$prefix" = "xNONE"; then prefix="/usr/local/nagios"; fi
  4481. else
  4482. if test x"$prefix" = "xNONE"; then prefix=${ac_default_prefix}; fi
  4483. fi
  4484. datarootdir=${datarootdir="$prefix"}
  4485. else
  4486. if test x"$datadir" = x'${datarootdir}'; then { datadir=; unset datadir;}; fi
  4487. if test x"$sysconfdir" = x'${prefix}/etc'; then { sysconfdir=; unset sysconfdir;}; fi
  4488. if test x"$prefix" = "xNONE"; then
  4489. if test $dist_type = freebsd -o $dist_type = openbsd -o $dist_type = osx; then
  4490. prefix="/usr/local"
  4491. elif test $dist_type = netbsd; then
  4492. prefix="/usr/pkg"
  4493. else
  4494. prefix="/usr"
  4495. fi
  4496. fi
  4497. if test x"$exec_prefix" = "xNONE"; then exec_prefix=$prefix; fi
  4498. if test x"$localstatedir" = x'${prefix}/var'; then
  4499. if test $dist_type = "osx"; then
  4500. localstatedir="/private/var"
  4501. else
  4502. localstatedir="/var"
  4503. fi
  4504. fi
  4505. if test $opsys = "unix"; then
  4506. if test x"$datarootdir" = x'${prefix}/share'; then
  4507. if test $dist_type = "hp-ux"; then
  4508. datarootdir="/usr/local/share"
  4509. if test x"$libexecdir" = x'${exec_prefix}/libexec'; then
  4510. libexecdir="/usr/nagios"
  4511. fi
  4512. elif test $dist_type = "osx"; then
  4513. datarootdir="/usr/local/share"
  4514. if test x"$libexecdir" = x'${exec_prefix}/libexec'; then
  4515. libexecdir="/usr/local/nagios"
  4516. fi
  4517. elif test x"$libexecdir" = x'${exec_prefix}/libexec'; then
  4518. libexecdir="/usr/lib/nagios"
  4519. fi
  4520. fi
  4521. if test $dist_type = "osx"; then
  4522. if test x"$sbindir" = x'${exec_prefix}/sbin'; then
  4523. sbindir="$libexecdir"
  4524. fi
  4525. if test x"$libexecdir" = x'${exec_prefix}/libexec'; then
  4526. libexecdir="/usr/local/libexec/nagios"
  4527. fi
  4528. fi
  4529. elif test $opsys = "bsd"; then
  4530. if test x"$libexecdir" = x'${exec_prefix}/libexec'; then
  4531. libexecdir=${exec_prefix}/libexec/nagios;
  4532. fi
  4533. elif test x"$libexecdir" = x'${exec_prefix}/lib'; then
  4534. libexecdir=${libexecdir}/nagios;
  4535. elif test x"$libexecdir" = x'${exec_prefix}/libexec'; then
  4536. libexecdir=${exec_prefix}/lib/nagios;
  4537. fi
  4538. fi
  4539. if test x"$exec_prefix" = "xNONE"; then exec_prefix=${prefix}; fi
  4540. tmpfilesd=${tmpfilesd="/usr/lib/tmpfiles.d"}
  4541. if test ! -d "$tmpfilesd"; then
  4542. tmpfilesd="N/A"
  4543. else
  4544. tmpfilesd="$tmpfilesd/$INIT_PROG.conf"
  4545. fi
  4546. subsyslockdir=${subsyslockdir="/var/lock/subsys"}
  4547. if test ! -d "$subsyslockdir"; then
  4548. subsyslockdir="N/A"
  4549. subsyslockfile="N/A"
  4550. else
  4551. subsyslockfile="$subsyslockdir/$INIT_PROG"
  4552. fi
  4553. if test "$need_loc" = no; then
  4554. localedir="N/A"
  4555. fi
  4556. if test $install_method = "default" ; then
  4557. #
  4558. # Do the default setup
  4559. #
  4560. sbindir=${bindir}
  4561. datadir=${datadir="$datarootdir"}
  4562. if test $need_web = yes; then
  4563. webdir=${webdir="$datadir"}
  4564. else
  4565. webdir="N/A"
  4566. fi
  4567. if test $opsys = "unix"; then
  4568. sysconfdir=${sysconfdir="/etc/opt"}
  4569. fi
  4570. pkgsysconfdir=${pkgsysconfdir="$sysconfdir"}
  4571. if test $need_etc_subdir = yes; then
  4572. objsysconfdir=${objsysconfdir="$pkgsysconfdir/objects"}
  4573. else
  4574. objsysconfdir="N/A"
  4575. fi
  4576. privatesysconfdir=${privatesysconfdir="$pkgsysconfdir"}
  4577. logdir=${logdir="$localstatedir"}
  4578. piddir=${piddir="$localstatedir"}
  4579. if test "$need_pipe" = yes; then
  4580. pipedir=${pipedir="$localstatedir/rw"}
  4581. else
  4582. pipedir="N/A"
  4583. fi
  4584. if test "$need_pls_dir" = yes; then
  4585. pkglocalstatedir=${pkglocalstatedir="$localstatedir"}
  4586. else
  4587. pkglocalstatedir="N/A"
  4588. fi
  4589. if test "$need_spl" = yes; then
  4590. spooldir=${spooldir="$localstatedir/var"}
  4591. else
  4592. spooldir="N/A"
  4593. fi
  4594. if test $need_brk = yes; then
  4595. brokersdir=${brokersdir="$bindir"}
  4596. else
  4597. brokersdir="N/A"
  4598. fi
  4599. if test $need_plg = yes; then
  4600. pluginsdir=${pluginsdir="$libexecdir"}
  4601. else
  4602. pluginsdir="N/A"
  4603. fi
  4604. if test $need_cgi = yes; then
  4605. cgibindir=${cgibindir="$prefix/sbin"}
  4606. else
  4607. cgibindir="N/A"
  4608. fi
  4609. elif test $opsys = "linux"; then
  4610. #
  4611. # Linux "Standard" install
  4612. #
  4613. install_method="$install_method : FHS"
  4614. datadir=${datadir="$datarootdir/nagios"}
  4615. if test $need_web = yes; then
  4616. webdir=${webdir="$datadir/html"}
  4617. else
  4618. webdir="N/A"
  4619. fi
  4620. sysconfdir=${sysconfdir="/etc"}
  4621. pkgsysconfdir=${pkgsysconfdir="$sysconfdir/nagios"}
  4622. if test $need_etc_subdir = yes; then
  4623. objsysconfdir=${objsysconfdir="$pkgsysconfdir/objects"}
  4624. else
  4625. objsysconfdir="N/A"
  4626. fi
  4627. privatesysconfdir=${privatesysconfdir="$pkgsysconfdir/private"}
  4628. if test $need_log_subdir = yes; then
  4629. logdir=${logdir="$localstatedir/log/$INIT_PROG"}
  4630. else
  4631. logdir=${logdir="$localstatedir/log"}
  4632. fi
  4633. piddir=${piddir="$localstatedir/run/${INIT_PROG}"}
  4634. if test "$need_pipe" = yes; then
  4635. pipedir=${pipedir="$localstatedir/run/${INIT_PROG}"}
  4636. else
  4637. pipedir="N/A"
  4638. fi
  4639. if test "$need_pls_dir" = yes; then
  4640. pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$INIT_PROG"}
  4641. else
  4642. pkglocalstatedir="N/A"
  4643. fi
  4644. if test "$need_spl" = yes; then
  4645. spooldir=${spooldir="$localstatedir/spool/$INIT_PROG"}
  4646. else
  4647. spooldir="N/A"
  4648. fi
  4649. if test $need_brk = yes; then
  4650. brokersdir=${brokersdir="$libexecdir/brokers"}
  4651. else
  4652. brokersdir="N/A"
  4653. fi
  4654. if test $need_plg = yes; then
  4655. pluginsdir=${pluginsdir="$libexecdir/plugins"}
  4656. else
  4657. pluginsdir="N/A"
  4658. fi
  4659. if test $need_cgi = yes; then
  4660. cgibindir=${cgibindir="$libexecdir/cgi-bin"}
  4661. else
  4662. cgibindir="N/A"
  4663. fi
  4664. elif test $opsys = "unix"; then
  4665. #
  4666. # "Standard" Unix install
  4667. #
  4668. install_method="$install_method : Unix Standard"
  4669. if test $dist_type = osx; then
  4670. install_method="$install_method : OS X Standard"
  4671. sbindir=${sbindir="/usr/local/libexec"}
  4672. fi
  4673. datadir=${datadir="$datarootdir/nagios"}
  4674. if test $need_web = yes; then
  4675. webdir=${webdir="$datadir/html"}
  4676. else
  4677. webdir="N/A"
  4678. fi
  4679. if test $dist_type = osx; then
  4680. sysconfdir=${sysconfdir="/private/etc"}
  4681. else
  4682. sysconfdir=${sysconfdir="/etc"}
  4683. fi
  4684. pkgsysconfdir=${pkgsysconfdir="$sysconfdir/nagios"}
  4685. if test $need_etc_subdir = yes; then
  4686. objsysconfdir=${objsysconfdir="$pkgsysconfdir/objects"}
  4687. else
  4688. objsysconfdir="N/A"
  4689. fi
  4690. privatesysconfdir=${privatesysconfdir="$pkgsysconfdir/private"}
  4691. if test "$need_pls_dir" = yes; then
  4692. pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$INIT_PROG"}
  4693. else
  4694. pkglocalstatedir="N/A"
  4695. fi
  4696. if test "$need_loc" = yes; then
  4697. localedir=${localedir="/usr/local/share/locale/<lang>/LC_MESSAGES/nagios-plugins.mo"}
  4698. fi
  4699. if test "$need_spl" = yes; then
  4700. spooldir=${spooldir="$localstatedir/spool/$INIT_PROG"}
  4701. else
  4702. spooldir="N/A"
  4703. fi
  4704. if test $need_brk = yes; then
  4705. brokersdir=${brokersdir="$libexecdir/brokers"}
  4706. else
  4707. brokersdir="N/A"
  4708. fi
  4709. if test $need_plg = yes; then
  4710. pluginsdir=${pluginsdir="$libexecdir/plugins"}
  4711. else
  4712. pluginsdir="N/A"
  4713. fi
  4714. if test $need_cgi = yes; then
  4715. cgibindir=${cgibindir="$libexecdir/cgi-bin"}
  4716. else
  4717. cgibindir="N/A"
  4718. fi
  4719. case $dist_type in #(
  4720. *hp-ux*) :
  4721. piddir=${piddir="$pkgsysconfdir"}
  4722. pipedir=${pipedir="$pkglocalstatedir"}
  4723. logdir=${logdir="$pkglocalstatedir/log"} ;; #(
  4724. *) :
  4725. piddir=${piddir="$localstatedir/run/${INIT_PROG}"}
  4726. if test "$need_pipe" = yes; then
  4727. pipedir=${pipedir="$localstatedir/run/${INIT_PROG}"}
  4728. else
  4729. pipedir="N/A"
  4730. fi
  4731. if test $need_log_subdir = yes; then
  4732. logdir=${logdir="$localstatedir/log/$INIT_PROG"}
  4733. else
  4734. logdir=${logdir="$localstatedir/log"}
  4735. fi
  4736. ;; #(
  4737. *) :
  4738. ;;
  4739. esac
  4740. elif test $opsys = "bsd"; then
  4741. #
  4742. # "Standard" BSD install
  4743. #
  4744. install_method="$install_method : BSD"
  4745. if test $dist_type = freebsd -o $dist_type = openbsd; then
  4746. prefix=${prefix="/usr/local"}
  4747. exec_prefix=${exec_prefix="/usr/local"}
  4748. if test $dist_type = freebsd; then
  4749. install_method="$install_method : FreeBSD"
  4750. else
  4751. install_method="$install_method : OpenBSD"
  4752. fi
  4753. elif test $dist_type = netbsd; then
  4754. prefix=${prefix="/usr/pkg"}
  4755. exec_prefix=${exec_prefix="/usr/pkg"}
  4756. install_method="$install_method : NetBSD"
  4757. fi
  4758. datadir=${datadir="$datarootdir/nagios"}
  4759. if test $need_web = yes -o $need_cgi = yes; then
  4760. if test $dist_type = freebsd; then
  4761. webdir=${webdir="$prefix/www/nagios"}
  4762. elif test $dist_type = netbsd; then
  4763. webdir=${webdir="$prefix/share/nagios"}
  4764. elif test $dist_type = openbsd; then
  4765. webdir=${webdir="/var/www/nagios"}
  4766. fi
  4767. else
  4768. webdir="N/A"
  4769. fi
  4770. if test $dist_type = freebsd; then
  4771. sysconfdir=${sysconfdir="/usr/local/etc"}
  4772. else
  4773. sysconfdir=${sysconfdir="/etc"}
  4774. fi
  4775. pkgsysconfdir=${pkgsysconfdir="$sysconfdir/nagios"}
  4776. if test $need_etc_subdir = yes; then
  4777. objsysconfdir=${objsysconfdir="$pkgsysconfdir/objects"}
  4778. else
  4779. objsysconfdir="N/A"
  4780. fi
  4781. privatesysconfdir=${privatesysconfdir="$pkgsysconfdir/private"}
  4782. if test "$need_pls_dir" = yes; then
  4783. pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$INIT_PROG"}
  4784. else
  4785. pkglocalstatedir="N/A"
  4786. fi
  4787. if test "$need_loc" = yes; then
  4788. localedir=${localedir="/usr/local/share/locale/<lang>/LC_MESSAGES/nagios-plugins.mo"}
  4789. fi
  4790. if test "$need_spl" = yes; then
  4791. spooldir=${spooldir="$localstatedir/spool/$INIT_PROG"}
  4792. else
  4793. spooldir="N/A"
  4794. fi
  4795. if test $need_brk = yes; then
  4796. brokersdir=${brokersdir="$libexecdir/brokers"}
  4797. else
  4798. brokersdir="N/A"
  4799. fi
  4800. if test $need_plg = yes; then
  4801. pluginsdir=${pluginsdir="$libexecdir/plugins"}
  4802. else
  4803. pluginsdir="N/A"
  4804. fi
  4805. if test $need_cgi = yes; then
  4806. if test $dist_type = freebsd; then
  4807. cgibindir=${cgibindir="$webdir/cgi-bin"}
  4808. elif test $dist_type = netbsd; then
  4809. cgibindir=${pluginsdir="$libexecdir/cgi-bin"}
  4810. elif test $dist_type = openbsd; then
  4811. cgibindir=${pluginsdir="/var/www/cgi-bin/nagios"}
  4812. fi
  4813. else
  4814. cgibindir="N/A"
  4815. fi
  4816. piddir=${piddir="$localstatedir/run/${INIT_PROG}"}
  4817. if test "$need_pipe" = yes; then
  4818. pipedir=${pipedir="$localstatedir/run/${INIT_PROG}"}
  4819. else
  4820. pipedir="N/A"
  4821. fi
  4822. if test $need_log_subdir = yes; then
  4823. logdir=${logdir="$localstatedir/log/$INIT_PROG"}
  4824. else
  4825. logdir=${logdir="$localstatedir/log"}
  4826. fi
  4827. else
  4828. #
  4829. # Unknown install
  4830. #
  4831. install_method="unknown"
  4832. webdir=unknown
  4833. pkgsysconfdir=unknown
  4834. objsysconfdir=unknown
  4835. privatesysconfdir=unknown
  4836. logdir=unknown
  4837. piddir=unknown
  4838. pipedir=unknown
  4839. pkglocalstatedir=unknown
  4840. spooldir=unknown
  4841. brokersdir=unknown
  4842. pluginsdir=unknown
  4843. cgibindir=unknown
  4844. fi
  4845. eval prefix=$prefix
  4846. eval exec_prefix=$exec_prefix
  4847. eval bindir=$bindir
  4848. eval sbindir=$sbindir
  4849. eval datarootdir=$datarootdir
  4850. eval datadir=$datadir
  4851. eval libexecdir=$libexecdir
  4852. eval brokersdir=$brokersdir
  4853. eval pluginsdir=$pluginsdir
  4854. eval cgibindir=$cgibindir
  4855. eval localstatedir=$localstatedir
  4856. eval pkglocalstatedir=$pkglocalstatedir
  4857. eval webdir=$webdir
  4858. eval localedir=$localedir
  4859. eval sysconfdir=$sysconfdir
  4860. eval pkgsysconfdir=$pkgsysconfdir
  4861. eval logdir=$logdir
  4862. eval piddir=$piddir
  4863. #
  4864. # Init scripts/files
  4865. #
  4866. case $init_type in #(
  4867. sysv) :
  4868. if test $dist_type = "hp-ux"; then
  4869. initdir=${initdir="/sbin/init.d"}
  4870. else
  4871. initdir=${initdir="/etc/init.d"}
  4872. fi
  4873. initname=${initname="$INIT_PROG"}
  4874. initconfdir=${initconfdir="/etc/conf.d"}
  4875. initconf=${initconf="$initconfdir/$INIT_PROG"} ;; #(
  4876. systemd) :
  4877. if test $dist_type = "debian"; then
  4878. initdir=${initdir="/lib/systemd/system"}
  4879. else
  4880. initdir=${initdir="/usr/lib/systemd/system"}
  4881. fi
  4882. initname=${initname="$INIT_PROG.service"} ;; #(
  4883. bsd) :
  4884. if test $dist_type = "aix"; then
  4885. initdir=${initdir="/sbin/rc.d/init.d"}
  4886. initname=${initname="$INIT_PROG"}
  4887. else
  4888. initdir=${initdir="/etc/rc.d"}
  4889. initname=${initname="rc.$INIT_PROG"}
  4890. fi ;; #(
  4891. newbsd) :
  4892. initdir=${initdir="/etc/rc.d"}
  4893. initname=${initname="$INIT_PROG"} ;; #(
  4894. gentoo) :
  4895. initdir=${initdir="/etc/init.d"}
  4896. initname=${initname="$INIT_PROG"}
  4897. initconfdir=${initconfdir="/etc/init.d"}
  4898. initconf=${initconf="$initconfdir/$INIT_PROG"} ;; #(
  4899. openrc) :
  4900. initdir=${initdir="/etc/init.d"}
  4901. initname=${initname="$INIT_PROG"}
  4902. initconfdir=${initconfdir="/etc/conf.d"}
  4903. initconf=${initconf="$initconfdir/$INIT_PROG"} ;; #(
  4904. smf*) :
  4905. if test $init_type = smf10; then
  4906. initdir=${initdir="/var/svc/manifest/network/nagios"}
  4907. else
  4908. initdir=${initdir="/lib/svc/manifest/network/nagios"}
  4909. fi
  4910. initname=${initname="$INIT_PROG.xml"}
  4911. initconfdir=unknown
  4912. initconf=unknown ;; #(
  4913. upstart) :
  4914. initdir=${initdir="/etc/init"}
  4915. initname=${initname="$INIT_PROG.conf"}
  4916. initconfdir=${initconfdir="/etc/default"}
  4917. initconf=${initconf="$initconfdir/$INIT_PROG"} ;; #(
  4918. launchd) :
  4919. initdir=${initdir="/Library/LaunchDaemons"}
  4920. initname=${initname="org.nagios.$INIT_PROG.plist"} ;; #(
  4921. # initconfdir=${initconfdir="/private/etc"}
  4922. # initconf=${initconf="$initconfdir/$INIT_PROG"},
  4923. *) :
  4924. initdir=unknown
  4925. initname=unknown ;; #(
  4926. *) :
  4927. ;;
  4928. esac
  4929. #
  4930. # Inetd (per connection) scripts/files
  4931. #
  4932. case $inetd_type in #(
  4933. inetd*) :
  4934. inetddir=${inetddir="/etc"}
  4935. inetdname=${inetdname="inetd.conf"} ;; #(
  4936. xinetd) :
  4937. inetddir=${inetddir="/etc/xinetd.d"}
  4938. inetdname=${inetdname="$INIT_PROG"} ;; #(
  4939. systemd) :
  4940. if test $dist_type = "debian"; then
  4941. inetddir=${inetddir="/lib/systemd/system"}
  4942. else
  4943. inetddir=${inetddir="/usr/lib/systemd/system"}
  4944. fi
  4945. netdname=${inetdname="$INIT_PROG.socket"} ;; #(
  4946. smf*) :
  4947. if test $init_type = smf10; then
  4948. inetddir=${inetddir="/var/svc/manifest/network/nagios"}
  4949. else
  4950. inetddir=${inetddir="/lib/svc/manifest/network/nagios"}
  4951. fi
  4952. inetdname=${inetdname="$INIT_PROG.xml"} ;; #(
  4953. # [upstart],
  4954. # inetddir=${inetddir="/etc/init.d"}
  4955. # inetdname=${inetdname="$INIT_PROG"},
  4956. launchd) :
  4957. inetddir=${inetddir="/Library/LaunchDaemons"}
  4958. inetdname=${inetdname="org.nagios.$INIT_PROG.plist"} ;; #(
  4959. *) :
  4960. inetddir=${inetddir="unknown"}
  4961. inetdname=${inetdname="unknown"} ;; #(
  4962. *) :
  4963. ;;
  4964. esac
  4965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $install_method" >&5
  4966. printf "%s\n" "$install_method" >&6; }
  4967. src_inetd=""
  4968. src_init=""
  4969. bsd_enable=""
  4970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for which init file to use " >&5
  4971. printf %s "checking for which init file to use ... " >&6; }
  4972. case $init_type in #(
  4973. sysv) :
  4974. src_init=default-init ;; #(
  4975. systemd) :
  4976. src_tmpfile=tmpfile.conf
  4977. src_init=default-service ;; #(
  4978. bsd) :
  4979. src_init=bsd-init ;; #(
  4980. newbsd) :
  4981. if test $dist_type = freebsd ; then
  4982. bsd_enable="_enable"
  4983. src_init=newbsd-init
  4984. elif test $dist_type = openbsd ; then
  4985. bsd_enable="_flags"
  4986. src_init=openbsd-init
  4987. elif test $dist_type = netbsd ; then
  4988. bsd_enable=""
  4989. src_init=newbsd-init
  4990. fi ;; #(
  4991. # [gentoo],
  4992. openrc) :
  4993. src_init=openrc-init ;; #(
  4994. smf*) :
  4995. src_init="solaris-init.xml"
  4996. src_inetd="solaris-inetd.xml" ;; #(
  4997. upstart) :
  4998. if test $dist_type = rh ; then
  4999. src_init=rh-upstart-init
  5000. else
  5001. src_init=upstart-init
  5002. fi ;; #(
  5003. launchd) :
  5004. src_init="mac-init.plist" ;; #(
  5005. *) :
  5006. src_init="unknown"
  5007. ;; #(
  5008. *) :
  5009. ;;
  5010. esac
  5011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $src_init" >&5
  5012. printf "%s\n" "$src_init" >&6; }
  5013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for which inetd files to use " >&5
  5014. printf %s "checking for which inetd files to use ... " >&6; }
  5015. if test x$src_inetd = x; then
  5016. case $inetd_type in #(
  5017. inetd*) :
  5018. src_inetd=default-inetd ;; #(
  5019. xinetd) :
  5020. src_inetd=default-xinetd ;; #(
  5021. systemd) :
  5022. src_inetd=default-socket ;; #(
  5023. launchd) :
  5024. src_inetd="mac-inetd.plist" ;; #(
  5025. *) :
  5026. src_inetd="unknown"
  5027. ;; #(
  5028. *) :
  5029. ;;
  5030. esac
  5031. fi
  5032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $src_inetd" >&5
  5033. printf "%s\n" "$src_inetd" >&6; }
  5034. if test "$dist_type" = solaris -a "$dist_ver" = 10; then
  5035. printf "%s\n" "#define SOLARIS_10 1" >>confdefs.h
  5036. fi
  5037. if test x${showdirs_only} = xyes; then
  5038. ac_config_files="$ac_config_files paths"
  5039. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5040. # Let make expand exec_prefix.
  5041. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5042. # Transform confdefs.h into DEFS.
  5043. # Protect against shell expansion while executing Makefile rules.
  5044. # Protect against Makefile macro expansion.
  5045. #
  5046. # If the first sed substitution is executed (which looks for macros that
  5047. # take arguments), then branch to the quote section. Otherwise,
  5048. # look for a macro that doesn't take arguments.
  5049. ac_script='
  5050. :mline
  5051. /\\$/{
  5052. N
  5053. s,\\\n,,
  5054. b mline
  5055. }
  5056. t clear
  5057. :clear
  5058. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  5059. t quote
  5060. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  5061. t quote
  5062. b any
  5063. :quote
  5064. s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  5065. s/\$/$$/g
  5066. H
  5067. :any
  5068. ${
  5069. g
  5070. s/^\n//
  5071. s/\n/ /g
  5072. p
  5073. }
  5074. '
  5075. DEFS=`sed -n "$ac_script" confdefs.h`
  5076. ac_libobjs=
  5077. ac_ltlibobjs=
  5078. U=
  5079. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5080. # 1. Remove the extension, and $U if already installed.
  5081. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5082. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  5083. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5084. # will be set to the directory where LIBOBJS objects are built.
  5085. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5086. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5087. done
  5088. LIBOBJS=$ac_libobjs
  5089. LTLIBOBJS=$ac_ltlibobjs
  5090. # Check whether --enable-year2038 was given.
  5091. if test ${enable_year2038+y}
  5092. then :
  5093. enableval=$enable_year2038;
  5094. fi
  5095. : "${CONFIG_STATUS=./config.status}"
  5096. ac_write_fail=0
  5097. ac_clean_files_save=$ac_clean_files
  5098. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5100. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  5101. as_write_fail=0
  5102. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5103. #! $SHELL
  5104. # Generated by $as_me.
  5105. # Run this file to recreate the current configuration.
  5106. # Compiler output produced by configure, useful for debugging
  5107. # configure, is in config.log if it exists.
  5108. debug=false
  5109. ac_cs_recheck=false
  5110. ac_cs_silent=false
  5111. SHELL=\${CONFIG_SHELL-$SHELL}
  5112. export SHELL
  5113. _ASEOF
  5114. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5115. ## -------------------- ##
  5116. ## M4sh Initialization. ##
  5117. ## -------------------- ##
  5118. # Be more Bourne compatible
  5119. DUALCASE=1; export DUALCASE # for MKS sh
  5120. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  5121. then :
  5122. emulate sh
  5123. NULLCMD=:
  5124. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5125. # is contrary to our usage. Disable this feature.
  5126. alias -g '${1+"$@"}'='"$@"'
  5127. setopt NO_GLOB_SUBST
  5128. else case e in #(
  5129. e) case `(set -o) 2>/dev/null` in #(
  5130. *posix*) :
  5131. set -o posix ;; #(
  5132. *) :
  5133. ;;
  5134. esac ;;
  5135. esac
  5136. fi
  5137. # Reset variables that may have inherited troublesome values from
  5138. # the environment.
  5139. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  5140. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  5141. # side effect of setting IFS to empty, thus disabling word splitting.)
  5142. # Quoting is to prevent editors from complaining about space-tab.
  5143. as_nl='
  5144. '
  5145. export as_nl
  5146. IFS=" "" $as_nl"
  5147. PS1='$ '
  5148. PS2='> '
  5149. PS4='+ '
  5150. # Ensure predictable behavior from utilities with locale-dependent output.
  5151. LC_ALL=C
  5152. export LC_ALL
  5153. LANGUAGE=C
  5154. export LANGUAGE
  5155. # We cannot yet rely on "unset" to work, but we need these variables
  5156. # to be unset--not just set to an empty or harmless value--now, to
  5157. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  5158. # also avoids known problems related to "unset" and subshell syntax
  5159. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  5160. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  5161. do eval test \${$as_var+y} \
  5162. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5163. done
  5164. # Ensure that fds 0, 1, and 2 are open.
  5165. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  5166. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  5167. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  5168. # The user is always right.
  5169. if ${PATH_SEPARATOR+false} :; then
  5170. PATH_SEPARATOR=:
  5171. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5172. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5173. PATH_SEPARATOR=';'
  5174. }
  5175. fi
  5176. # Find who we are. Look in the path if we contain no directory separator.
  5177. as_myself=
  5178. case $0 in #((
  5179. *[\\/]* ) as_myself=$0 ;;
  5180. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5181. for as_dir in $PATH
  5182. do
  5183. IFS=$as_save_IFS
  5184. case $as_dir in #(((
  5185. '') as_dir=./ ;;
  5186. */) ;;
  5187. *) as_dir=$as_dir/ ;;
  5188. esac
  5189. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  5190. done
  5191. IFS=$as_save_IFS
  5192. ;;
  5193. esac
  5194. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  5195. # in which case we are not to be found in the path.
  5196. if test "x$as_myself" = x; then
  5197. as_myself=$0
  5198. fi
  5199. if test ! -f "$as_myself"; then
  5200. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5201. exit 1
  5202. fi
  5203. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  5204. # ----------------------------------------
  5205. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5206. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5207. # script with STATUS, using 1 if that was 0.
  5208. as_fn_error ()
  5209. {
  5210. as_status=$1; test $as_status -eq 0 && as_status=1
  5211. if test "$4"; then
  5212. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5213. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5214. fi
  5215. printf "%s\n" "$as_me: error: $2" >&2
  5216. as_fn_exit $as_status
  5217. } # as_fn_error
  5218. # as_fn_set_status STATUS
  5219. # -----------------------
  5220. # Set $? to STATUS, without forking.
  5221. as_fn_set_status ()
  5222. {
  5223. return $1
  5224. } # as_fn_set_status
  5225. # as_fn_exit STATUS
  5226. # -----------------
  5227. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5228. as_fn_exit ()
  5229. {
  5230. set +e
  5231. as_fn_set_status $1
  5232. exit $1
  5233. } # as_fn_exit
  5234. # as_fn_unset VAR
  5235. # ---------------
  5236. # Portably unset VAR.
  5237. as_fn_unset ()
  5238. {
  5239. { eval $1=; unset $1;}
  5240. }
  5241. as_unset=as_fn_unset
  5242. # as_fn_append VAR VALUE
  5243. # ----------------------
  5244. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5245. # advantage of any shell optimizations that allow amortized linear growth over
  5246. # repeated appends, instead of the typical quadratic growth present in naive
  5247. # implementations.
  5248. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  5249. then :
  5250. eval 'as_fn_append ()
  5251. {
  5252. eval $1+=\$2
  5253. }'
  5254. else case e in #(
  5255. e) as_fn_append ()
  5256. {
  5257. eval $1=\$$1\$2
  5258. } ;;
  5259. esac
  5260. fi # as_fn_append
  5261. # as_fn_arith ARG...
  5262. # ------------------
  5263. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5264. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5265. # must be portable across $(()) and expr.
  5266. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  5267. then :
  5268. eval 'as_fn_arith ()
  5269. {
  5270. as_val=$(( $* ))
  5271. }'
  5272. else case e in #(
  5273. e) as_fn_arith ()
  5274. {
  5275. as_val=`expr "$@" || test $? -eq 1`
  5276. } ;;
  5277. esac
  5278. fi # as_fn_arith
  5279. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5280. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5281. as_expr=expr
  5282. else
  5283. as_expr=false
  5284. fi
  5285. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5286. as_basename=basename
  5287. else
  5288. as_basename=false
  5289. fi
  5290. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5291. as_dirname=dirname
  5292. else
  5293. as_dirname=false
  5294. fi
  5295. as_me=`$as_basename -- "$0" ||
  5296. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5297. X"$0" : 'X\(//\)$' \| \
  5298. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5299. printf "%s\n" X/"$0" |
  5300. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5301. s//\1/
  5302. q
  5303. }
  5304. /^X\/\(\/\/\)$/{
  5305. s//\1/
  5306. q
  5307. }
  5308. /^X\/\(\/\).*/{
  5309. s//\1/
  5310. q
  5311. }
  5312. s/.*/./; q'`
  5313. # Avoid depending upon Character Ranges.
  5314. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5315. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5316. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5317. as_cr_digits='0123456789'
  5318. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5319. # Determine whether it's possible to make 'echo' print without a newline.
  5320. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  5321. # for compatibility with existing Makefiles.
  5322. ECHO_C= ECHO_N= ECHO_T=
  5323. case `echo -n x` in #(((((
  5324. -n*)
  5325. case `echo 'xy\c'` in
  5326. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5327. xy) ECHO_C='\c';;
  5328. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  5329. ECHO_T=' ';;
  5330. esac;;
  5331. *)
  5332. ECHO_N='-n';;
  5333. esac
  5334. # For backward compatibility with old third-party macros, we provide
  5335. # the shell variables $as_echo and $as_echo_n. New code should use
  5336. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  5337. as_echo='printf %s\n'
  5338. as_echo_n='printf %s'
  5339. rm -f conf$$ conf$$.exe conf$$.file
  5340. if test -d conf$$.dir; then
  5341. rm -f conf$$.dir/conf$$.file
  5342. else
  5343. rm -f conf$$.dir
  5344. mkdir conf$$.dir 2>/dev/null
  5345. fi
  5346. if (echo >conf$$.file) 2>/dev/null; then
  5347. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5348. as_ln_s='ln -s'
  5349. # ... but there are two gotchas:
  5350. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  5351. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  5352. # In both cases, we have to default to 'cp -pR'.
  5353. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5354. as_ln_s='cp -pR'
  5355. elif ln conf$$.file conf$$ 2>/dev/null; then
  5356. as_ln_s=ln
  5357. else
  5358. as_ln_s='cp -pR'
  5359. fi
  5360. else
  5361. as_ln_s='cp -pR'
  5362. fi
  5363. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5364. rmdir conf$$.dir 2>/dev/null
  5365. # as_fn_mkdir_p
  5366. # -------------
  5367. # Create "$as_dir" as a directory, including parents if necessary.
  5368. as_fn_mkdir_p ()
  5369. {
  5370. case $as_dir in #(
  5371. -*) as_dir=./$as_dir;;
  5372. esac
  5373. test -d "$as_dir" || eval $as_mkdir_p || {
  5374. as_dirs=
  5375. while :; do
  5376. case $as_dir in #(
  5377. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5378. *) as_qdir=$as_dir;;
  5379. esac
  5380. as_dirs="'$as_qdir' $as_dirs"
  5381. as_dir=`$as_dirname -- "$as_dir" ||
  5382. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5383. X"$as_dir" : 'X\(//\)[^/]' \| \
  5384. X"$as_dir" : 'X\(//\)$' \| \
  5385. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5386. printf "%s\n" X"$as_dir" |
  5387. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5388. s//\1/
  5389. q
  5390. }
  5391. /^X\(\/\/\)[^/].*/{
  5392. s//\1/
  5393. q
  5394. }
  5395. /^X\(\/\/\)$/{
  5396. s//\1/
  5397. q
  5398. }
  5399. /^X\(\/\).*/{
  5400. s//\1/
  5401. q
  5402. }
  5403. s/.*/./; q'`
  5404. test -d "$as_dir" && break
  5405. done
  5406. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5407. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  5408. } # as_fn_mkdir_p
  5409. if mkdir -p . 2>/dev/null; then
  5410. as_mkdir_p='mkdir -p "$as_dir"'
  5411. else
  5412. test -d ./-p && rmdir ./-p
  5413. as_mkdir_p=false
  5414. fi
  5415. # as_fn_executable_p FILE
  5416. # -----------------------
  5417. # Test if FILE is an executable regular file.
  5418. as_fn_executable_p ()
  5419. {
  5420. test -f "$1" && test -x "$1"
  5421. } # as_fn_executable_p
  5422. as_test_x='test -x'
  5423. as_executable_p=as_fn_executable_p
  5424. # Sed expression to map a string onto a valid CPP name.
  5425. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  5426. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  5427. # Sed expression to map a string onto a valid variable name.
  5428. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  5429. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  5430. exec 6>&1
  5431. ## ----------------------------------- ##
  5432. ## Main body of $CONFIG_STATUS script. ##
  5433. ## ----------------------------------- ##
  5434. _ASEOF
  5435. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5436. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5437. # Save the log message, to keep $0 and so on meaningful, and to
  5438. # report actual input values of CONFIG_FILES etc. instead of their
  5439. # values after options handling.
  5440. ac_log="
  5441. This file was extended by nrpe $as_me newdate, which was
  5442. generated by GNU Autoconf 2.72. Invocation command line was
  5443. CONFIG_FILES = $CONFIG_FILES
  5444. CONFIG_HEADERS = $CONFIG_HEADERS
  5445. CONFIG_LINKS = $CONFIG_LINKS
  5446. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5447. $ $0 $@
  5448. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5449. "
  5450. _ACEOF
  5451. case $ac_config_files in *"
  5452. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5453. esac
  5454. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5455. # Files that config.status was made for.
  5456. config_files="$ac_config_files"
  5457. _ACEOF
  5458. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5459. ac_cs_usage="\
  5460. '$as_me' instantiates files and other configuration actions
  5461. from templates according to the current configuration. Unless the files
  5462. and actions are specified as TAGs, all are instantiated by default.
  5463. Usage: $0 [OPTION]... [TAG]...
  5464. -h, --help print this help, then exit
  5465. -V, --version print version number and configuration settings, then exit
  5466. --config print configuration, then exit
  5467. -q, --quiet, --silent
  5468. do not print progress messages
  5469. -d, --debug don't remove temporary files
  5470. --recheck update $as_me by reconfiguring in the same conditions
  5471. --file=FILE[:TEMPLATE]
  5472. instantiate the configuration file FILE
  5473. Configuration files:
  5474. $config_files
  5475. Report bugs to <nagios-users@lists.sourceforge.net>.
  5476. nrpe home page: <https://www.nagios.org/downloads/nagios-core-addons/>."
  5477. _ACEOF
  5478. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  5479. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  5480. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5481. ac_cs_config='$ac_cs_config_escaped'
  5482. ac_cs_version="\\
  5483. nrpe config.status newdate
  5484. configured by $0, generated by GNU Autoconf 2.72,
  5485. with options \\"\$ac_cs_config\\"
  5486. Copyright (C) 2023 Free Software Foundation, Inc.
  5487. This config.status script is free software; the Free Software Foundation
  5488. gives unlimited permission to copy, distribute and modify it."
  5489. ac_pwd='$ac_pwd'
  5490. srcdir='$srcdir'
  5491. INSTALL='$INSTALL'
  5492. test -n "\$AWK" || AWK=awk
  5493. _ACEOF
  5494. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5495. # The default lists apply if the user does not specify any file.
  5496. ac_need_defaults=:
  5497. while test $# != 0
  5498. do
  5499. case $1 in
  5500. --*=?*)
  5501. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5502. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5503. ac_shift=:
  5504. ;;
  5505. --*=)
  5506. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5507. ac_optarg=
  5508. ac_shift=:
  5509. ;;
  5510. *)
  5511. ac_option=$1
  5512. ac_optarg=$2
  5513. ac_shift=shift
  5514. ;;
  5515. esac
  5516. case $ac_option in
  5517. # Handling of the options.
  5518. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5519. ac_cs_recheck=: ;;
  5520. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5521. printf "%s\n" "$ac_cs_version"; exit ;;
  5522. --config | --confi | --conf | --con | --co | --c )
  5523. printf "%s\n" "$ac_cs_config"; exit ;;
  5524. --debug | --debu | --deb | --de | --d | -d )
  5525. debug=: ;;
  5526. --file | --fil | --fi | --f )
  5527. $ac_shift
  5528. case $ac_optarg in
  5529. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5530. '') as_fn_error $? "missing file argument" ;;
  5531. esac
  5532. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5533. ac_need_defaults=false;;
  5534. --he | --h | --help | --hel | -h )
  5535. printf "%s\n" "$ac_cs_usage"; exit ;;
  5536. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5537. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5538. ac_cs_silent=: ;;
  5539. # This is an error.
  5540. -*) as_fn_error $? "unrecognized option: '$1'
  5541. Try '$0 --help' for more information." ;;
  5542. *) as_fn_append ac_config_targets " $1"
  5543. ac_need_defaults=false ;;
  5544. esac
  5545. shift
  5546. done
  5547. ac_configure_extra_args=
  5548. if $ac_cs_silent; then
  5549. exec 6>/dev/null
  5550. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5551. fi
  5552. _ACEOF
  5553. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5554. if \$ac_cs_recheck; then
  5555. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5556. shift
  5557. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  5558. CONFIG_SHELL='$SHELL'
  5559. export CONFIG_SHELL
  5560. exec "\$@"
  5561. fi
  5562. _ACEOF
  5563. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5564. exec 5>>config.log
  5565. {
  5566. echo
  5567. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5568. ## Running $as_me. ##
  5569. _ASBOX
  5570. printf "%s\n" "$ac_log"
  5571. } >&5
  5572. _ACEOF
  5573. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5574. _ACEOF
  5575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5576. # Handling of arguments.
  5577. for ac_config_target in $ac_config_targets
  5578. do
  5579. case $ac_config_target in
  5580. "paths") CONFIG_FILES="$CONFIG_FILES paths" ;;
  5581. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  5582. esac
  5583. done
  5584. # If the user did not use the arguments to specify the items to instantiate,
  5585. # then the envvar interface is used. Set only those that are not.
  5586. # We use the long form for the default assignment because of an extremely
  5587. # bizarre bug on SunOS 4.1.3.
  5588. if $ac_need_defaults; then
  5589. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  5590. fi
  5591. # Have a temporary directory for convenience. Make it in the build tree
  5592. # simply because there is no reason against having it here, and in addition,
  5593. # creating and moving files from /tmp can sometimes cause problems.
  5594. # Hook for its removal unless debugging.
  5595. # Note that there is a small window in which the directory will not be cleaned:
  5596. # after its creation but before its name has been assigned to '$tmp'.
  5597. $debug ||
  5598. {
  5599. tmp= ac_tmp=
  5600. trap 'exit_status=$?
  5601. : "${ac_tmp:=$tmp}"
  5602. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5603. ' 0
  5604. trap 'as_fn_exit 1' 1 2 13 15
  5605. }
  5606. # Create a (secure) tmp directory for tmp files.
  5607. {
  5608. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5609. test -d "$tmp"
  5610. } ||
  5611. {
  5612. tmp=./conf$$-$RANDOM
  5613. (umask 077 && mkdir "$tmp")
  5614. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5615. ac_tmp=$tmp
  5616. # Set up the scripts for CONFIG_FILES section.
  5617. # No need to generate them if there are no CONFIG_FILES.
  5618. # This happens for instance with './config.status config.h'.
  5619. if test -n "$CONFIG_FILES"; then
  5620. ac_cr=`echo X | tr X '\015'`
  5621. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5622. # But we know of no other shell where ac_cr would be empty at this
  5623. # point, so we can use a bashism as a fallback.
  5624. if test "x$ac_cr" = x; then
  5625. eval ac_cr=\$\'\\r\'
  5626. fi
  5627. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5628. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5629. ac_cs_awk_cr='\\r'
  5630. else
  5631. ac_cs_awk_cr=$ac_cr
  5632. fi
  5633. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5634. _ACEOF
  5635. {
  5636. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5637. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5638. echo "_ACEOF"
  5639. } >conf$$subs.sh ||
  5640. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5641. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5642. ac_delim='%!_!# '
  5643. for ac_last_try in false false false false false :; do
  5644. . ./conf$$subs.sh ||
  5645. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5646. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5647. if test $ac_delim_n = $ac_delim_num; then
  5648. break
  5649. elif $ac_last_try; then
  5650. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5651. else
  5652. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5653. fi
  5654. done
  5655. rm -f conf$$subs.sh
  5656. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5657. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5658. _ACEOF
  5659. sed -n '
  5660. h
  5661. s/^/S["/; s/!.*/"]=/
  5662. p
  5663. g
  5664. s/^[^!]*!//
  5665. :repl
  5666. t repl
  5667. s/'"$ac_delim"'$//
  5668. t delim
  5669. :nl
  5670. h
  5671. s/\(.\{148\}\)..*/\1/
  5672. t more1
  5673. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5674. p
  5675. n
  5676. b repl
  5677. :more1
  5678. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5679. p
  5680. g
  5681. s/.\{148\}//
  5682. t nl
  5683. :delim
  5684. h
  5685. s/\(.\{148\}\)..*/\1/
  5686. t more2
  5687. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5688. p
  5689. b
  5690. :more2
  5691. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5692. p
  5693. g
  5694. s/.\{148\}//
  5695. t delim
  5696. ' <conf$$subs.awk | sed '
  5697. /^[^""]/{
  5698. N
  5699. s/\n//
  5700. }
  5701. ' >>$CONFIG_STATUS || ac_write_fail=1
  5702. rm -f conf$$subs.awk
  5703. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5704. _ACAWK
  5705. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5706. for (key in S) S_is_set[key] = 1
  5707. FS = ""
  5708. }
  5709. {
  5710. line = $ 0
  5711. nfields = split(line, field, "@")
  5712. substed = 0
  5713. len = length(field[1])
  5714. for (i = 2; i < nfields; i++) {
  5715. key = field[i]
  5716. keylen = length(key)
  5717. if (S_is_set[key]) {
  5718. value = S[key]
  5719. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5720. len += length(value) + length(field[++i])
  5721. substed = 1
  5722. } else
  5723. len += 1 + keylen
  5724. }
  5725. print line
  5726. }
  5727. _ACAWK
  5728. _ACEOF
  5729. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5730. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5731. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5732. else
  5733. cat
  5734. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5735. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5736. _ACEOF
  5737. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5738. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5739. # trailing colons and then remove the whole line if VPATH becomes empty
  5740. # (actually we leave an empty line to preserve line numbers).
  5741. if test "x$srcdir" = x.; then
  5742. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5743. h
  5744. s///
  5745. s/^/:/
  5746. s/[ ]*$/:/
  5747. s/:\$(srcdir):/:/g
  5748. s/:\${srcdir}:/:/g
  5749. s/:@srcdir@:/:/g
  5750. s/^:*//
  5751. s/:*$//
  5752. x
  5753. s/\(=[ ]*\).*/\1/
  5754. G
  5755. s/\n//
  5756. s/^[^=]*=[ ]*$//
  5757. }'
  5758. fi
  5759. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5760. fi # test -n "$CONFIG_FILES"
  5761. eval set X " :F $CONFIG_FILES "
  5762. shift
  5763. for ac_tag
  5764. do
  5765. case $ac_tag in
  5766. :[FHLC]) ac_mode=$ac_tag; continue;;
  5767. esac
  5768. case $ac_mode$ac_tag in
  5769. :[FHL]*:*);;
  5770. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  5771. :[FH]-) ac_tag=-:-;;
  5772. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5773. esac
  5774. ac_save_IFS=$IFS
  5775. IFS=:
  5776. set x $ac_tag
  5777. IFS=$ac_save_IFS
  5778. shift
  5779. ac_file=$1
  5780. shift
  5781. case $ac_mode in
  5782. :L) ac_source=$1;;
  5783. :[FH])
  5784. ac_file_inputs=
  5785. for ac_f
  5786. do
  5787. case $ac_f in
  5788. -) ac_f="$ac_tmp/stdin";;
  5789. *) # Look for the file first in the build tree, then in the source tree
  5790. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5791. # because $ac_f cannot contain ':'.
  5792. test -f "$ac_f" ||
  5793. case $ac_f in
  5794. [\\/$]*) false;;
  5795. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5796. esac ||
  5797. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  5798. esac
  5799. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5800. as_fn_append ac_file_inputs " '$ac_f'"
  5801. done
  5802. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  5803. # use $as_me), people would be surprised to read:
  5804. # /* config.h. Generated by config.status. */
  5805. configure_input='Generated from '`
  5806. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5807. `' by configure.'
  5808. if test x"$ac_file" != x-; then
  5809. configure_input="$ac_file. $configure_input"
  5810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5811. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  5812. fi
  5813. # Neutralize special characters interpreted by sed in replacement strings.
  5814. case $configure_input in #(
  5815. *\&* | *\|* | *\\* )
  5816. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  5817. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5818. *) ac_sed_conf_input=$configure_input;;
  5819. esac
  5820. case $ac_tag in
  5821. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5822. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5823. esac
  5824. ;;
  5825. esac
  5826. ac_dir=`$as_dirname -- "$ac_file" ||
  5827. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5828. X"$ac_file" : 'X\(//\)[^/]' \| \
  5829. X"$ac_file" : 'X\(//\)$' \| \
  5830. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5831. printf "%s\n" X"$ac_file" |
  5832. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5833. s//\1/
  5834. q
  5835. }
  5836. /^X\(\/\/\)[^/].*/{
  5837. s//\1/
  5838. q
  5839. }
  5840. /^X\(\/\/\)$/{
  5841. s//\1/
  5842. q
  5843. }
  5844. /^X\(\/\).*/{
  5845. s//\1/
  5846. q
  5847. }
  5848. s/.*/./; q'`
  5849. as_dir="$ac_dir"; as_fn_mkdir_p
  5850. ac_builddir=.
  5851. case "$ac_dir" in
  5852. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5853. *)
  5854. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  5855. # A ".." for each directory in $ac_dir_suffix.
  5856. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5857. case $ac_top_builddir_sub in
  5858. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5859. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5860. esac ;;
  5861. esac
  5862. ac_abs_top_builddir=$ac_pwd
  5863. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5864. # for backward compatibility:
  5865. ac_top_builddir=$ac_top_build_prefix
  5866. case $srcdir in
  5867. .) # We are building in place.
  5868. ac_srcdir=.
  5869. ac_top_srcdir=$ac_top_builddir_sub
  5870. ac_abs_top_srcdir=$ac_pwd ;;
  5871. [\\/]* | ?:[\\/]* ) # Absolute name.
  5872. ac_srcdir=$srcdir$ac_dir_suffix;
  5873. ac_top_srcdir=$srcdir
  5874. ac_abs_top_srcdir=$srcdir ;;
  5875. *) # Relative name.
  5876. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5877. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5878. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5879. esac
  5880. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5881. case $ac_mode in
  5882. :F)
  5883. #
  5884. # CONFIG_FILE
  5885. #
  5886. case $INSTALL in
  5887. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5888. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5889. esac
  5890. _ACEOF
  5891. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5892. # If the template does not know about datarootdir, expand it.
  5893. # FIXME: This hack should be removed a few years after 2.60.
  5894. ac_datarootdir_hack=; ac_datarootdir_seen=
  5895. ac_sed_dataroot='
  5896. /datarootdir/ {
  5897. p
  5898. q
  5899. }
  5900. /@datadir@/p
  5901. /@docdir@/p
  5902. /@infodir@/p
  5903. /@localedir@/p
  5904. /@mandir@/p'
  5905. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5906. *datarootdir*) ac_datarootdir_seen=yes;;
  5907. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5909. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5910. _ACEOF
  5911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5912. ac_datarootdir_hack='
  5913. s&@datadir@&$datadir&g
  5914. s&@docdir@&$docdir&g
  5915. s&@infodir@&$infodir&g
  5916. s&@localedir@&$localedir&g
  5917. s&@mandir@&$mandir&g
  5918. s&\\\${datarootdir}&$datarootdir&g' ;;
  5919. esac
  5920. _ACEOF
  5921. # Neutralize VPATH when '$srcdir' = '.'.
  5922. # Shell code in configure.ac might set extrasub.
  5923. # FIXME: do we really want to maintain this feature?
  5924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5925. ac_sed_extra="$ac_vpsub
  5926. $extrasub
  5927. _ACEOF
  5928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5929. :t
  5930. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5931. s|@configure_input@|$ac_sed_conf_input|;t t
  5932. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5933. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5934. s&@srcdir@&$ac_srcdir&;t t
  5935. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5936. s&@top_srcdir@&$ac_top_srcdir&;t t
  5937. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5938. s&@builddir@&$ac_builddir&;t t
  5939. s&@abs_builddir@&$ac_abs_builddir&;t t
  5940. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5941. s&@INSTALL@&$ac_INSTALL&;t t
  5942. $ac_datarootdir_hack
  5943. "
  5944. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5945. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5946. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5947. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5948. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5949. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  5951. which seems to be undefined. Please make sure it is defined" >&5
  5952. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  5953. which seems to be undefined. Please make sure it is defined" >&2;}
  5954. rm -f "$ac_tmp/stdin"
  5955. case $ac_file in
  5956. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5957. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5958. esac \
  5959. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5960. ;;
  5961. esac
  5962. done # for ac_tag
  5963. as_fn_exit 0
  5964. _ACEOF
  5965. ac_clean_files=$ac_clean_files_save
  5966. test $ac_write_fail = 0 ||
  5967. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5968. # configure is writing to config.log, and then calls config.status.
  5969. # config.status does its own redirection, appending to config.log.
  5970. # Unfortunately, on DOS this fails, as config.log is still kept open
  5971. # by configure, so config.status won't be able to write to it; its
  5972. # output is simply discarded. So we exec the FD to /dev/null,
  5973. # effectively closing config.log, so it can be properly (re)opened and
  5974. # appended to by config.status. When coming back to configure, we
  5975. # need to make the FD available again.
  5976. if test "$no_create" != yes; then
  5977. ac_cs_success=:
  5978. ac_config_status_args=
  5979. test "$silent" = yes &&
  5980. ac_config_status_args="$ac_config_status_args --quiet"
  5981. exec 5>/dev/null
  5982. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5983. exec 5>>config.log
  5984. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5985. # would make configure fail if this is the last instruction.
  5986. $ac_cs_success || as_fn_exit 1
  5987. fi
  5988. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5990. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5991. fi
  5992. chmod 755 paths
  5993. ./paths
  5994. exit 0
  5995. fi
  5996. ac_config_headers="$ac_config_headers include/config.h"
  5997. ac_config_files="$ac_config_files Makefile src/Makefile tests/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 tests/misc.cfg"
  5998. ac_ext=c
  5999. ac_cpp='$CPP $CPPFLAGS'
  6000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6003. if test -n "$ac_tool_prefix"; then
  6004. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  6005. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  6006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6007. printf %s "checking for $ac_word... " >&6; }
  6008. if test ${ac_cv_prog_CC+y}
  6009. then :
  6010. printf %s "(cached) " >&6
  6011. else case e in #(
  6012. e) if test -n "$CC"; then
  6013. ac_cv_prog_CC="$CC" # Let the user override the test.
  6014. else
  6015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6016. for as_dir in $PATH
  6017. do
  6018. IFS=$as_save_IFS
  6019. case $as_dir in #(((
  6020. '') as_dir=./ ;;
  6021. */) ;;
  6022. *) as_dir=$as_dir/ ;;
  6023. esac
  6024. for ac_exec_ext in '' $ac_executable_extensions; do
  6025. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6026. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  6027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6028. break 2
  6029. fi
  6030. done
  6031. done
  6032. IFS=$as_save_IFS
  6033. fi ;;
  6034. esac
  6035. fi
  6036. CC=$ac_cv_prog_CC
  6037. if test -n "$CC"; then
  6038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6039. printf "%s\n" "$CC" >&6; }
  6040. else
  6041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6042. printf "%s\n" "no" >&6; }
  6043. fi
  6044. fi
  6045. if test -z "$ac_cv_prog_CC"; then
  6046. ac_ct_CC=$CC
  6047. # Extract the first word of "gcc", so it can be a program name with args.
  6048. set dummy gcc; ac_word=$2
  6049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6050. printf %s "checking for $ac_word... " >&6; }
  6051. if test ${ac_cv_prog_ac_ct_CC+y}
  6052. then :
  6053. printf %s "(cached) " >&6
  6054. else case e in #(
  6055. e) if test -n "$ac_ct_CC"; then
  6056. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  6057. else
  6058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6059. for as_dir in $PATH
  6060. do
  6061. IFS=$as_save_IFS
  6062. case $as_dir in #(((
  6063. '') as_dir=./ ;;
  6064. */) ;;
  6065. *) as_dir=$as_dir/ ;;
  6066. esac
  6067. for ac_exec_ext in '' $ac_executable_extensions; do
  6068. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6069. ac_cv_prog_ac_ct_CC="gcc"
  6070. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6071. break 2
  6072. fi
  6073. done
  6074. done
  6075. IFS=$as_save_IFS
  6076. fi ;;
  6077. esac
  6078. fi
  6079. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  6080. if test -n "$ac_ct_CC"; then
  6081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  6082. printf "%s\n" "$ac_ct_CC" >&6; }
  6083. else
  6084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6085. printf "%s\n" "no" >&6; }
  6086. fi
  6087. if test "x$ac_ct_CC" = x; then
  6088. CC=""
  6089. else
  6090. case $cross_compiling:$ac_tool_warned in
  6091. yes:)
  6092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6093. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6094. ac_tool_warned=yes ;;
  6095. esac
  6096. CC=$ac_ct_CC
  6097. fi
  6098. else
  6099. CC="$ac_cv_prog_CC"
  6100. fi
  6101. if test -z "$CC"; then
  6102. if test -n "$ac_tool_prefix"; then
  6103. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  6104. set dummy ${ac_tool_prefix}cc; ac_word=$2
  6105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6106. printf %s "checking for $ac_word... " >&6; }
  6107. if test ${ac_cv_prog_CC+y}
  6108. then :
  6109. printf %s "(cached) " >&6
  6110. else case e in #(
  6111. e) if test -n "$CC"; then
  6112. ac_cv_prog_CC="$CC" # Let the user override the test.
  6113. else
  6114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6115. for as_dir in $PATH
  6116. do
  6117. IFS=$as_save_IFS
  6118. case $as_dir in #(((
  6119. '') as_dir=./ ;;
  6120. */) ;;
  6121. *) as_dir=$as_dir/ ;;
  6122. esac
  6123. for ac_exec_ext in '' $ac_executable_extensions; do
  6124. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6125. ac_cv_prog_CC="${ac_tool_prefix}cc"
  6126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6127. break 2
  6128. fi
  6129. done
  6130. done
  6131. IFS=$as_save_IFS
  6132. fi ;;
  6133. esac
  6134. fi
  6135. CC=$ac_cv_prog_CC
  6136. if test -n "$CC"; then
  6137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6138. printf "%s\n" "$CC" >&6; }
  6139. else
  6140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6141. printf "%s\n" "no" >&6; }
  6142. fi
  6143. fi
  6144. fi
  6145. if test -z "$CC"; then
  6146. # Extract the first word of "cc", so it can be a program name with args.
  6147. set dummy cc; ac_word=$2
  6148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6149. printf %s "checking for $ac_word... " >&6; }
  6150. if test ${ac_cv_prog_CC+y}
  6151. then :
  6152. printf %s "(cached) " >&6
  6153. else case e in #(
  6154. e) if test -n "$CC"; then
  6155. ac_cv_prog_CC="$CC" # Let the user override the test.
  6156. else
  6157. ac_prog_rejected=no
  6158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6159. for as_dir in $PATH
  6160. do
  6161. IFS=$as_save_IFS
  6162. case $as_dir in #(((
  6163. '') as_dir=./ ;;
  6164. */) ;;
  6165. *) as_dir=$as_dir/ ;;
  6166. esac
  6167. for ac_exec_ext in '' $ac_executable_extensions; do
  6168. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6169. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  6170. ac_prog_rejected=yes
  6171. continue
  6172. fi
  6173. ac_cv_prog_CC="cc"
  6174. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. if test $ac_prog_rejected = yes; then
  6181. # We found a bogon in the path, so make sure we never use it.
  6182. set dummy $ac_cv_prog_CC
  6183. shift
  6184. if test $# != 0; then
  6185. # We chose a different compiler from the bogus one.
  6186. # However, it has the same basename, so the bogon will be chosen
  6187. # first if we set CC to just the basename; use the full file name.
  6188. shift
  6189. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  6190. fi
  6191. fi
  6192. fi ;;
  6193. esac
  6194. fi
  6195. CC=$ac_cv_prog_CC
  6196. if test -n "$CC"; then
  6197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6198. printf "%s\n" "$CC" >&6; }
  6199. else
  6200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6201. printf "%s\n" "no" >&6; }
  6202. fi
  6203. fi
  6204. if test -z "$CC"; then
  6205. if test -n "$ac_tool_prefix"; then
  6206. for ac_prog in cl.exe
  6207. do
  6208. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6209. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6211. printf %s "checking for $ac_word... " >&6; }
  6212. if test ${ac_cv_prog_CC+y}
  6213. then :
  6214. printf %s "(cached) " >&6
  6215. else case e in #(
  6216. e) if test -n "$CC"; then
  6217. ac_cv_prog_CC="$CC" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. case $as_dir in #(((
  6224. '') as_dir=./ ;;
  6225. */) ;;
  6226. *) as_dir=$as_dir/ ;;
  6227. esac
  6228. for ac_exec_ext in '' $ac_executable_extensions; do
  6229. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6230. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  6231. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6232. break 2
  6233. fi
  6234. done
  6235. done
  6236. IFS=$as_save_IFS
  6237. fi ;;
  6238. esac
  6239. fi
  6240. CC=$ac_cv_prog_CC
  6241. if test -n "$CC"; then
  6242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6243. printf "%s\n" "$CC" >&6; }
  6244. else
  6245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6246. printf "%s\n" "no" >&6; }
  6247. fi
  6248. test -n "$CC" && break
  6249. done
  6250. fi
  6251. if test -z "$CC"; then
  6252. ac_ct_CC=$CC
  6253. for ac_prog in cl.exe
  6254. do
  6255. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6256. set dummy $ac_prog; ac_word=$2
  6257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6258. printf %s "checking for $ac_word... " >&6; }
  6259. if test ${ac_cv_prog_ac_ct_CC+y}
  6260. then :
  6261. printf %s "(cached) " >&6
  6262. else case e in #(
  6263. e) if test -n "$ac_ct_CC"; then
  6264. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  6265. else
  6266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6267. for as_dir in $PATH
  6268. do
  6269. IFS=$as_save_IFS
  6270. case $as_dir in #(((
  6271. '') as_dir=./ ;;
  6272. */) ;;
  6273. *) as_dir=$as_dir/ ;;
  6274. esac
  6275. for ac_exec_ext in '' $ac_executable_extensions; do
  6276. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6277. ac_cv_prog_ac_ct_CC="$ac_prog"
  6278. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6279. break 2
  6280. fi
  6281. done
  6282. done
  6283. IFS=$as_save_IFS
  6284. fi ;;
  6285. esac
  6286. fi
  6287. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  6288. if test -n "$ac_ct_CC"; then
  6289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  6290. printf "%s\n" "$ac_ct_CC" >&6; }
  6291. else
  6292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6293. printf "%s\n" "no" >&6; }
  6294. fi
  6295. test -n "$ac_ct_CC" && break
  6296. done
  6297. if test "x$ac_ct_CC" = x; then
  6298. CC=""
  6299. else
  6300. case $cross_compiling:$ac_tool_warned in
  6301. yes:)
  6302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6303. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6304. ac_tool_warned=yes ;;
  6305. esac
  6306. CC=$ac_ct_CC
  6307. fi
  6308. fi
  6309. fi
  6310. if test -z "$CC"; then
  6311. if test -n "$ac_tool_prefix"; then
  6312. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  6313. set dummy ${ac_tool_prefix}clang; ac_word=$2
  6314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6315. printf %s "checking for $ac_word... " >&6; }
  6316. if test ${ac_cv_prog_CC+y}
  6317. then :
  6318. printf %s "(cached) " >&6
  6319. else case e in #(
  6320. e) if test -n "$CC"; then
  6321. ac_cv_prog_CC="$CC" # Let the user override the test.
  6322. else
  6323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6324. for as_dir in $PATH
  6325. do
  6326. IFS=$as_save_IFS
  6327. case $as_dir in #(((
  6328. '') as_dir=./ ;;
  6329. */) ;;
  6330. *) as_dir=$as_dir/ ;;
  6331. esac
  6332. for ac_exec_ext in '' $ac_executable_extensions; do
  6333. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6334. ac_cv_prog_CC="${ac_tool_prefix}clang"
  6335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6336. break 2
  6337. fi
  6338. done
  6339. done
  6340. IFS=$as_save_IFS
  6341. fi ;;
  6342. esac
  6343. fi
  6344. CC=$ac_cv_prog_CC
  6345. if test -n "$CC"; then
  6346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6347. printf "%s\n" "$CC" >&6; }
  6348. else
  6349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6350. printf "%s\n" "no" >&6; }
  6351. fi
  6352. fi
  6353. if test -z "$ac_cv_prog_CC"; then
  6354. ac_ct_CC=$CC
  6355. # Extract the first word of "clang", so it can be a program name with args.
  6356. set dummy clang; ac_word=$2
  6357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6358. printf %s "checking for $ac_word... " >&6; }
  6359. if test ${ac_cv_prog_ac_ct_CC+y}
  6360. then :
  6361. printf %s "(cached) " >&6
  6362. else case e in #(
  6363. e) if test -n "$ac_ct_CC"; then
  6364. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  6365. else
  6366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6367. for as_dir in $PATH
  6368. do
  6369. IFS=$as_save_IFS
  6370. case $as_dir in #(((
  6371. '') as_dir=./ ;;
  6372. */) ;;
  6373. *) as_dir=$as_dir/ ;;
  6374. esac
  6375. for ac_exec_ext in '' $ac_executable_extensions; do
  6376. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6377. ac_cv_prog_ac_ct_CC="clang"
  6378. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6379. break 2
  6380. fi
  6381. done
  6382. done
  6383. IFS=$as_save_IFS
  6384. fi ;;
  6385. esac
  6386. fi
  6387. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  6388. if test -n "$ac_ct_CC"; then
  6389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  6390. printf "%s\n" "$ac_ct_CC" >&6; }
  6391. else
  6392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6393. printf "%s\n" "no" >&6; }
  6394. fi
  6395. if test "x$ac_ct_CC" = x; then
  6396. CC=""
  6397. else
  6398. case $cross_compiling:$ac_tool_warned in
  6399. yes:)
  6400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6401. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6402. ac_tool_warned=yes ;;
  6403. esac
  6404. CC=$ac_ct_CC
  6405. fi
  6406. else
  6407. CC="$ac_cv_prog_CC"
  6408. fi
  6409. fi
  6410. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  6411. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  6412. as_fn_error $? "no acceptable C compiler found in \$PATH
  6413. See 'config.log' for more details" "$LINENO" 5; }
  6414. # Provide some information about the compiler.
  6415. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  6416. set X $ac_compile
  6417. ac_compiler=$2
  6418. for ac_option in --version -v -V -qversion -version; do
  6419. { { ac_try="$ac_compiler $ac_option >&5"
  6420. case "(($ac_try" in
  6421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6422. *) ac_try_echo=$ac_try;;
  6423. esac
  6424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6425. printf "%s\n" "$ac_try_echo"; } >&5
  6426. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6427. ac_status=$?
  6428. if test -s conftest.err; then
  6429. sed '10a\
  6430. ... rest of stderr output deleted ...
  6431. 10q' conftest.err >conftest.er1
  6432. cat conftest.er1 >&5
  6433. fi
  6434. rm -f conftest.er1 conftest.err
  6435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6436. test $ac_status = 0; }
  6437. done
  6438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  6439. printf %s "checking whether the compiler supports GNU C... " >&6; }
  6440. if test ${ac_cv_c_compiler_gnu+y}
  6441. then :
  6442. printf %s "(cached) " >&6
  6443. else case e in #(
  6444. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6445. /* end confdefs.h. */
  6446. int
  6447. main (void)
  6448. {
  6449. #ifndef __GNUC__
  6450. choke me
  6451. #endif
  6452. ;
  6453. return 0;
  6454. }
  6455. _ACEOF
  6456. if ac_fn_c_try_compile "$LINENO"
  6457. then :
  6458. ac_compiler_gnu=yes
  6459. else case e in #(
  6460. e) ac_compiler_gnu=no ;;
  6461. esac
  6462. fi
  6463. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6464. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  6465. ;;
  6466. esac
  6467. fi
  6468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  6469. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  6470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6471. if test $ac_compiler_gnu = yes; then
  6472. GCC=yes
  6473. else
  6474. GCC=
  6475. fi
  6476. ac_test_CFLAGS=${CFLAGS+y}
  6477. ac_save_CFLAGS=$CFLAGS
  6478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  6479. printf %s "checking whether $CC accepts -g... " >&6; }
  6480. if test ${ac_cv_prog_cc_g+y}
  6481. then :
  6482. printf %s "(cached) " >&6
  6483. else case e in #(
  6484. e) ac_save_c_werror_flag=$ac_c_werror_flag
  6485. ac_c_werror_flag=yes
  6486. ac_cv_prog_cc_g=no
  6487. CFLAGS="-g"
  6488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6489. /* end confdefs.h. */
  6490. int
  6491. main (void)
  6492. {
  6493. ;
  6494. return 0;
  6495. }
  6496. _ACEOF
  6497. if ac_fn_c_try_compile "$LINENO"
  6498. then :
  6499. ac_cv_prog_cc_g=yes
  6500. else case e in #(
  6501. e) CFLAGS=""
  6502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6503. /* end confdefs.h. */
  6504. int
  6505. main (void)
  6506. {
  6507. ;
  6508. return 0;
  6509. }
  6510. _ACEOF
  6511. if ac_fn_c_try_compile "$LINENO"
  6512. then :
  6513. else case e in #(
  6514. e) ac_c_werror_flag=$ac_save_c_werror_flag
  6515. CFLAGS="-g"
  6516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6517. /* end confdefs.h. */
  6518. int
  6519. main (void)
  6520. {
  6521. ;
  6522. return 0;
  6523. }
  6524. _ACEOF
  6525. if ac_fn_c_try_compile "$LINENO"
  6526. then :
  6527. ac_cv_prog_cc_g=yes
  6528. fi
  6529. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  6530. esac
  6531. fi
  6532. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  6533. esac
  6534. fi
  6535. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6536. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  6537. esac
  6538. fi
  6539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  6540. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  6541. if test $ac_test_CFLAGS; then
  6542. CFLAGS=$ac_save_CFLAGS
  6543. elif test $ac_cv_prog_cc_g = yes; then
  6544. if test "$GCC" = yes; then
  6545. CFLAGS="-g -O2"
  6546. else
  6547. CFLAGS="-g"
  6548. fi
  6549. else
  6550. if test "$GCC" = yes; then
  6551. CFLAGS="-O2"
  6552. else
  6553. CFLAGS=
  6554. fi
  6555. fi
  6556. ac_prog_cc_stdc=no
  6557. if test x$ac_prog_cc_stdc = xno
  6558. then :
  6559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  6560. printf %s "checking for $CC option to enable C11 features... " >&6; }
  6561. if test ${ac_cv_prog_cc_c11+y}
  6562. then :
  6563. printf %s "(cached) " >&6
  6564. else case e in #(
  6565. e) ac_cv_prog_cc_c11=no
  6566. ac_save_CC=$CC
  6567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6568. /* end confdefs.h. */
  6569. $ac_c_conftest_c11_program
  6570. _ACEOF
  6571. for ac_arg in '' -std=gnu11
  6572. do
  6573. CC="$ac_save_CC $ac_arg"
  6574. if ac_fn_c_try_compile "$LINENO"
  6575. then :
  6576. ac_cv_prog_cc_c11=$ac_arg
  6577. fi
  6578. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6579. test "x$ac_cv_prog_cc_c11" != "xno" && break
  6580. done
  6581. rm -f conftest.$ac_ext
  6582. CC=$ac_save_CC ;;
  6583. esac
  6584. fi
  6585. if test "x$ac_cv_prog_cc_c11" = xno
  6586. then :
  6587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6588. printf "%s\n" "unsupported" >&6; }
  6589. else case e in #(
  6590. e) if test "x$ac_cv_prog_cc_c11" = x
  6591. then :
  6592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6593. printf "%s\n" "none needed" >&6; }
  6594. else case e in #(
  6595. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  6596. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  6597. CC="$CC $ac_cv_prog_cc_c11" ;;
  6598. esac
  6599. fi
  6600. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  6601. ac_prog_cc_stdc=c11 ;;
  6602. esac
  6603. fi
  6604. fi
  6605. if test x$ac_prog_cc_stdc = xno
  6606. then :
  6607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  6608. printf %s "checking for $CC option to enable C99 features... " >&6; }
  6609. if test ${ac_cv_prog_cc_c99+y}
  6610. then :
  6611. printf %s "(cached) " >&6
  6612. else case e in #(
  6613. e) ac_cv_prog_cc_c99=no
  6614. ac_save_CC=$CC
  6615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6616. /* end confdefs.h. */
  6617. $ac_c_conftest_c99_program
  6618. _ACEOF
  6619. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  6620. do
  6621. CC="$ac_save_CC $ac_arg"
  6622. if ac_fn_c_try_compile "$LINENO"
  6623. then :
  6624. ac_cv_prog_cc_c99=$ac_arg
  6625. fi
  6626. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6627. test "x$ac_cv_prog_cc_c99" != "xno" && break
  6628. done
  6629. rm -f conftest.$ac_ext
  6630. CC=$ac_save_CC ;;
  6631. esac
  6632. fi
  6633. if test "x$ac_cv_prog_cc_c99" = xno
  6634. then :
  6635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6636. printf "%s\n" "unsupported" >&6; }
  6637. else case e in #(
  6638. e) if test "x$ac_cv_prog_cc_c99" = x
  6639. then :
  6640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6641. printf "%s\n" "none needed" >&6; }
  6642. else case e in #(
  6643. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  6644. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  6645. CC="$CC $ac_cv_prog_cc_c99" ;;
  6646. esac
  6647. fi
  6648. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  6649. ac_prog_cc_stdc=c99 ;;
  6650. esac
  6651. fi
  6652. fi
  6653. if test x$ac_prog_cc_stdc = xno
  6654. then :
  6655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  6656. printf %s "checking for $CC option to enable C89 features... " >&6; }
  6657. if test ${ac_cv_prog_cc_c89+y}
  6658. then :
  6659. printf %s "(cached) " >&6
  6660. else case e in #(
  6661. e) ac_cv_prog_cc_c89=no
  6662. ac_save_CC=$CC
  6663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6664. /* end confdefs.h. */
  6665. $ac_c_conftest_c89_program
  6666. _ACEOF
  6667. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6668. do
  6669. CC="$ac_save_CC $ac_arg"
  6670. if ac_fn_c_try_compile "$LINENO"
  6671. then :
  6672. ac_cv_prog_cc_c89=$ac_arg
  6673. fi
  6674. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6675. test "x$ac_cv_prog_cc_c89" != "xno" && break
  6676. done
  6677. rm -f conftest.$ac_ext
  6678. CC=$ac_save_CC ;;
  6679. esac
  6680. fi
  6681. if test "x$ac_cv_prog_cc_c89" = xno
  6682. then :
  6683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6684. printf "%s\n" "unsupported" >&6; }
  6685. else case e in #(
  6686. e) if test "x$ac_cv_prog_cc_c89" = x
  6687. then :
  6688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6689. printf "%s\n" "none needed" >&6; }
  6690. else case e in #(
  6691. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  6692. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  6693. CC="$CC $ac_cv_prog_cc_c89" ;;
  6694. esac
  6695. fi
  6696. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  6697. ac_prog_cc_stdc=c89 ;;
  6698. esac
  6699. fi
  6700. fi
  6701. ac_ext=c
  6702. ac_cpp='$CPP $CPPFLAGS'
  6703. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6704. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6705. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  6707. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  6708. set x ${MAKE-make}
  6709. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  6710. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  6711. then :
  6712. printf %s "(cached) " >&6
  6713. else case e in #(
  6714. e) cat >conftest.make <<\_ACEOF
  6715. SHELL = /bin/sh
  6716. all:
  6717. @echo '@@@%%%=$(MAKE)=@@@%%%'
  6718. _ACEOF
  6719. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  6720. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  6721. *@@@%%%=?*=@@@%%%*)
  6722. eval ac_cv_prog_make_${ac_make}_set=yes;;
  6723. *)
  6724. eval ac_cv_prog_make_${ac_make}_set=no;;
  6725. esac
  6726. rm -f conftest.make ;;
  6727. esac
  6728. fi
  6729. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  6730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6731. printf "%s\n" "yes" >&6; }
  6732. SET_MAKE=
  6733. else
  6734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6735. printf "%s\n" "no" >&6; }
  6736. SET_MAKE="MAKE=${MAKE-make}"
  6737. fi
  6738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  6739. printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  6740. if test ${ac_cv_header_sys_wait_h+y}
  6741. then :
  6742. printf %s "(cached) " >&6
  6743. else case e in #(
  6744. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6745. /* end confdefs.h. */
  6746. #include <sys/types.h>
  6747. #include <sys/wait.h>
  6748. #ifndef WEXITSTATUS
  6749. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  6750. #endif
  6751. #ifndef WIFEXITED
  6752. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  6753. #endif
  6754. int
  6755. main (void)
  6756. {
  6757. int s;
  6758. wait (&s);
  6759. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  6760. ;
  6761. return 0;
  6762. }
  6763. _ACEOF
  6764. if ac_fn_c_try_compile "$LINENO"
  6765. then :
  6766. ac_cv_header_sys_wait_h=yes
  6767. else case e in #(
  6768. e) ac_cv_header_sys_wait_h=no ;;
  6769. esac
  6770. fi
  6771. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  6772. esac
  6773. fi
  6774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  6775. printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
  6776. if test $ac_cv_header_sys_wait_h = yes; then
  6777. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  6778. fi
  6779. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  6780. if test "x$ac_cv_header_ctype_h" = xyes
  6781. then :
  6782. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  6783. fi
  6784. ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
  6785. if test "x$ac_cv_header_dirent_h" = xyes
  6786. then :
  6787. printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
  6788. fi
  6789. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  6790. if test "x$ac_cv_header_errno_h" = xyes
  6791. then :
  6792. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  6793. fi
  6794. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  6795. if test "x$ac_cv_header_fcntl_h" = xyes
  6796. then :
  6797. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  6798. fi
  6799. ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  6800. if test "x$ac_cv_header_getopt_h" = xyes
  6801. then :
  6802. printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
  6803. fi
  6804. ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  6805. if test "x$ac_cv_header_grp_h" = xyes
  6806. then :
  6807. printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
  6808. fi
  6809. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  6810. if test "x$ac_cv_header_inttypes_h" = xyes
  6811. then :
  6812. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  6813. fi
  6814. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  6815. if test "x$ac_cv_header_netdb_h" = xyes
  6816. then :
  6817. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  6818. fi
  6819. ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  6820. if test "x$ac_cv_header_pwd_h" = xyes
  6821. then :
  6822. printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
  6823. fi
  6824. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  6825. if test "x$ac_cv_header_signal_h" = xyes
  6826. then :
  6827. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  6828. fi
  6829. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  6830. if test "x$ac_cv_header_stdint_h" = xyes
  6831. then :
  6832. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  6833. fi
  6834. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  6835. if test "x$ac_cv_header_strings_h" = xyes
  6836. then :
  6837. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  6838. fi
  6839. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  6840. if test "x$ac_cv_header_string_h" = xyes
  6841. then :
  6842. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  6843. fi
  6844. ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  6845. if test "x$ac_cv_header_syslog_h" = xyes
  6846. then :
  6847. printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
  6848. fi
  6849. ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
  6850. if test "x$ac_cv_header_tcpd_h" = xyes
  6851. then :
  6852. printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h
  6853. fi
  6854. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  6855. if test "x$ac_cv_header_unistd_h" = xyes
  6856. then :
  6857. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  6858. fi
  6859. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  6860. if test "x$ac_cv_header_arpa_inet_h" = xyes
  6861. then :
  6862. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  6863. fi
  6864. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  6865. if test "x$ac_cv_header_netinet_in_h" = xyes
  6866. then :
  6867. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  6868. fi
  6869. ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$ac_includes_default"
  6870. if test "x$ac_cv_header_socket_h" = xyes
  6871. then :
  6872. printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
  6873. fi
  6874. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  6875. if test "x$ac_cv_header_sys_types_h" = xyes
  6876. then :
  6877. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  6878. fi
  6879. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  6880. if test "x$ac_cv_header_sys_time_h" = xyes
  6881. then :
  6882. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  6883. fi
  6884. ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
  6885. if test "x$ac_cv_header_sys_resource_h" = xyes
  6886. then :
  6887. printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
  6888. fi
  6889. ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  6890. if test "x$ac_cv_header_sys_wait_h" = xyes
  6891. then :
  6892. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  6893. fi
  6894. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  6895. if test "x$ac_cv_header_sys_socket_h" = xyes
  6896. then :
  6897. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  6898. fi
  6899. ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
  6900. if test "x$ac_cv_header_sys_stat_h" = xyes
  6901. then :
  6902. printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
  6903. fi
  6904. ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
  6905. if test "x$ac_cv_header_paths_h" = xyes
  6906. then :
  6907. printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
  6908. fi
  6909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  6910. printf %s "checking for an ANSI C-conforming const... " >&6; }
  6911. if test ${ac_cv_c_const+y}
  6912. then :
  6913. printf %s "(cached) " >&6
  6914. else case e in #(
  6915. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6916. /* end confdefs.h. */
  6917. int
  6918. main (void)
  6919. {
  6920. #ifndef __cplusplus
  6921. /* Ultrix mips cc rejects this sort of thing. */
  6922. typedef int charset[2];
  6923. const charset cs = { 0, 0 };
  6924. /* SunOS 4.1.1 cc rejects this. */
  6925. char const *const *pcpcc;
  6926. char **ppc;
  6927. /* NEC SVR4.0.2 mips cc rejects this. */
  6928. struct point {int x, y;};
  6929. static struct point const zero = {0,0};
  6930. /* IBM XL C 1.02.0.0 rejects this.
  6931. It does not let you subtract one const X* pointer from another in
  6932. an arm of an if-expression whose if-part is not a constant
  6933. expression */
  6934. const char *g = "string";
  6935. pcpcc = &g + (g ? g-g : 0);
  6936. /* HPUX 7.0 cc rejects these. */
  6937. ++pcpcc;
  6938. ppc = (char**) pcpcc;
  6939. pcpcc = (char const *const *) ppc;
  6940. { /* SCO 3.2v4 cc rejects this sort of thing. */
  6941. char tx;
  6942. char *t = &tx;
  6943. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6944. *t++ = 0;
  6945. if (s) return 0;
  6946. }
  6947. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6948. int x[] = {25, 17};
  6949. const int *foo = &x[0];
  6950. ++foo;
  6951. }
  6952. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6953. typedef const int *iptr;
  6954. iptr p = 0;
  6955. ++p;
  6956. }
  6957. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  6958. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6959. struct s { int j; const int *ap[3]; } bx;
  6960. struct s *b = &bx; b->j = 5;
  6961. }
  6962. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6963. const int foo = 10;
  6964. if (!foo) return 0;
  6965. }
  6966. return !cs[0] && !zero.x;
  6967. #endif
  6968. ;
  6969. return 0;
  6970. }
  6971. _ACEOF
  6972. if ac_fn_c_try_compile "$LINENO"
  6973. then :
  6974. ac_cv_c_const=yes
  6975. else case e in #(
  6976. e) ac_cv_c_const=no ;;
  6977. esac
  6978. fi
  6979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  6980. esac
  6981. fi
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  6983. printf "%s\n" "$ac_cv_c_const" >&6; }
  6984. if test $ac_cv_c_const = no; then
  6985. printf "%s\n" "#define const /**/" >>confdefs.h
  6986. fi
  6987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6988. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6989. if test ${ac_cv_struct_tm+y}
  6990. then :
  6991. printf %s "(cached) " >&6
  6992. else case e in #(
  6993. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6994. /* end confdefs.h. */
  6995. #include <sys/types.h>
  6996. #include <time.h>
  6997. int
  6998. main (void)
  6999. {
  7000. struct tm tm;
  7001. int *p = &tm.tm_sec;
  7002. return !p;
  7003. ;
  7004. return 0;
  7005. }
  7006. _ACEOF
  7007. if ac_fn_c_try_compile "$LINENO"
  7008. then :
  7009. ac_cv_struct_tm=time.h
  7010. else case e in #(
  7011. e) ac_cv_struct_tm=sys/time.h ;;
  7012. esac
  7013. fi
  7014. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7015. esac
  7016. fi
  7017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7018. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  7019. if test $ac_cv_struct_tm = sys/time.h; then
  7020. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7021. fi
  7022. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7023. if test "x$ac_cv_type_mode_t" = xyes
  7024. then :
  7025. else case e in #(
  7026. e)
  7027. printf "%s\n" "#define mode_t int" >>confdefs.h
  7028. ;;
  7029. esac
  7030. fi
  7031. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  7032. "
  7033. if test "x$ac_cv_type_pid_t" = xyes
  7034. then :
  7035. else case e in #(
  7036. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7037. /* end confdefs.h. */
  7038. #if defined _WIN64 && !defined __CYGWIN__
  7039. LLP64
  7040. #endif
  7041. int
  7042. main (void)
  7043. {
  7044. ;
  7045. return 0;
  7046. }
  7047. _ACEOF
  7048. if ac_fn_c_try_compile "$LINENO"
  7049. then :
  7050. ac_pid_type='int'
  7051. else case e in #(
  7052. e) ac_pid_type='__int64' ;;
  7053. esac
  7054. fi
  7055. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7056. printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
  7057. ;;
  7058. esac
  7059. fi
  7060. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7061. if test "x$ac_cv_type_size_t" = xyes
  7062. then :
  7063. else case e in #(
  7064. e)
  7065. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  7066. ;;
  7067. esac
  7068. fi
  7069. ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
  7070. if test "x$ac_cv_type_uid_t" = xyes
  7071. then :
  7072. else case e in #(
  7073. e)
  7074. printf "%s\n" "#define uid_t int" >>confdefs.h
  7075. ;;
  7076. esac
  7077. fi
  7078. ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
  7079. if test "x$ac_cv_type_gid_t" = xyes
  7080. then :
  7081. else case e in #(
  7082. e)
  7083. printf "%s\n" "#define gid_t int" >>confdefs.h
  7084. ;;
  7085. esac
  7086. fi
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
  7088. printf %s "checking type of array argument to getgroups... " >&6; }
  7089. if test ${ac_cv_type_getgroups+y}
  7090. then :
  7091. printf %s "(cached) " >&6
  7092. else case e in #(
  7093. e) # If AC_TYPE_UID_T says there isn't any gid_t typedef, then we can skip
  7094. # everything below.
  7095. if test $ac_cv_type_gid_t = no
  7096. then :
  7097. ac_cv_type_getgroups=int
  7098. else case e in #(
  7099. e) # Test programs below rely on strict type checking of extern declarations:
  7100. # 'extern int getgroups(int, int *); extern int getgroups(int, pid_t *);'
  7101. # is valid in C89 if and only if pid_t is a typedef for int. Unlike
  7102. # anything involving either an assignment or a function call, compilers
  7103. # tend to make this kind of type mismatch a hard error, not just an
  7104. # "incompatible pointer types" warning.
  7105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7106. /* end confdefs.h. */
  7107. $ac_includes_default
  7108. extern int getgroups(int, gid_t *);
  7109. int
  7110. main (void)
  7111. {
  7112. return !(getgroups(0, 0) >= 0);
  7113. ;
  7114. return 0;
  7115. }
  7116. _ACEOF
  7117. if ac_fn_c_try_compile "$LINENO"
  7118. then :
  7119. ac_getgroups_gidarray=yes
  7120. else case e in #(
  7121. e) ac_getgroups_gidarray=no ;;
  7122. esac
  7123. fi
  7124. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7126. /* end confdefs.h. */
  7127. $ac_includes_default
  7128. extern int getgroups(int, int *);
  7129. int
  7130. main (void)
  7131. {
  7132. return !(getgroups(0, 0) >= 0);
  7133. ;
  7134. return 0;
  7135. }
  7136. _ACEOF
  7137. if ac_fn_c_try_compile "$LINENO"
  7138. then :
  7139. ac_getgroups_intarray=yes
  7140. else case e in #(
  7141. e) ac_getgroups_intarray=no ;;
  7142. esac
  7143. fi
  7144. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7145. case int:$ac_getgroups_intarray,gid:$ac_getgroups_gidarray in #(
  7146. int:yes,gid:no) :
  7147. ac_cv_type_getgroups=int ;; #(
  7148. int:no,gid:yes) :
  7149. ac_cv_type_getgroups=gid_t ;; #(
  7150. int:yes,gid:yes) :
  7151. # Both programs compiled - this means *either* that getgroups
  7152. # was declared with no prototype, in which case we should use int,
  7153. # or that it was declared prototyped but gid_t is a typedef for int,
  7154. # in which case we should use gid_t. Distinguish the two cases
  7155. # by testing if the compiler catches a blatantly incorrect function
  7156. # signature for getgroups.
  7157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7158. /* end confdefs.h. */
  7159. $ac_includes_default
  7160. extern int getgroups(int, float);
  7161. int
  7162. main (void)
  7163. {
  7164. return !(getgroups(0, 0) >= 0);
  7165. ;
  7166. return 0;
  7167. }
  7168. _ACEOF
  7169. if ac_fn_c_try_compile "$LINENO"
  7170. then :
  7171. # Compiler did not catch incorrect argument list;
  7172. # getgroups is unprototyped.
  7173. ac_cv_type_getgroups=int
  7174. else case e in #(
  7175. e)
  7176. # Compiler caught incorrect argument list;
  7177. # gid_t is a typedef for int.
  7178. ac_cv_type_getgroups=gid_t
  7179. ;;
  7180. esac
  7181. fi
  7182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7183. ;; #(
  7184. *) :
  7185. # Both programs failed to compile - this probably means getgroups
  7186. # wasn't declared at all. Use 'int', as this is probably a very
  7187. # old system where the type _would have been_ int.
  7188. ac_cv_type_getgroups=int
  7189. ;;
  7190. esac
  7191. ;;
  7192. esac
  7193. fi
  7194. ;;
  7195. esac
  7196. fi
  7197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
  7198. printf "%s\n" "$ac_cv_type_getgroups" >&6; }
  7199. printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
  7200. # The cast to long int works around a bug in the HP C Compiler
  7201. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7202. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  7203. # This bug is HP SR number 8606223364.
  7204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  7205. printf %s "checking size of int... " >&6; }
  7206. if test ${ac_cv_sizeof_int+y}
  7207. then :
  7208. printf %s "(cached) " >&6
  7209. else case e in #(
  7210. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
  7211. then :
  7212. else case e in #(
  7213. e) if test "$ac_cv_type_int" = yes; then
  7214. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  7215. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  7216. as_fn_error 77 "cannot compute sizeof (int)
  7217. See 'config.log' for more details" "$LINENO" 5; }
  7218. else
  7219. ac_cv_sizeof_int=0
  7220. fi ;;
  7221. esac
  7222. fi
  7223. ;;
  7224. esac
  7225. fi
  7226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  7227. printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  7228. printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
  7229. # The cast to long int works around a bug in the HP C Compiler
  7230. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7231. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  7232. # This bug is HP SR number 8606223364.
  7233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  7234. printf %s "checking size of short... " >&6; }
  7235. if test ${ac_cv_sizeof_short+y}
  7236. then :
  7237. printf %s "(cached) " >&6
  7238. else case e in #(
  7239. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
  7240. then :
  7241. else case e in #(
  7242. e) if test "$ac_cv_type_short" = yes; then
  7243. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  7244. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  7245. as_fn_error 77 "cannot compute sizeof (short)
  7246. See 'config.log' for more details" "$LINENO" 5; }
  7247. else
  7248. ac_cv_sizeof_short=0
  7249. fi ;;
  7250. esac
  7251. fi
  7252. ;;
  7253. esac
  7254. fi
  7255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  7256. printf "%s\n" "$ac_cv_sizeof_short" >&6; }
  7257. printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
  7258. # The cast to long int works around a bug in the HP C Compiler
  7259. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7260. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  7261. # This bug is HP SR number 8606223364.
  7262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  7263. printf %s "checking size of long... " >&6; }
  7264. if test ${ac_cv_sizeof_long+y}
  7265. then :
  7266. printf %s "(cached) " >&6
  7267. else case e in #(
  7268. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
  7269. then :
  7270. else case e in #(
  7271. e) if test "$ac_cv_type_long" = yes; then
  7272. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  7273. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  7274. as_fn_error 77 "cannot compute sizeof (long)
  7275. See 'config.log' for more details" "$LINENO" 5; }
  7276. else
  7277. ac_cv_sizeof_long=0
  7278. fi ;;
  7279. esac
  7280. fi
  7281. ;;
  7282. esac
  7283. fi
  7284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  7285. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  7286. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  7287. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  7288. if test "x$ac_cv_type_uint32_t" = xyes
  7289. then :
  7290. else case e in #(
  7291. e)
  7292. printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h
  7293. ;;
  7294. esac
  7295. fi
  7296. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  7297. if test "x$ac_cv_type_u_int32_t" = xyes
  7298. then :
  7299. else case e in #(
  7300. e)
  7301. printf "%s\n" "#define u_int32_t unsigned int" >>confdefs.h
  7302. ;;
  7303. esac
  7304. fi
  7305. if test "$ac_cv_type_u_int32_t" = no ; then
  7306. if test "$ac_cv_type_u_int32_t" = yes ; then
  7307. printf "%s\n" "#define U_INT32_T_IS_UINT32_T 1" >>confdefs.h
  7308. else
  7309. if test "$ac_cv_sizeof_int" = 4 ; then
  7310. printf "%s\n" "#define U_INT32_T_IS_UINT 1" >>confdefs.h
  7311. else
  7312. if test "$ac_cv_sizeof_long" = 4 ; then
  7313. printf "%s\n" "#define U_INT32_T_IS_ULONG 1" >>confdefs.h
  7314. else
  7315. if test "$ac_cv_sizeof_short" = 4 ; then
  7316. printf "%s\n" "#define U_INT32_T_IS_USHORT 1" >>confdefs.h
  7317. fi
  7318. fi
  7319. fi
  7320. fi
  7321. fi
  7322. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  7323. if test "x$ac_cv_type_int32_t" = xyes
  7324. then :
  7325. else case e in #(
  7326. e)
  7327. printf "%s\n" "#define int32_t int" >>confdefs.h
  7328. ;;
  7329. esac
  7330. fi
  7331. if test "$ac_cv_type_int32_t" = no ; then
  7332. if test "$ac_cv_sizeof_int" = 4 ; then
  7333. printf "%s\n" "#define INT32_T_IS_UINT 1" >>confdefs.h
  7334. else
  7335. if test "$ac_cv_sizeof_long" = 4 ; then
  7336. printf "%s\n" "#define INT32_T_IS_ULONG 1" >>confdefs.h
  7337. else
  7338. if test "$ac_cv_sizeof_short" = 4 ; then
  7339. printf "%s\n" "#define INT32_T_IS_USHORT 1" >>confdefs.h
  7340. fi
  7341. fi
  7342. fi
  7343. fi
  7344. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
  7345. "
  7346. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
  7347. then :
  7348. printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
  7349. fi
  7350. ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
  7351. if test "x$ac_cv_func_seteuid" = xyes
  7352. then :
  7353. printf "%s\n" "#define SETEUID(id) seteuid(id)" >>confdefs.h
  7354. else case e in #(
  7355. e)
  7356. printf "%s\n" "#define SETEUID(id) setresuid((uid_t) -1, id, (uid_t) -1)" >>confdefs.h
  7357. ;;
  7358. esac
  7359. fi
  7360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  7361. printf %s "checking for va_copy... " >&6; }
  7362. if test ${ac_cv_HAVE_VA_COPY+y}
  7363. then :
  7364. printf %s "(cached) " >&6
  7365. else case e in #(
  7366. e)
  7367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7368. /* end confdefs.h. */
  7369. #include <stdarg.h>
  7370. va_list ap1,ap2;
  7371. int
  7372. main (void)
  7373. {
  7374. va_copy(ap1,ap2);
  7375. ;
  7376. return 0;
  7377. }
  7378. _ACEOF
  7379. if ac_fn_c_try_link "$LINENO"
  7380. then :
  7381. ac_cv_HAVE_VA_COPY=yes
  7382. else case e in #(
  7383. e) ac_cv_HAVE_VA_COPY=no ;;
  7384. esac
  7385. fi
  7386. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7387. conftest$ac_exeext conftest.$ac_ext ;;
  7388. esac
  7389. fi
  7390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_VA_COPY" >&5
  7391. printf "%s\n" "$ac_cv_HAVE_VA_COPY" >&6; }
  7392. if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then
  7393. printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h
  7394. else
  7395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
  7396. printf %s "checking for __va_copy... " >&6; }
  7397. if test ${ac_cv_HAVE___VA_COPY+y}
  7398. then :
  7399. printf %s "(cached) " >&6
  7400. else case e in #(
  7401. e)
  7402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7403. /* end confdefs.h. */
  7404. #include <stdarg.h>
  7405. va_list ap1,ap2;
  7406. int
  7407. main (void)
  7408. {
  7409. __va_copy(ap1,ap2);
  7410. ;
  7411. return 0;
  7412. }
  7413. _ACEOF
  7414. if ac_fn_c_try_link "$LINENO"
  7415. then :
  7416. ac_cv_HAVE___VA_COPY=yes
  7417. else case e in #(
  7418. e) ac_cv_HAVE___VA_COPY=no ;;
  7419. esac
  7420. fi
  7421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7422. conftest$ac_exeext conftest.$ac_ext ;;
  7423. esac
  7424. fi
  7425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE___VA_COPY" >&5
  7426. printf "%s\n" "$ac_cv_HAVE___VA_COPY" >&6; }
  7427. if test x"$ac_cv_HAVE___VA_COPY" = x"yes"; then
  7428. printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h
  7429. fi
  7430. fi
  7431. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  7432. if test "x$ac_cv_func_vsnprintf" = xyes
  7433. then :
  7434. else case e in #(
  7435. e) SNPRINTF_O=snprintf.o ;;
  7436. esac
  7437. fi
  7438. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  7439. if test "x$ac_cv_func_snprintf" = xyes
  7440. then :
  7441. else case e in #(
  7442. e) SNPRINTF_O=snprintf.o ;;
  7443. esac
  7444. fi
  7445. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  7446. if test "x$ac_cv_func_asprintf" = xyes
  7447. then :
  7448. else case e in #(
  7449. e) SNPRINTF_O=snprintf.o ;;
  7450. esac
  7451. fi
  7452. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  7453. if test "x$ac_cv_func_vasprintf" = xyes
  7454. then :
  7455. else case e in #(
  7456. e) SNPRINTF_O=snprintf.o ;;
  7457. esac
  7458. fi
  7459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
  7460. printf %s "checking for C99 vsnprintf... " >&6; }
  7461. if test ${ac_cv_HAVE_C99_VSNPRINTF+y}
  7462. then :
  7463. printf %s "(cached) " >&6
  7464. else case e in #(
  7465. e)
  7466. if test "$cross_compiling" = yes
  7467. then :
  7468. ac_cv_HAVE_C99_VSNPRINTF=cross
  7469. else case e in #(
  7470. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7471. /* end confdefs.h. */
  7472. #include <sys/types.h>
  7473. #include <stdarg.h>
  7474. void foo(const char *format, ...) {
  7475. va_list ap;
  7476. int len;
  7477. char buf[5];
  7478. va_start(ap, format);
  7479. len = vsnprintf(buf, 0, format, ap);
  7480. va_end(ap);
  7481. if (len != 5) exit(1);
  7482. va_start(ap, format);
  7483. len = vsnprintf(0, 0, format, ap);
  7484. va_end(ap);
  7485. if (len != 5) exit(1);
  7486. if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
  7487. exit(0);
  7488. }
  7489. main() { foo("hello"); }
  7490. _ACEOF
  7491. if ac_fn_c_try_run "$LINENO"
  7492. then :
  7493. ac_cv_HAVE_C99_VSNPRINTF=yes
  7494. else case e in #(
  7495. e) ac_cv_HAVE_C99_VSNPRINTF=no ;;
  7496. esac
  7497. fi
  7498. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7499. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7500. esac
  7501. fi
  7502. ;;
  7503. esac
  7504. fi
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_C99_VSNPRINTF" >&5
  7506. printf "%s\n" "$ac_cv_HAVE_C99_VSNPRINTF" >&6; }
  7507. if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
  7508. printf "%s\n" "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
  7509. fi
  7510. for ac_func in getopt_long
  7511. do :
  7512. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  7513. if test "x$ac_cv_func_getopt_long" = xyes
  7514. then :
  7515. printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  7516. else case e in #(
  7517. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -liberty" >&5
  7518. printf %s "checking for getopt_long in -liberty... " >&6; }
  7519. if test ${ac_cv_lib_iberty_getopt_long+y}
  7520. then :
  7521. printf %s "(cached) " >&6
  7522. else case e in #(
  7523. e) ac_check_lib_save_LIBS=$LIBS
  7524. LIBS="-liberty $LIBS"
  7525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7526. /* end confdefs.h. */
  7527. /* Override any GCC internal prototype to avoid an error.
  7528. Use char because int might match the return type of a GCC
  7529. builtin and then its argument prototype would still apply.
  7530. The 'extern "C"' is for builds by C++ compilers;
  7531. although this is not generally supported in C code supporting it here
  7532. has little cost and some practical benefit (sr 110532). */
  7533. #ifdef __cplusplus
  7534. extern "C"
  7535. #endif
  7536. char getopt_long (void);
  7537. int
  7538. main (void)
  7539. {
  7540. return getopt_long ();
  7541. ;
  7542. return 0;
  7543. }
  7544. _ACEOF
  7545. if ac_fn_c_try_link "$LINENO"
  7546. then :
  7547. ac_cv_lib_iberty_getopt_long=yes
  7548. else case e in #(
  7549. e) ac_cv_lib_iberty_getopt_long=no ;;
  7550. esac
  7551. fi
  7552. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7553. conftest$ac_exeext conftest.$ac_ext
  7554. LIBS=$ac_check_lib_save_LIBS ;;
  7555. esac
  7556. fi
  7557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_getopt_long" >&5
  7558. printf "%s\n" "$ac_cv_lib_iberty_getopt_long" >&6; }
  7559. if test "x$ac_cv_lib_iberty_getopt_long" = xyes
  7560. then :
  7561. OTHERLIBS="$OTHERLIBS -liberty"
  7562. fi
  7563. ;;
  7564. esac
  7565. fi
  7566. done
  7567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  7568. printf %s "checking for main in -lnsl... " >&6; }
  7569. if test ${ac_cv_lib_nsl_main+y}
  7570. then :
  7571. printf %s "(cached) " >&6
  7572. else case e in #(
  7573. e) ac_check_lib_save_LIBS=$LIBS
  7574. LIBS="-lnsl $LIBS"
  7575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7576. /* end confdefs.h. */
  7577. int
  7578. main (void)
  7579. {
  7580. return main ();
  7581. ;
  7582. return 0;
  7583. }
  7584. _ACEOF
  7585. if ac_fn_c_try_link "$LINENO"
  7586. then :
  7587. ac_cv_lib_nsl_main=yes
  7588. else case e in #(
  7589. e) ac_cv_lib_nsl_main=no ;;
  7590. esac
  7591. fi
  7592. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7593. conftest$ac_exeext conftest.$ac_ext
  7594. LIBS=$ac_check_lib_save_LIBS ;;
  7595. esac
  7596. fi
  7597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  7598. printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
  7599. if test "x$ac_cv_lib_nsl_main" = xyes
  7600. then :
  7601. SOCKETLIBS="$SOCKETLIBS -lnsl"
  7602. fi
  7603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  7604. printf %s "checking for socket in -lsocket... " >&6; }
  7605. if test ${ac_cv_lib_socket_socket+y}
  7606. then :
  7607. printf %s "(cached) " >&6
  7608. else case e in #(
  7609. e) ac_check_lib_save_LIBS=$LIBS
  7610. LIBS="-lsocket $LIBS"
  7611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7612. /* end confdefs.h. */
  7613. /* Override any GCC internal prototype to avoid an error.
  7614. Use char because int might match the return type of a GCC
  7615. builtin and then its argument prototype would still apply.
  7616. The 'extern "C"' is for builds by C++ compilers;
  7617. although this is not generally supported in C code supporting it here
  7618. has little cost and some practical benefit (sr 110532). */
  7619. #ifdef __cplusplus
  7620. extern "C"
  7621. #endif
  7622. char socket (void);
  7623. int
  7624. main (void)
  7625. {
  7626. return socket ();
  7627. ;
  7628. return 0;
  7629. }
  7630. _ACEOF
  7631. if ac_fn_c_try_link "$LINENO"
  7632. then :
  7633. ac_cv_lib_socket_socket=yes
  7634. else case e in #(
  7635. e) ac_cv_lib_socket_socket=no ;;
  7636. esac
  7637. fi
  7638. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7639. conftest$ac_exeext conftest.$ac_ext
  7640. LIBS=$ac_check_lib_save_LIBS ;;
  7641. esac
  7642. fi
  7643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  7644. printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
  7645. if test "x$ac_cv_lib_socket_socket" = xyes
  7646. then :
  7647. SOCKETLIBS="$SOCKETLIBS -lsocket"
  7648. fi
  7649. # Check whether --enable-tcpd was given.
  7650. if test ${enable_tcpd+y}
  7651. then :
  7652. enableval=$enable_tcpd;
  7653. if test x$enableval = xyes; then
  7654. check_for_tcpd=yes
  7655. else
  7656. check_for_tcpd=no
  7657. fi
  7658. else case e in #(
  7659. e) check_for_tcpd=optional ;;
  7660. esac
  7661. fi
  7662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check_for_tcpd=$check_for_tcpd" >&5
  7663. printf %s "checking check_for_tcpd=$check_for_tcpd... " >&6; }
  7664. if test x$check_for_tcpd != xno; then
  7665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lwrap" >&5
  7666. printf %s "checking for main in -lwrap... " >&6; }
  7667. if test ${ac_cv_lib_wrap_main+y}
  7668. then :
  7669. printf %s "(cached) " >&6
  7670. else case e in #(
  7671. e) ac_check_lib_save_LIBS=$LIBS
  7672. LIBS="-lwrap $LIBS"
  7673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7674. /* end confdefs.h. */
  7675. int
  7676. main (void)
  7677. {
  7678. return main ();
  7679. ;
  7680. return 0;
  7681. }
  7682. _ACEOF
  7683. if ac_fn_c_try_link "$LINENO"
  7684. then :
  7685. ac_cv_lib_wrap_main=yes
  7686. else case e in #(
  7687. e) ac_cv_lib_wrap_main=no ;;
  7688. esac
  7689. fi
  7690. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7691. conftest$ac_exeext conftest.$ac_ext
  7692. LIBS=$ac_check_lib_save_LIBS ;;
  7693. esac
  7694. fi
  7695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_main" >&5
  7696. printf "%s\n" "$ac_cv_lib_wrap_main" >&6; }
  7697. if test "x$ac_cv_lib_wrap_main" = xyes
  7698. then :
  7699. LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
  7700. printf "%s\n" "#define HAVE_LIBWRAP 1" >>confdefs.h
  7701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7702. /* end confdefs.h. */
  7703. #include <tcpd.h>
  7704. int
  7705. main (void)
  7706. {
  7707. int a = rfc931_timeout;
  7708. ;
  7709. return 0;
  7710. }
  7711. _ACEOF
  7712. if ac_fn_c_try_link "$LINENO"
  7713. then :
  7714. printf "%s\n" "#define HAVE_RFC931_TIMEOUT 1" >>confdefs.h
  7715. fi
  7716. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7717. conftest$ac_exeext conftest.$ac_ext
  7718. else case e in #(
  7719. e)
  7720. if test x$check_for_tcpd = xyes; then
  7721. as_fn_error $? "--enable-tcpd specified but unable to locate libwrap." "$LINENO" 5
  7722. fi
  7723. ;;
  7724. esac
  7725. fi
  7726. fi
  7727. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  7728. if test "x$ac_cv_func_strdup" = xyes
  7729. then :
  7730. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  7731. fi
  7732. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  7733. if test "x$ac_cv_func_strstr" = xyes
  7734. then :
  7735. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  7736. fi
  7737. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  7738. if test "x$ac_cv_func_strtoul" = xyes
  7739. then :
  7740. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  7741. fi
  7742. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  7743. if test "x$ac_cv_func_strtok_r" = xyes
  7744. then :
  7745. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  7746. fi
  7747. ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
  7748. if test "x$ac_cv_func_initgroups" = xyes
  7749. then :
  7750. printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
  7751. fi
  7752. ac_fn_c_check_func "$LINENO" "closesocket" "ac_cv_func_closesocket"
  7753. if test "x$ac_cv_func_closesocket" = xyes
  7754. then :
  7755. printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
  7756. fi
  7757. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  7758. if test "x$ac_cv_func_sigaction" = xyes
  7759. then :
  7760. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  7761. fi
  7762. ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
  7763. if test "x$ac_cv_func_scandir" = xyes
  7764. then :
  7765. printf "%s\n" "#define HAVE_SCANDIR 1" >>confdefs.h
  7766. fi
  7767. ac_fn_c_check_func "$LINENO" "scandir64" "ac_cv_func_scandir64"
  7768. if test "x$ac_cv_func_scandir64" = xyes
  7769. then :
  7770. printf "%s\n" "#define HAVE_SCANDIR64 1" >>confdefs.h
  7771. fi
  7772. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  7773. #include <sys/socket.h>
  7774. "
  7775. if test "x$ac_cv_type_socklen_t" = xyes
  7776. then :
  7777. else case e in #(
  7778. e)
  7779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  7780. printf %s "checking for socklen_t equivalent... " >&6; }
  7781. if test ${curl_cv_socklen_t_equiv+y}
  7782. then :
  7783. printf %s "(cached) " >&6
  7784. else case e in #(
  7785. e)
  7786. # Systems have either "struct sockaddr *" or
  7787. # "void *" as the second argument to getpeername
  7788. curl_cv_socklen_t_equiv=
  7789. for arg2 in "struct sockaddr" void; do
  7790. for t in int size_t unsigned long "unsigned long"; do
  7791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7792. /* end confdefs.h. */
  7793. #ifdef HAVE_SYS_TYPES_H
  7794. #include <sys/types.h>
  7795. #endif
  7796. #ifdef HAVE_SYS_SOCKET_H
  7797. #include <sys/socket.h>
  7798. #endif
  7799. int getpeername (int, $arg2 *, $t *);
  7800. int
  7801. main (void)
  7802. {
  7803. $t len;
  7804. getpeername(0,0,&len);
  7805. ;
  7806. return 0;
  7807. }
  7808. _ACEOF
  7809. if ac_fn_c_try_compile "$LINENO"
  7810. then :
  7811. curl_cv_socklen_t_equiv="$t"
  7812. break
  7813. fi
  7814. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7815. done
  7816. done
  7817. if test "x$curl_cv_socklen_t_equiv" = x; then
  7818. as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  7819. fi
  7820. ;;
  7821. esac
  7822. fi
  7823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
  7824. printf "%s\n" "$curl_cv_socklen_t_equiv" >&6; }
  7825. printf "%s\n" "#define socklen_t $curl_cv_socklen_t_equiv" >>confdefs.h
  7826. ;;
  7827. esac
  7828. fi
  7829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of socket size" >&5
  7830. printf %s "checking for type of socket size... " >&6; }
  7831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7832. /* end confdefs.h. */
  7833. #include <stdlib.h>
  7834. #include <sys/types.h>
  7835. #include <sys/socket.h>
  7836. int
  7837. main (void)
  7838. {
  7839. int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
  7840. ;
  7841. return 0;
  7842. }
  7843. _ACEOF
  7844. if ac_fn_c_try_compile "$LINENO"
  7845. then :
  7846. printf "%s\n" "#define SOCKET_SIZE_TYPE size_t" >>confdefs.h
  7847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
  7848. printf "%s\n" "size_t" >&6; }
  7849. else case e in #(
  7850. e)
  7851. printf "%s\n" "#define SOCKET_SIZE_TYPE int" >>confdefs.h
  7852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
  7853. printf "%s\n" "int" >&6; } ;;
  7854. esac
  7855. fi
  7856. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7857. # Check whether --enable-ssl was given.
  7858. if test ${enable_ssl+y}
  7859. then :
  7860. enableval=$enable_ssl;
  7861. if test x$enableval = xyes; then
  7862. check_for_ssl=yes
  7863. else
  7864. check_for_ssl=no
  7865. fi
  7866. else case e in #(
  7867. e) check_for_ssl=yes ;;
  7868. esac
  7869. fi
  7870. need_dh=yes
  7871. # Check whether --with-need_dh was given.
  7872. if test ${with_need_dh+y}
  7873. then :
  7874. withval=$with_need_dh; need_dh=$withval
  7875. else case e in #(
  7876. e) nrpe_group=need_dh ;;
  7877. esac
  7878. fi
  7879. if test x$check_for_ssl = xyes; then
  7880. # need_dh should only be set for NRPE
  7881. #need_dh=yes
  7882. # -------------------------------
  7883. # SSL library and include paths
  7884. # -------------------------------
  7885. SSL_TYPE=openssl
  7886. try_pkg_config=1
  7887. ssl_dir=
  7888. ssl_inc_dir=
  7889. ssl_lib_dir=
  7890. SSL_INC_PREFIX=
  7891. SSL_HDR=
  7892. SSL_LIB_DIR=
  7893. SSL_DH_HEADER_MAKE_OLD="../include/dh.h:
  7894. \$(SSLBIN) dhparam -C 2048 | awk '/^-----/ {exit} {print}' > \$@"
  7895. SSL_DH_HEADER_MAKE_NEW="../include/dh.h: generate_dh_params
  7896. ./generate_dh_params > \$@
  7897. generate_dh_params: \$(srcdir)/generate_dh_params.c
  7898. \$(CC) \$(CFLAGS) -o \$@ \$(srcdir)/generate_dh_params.c \$(LDFLAGS)"
  7899. # Check whether --with-ssl was given.
  7900. if test ${with_ssl+y}
  7901. then :
  7902. withval=$with_ssl; ssl_dir=$withval
  7903. fi
  7904. # Check whether --with-ssl-inc was given.
  7905. if test ${with_ssl_inc+y}
  7906. then :
  7907. withval=$with_ssl_inc; ssl_inc_dir=$withval
  7908. fi
  7909. # Check whether --with-ssl-lib was given.
  7910. if test ${with_ssl_lib+y}
  7911. then :
  7912. withval=$with_ssl_lib; ssl_lib_dir=$withval
  7913. fi
  7914. # Check whether --enable-auto_dh was given.
  7915. if test ${enable_auto_dh+y}
  7916. then :
  7917. enableval=$enable_auto_dh; auto_dh=no
  7918. else case e in #(
  7919. e) auto_dh=yes ;;
  7920. esac
  7921. fi
  7922. if test x$ssl_inc_dir != x -o x$ssl_lib_dir != x; then
  7923. try_pkg_config=0
  7924. fi
  7925. # Check whether --with-kerberos-inc was given.
  7926. if test ${with_kerberos_inc+y}
  7927. then :
  7928. withval=$with_kerberos_inc; kerberos_inc_dir=$withval
  7929. fi
  7930. if test x$SSL_TYPE = xyes; then
  7931. SSL_TYPE=openssl
  7932. fi
  7933. dflt_hdrs="$ssl_inc_dir $ssl_dir $ssl_inc_dir/include $ssl_dir/include \
  7934. /usr/include /usr /usr/local /usr/pkg /usr/sfw /usr/sfw/include \
  7935. /usr/local/opt/{BBB} /usr/include/{BBB} /usr/local/include/{BBB} \
  7936. /usr/local/{AAA} /usr/local/{BBB} /usr/lib/{AAA} /usr/lib/{BBB} \
  7937. /usr/{AAA} /usr/freeware/lib/{BBB} /opt/{BBB}"
  7938. dflt_libs="$ssl_lib_dir {ssldir} {ssldir}/lib {ssldir}/lib64 /usr/lib64 \
  7939. /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/i386-linux-gnu \
  7940. /usr/local/lib /usr/lib/{AAA} /usr/{AAA}/lib /usr/{BBB}/lib \
  7941. /usr/pkg/lib /usr/freeware/lib/{BBB} /usr/sfw/lib /opt/freeware/lib \
  7942. /opt/{BBB}/lib/hpux64 /opt/{BBB}/lib/pa20_64 /opt/{BBB}/lib/hpux32 \
  7943. /opt/{BBB}/lib /opt/{BBB}";
  7944. case $SSL_TYPE in #(
  7945. no) :
  7946. SSL_TYPE=NONE ;; #(
  7947. yes|openssl) :
  7948. ssl_hdr_dirs=`echo "$dflt_hdrs" | sed -e 's/{AAA}/ssl/g' | sed -e 's/{BBB}/openssl/g'`
  7949. ssl_lib_dirs=`echo "$dflt_libs" | sed -e 's/{AAA}/ssl/g' | sed -e 's/{BBB}/openssl/g'`
  7950. SSL_INC_PREFIX=openssl
  7951. SSL_HDR=ssl.h
  7952. ssl_lib=libssl ;; #(
  7953. *) :
  7954. echo >&6; as_fn_error $? "'--with-ssl-type=$SSL_TYPE' is invalid" "$LINENO" 5
  7955. ;; #(
  7956. *) :
  7957. ;;
  7958. esac
  7959. if test x$SSL_TYPE != xNONE; then
  7960. found_ssl=no
  7961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Kerberos include files" >&5
  7962. printf %s "checking for Kerberos include files... " >&6; }
  7963. found_kerberos=no
  7964. for dir in $kerberos_inc_dir /usr/kerberos/include /usr/include/krb5 \
  7965. /usr/include; do
  7966. kerbdir="$dir"
  7967. if test -f "$dir/krb5.h"; then
  7968. found_kerberos=yes
  7969. CFLAGS="$CFLAGS -I$kerbdir"
  7970. printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
  7971. break
  7972. fi
  7973. done
  7974. if test x_$found_kerberos != x_yes; then
  7975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find include files" >&5
  7976. printf "%s\n" "$as_me: WARNING: could not find include files" >&2;}
  7977. else
  7978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found Kerberos include files in $kerbdir" >&5
  7979. printf "%s\n" "found Kerberos include files in $kerbdir" >&6; }
  7980. fi
  7981. if test $try_pkg_config -ne 0 ; then
  7982. if test -n "$ac_tool_prefix"; then
  7983. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  7984. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  7985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7986. printf %s "checking for $ac_word... " >&6; }
  7987. if test ${ac_cv_prog_PKG_CONFIG+y}
  7988. then :
  7989. printf %s "(cached) " >&6
  7990. else case e in #(
  7991. e) if test -n "$PKG_CONFIG"; then
  7992. ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
  7993. else
  7994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7995. for as_dir in $PATH
  7996. do
  7997. IFS=$as_save_IFS
  7998. case $as_dir in #(((
  7999. '') as_dir=./ ;;
  8000. */) ;;
  8001. *) as_dir=$as_dir/ ;;
  8002. esac
  8003. for ac_exec_ext in '' $ac_executable_extensions; do
  8004. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8005. ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
  8006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8007. break 2
  8008. fi
  8009. done
  8010. done
  8011. IFS=$as_save_IFS
  8012. fi ;;
  8013. esac
  8014. fi
  8015. PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
  8016. if test -n "$PKG_CONFIG"; then
  8017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  8018. printf "%s\n" "$PKG_CONFIG" >&6; }
  8019. else
  8020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8021. printf "%s\n" "no" >&6; }
  8022. fi
  8023. fi
  8024. if test -z "$ac_cv_prog_PKG_CONFIG"; then
  8025. ac_ct_PKG_CONFIG=$PKG_CONFIG
  8026. # Extract the first word of "pkg-config", so it can be a program name with args.
  8027. set dummy pkg-config; ac_word=$2
  8028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8029. printf %s "checking for $ac_word... " >&6; }
  8030. if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
  8031. then :
  8032. printf %s "(cached) " >&6
  8033. else case e in #(
  8034. e) if test -n "$ac_ct_PKG_CONFIG"; then
  8035. ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
  8036. else
  8037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8038. for as_dir in $PATH
  8039. do
  8040. IFS=$as_save_IFS
  8041. case $as_dir in #(((
  8042. '') as_dir=./ ;;
  8043. */) ;;
  8044. *) as_dir=$as_dir/ ;;
  8045. esac
  8046. for ac_exec_ext in '' $ac_executable_extensions; do
  8047. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8048. ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
  8049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8050. break 2
  8051. fi
  8052. done
  8053. done
  8054. IFS=$as_save_IFS
  8055. fi ;;
  8056. esac
  8057. fi
  8058. ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
  8059. if test -n "$ac_ct_PKG_CONFIG"; then
  8060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
  8061. printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
  8062. else
  8063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8064. printf "%s\n" "no" >&6; }
  8065. fi
  8066. if test "x$ac_ct_PKG_CONFIG" = x; then
  8067. PKG_CONFIG=""
  8068. else
  8069. case $cross_compiling:$ac_tool_warned in
  8070. yes:)
  8071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8072. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8073. ac_tool_warned=yes ;;
  8074. esac
  8075. PKG_CONFIG=$ac_ct_PKG_CONFIG
  8076. fi
  8077. else
  8078. PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
  8079. fi
  8080. fi
  8081. if test x"$PKG_CONFIG" != x -a $try_pkg_config -ne 0 ; then
  8082. cflags=`$PKG_CONFIG $SSL_TYPE --cflags-only-I 2>/dev/null`
  8083. if test $? -eq 0; then
  8084. CFLAGS="$CFLAGS $cflags"
  8085. LDFLAGS="$LDFLAGS `$PKG_CONFIG $SSL_TYPE --libs-only-L 2>/dev/null`"
  8086. LIBS="$LIBS `$PKG_CONFIG $SSL_TYPE --libs-only-l 2>/dev/null`"
  8087. found_ssl=yes
  8088. fi
  8089. fi
  8090. ax_nagios_run_ssl_save_LIBS=$LIBS
  8091. if test "x_$found_ssl" != "x_yes"; then
  8092. LIBS="$LIBS -l`echo $ssl_lib | sed -e 's/^lib//'` -lcrypto";
  8093. fi
  8094. if test "x_$found_ssl" != "x_yes" && test "x$ssl_inc_dir" == "x" && test "x$ssl_lib_dir" == "x"; then
  8095. tmp_prefix=""
  8096. if test -n "$SSL_INC_PREFIX" ; then
  8097. tmp_prefix="${SSL_INC_PREFIX}/"
  8098. fi
  8099. if test "$cross_compiling" = yes
  8100. then :
  8101. else case e in #(
  8102. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8103. /* end confdefs.h. */
  8104. #include <${tmp_prefix}opensslv.h>
  8105. #include <${tmp_prefix}crypto.h>
  8106. int
  8107. main (void)
  8108. {
  8109. #if OPENSSL_VERSION_NUMBER >= 0x10100000L
  8110. return OpenSSL_version_num() == OPENSSL_VERSION_NUMBER ? EXIT_SUCCESS : EXIT_FAILURE;
  8111. #else
  8112. return SSLeay() == OPENSSL_VERSION_NUMBER ? EXIT_SUCCESS : EXIT_FAILURE;
  8113. #endif
  8114. ;
  8115. return 0;
  8116. }
  8117. _ACEOF
  8118. if ac_fn_c_try_run "$LINENO"
  8119. then :
  8120. found_ssl=yes
  8121. fi
  8122. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8123. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  8124. esac
  8125. fi
  8126. fi
  8127. if test x_$found_ssl != x_yes; then
  8128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL headers" >&5
  8129. printf %s "checking for SSL headers... " >&6; }
  8130. for dir in $ssl_hdr_dirs; do
  8131. if test "$dir" = "/include"; then
  8132. continue
  8133. fi
  8134. ssldir="$dir"
  8135. sslincdir="$dir"
  8136. if test -f "$dir/$SSL_INC_PREFIX/$SSL_HDR"; then
  8137. found_ssl=yes
  8138. CFLAGS="$CFLAGS -I$dir"
  8139. ssldir="$dir/.."
  8140. break
  8141. fi
  8142. if test -f "$dir/include/$SSL_INC_PREFIX/$SSL_HDR"; then
  8143. found_ssl=yes
  8144. CFLAGS="$CFLAGS -I$dir/include"
  8145. sslincdir="$dir/include"
  8146. break
  8147. fi
  8148. if test -f "$dir/include/$SSL_HDR"; then
  8149. found_ssl=yes
  8150. if test "$SSL_HDR" != compat.h ; then
  8151. SSL_INC_PREFIX=""
  8152. fi
  8153. CFLAGS="$CFLAGS -I$dir/include"
  8154. sslincdir="$dir/include"
  8155. break
  8156. fi
  8157. if test -f "$dir/$SSL_HDR"; then
  8158. found_ssl=yes
  8159. SSL_INC_PREFIX=""
  8160. CFLAGS="$CFLAGS -I$dir"
  8161. break
  8162. fi
  8163. done
  8164. if test x_$found_ssl != x_yes; then
  8165. as_fn_error $? "Cannot find ssl headers" "$LINENO" 5
  8166. else
  8167. case ":$sslincdir:" in
  8168. # change empty paths to '.'
  8169. ::) sslincdir='.' ;;
  8170. # strip trailing slashes
  8171. :*[\\/]:) sslincdir=`echo "$sslincdir" | sed 's,[\\/]*$,,'` ;;
  8172. :*:) ;;
  8173. esac
  8174. # squeeze repeated slashes
  8175. case "$sslincdir" in
  8176. # if the path contains any backslashes, turn slashes into backslashes
  8177. *\\*) sslincdir=`echo "$sslincdir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  8178. # if the path contains slashes, also turn backslashes into slashes
  8179. *) sslincdir=`echo "$sslincdir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  8180. esac
  8181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $sslincdir" >&5
  8182. printf "%s\n" "found in $sslincdir" >&6; }
  8183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-rpath,/" >&5
  8184. printf %s "checking whether the linker accepts -Wl,-rpath,/... " >&6; }
  8185. if test ${ax_cv_check_ldflags___Wl__rpath__+y}
  8186. then :
  8187. printf %s "(cached) " >&6
  8188. else case e in #(
  8189. e)
  8190. ax_check_save_flags=$LDFLAGS
  8191. LDFLAGS="$LDFLAGS -Wl,-rpath,/"
  8192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8193. /* end confdefs.h. */
  8194. int
  8195. main (void)
  8196. {
  8197. ;
  8198. return 0;
  8199. }
  8200. _ACEOF
  8201. if ac_fn_c_try_link "$LINENO"
  8202. then :
  8203. ax_cv_check_ldflags___Wl__rpath__=yes
  8204. else case e in #(
  8205. e) ax_cv_check_ldflags___Wl__rpath__=no ;;
  8206. esac
  8207. fi
  8208. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8209. conftest$ac_exeext conftest.$ac_ext
  8210. LDFLAGS=$ax_check_save_flags ;;
  8211. esac
  8212. fi
  8213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__rpath__" >&5
  8214. printf "%s\n" "$ax_cv_check_ldflags___Wl__rpath__" >&6; }
  8215. if test "x$ax_cv_check_ldflags___Wl__rpath__" = xyes
  8216. then :
  8217. RPATH=yes
  8218. else case e in #(
  8219. e) RPATH=no ;;
  8220. esac
  8221. fi
  8222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL libraries" >&5
  8223. printf %s "checking for SSL libraries... " >&6; }
  8224. found_ssl=no
  8225. ssl_lib_dirs=`echo "$ssl_lib_dirs" | sed -e "s|{ssldir}|$ssldir|g"`
  8226. if test "`uname -s`" = "Darwin" ; then
  8227. soext="dylib"
  8228. elif test "`uname -s`" = "HP-UX" ; then
  8229. if test x$arch = "xia64"; then
  8230. soext="so"
  8231. else
  8232. soext="sl"
  8233. fi
  8234. elif test "`uname -s`" = "AIX" ; then
  8235. soext="a"
  8236. else
  8237. soext="so a"
  8238. fi
  8239. for dir in $ssl_lib_dirs; do
  8240. for ext in $soext; do
  8241. if test -f "$dir/$ssl_lib.$ext"; then
  8242. found_ssl=yes
  8243. SSL_LIB_DIR="$dir"
  8244. break
  8245. fi
  8246. done
  8247. if test x_$found_ssl == x_yes; then
  8248. break
  8249. fi
  8250. done
  8251. if test x_$found_ssl != x_yes; then
  8252. as_fn_error $? "Cannot find ssl libraries" "$LINENO" 5
  8253. else
  8254. case ":$SSL_LIB_DIR:" in
  8255. # change empty paths to '.'
  8256. ::) SSL_LIB_DIR='.' ;;
  8257. # strip trailing slashes
  8258. :*[\\/]:) SSL_LIB_DIR=`echo "$SSL_LIB_DIR" | sed 's,[\\/]*$,,'` ;;
  8259. :*:) ;;
  8260. esac
  8261. # squeeze repeated slashes
  8262. case "$SSL_LIB_DIR" in
  8263. # if the path contains any backslashes, turn slashes into backslashes
  8264. *\\*) SSL_LIB_DIR=`echo "$SSL_LIB_DIR" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  8265. # if the path contains slashes, also turn backslashes into slashes
  8266. *) SSL_LIB_DIR=`echo "$SSL_LIB_DIR" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  8267. esac
  8268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $SSL_LIB_DIR" >&5
  8269. printf "%s\n" "found in $SSL_LIB_DIR" >&6; }
  8270. LDFLAGS="$LDFLAGS -L$SSL_LIB_DIR";
  8271. if test x$RPATH == xyes ; then
  8272. # Do we need to add rpath?
  8273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking if rpath is required..." >&5
  8274. printf %s "checking checking if rpath is required...... " >&6; }
  8275. tmp_prefix=""
  8276. if test -n "$SSL_INC_PREFIX" ; then
  8277. tmp_prefix="${SSL_INC_PREFIX}/"
  8278. fi
  8279. if test "$cross_compiling" = yes
  8280. then :
  8281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8282. printf "%s\n" "no" >&6; }
  8283. else case e in #(
  8284. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8285. /* end confdefs.h. */
  8286. #include <${tmp_prefix}opensslv.h>
  8287. #include <${tmp_prefix}crypto.h>
  8288. int
  8289. main (void)
  8290. {
  8291. #if OPENSSL_VERSION_NUMBER >= 0x10100000L
  8292. return OpenSSL_version_num() == OPENSSL_VERSION_NUMBER ? EXIT_SUCCESS : EXIT_FAILURE;
  8293. #else
  8294. return SSLeay() == OPENSSL_VERSION_NUMBER ? EXIT_SUCCESS : EXIT_FAILURE;
  8295. #endif
  8296. ;
  8297. return 0;
  8298. }
  8299. _ACEOF
  8300. if ac_fn_c_try_run "$LINENO"
  8301. then :
  8302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8303. printf "%s\n" "no" >&6; }
  8304. else case e in #(
  8305. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8306. printf "%s\n" "yes" >&6; }
  8307. LDFLAGS="$LDFLAGS -Wl,-rpath,$SSL_LIB_DIR" ;;
  8308. esac
  8309. fi
  8310. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8311. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  8312. esac
  8313. fi
  8314. fi
  8315. fi
  8316. fi
  8317. fi
  8318. if test x$found_ssl = xyes ; then
  8319. if test -n "$SSL_INC_PREFIX" ; then
  8320. SSL_INC_PREFIX="${SSL_INC_PREFIX}/"
  8321. fi
  8322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against SSL works" >&5
  8323. printf %s "checking whether compiling and linking against SSL works... " >&6; }
  8324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8325. /* end confdefs.h. */
  8326. #include <${SSL_INC_PREFIX}${SSL_HDR}>
  8327. int
  8328. main (void)
  8329. {
  8330. SSL_new(NULL)
  8331. ;
  8332. return 0;
  8333. }
  8334. _ACEOF
  8335. if ac_fn_c_try_link "$LINENO"
  8336. then :
  8337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8338. printf "%s\n" "yes" >&6; }
  8339. SSL_OBJS="nrpe-ssl.o"
  8340. printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h
  8341. else case e in #(
  8342. e)
  8343. as_fn_error $? "no" "$LINENO" 5
  8344. ;;
  8345. esac
  8346. fi
  8347. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8348. conftest$ac_exeext conftest.$ac_ext
  8349. fi
  8350. if test "x_$found_ssl" != "x_yes"; then
  8351. LIBS=$ax_nagios_run_ssl_save_LIBS
  8352. fi
  8353. if test x$found_ssl = xyes -a x$need_dh = xyes; then
  8354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8355. /* end confdefs.h. */
  8356. #include <stdio.h>
  8357. #include <${SSL_INC_PREFIX}${SSL_HDR}>
  8358. int
  8359. main (void)
  8360. {
  8361. #ifdef OPENSSL_VERSION_MAJOR
  8362. printf("%i %i", OPENSSL_VERSION_MAJOR, OPENSSL_VERSION_MINOR);
  8363. #else
  8364. printf("%i %i", (int)((OPENSSL_VERSION_NUMBER >> 28) & 0x0f), (int)((OPENSSL_VERSION_NUMBER >> 20) & 0xff));
  8365. #endif
  8366. ;
  8367. return 0;
  8368. }
  8369. _ACEOF
  8370. if ac_fn_c_try_link "$LINENO"
  8371. then :
  8372. nagios_ssl_version=$(./conftest$EXEEXT)
  8373. SSL_MAJOR=$(echo $nagios_ssl_version | cut -d' ' -f1)
  8374. SSL_MINOR=$(echo $nagios_ssl_version | cut -d' ' -f2)
  8375. else case e in #(
  8376. e) as_fn_error $? "Failed to detect OpenSSL version!" "$LINENO" 5 ;;
  8377. esac
  8378. fi
  8379. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8380. conftest$ac_exeext conftest.$ac_ext
  8381. if test x$auto_dh = xyes -a $SSL_MAJOR -lt 1 -o \( $SSL_MAJOR -eq 1 -a $SSL_MINOR -lt 1 \); then
  8382. auto_dh=no
  8383. fi
  8384. if test x$auto_dh = xyes; then
  8385. printf "%s\n" "#define AUTO_SSL_DH 1" >>confdefs.h
  8386. fi
  8387. if test x$need_dh = xyes ; then
  8388. if test x$auto_dh = xno ; then
  8389. if test $SSL_MAJOR -lt 3 ; then
  8390. # Extract the first word of "openssl", so it can be a program name with args.
  8391. set dummy openssl; ac_word=$2
  8392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8393. printf %s "checking for $ac_word... " >&6; }
  8394. if test ${ac_cv_path_sslbin+y}
  8395. then :
  8396. printf %s "(cached) " >&6
  8397. else case e in #(
  8398. e) case $sslbin in
  8399. [\\/]* | ?:[\\/]*)
  8400. ac_cv_path_sslbin="$sslbin" # Let the user override the test with a path.
  8401. ;;
  8402. *)
  8403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8404. for as_dir in ${ssldir}/sbin${PATH_SEPARATOR}${ssldir}/bin${PATH_SEPARATOR}${PATH}
  8405. do
  8406. IFS=$as_save_IFS
  8407. case $as_dir in #(((
  8408. '') as_dir=./ ;;
  8409. */) ;;
  8410. *) as_dir=$as_dir/ ;;
  8411. esac
  8412. for ac_exec_ext in '' $ac_executable_extensions; do
  8413. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8414. ac_cv_path_sslbin="$as_dir$ac_word$ac_exec_ext"
  8415. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8416. break 2
  8417. fi
  8418. done
  8419. done
  8420. IFS=$as_save_IFS
  8421. test -z "$ac_cv_path_sslbin" && ac_cv_path_sslbin="value-if-not-found"
  8422. ;;
  8423. esac ;;
  8424. esac
  8425. fi
  8426. sslbin=$ac_cv_path_sslbin
  8427. if test -n "$sslbin"; then
  8428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sslbin" >&5
  8429. printf "%s\n" "$sslbin" >&6; }
  8430. else
  8431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8432. printf "%s\n" "no" >&6; }
  8433. fi
  8434. SSL_DH_HEADER_MAKE=${SSL_DH_HEADER_MAKE_OLD}
  8435. else
  8436. SSL_DH_HEADER_MAKE=${SSL_DH_HEADER_MAKE_NEW}
  8437. fi
  8438. SSL_DH_HEADER=../include/dh.h
  8439. fi
  8440. printf "%s\n" "#define USE_SSL_DH 1" >>confdefs.h
  8441. fi
  8442. fi
  8443. fi
  8444. fi
  8445. # Check whether --with-log_facility was given.
  8446. if test ${with_log_facility+y}
  8447. then :
  8448. withval=$with_log_facility; log_facility=$withval
  8449. else case e in #(
  8450. e) log_facility=daemon ;;
  8451. esac
  8452. fi
  8453. printf "%s\n" "#define NRPE_LOG_FACILITY \"$log_facility\"" >>confdefs.h
  8454. # Check whether --with-nrpe_user was given.
  8455. if test ${with_nrpe_user+y}
  8456. then :
  8457. withval=$with_nrpe_user; nrpe_user=$withval
  8458. else case e in #(
  8459. e) nrpe_user=nagios ;;
  8460. esac
  8461. fi
  8462. # Check whether --with-nrpe_group was given.
  8463. if test ${with_nrpe_group+y}
  8464. then :
  8465. withval=$with_nrpe_group; nrpe_group=$withval
  8466. else case e in #(
  8467. e) nrpe_group=nagios ;;
  8468. esac
  8469. fi
  8470. # Check whether --with-nrpe_port was given.
  8471. if test ${with_nrpe_port+y}
  8472. then :
  8473. withval=$with_nrpe_port; nrpe_port=$withval
  8474. else case e in #(
  8475. e) nrpe_port=5666 ;;
  8476. esac
  8477. fi
  8478. NRPE_INSTALL_OPTS="-o $nrpe_user -g $nrpe_group"
  8479. printf "%s\n" "#define DEFAULT_SERVER_PORT $nrpe_port" >>confdefs.h
  8480. # Check whether --with-nagios_user was given.
  8481. if test ${with_nagios_user+y}
  8482. then :
  8483. withval=$with_nagios_user; nagios_user=$withval
  8484. else case e in #(
  8485. e) nagios_user=nagios ;;
  8486. esac
  8487. fi
  8488. # Check whether --with-nagios_group was given.
  8489. if test ${with_nagios_group+y}
  8490. then :
  8491. withval=$with_nagios_group; nagios_group=$withval
  8492. else case e in #(
  8493. e) nagios_group=nagios ;;
  8494. esac
  8495. fi
  8496. NAGIOS_INSTALL_OPTS="-o $nagios_user -g $nagios_group"
  8497. if test "`uname -s`" = "HP-UX" ; then
  8498. LDFLAGS="$LDFLAGS -Wl,+allowdups";
  8499. fi
  8500. # Check whether --enable-command-args was given.
  8501. if test ${enable_command_args+y}
  8502. then :
  8503. enableval=$enable_command_args;
  8504. printf "%s\n" "#define ENABLE_COMMAND_ARGUMENTS 1" >>confdefs.h
  8505. fi
  8506. # Check whether --enable-bash-command-substitution was given.
  8507. if test ${enable_bash_command_substitution+y}
  8508. then :
  8509. enableval=$enable_bash_command_substitution;
  8510. printf "%s\n" "#define ENABLE_BASH_COMMAND_SUBSTITUTION 1" >>confdefs.h
  8511. fi
  8512. # Extract the first word of "perl", so it can be a program name with args.
  8513. set dummy perl; ac_word=$2
  8514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8515. printf %s "checking for $ac_word... " >&6; }
  8516. if test ${ac_cv_path_PERL+y}
  8517. then :
  8518. printf %s "(cached) " >&6
  8519. else case e in #(
  8520. e) case $PERL in
  8521. [\\/]* | ?:[\\/]*)
  8522. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  8523. ;;
  8524. *)
  8525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8526. for as_dir in $PATH
  8527. do
  8528. IFS=$as_save_IFS
  8529. case $as_dir in #(((
  8530. '') as_dir=./ ;;
  8531. */) ;;
  8532. *) as_dir=$as_dir/ ;;
  8533. esac
  8534. for ac_exec_ext in '' $ac_executable_extensions; do
  8535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8536. ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
  8537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8538. break 2
  8539. fi
  8540. done
  8541. done
  8542. IFS=$as_save_IFS
  8543. ;;
  8544. esac ;;
  8545. esac
  8546. fi
  8547. PERL=$ac_cv_path_PERL
  8548. if test -n "$PERL"; then
  8549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  8550. printf "%s\n" "$PERL" >&6; }
  8551. else
  8552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8553. printf "%s\n" "no" >&6; }
  8554. fi
  8555. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8556. # Let make expand exec_prefix.
  8557. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8558. DEFS=-DHAVE_CONFIG_H
  8559. ac_libobjs=
  8560. ac_ltlibobjs=
  8561. U=
  8562. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8563. # 1. Remove the extension, and $U if already installed.
  8564. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8565. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  8566. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8567. # will be set to the directory where LIBOBJS objects are built.
  8568. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8569. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8570. done
  8571. LIBOBJS=$ac_libobjs
  8572. LTLIBOBJS=$ac_ltlibobjs
  8573. # Check whether --enable-year2038 was given.
  8574. if test ${enable_year2038+y}
  8575. then :
  8576. enableval=$enable_year2038;
  8577. fi
  8578. : "${CONFIG_STATUS=./config.status}"
  8579. ac_write_fail=0
  8580. ac_clean_files_save=$ac_clean_files
  8581. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8583. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  8584. as_write_fail=0
  8585. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8586. #! $SHELL
  8587. # Generated by $as_me.
  8588. # Run this file to recreate the current configuration.
  8589. # Compiler output produced by configure, useful for debugging
  8590. # configure, is in config.log if it exists.
  8591. debug=false
  8592. ac_cs_recheck=false
  8593. ac_cs_silent=false
  8594. SHELL=\${CONFIG_SHELL-$SHELL}
  8595. export SHELL
  8596. _ASEOF
  8597. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8598. ## -------------------- ##
  8599. ## M4sh Initialization. ##
  8600. ## -------------------- ##
  8601. # Be more Bourne compatible
  8602. DUALCASE=1; export DUALCASE # for MKS sh
  8603. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  8604. then :
  8605. emulate sh
  8606. NULLCMD=:
  8607. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8608. # is contrary to our usage. Disable this feature.
  8609. alias -g '${1+"$@"}'='"$@"'
  8610. setopt NO_GLOB_SUBST
  8611. else case e in #(
  8612. e) case `(set -o) 2>/dev/null` in #(
  8613. *posix*) :
  8614. set -o posix ;; #(
  8615. *) :
  8616. ;;
  8617. esac ;;
  8618. esac
  8619. fi
  8620. # Reset variables that may have inherited troublesome values from
  8621. # the environment.
  8622. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  8623. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  8624. # side effect of setting IFS to empty, thus disabling word splitting.)
  8625. # Quoting is to prevent editors from complaining about space-tab.
  8626. as_nl='
  8627. '
  8628. export as_nl
  8629. IFS=" "" $as_nl"
  8630. PS1='$ '
  8631. PS2='> '
  8632. PS4='+ '
  8633. # Ensure predictable behavior from utilities with locale-dependent output.
  8634. LC_ALL=C
  8635. export LC_ALL
  8636. LANGUAGE=C
  8637. export LANGUAGE
  8638. # We cannot yet rely on "unset" to work, but we need these variables
  8639. # to be unset--not just set to an empty or harmless value--now, to
  8640. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  8641. # also avoids known problems related to "unset" and subshell syntax
  8642. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  8643. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  8644. do eval test \${$as_var+y} \
  8645. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8646. done
  8647. # Ensure that fds 0, 1, and 2 are open.
  8648. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  8649. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  8650. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  8651. # The user is always right.
  8652. if ${PATH_SEPARATOR+false} :; then
  8653. PATH_SEPARATOR=:
  8654. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8655. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8656. PATH_SEPARATOR=';'
  8657. }
  8658. fi
  8659. # Find who we are. Look in the path if we contain no directory separator.
  8660. as_myself=
  8661. case $0 in #((
  8662. *[\\/]* ) as_myself=$0 ;;
  8663. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8664. for as_dir in $PATH
  8665. do
  8666. IFS=$as_save_IFS
  8667. case $as_dir in #(((
  8668. '') as_dir=./ ;;
  8669. */) ;;
  8670. *) as_dir=$as_dir/ ;;
  8671. esac
  8672. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  8673. done
  8674. IFS=$as_save_IFS
  8675. ;;
  8676. esac
  8677. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  8678. # in which case we are not to be found in the path.
  8679. if test "x$as_myself" = x; then
  8680. as_myself=$0
  8681. fi
  8682. if test ! -f "$as_myself"; then
  8683. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8684. exit 1
  8685. fi
  8686. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8687. # ----------------------------------------
  8688. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8689. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8690. # script with STATUS, using 1 if that was 0.
  8691. as_fn_error ()
  8692. {
  8693. as_status=$1; test $as_status -eq 0 && as_status=1
  8694. if test "$4"; then
  8695. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8696. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8697. fi
  8698. printf "%s\n" "$as_me: error: $2" >&2
  8699. as_fn_exit $as_status
  8700. } # as_fn_error
  8701. # as_fn_set_status STATUS
  8702. # -----------------------
  8703. # Set $? to STATUS, without forking.
  8704. as_fn_set_status ()
  8705. {
  8706. return $1
  8707. } # as_fn_set_status
  8708. # as_fn_exit STATUS
  8709. # -----------------
  8710. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8711. as_fn_exit ()
  8712. {
  8713. set +e
  8714. as_fn_set_status $1
  8715. exit $1
  8716. } # as_fn_exit
  8717. # as_fn_unset VAR
  8718. # ---------------
  8719. # Portably unset VAR.
  8720. as_fn_unset ()
  8721. {
  8722. { eval $1=; unset $1;}
  8723. }
  8724. as_unset=as_fn_unset
  8725. # as_fn_append VAR VALUE
  8726. # ----------------------
  8727. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8728. # advantage of any shell optimizations that allow amortized linear growth over
  8729. # repeated appends, instead of the typical quadratic growth present in naive
  8730. # implementations.
  8731. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  8732. then :
  8733. eval 'as_fn_append ()
  8734. {
  8735. eval $1+=\$2
  8736. }'
  8737. else case e in #(
  8738. e) as_fn_append ()
  8739. {
  8740. eval $1=\$$1\$2
  8741. } ;;
  8742. esac
  8743. fi # as_fn_append
  8744. # as_fn_arith ARG...
  8745. # ------------------
  8746. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8747. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8748. # must be portable across $(()) and expr.
  8749. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  8750. then :
  8751. eval 'as_fn_arith ()
  8752. {
  8753. as_val=$(( $* ))
  8754. }'
  8755. else case e in #(
  8756. e) as_fn_arith ()
  8757. {
  8758. as_val=`expr "$@" || test $? -eq 1`
  8759. } ;;
  8760. esac
  8761. fi # as_fn_arith
  8762. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8763. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8764. as_expr=expr
  8765. else
  8766. as_expr=false
  8767. fi
  8768. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8769. as_basename=basename
  8770. else
  8771. as_basename=false
  8772. fi
  8773. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8774. as_dirname=dirname
  8775. else
  8776. as_dirname=false
  8777. fi
  8778. as_me=`$as_basename -- "$0" ||
  8779. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8780. X"$0" : 'X\(//\)$' \| \
  8781. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8782. printf "%s\n" X/"$0" |
  8783. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8784. s//\1/
  8785. q
  8786. }
  8787. /^X\/\(\/\/\)$/{
  8788. s//\1/
  8789. q
  8790. }
  8791. /^X\/\(\/\).*/{
  8792. s//\1/
  8793. q
  8794. }
  8795. s/.*/./; q'`
  8796. # Avoid depending upon Character Ranges.
  8797. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8798. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8799. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8800. as_cr_digits='0123456789'
  8801. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8802. # Determine whether it's possible to make 'echo' print without a newline.
  8803. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  8804. # for compatibility with existing Makefiles.
  8805. ECHO_C= ECHO_N= ECHO_T=
  8806. case `echo -n x` in #(((((
  8807. -n*)
  8808. case `echo 'xy\c'` in
  8809. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8810. xy) ECHO_C='\c';;
  8811. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8812. ECHO_T=' ';;
  8813. esac;;
  8814. *)
  8815. ECHO_N='-n';;
  8816. esac
  8817. # For backward compatibility with old third-party macros, we provide
  8818. # the shell variables $as_echo and $as_echo_n. New code should use
  8819. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  8820. as_echo='printf %s\n'
  8821. as_echo_n='printf %s'
  8822. rm -f conf$$ conf$$.exe conf$$.file
  8823. if test -d conf$$.dir; then
  8824. rm -f conf$$.dir/conf$$.file
  8825. else
  8826. rm -f conf$$.dir
  8827. mkdir conf$$.dir 2>/dev/null
  8828. fi
  8829. if (echo >conf$$.file) 2>/dev/null; then
  8830. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8831. as_ln_s='ln -s'
  8832. # ... but there are two gotchas:
  8833. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  8834. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  8835. # In both cases, we have to default to 'cp -pR'.
  8836. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8837. as_ln_s='cp -pR'
  8838. elif ln conf$$.file conf$$ 2>/dev/null; then
  8839. as_ln_s=ln
  8840. else
  8841. as_ln_s='cp -pR'
  8842. fi
  8843. else
  8844. as_ln_s='cp -pR'
  8845. fi
  8846. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8847. rmdir conf$$.dir 2>/dev/null
  8848. # as_fn_mkdir_p
  8849. # -------------
  8850. # Create "$as_dir" as a directory, including parents if necessary.
  8851. as_fn_mkdir_p ()
  8852. {
  8853. case $as_dir in #(
  8854. -*) as_dir=./$as_dir;;
  8855. esac
  8856. test -d "$as_dir" || eval $as_mkdir_p || {
  8857. as_dirs=
  8858. while :; do
  8859. case $as_dir in #(
  8860. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8861. *) as_qdir=$as_dir;;
  8862. esac
  8863. as_dirs="'$as_qdir' $as_dirs"
  8864. as_dir=`$as_dirname -- "$as_dir" ||
  8865. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8866. X"$as_dir" : 'X\(//\)[^/]' \| \
  8867. X"$as_dir" : 'X\(//\)$' \| \
  8868. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8869. printf "%s\n" X"$as_dir" |
  8870. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8871. s//\1/
  8872. q
  8873. }
  8874. /^X\(\/\/\)[^/].*/{
  8875. s//\1/
  8876. q
  8877. }
  8878. /^X\(\/\/\)$/{
  8879. s//\1/
  8880. q
  8881. }
  8882. /^X\(\/\).*/{
  8883. s//\1/
  8884. q
  8885. }
  8886. s/.*/./; q'`
  8887. test -d "$as_dir" && break
  8888. done
  8889. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8890. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8891. } # as_fn_mkdir_p
  8892. if mkdir -p . 2>/dev/null; then
  8893. as_mkdir_p='mkdir -p "$as_dir"'
  8894. else
  8895. test -d ./-p && rmdir ./-p
  8896. as_mkdir_p=false
  8897. fi
  8898. # as_fn_executable_p FILE
  8899. # -----------------------
  8900. # Test if FILE is an executable regular file.
  8901. as_fn_executable_p ()
  8902. {
  8903. test -f "$1" && test -x "$1"
  8904. } # as_fn_executable_p
  8905. as_test_x='test -x'
  8906. as_executable_p=as_fn_executable_p
  8907. # Sed expression to map a string onto a valid CPP name.
  8908. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  8909. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  8910. # Sed expression to map a string onto a valid variable name.
  8911. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  8912. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  8913. exec 6>&1
  8914. ## ----------------------------------- ##
  8915. ## Main body of $CONFIG_STATUS script. ##
  8916. ## ----------------------------------- ##
  8917. _ASEOF
  8918. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8920. # Save the log message, to keep $0 and so on meaningful, and to
  8921. # report actual input values of CONFIG_FILES etc. instead of their
  8922. # values after options handling.
  8923. ac_log="
  8924. This file was extended by nrpe $as_me newdate, which was
  8925. generated by GNU Autoconf 2.72. Invocation command line was
  8926. CONFIG_FILES = $CONFIG_FILES
  8927. CONFIG_HEADERS = $CONFIG_HEADERS
  8928. CONFIG_LINKS = $CONFIG_LINKS
  8929. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8930. $ $0 $@
  8931. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8932. "
  8933. _ACEOF
  8934. case $ac_config_files in *"
  8935. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8936. esac
  8937. case $ac_config_headers in *"
  8938. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8939. esac
  8940. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8941. # Files that config.status was made for.
  8942. config_files="$ac_config_files"
  8943. config_headers="$ac_config_headers"
  8944. _ACEOF
  8945. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8946. ac_cs_usage="\
  8947. '$as_me' instantiates files and other configuration actions
  8948. from templates according to the current configuration. Unless the files
  8949. and actions are specified as TAGs, all are instantiated by default.
  8950. Usage: $0 [OPTION]... [TAG]...
  8951. -h, --help print this help, then exit
  8952. -V, --version print version number and configuration settings, then exit
  8953. --config print configuration, then exit
  8954. -q, --quiet, --silent
  8955. do not print progress messages
  8956. -d, --debug don't remove temporary files
  8957. --recheck update $as_me by reconfiguring in the same conditions
  8958. --file=FILE[:TEMPLATE]
  8959. instantiate the configuration file FILE
  8960. --header=FILE[:TEMPLATE]
  8961. instantiate the configuration header FILE
  8962. Configuration files:
  8963. $config_files
  8964. Configuration headers:
  8965. $config_headers
  8966. Report bugs to <nagios-users@lists.sourceforge.net>.
  8967. nrpe home page: <https://www.nagios.org/downloads/nagios-core-addons/>."
  8968. _ACEOF
  8969. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  8970. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  8971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8972. ac_cs_config='$ac_cs_config_escaped'
  8973. ac_cs_version="\\
  8974. nrpe config.status newdate
  8975. configured by $0, generated by GNU Autoconf 2.72,
  8976. with options \\"\$ac_cs_config\\"
  8977. Copyright (C) 2023 Free Software Foundation, Inc.
  8978. This config.status script is free software; the Free Software Foundation
  8979. gives unlimited permission to copy, distribute and modify it."
  8980. ac_pwd='$ac_pwd'
  8981. srcdir='$srcdir'
  8982. INSTALL='$INSTALL'
  8983. test -n "\$AWK" || AWK=awk
  8984. _ACEOF
  8985. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8986. # The default lists apply if the user does not specify any file.
  8987. ac_need_defaults=:
  8988. while test $# != 0
  8989. do
  8990. case $1 in
  8991. --*=?*)
  8992. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8993. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8994. ac_shift=:
  8995. ;;
  8996. --*=)
  8997. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8998. ac_optarg=
  8999. ac_shift=:
  9000. ;;
  9001. *)
  9002. ac_option=$1
  9003. ac_optarg=$2
  9004. ac_shift=shift
  9005. ;;
  9006. esac
  9007. case $ac_option in
  9008. # Handling of the options.
  9009. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9010. ac_cs_recheck=: ;;
  9011. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9012. printf "%s\n" "$ac_cs_version"; exit ;;
  9013. --config | --confi | --conf | --con | --co | --c )
  9014. printf "%s\n" "$ac_cs_config"; exit ;;
  9015. --debug | --debu | --deb | --de | --d | -d )
  9016. debug=: ;;
  9017. --file | --fil | --fi | --f )
  9018. $ac_shift
  9019. case $ac_optarg in
  9020. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9021. '') as_fn_error $? "missing file argument" ;;
  9022. esac
  9023. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9024. ac_need_defaults=false;;
  9025. --header | --heade | --head | --hea )
  9026. $ac_shift
  9027. case $ac_optarg in
  9028. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9029. esac
  9030. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9031. ac_need_defaults=false;;
  9032. --he | --h)
  9033. # Conflict between --help and --header
  9034. as_fn_error $? "ambiguous option: '$1'
  9035. Try '$0 --help' for more information.";;
  9036. --help | --hel | -h )
  9037. printf "%s\n" "$ac_cs_usage"; exit ;;
  9038. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9039. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9040. ac_cs_silent=: ;;
  9041. # This is an error.
  9042. -*) as_fn_error $? "unrecognized option: '$1'
  9043. Try '$0 --help' for more information." ;;
  9044. *) as_fn_append ac_config_targets " $1"
  9045. ac_need_defaults=false ;;
  9046. esac
  9047. shift
  9048. done
  9049. ac_configure_extra_args=
  9050. if $ac_cs_silent; then
  9051. exec 6>/dev/null
  9052. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9053. fi
  9054. _ACEOF
  9055. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9056. if \$ac_cs_recheck; then
  9057. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9058. shift
  9059. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  9060. CONFIG_SHELL='$SHELL'
  9061. export CONFIG_SHELL
  9062. exec "\$@"
  9063. fi
  9064. _ACEOF
  9065. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9066. exec 5>>config.log
  9067. {
  9068. echo
  9069. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9070. ## Running $as_me. ##
  9071. _ASBOX
  9072. printf "%s\n" "$ac_log"
  9073. } >&5
  9074. _ACEOF
  9075. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9076. _ACEOF
  9077. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9078. # Handling of arguments.
  9079. for ac_config_target in $ac_config_targets
  9080. do
  9081. case $ac_config_target in
  9082. "paths") CONFIG_FILES="$CONFIG_FILES paths" ;;
  9083. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  9084. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9085. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9086. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  9087. "nrpe.spec") CONFIG_FILES="$CONFIG_FILES nrpe.spec" ;;
  9088. "uninstall") CONFIG_FILES="$CONFIG_FILES uninstall" ;;
  9089. "sample-config/nrpe.cfg") CONFIG_FILES="$CONFIG_FILES sample-config/nrpe.cfg" ;;
  9090. "startup/bsd-init") CONFIG_FILES="$CONFIG_FILES startup/bsd-init" ;;
  9091. "startup/debian-init") CONFIG_FILES="$CONFIG_FILES startup/debian-init" ;;
  9092. "startup/default-init") CONFIG_FILES="$CONFIG_FILES startup/default-init" ;;
  9093. "startup/default-inetd") CONFIG_FILES="$CONFIG_FILES startup/default-inetd" ;;
  9094. "startup/default-service") CONFIG_FILES="$CONFIG_FILES startup/default-service" ;;
  9095. "startup/default-socket") CONFIG_FILES="$CONFIG_FILES startup/default-socket" ;;
  9096. "startup/default-socket-svc") CONFIG_FILES="$CONFIG_FILES startup/default-socket-svc" ;;
  9097. "startup/default-xinetd") CONFIG_FILES="$CONFIG_FILES startup/default-xinetd" ;;
  9098. "startup/mac-init.plist") CONFIG_FILES="$CONFIG_FILES startup/mac-init.plist" ;;
  9099. "startup/mac-inetd.plist") CONFIG_FILES="$CONFIG_FILES startup/mac-inetd.plist" ;;
  9100. "startup/newbsd-init") CONFIG_FILES="$CONFIG_FILES startup/newbsd-init" ;;
  9101. "startup/openbsd-init") CONFIG_FILES="$CONFIG_FILES startup/openbsd-init" ;;
  9102. "startup/openrc-conf") CONFIG_FILES="$CONFIG_FILES startup/openrc-conf" ;;
  9103. "startup/openrc-init") CONFIG_FILES="$CONFIG_FILES startup/openrc-init" ;;
  9104. "startup/solaris-init.xml") CONFIG_FILES="$CONFIG_FILES startup/solaris-init.xml" ;;
  9105. "startup/solaris-inetd.xml") CONFIG_FILES="$CONFIG_FILES startup/solaris-inetd.xml" ;;
  9106. "startup/tmpfile.conf") CONFIG_FILES="$CONFIG_FILES startup/tmpfile.conf" ;;
  9107. "startup/upstart-init") CONFIG_FILES="$CONFIG_FILES startup/upstart-init" ;;
  9108. "startup/rh-upstart-init") CONFIG_FILES="$CONFIG_FILES startup/rh-upstart-init" ;;
  9109. "include/common.h") CONFIG_FILES="$CONFIG_FILES include/common.h" ;;
  9110. "tests/misc.cfg") CONFIG_FILES="$CONFIG_FILES tests/misc.cfg" ;;
  9111. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  9112. esac
  9113. done
  9114. # If the user did not use the arguments to specify the items to instantiate,
  9115. # then the envvar interface is used. Set only those that are not.
  9116. # We use the long form for the default assignment because of an extremely
  9117. # bizarre bug on SunOS 4.1.3.
  9118. if $ac_need_defaults; then
  9119. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  9120. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  9121. fi
  9122. # Have a temporary directory for convenience. Make it in the build tree
  9123. # simply because there is no reason against having it here, and in addition,
  9124. # creating and moving files from /tmp can sometimes cause problems.
  9125. # Hook for its removal unless debugging.
  9126. # Note that there is a small window in which the directory will not be cleaned:
  9127. # after its creation but before its name has been assigned to '$tmp'.
  9128. $debug ||
  9129. {
  9130. tmp= ac_tmp=
  9131. trap 'exit_status=$?
  9132. : "${ac_tmp:=$tmp}"
  9133. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9134. ' 0
  9135. trap 'as_fn_exit 1' 1 2 13 15
  9136. }
  9137. # Create a (secure) tmp directory for tmp files.
  9138. {
  9139. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9140. test -d "$tmp"
  9141. } ||
  9142. {
  9143. tmp=./conf$$-$RANDOM
  9144. (umask 077 && mkdir "$tmp")
  9145. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9146. ac_tmp=$tmp
  9147. # Set up the scripts for CONFIG_FILES section.
  9148. # No need to generate them if there are no CONFIG_FILES.
  9149. # This happens for instance with './config.status config.h'.
  9150. if test -n "$CONFIG_FILES"; then
  9151. ac_cr=`echo X | tr X '\015'`
  9152. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9153. # But we know of no other shell where ac_cr would be empty at this
  9154. # point, so we can use a bashism as a fallback.
  9155. if test "x$ac_cr" = x; then
  9156. eval ac_cr=\$\'\\r\'
  9157. fi
  9158. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9159. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9160. ac_cs_awk_cr='\\r'
  9161. else
  9162. ac_cs_awk_cr=$ac_cr
  9163. fi
  9164. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9165. _ACEOF
  9166. {
  9167. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9168. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9169. echo "_ACEOF"
  9170. } >conf$$subs.sh ||
  9171. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9172. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9173. ac_delim='%!_!# '
  9174. for ac_last_try in false false false false false :; do
  9175. . ./conf$$subs.sh ||
  9176. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9177. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9178. if test $ac_delim_n = $ac_delim_num; then
  9179. break
  9180. elif $ac_last_try; then
  9181. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9182. else
  9183. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9184. fi
  9185. done
  9186. rm -f conf$$subs.sh
  9187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9188. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9189. _ACEOF
  9190. sed -n '
  9191. h
  9192. s/^/S["/; s/!.*/"]=/
  9193. p
  9194. g
  9195. s/^[^!]*!//
  9196. :repl
  9197. t repl
  9198. s/'"$ac_delim"'$//
  9199. t delim
  9200. :nl
  9201. h
  9202. s/\(.\{148\}\)..*/\1/
  9203. t more1
  9204. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9205. p
  9206. n
  9207. b repl
  9208. :more1
  9209. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9210. p
  9211. g
  9212. s/.\{148\}//
  9213. t nl
  9214. :delim
  9215. h
  9216. s/\(.\{148\}\)..*/\1/
  9217. t more2
  9218. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9219. p
  9220. b
  9221. :more2
  9222. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9223. p
  9224. g
  9225. s/.\{148\}//
  9226. t delim
  9227. ' <conf$$subs.awk | sed '
  9228. /^[^""]/{
  9229. N
  9230. s/\n//
  9231. }
  9232. ' >>$CONFIG_STATUS || ac_write_fail=1
  9233. rm -f conf$$subs.awk
  9234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9235. _ACAWK
  9236. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9237. for (key in S) S_is_set[key] = 1
  9238. FS = ""
  9239. }
  9240. {
  9241. line = $ 0
  9242. nfields = split(line, field, "@")
  9243. substed = 0
  9244. len = length(field[1])
  9245. for (i = 2; i < nfields; i++) {
  9246. key = field[i]
  9247. keylen = length(key)
  9248. if (S_is_set[key]) {
  9249. value = S[key]
  9250. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9251. len += length(value) + length(field[++i])
  9252. substed = 1
  9253. } else
  9254. len += 1 + keylen
  9255. }
  9256. print line
  9257. }
  9258. _ACAWK
  9259. _ACEOF
  9260. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9261. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9262. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9263. else
  9264. cat
  9265. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9266. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9267. _ACEOF
  9268. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9269. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9270. # trailing colons and then remove the whole line if VPATH becomes empty
  9271. # (actually we leave an empty line to preserve line numbers).
  9272. if test "x$srcdir" = x.; then
  9273. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9274. h
  9275. s///
  9276. s/^/:/
  9277. s/[ ]*$/:/
  9278. s/:\$(srcdir):/:/g
  9279. s/:\${srcdir}:/:/g
  9280. s/:@srcdir@:/:/g
  9281. s/^:*//
  9282. s/:*$//
  9283. x
  9284. s/\(=[ ]*\).*/\1/
  9285. G
  9286. s/\n//
  9287. s/^[^=]*=[ ]*$//
  9288. }'
  9289. fi
  9290. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9291. fi # test -n "$CONFIG_FILES"
  9292. # Set up the scripts for CONFIG_HEADERS section.
  9293. # No need to generate them if there are no CONFIG_HEADERS.
  9294. # This happens for instance with './config.status Makefile'.
  9295. if test -n "$CONFIG_HEADERS"; then
  9296. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9297. BEGIN {
  9298. _ACEOF
  9299. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  9300. # here-document in config.status, that substitutes the proper values into
  9301. # config.h.in to produce config.h.
  9302. # Create a delimiter string that does not exist in confdefs.h, to ease
  9303. # handling of long lines.
  9304. ac_delim='%!_!# '
  9305. for ac_last_try in false false :; do
  9306. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9307. if test -z "$ac_tt"; then
  9308. break
  9309. elif $ac_last_try; then
  9310. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9311. else
  9312. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9313. fi
  9314. done
  9315. # For the awk script, D is an array of macro values keyed by name,
  9316. # likewise P contains macro parameters if any. Preserve backslash
  9317. # newline sequences.
  9318. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9319. sed -n '
  9320. s/.\{148\}/&'"$ac_delim"'/g
  9321. t rset
  9322. :rset
  9323. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9324. t def
  9325. d
  9326. :def
  9327. s/\\$//
  9328. t bsnl
  9329. s/["\\]/\\&/g
  9330. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9331. D["\1"]=" \3"/p
  9332. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9333. d
  9334. :bsnl
  9335. s/["\\]/\\&/g
  9336. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9337. D["\1"]=" \3\\\\\\n"\\/p
  9338. t cont
  9339. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9340. t cont
  9341. d
  9342. :cont
  9343. n
  9344. s/.\{148\}/&'"$ac_delim"'/g
  9345. t clear
  9346. :clear
  9347. s/\\$//
  9348. t bsnlc
  9349. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9350. d
  9351. :bsnlc
  9352. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9353. b cont
  9354. ' <confdefs.h | sed '
  9355. s/'"$ac_delim"'/"\\\
  9356. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9357. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9358. for (key in D) D_is_set[key] = 1
  9359. FS = ""
  9360. }
  9361. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9362. line = \$ 0
  9363. split(line, arg, " ")
  9364. if (arg[1] == "#") {
  9365. defundef = arg[2]
  9366. mac1 = arg[3]
  9367. } else {
  9368. defundef = substr(arg[1], 2)
  9369. mac1 = arg[2]
  9370. }
  9371. split(mac1, mac2, "(") #)
  9372. macro = mac2[1]
  9373. prefix = substr(line, 1, index(line, defundef) - 1)
  9374. if (D_is_set[macro]) {
  9375. # Preserve the white space surrounding the "#".
  9376. print prefix "define", macro P[macro] D[macro]
  9377. next
  9378. } else {
  9379. # Replace #undef with comments. This is necessary, for example,
  9380. # in the case of _POSIX_SOURCE, which is predefined and required
  9381. # on some systems where configure will not decide to define it.
  9382. if (defundef == "undef") {
  9383. print "/*", prefix defundef, macro, "*/"
  9384. next
  9385. }
  9386. }
  9387. }
  9388. { print }
  9389. _ACAWK
  9390. _ACEOF
  9391. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9392. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9393. fi # test -n "$CONFIG_HEADERS"
  9394. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  9395. shift
  9396. for ac_tag
  9397. do
  9398. case $ac_tag in
  9399. :[FHLC]) ac_mode=$ac_tag; continue;;
  9400. esac
  9401. case $ac_mode$ac_tag in
  9402. :[FHL]*:*);;
  9403. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  9404. :[FH]-) ac_tag=-:-;;
  9405. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9406. esac
  9407. ac_save_IFS=$IFS
  9408. IFS=:
  9409. set x $ac_tag
  9410. IFS=$ac_save_IFS
  9411. shift
  9412. ac_file=$1
  9413. shift
  9414. case $ac_mode in
  9415. :L) ac_source=$1;;
  9416. :[FH])
  9417. ac_file_inputs=
  9418. for ac_f
  9419. do
  9420. case $ac_f in
  9421. -) ac_f="$ac_tmp/stdin";;
  9422. *) # Look for the file first in the build tree, then in the source tree
  9423. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9424. # because $ac_f cannot contain ':'.
  9425. test -f "$ac_f" ||
  9426. case $ac_f in
  9427. [\\/$]*) false;;
  9428. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9429. esac ||
  9430. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  9431. esac
  9432. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9433. as_fn_append ac_file_inputs " '$ac_f'"
  9434. done
  9435. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  9436. # use $as_me), people would be surprised to read:
  9437. # /* config.h. Generated by config.status. */
  9438. configure_input='Generated from '`
  9439. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9440. `' by configure.'
  9441. if test x"$ac_file" != x-; then
  9442. configure_input="$ac_file. $configure_input"
  9443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9444. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  9445. fi
  9446. # Neutralize special characters interpreted by sed in replacement strings.
  9447. case $configure_input in #(
  9448. *\&* | *\|* | *\\* )
  9449. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  9450. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9451. *) ac_sed_conf_input=$configure_input;;
  9452. esac
  9453. case $ac_tag in
  9454. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9455. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9456. esac
  9457. ;;
  9458. esac
  9459. ac_dir=`$as_dirname -- "$ac_file" ||
  9460. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9461. X"$ac_file" : 'X\(//\)[^/]' \| \
  9462. X"$ac_file" : 'X\(//\)$' \| \
  9463. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9464. printf "%s\n" X"$ac_file" |
  9465. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9466. s//\1/
  9467. q
  9468. }
  9469. /^X\(\/\/\)[^/].*/{
  9470. s//\1/
  9471. q
  9472. }
  9473. /^X\(\/\/\)$/{
  9474. s//\1/
  9475. q
  9476. }
  9477. /^X\(\/\).*/{
  9478. s//\1/
  9479. q
  9480. }
  9481. s/.*/./; q'`
  9482. as_dir="$ac_dir"; as_fn_mkdir_p
  9483. ac_builddir=.
  9484. case "$ac_dir" in
  9485. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9486. *)
  9487. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  9488. # A ".." for each directory in $ac_dir_suffix.
  9489. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9490. case $ac_top_builddir_sub in
  9491. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9492. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9493. esac ;;
  9494. esac
  9495. ac_abs_top_builddir=$ac_pwd
  9496. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9497. # for backward compatibility:
  9498. ac_top_builddir=$ac_top_build_prefix
  9499. case $srcdir in
  9500. .) # We are building in place.
  9501. ac_srcdir=.
  9502. ac_top_srcdir=$ac_top_builddir_sub
  9503. ac_abs_top_srcdir=$ac_pwd ;;
  9504. [\\/]* | ?:[\\/]* ) # Absolute name.
  9505. ac_srcdir=$srcdir$ac_dir_suffix;
  9506. ac_top_srcdir=$srcdir
  9507. ac_abs_top_srcdir=$srcdir ;;
  9508. *) # Relative name.
  9509. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9510. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9511. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9512. esac
  9513. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9514. case $ac_mode in
  9515. :F)
  9516. #
  9517. # CONFIG_FILE
  9518. #
  9519. case $INSTALL in
  9520. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9521. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9522. esac
  9523. _ACEOF
  9524. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9525. # If the template does not know about datarootdir, expand it.
  9526. # FIXME: This hack should be removed a few years after 2.60.
  9527. ac_datarootdir_hack=; ac_datarootdir_seen=
  9528. ac_sed_dataroot='
  9529. /datarootdir/ {
  9530. p
  9531. q
  9532. }
  9533. /@datadir@/p
  9534. /@docdir@/p
  9535. /@infodir@/p
  9536. /@localedir@/p
  9537. /@mandir@/p'
  9538. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9539. *datarootdir*) ac_datarootdir_seen=yes;;
  9540. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9542. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9543. _ACEOF
  9544. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9545. ac_datarootdir_hack='
  9546. s&@datadir@&$datadir&g
  9547. s&@docdir@&$docdir&g
  9548. s&@infodir@&$infodir&g
  9549. s&@localedir@&$localedir&g
  9550. s&@mandir@&$mandir&g
  9551. s&\\\${datarootdir}&$datarootdir&g' ;;
  9552. esac
  9553. _ACEOF
  9554. # Neutralize VPATH when '$srcdir' = '.'.
  9555. # Shell code in configure.ac might set extrasub.
  9556. # FIXME: do we really want to maintain this feature?
  9557. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9558. ac_sed_extra="$ac_vpsub
  9559. $extrasub
  9560. _ACEOF
  9561. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9562. :t
  9563. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9564. s|@configure_input@|$ac_sed_conf_input|;t t
  9565. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9566. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9567. s&@srcdir@&$ac_srcdir&;t t
  9568. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9569. s&@top_srcdir@&$ac_top_srcdir&;t t
  9570. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9571. s&@builddir@&$ac_builddir&;t t
  9572. s&@abs_builddir@&$ac_abs_builddir&;t t
  9573. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9574. s&@INSTALL@&$ac_INSTALL&;t t
  9575. $ac_datarootdir_hack
  9576. "
  9577. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9578. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9579. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9580. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9581. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9582. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  9584. which seems to be undefined. Please make sure it is defined" >&5
  9585. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  9586. which seems to be undefined. Please make sure it is defined" >&2;}
  9587. rm -f "$ac_tmp/stdin"
  9588. case $ac_file in
  9589. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9590. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9591. esac \
  9592. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9593. ;;
  9594. :H)
  9595. #
  9596. # CONFIG_HEADER
  9597. #
  9598. if test x"$ac_file" != x-; then
  9599. {
  9600. printf "%s\n" "/* $configure_input */" >&1 \
  9601. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9602. } >"$ac_tmp/config.h" \
  9603. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9604. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9606. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  9607. else
  9608. rm -f "$ac_file"
  9609. mv "$ac_tmp/config.h" "$ac_file" \
  9610. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9611. fi
  9612. else
  9613. printf "%s\n" "/* $configure_input */" >&1 \
  9614. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9615. || as_fn_error $? "could not create -" "$LINENO" 5
  9616. fi
  9617. ;;
  9618. esac
  9619. done # for ac_tag
  9620. as_fn_exit 0
  9621. _ACEOF
  9622. ac_clean_files=$ac_clean_files_save
  9623. test $ac_write_fail = 0 ||
  9624. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9625. # configure is writing to config.log, and then calls config.status.
  9626. # config.status does its own redirection, appending to config.log.
  9627. # Unfortunately, on DOS this fails, as config.log is still kept open
  9628. # by configure, so config.status won't be able to write to it; its
  9629. # output is simply discarded. So we exec the FD to /dev/null,
  9630. # effectively closing config.log, so it can be properly (re)opened and
  9631. # appended to by config.status. When coming back to configure, we
  9632. # need to make the FD available again.
  9633. if test "$no_create" != yes; then
  9634. ac_cs_success=:
  9635. ac_config_status_args=
  9636. test "$silent" = yes &&
  9637. ac_config_status_args="$ac_config_status_args --quiet"
  9638. exec 5>/dev/null
  9639. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9640. exec 5>>config.log
  9641. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9642. # would make configure fail if this is the last instruction.
  9643. $ac_cs_success || as_fn_exit 1
  9644. fi
  9645. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9647. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9648. fi
  9649. echo ""
  9650. echo ""
  9651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&5
  9652. printf "%s\n" "*** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&6; }
  9653. echo "";\
  9654. echo " General Options:";\
  9655. echo " -------------------------"
  9656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: NRPE port: $nrpe_port" >&5
  9657. printf "%s\n" " NRPE port: $nrpe_port" >&6; }
  9658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: NRPE user: $nrpe_user" >&5
  9659. printf "%s\n" " NRPE user: $nrpe_user" >&6; }
  9660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: NRPE group: $nrpe_group" >&5
  9661. printf "%s\n" " NRPE group: $nrpe_group" >&6; }
  9662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Nagios user: $nagios_user" >&5
  9663. printf "%s\n" " Nagios user: $nagios_user" >&6; }
  9664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Nagios group: $nagios_group" >&5
  9665. printf "%s\n" " Nagios group: $nagios_group" >&6; }
  9666. echo "";\
  9667. echo "";\
  9668. echo "Review the options above for accuracy. If they look okay,";\
  9669. echo "type 'make all' to compile the NRPE daemon and client";\
  9670. echo "or type 'make' to get a list of make options.";\
  9671. echo ""