configure 173 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for nrpe 2.13.
  4. #
  5. # Report bugs to <nagios-users@lists.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. export CONFIG_SHELL
  208. case $- in # ((((
  209. *v*x* | *x*v* ) as_opts=-vx ;;
  210. *v* ) as_opts=-v ;;
  211. *x* ) as_opts=-x ;;
  212. * ) as_opts= ;;
  213. esac
  214. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: nagios-users@lists.sourceforge.net about your system,
  225. $0: including any error possibly output before this
  226. $0: message. Then install a modern shell, or manually run
  227. $0: the script under such a shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. test -n "$DJDIR" || exec 7<&0 </dev/null
  497. exec 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. # Identity of this package.
  514. PACKAGE_NAME='nrpe'
  515. PACKAGE_TARNAME='nrpe'
  516. PACKAGE_VERSION='2.13'
  517. PACKAGE_STRING='nrpe 2.13'
  518. PACKAGE_BUGREPORT='nagios-users@lists.sourceforge.net'
  519. PACKAGE_URL='http://www.nagios.org'
  520. ac_unique_file="src/nrpe.c"
  521. ac_default_prefix=/usr/local/nagios
  522. # Factoring default headers for most tests.
  523. ac_includes_default="\
  524. #include <stdio.h>
  525. #ifdef HAVE_SYS_TYPES_H
  526. # include <sys/types.h>
  527. #endif
  528. #ifdef HAVE_SYS_STAT_H
  529. # include <sys/stat.h>
  530. #endif
  531. #ifdef STDC_HEADERS
  532. # include <stdlib.h>
  533. # include <stddef.h>
  534. #else
  535. # ifdef HAVE_STDLIB_H
  536. # include <stdlib.h>
  537. # endif
  538. #endif
  539. #ifdef HAVE_STRING_H
  540. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  541. # include <memory.h>
  542. # endif
  543. # include <string.h>
  544. #endif
  545. #ifdef HAVE_STRINGS_H
  546. # include <strings.h>
  547. #endif
  548. #ifdef HAVE_INTTYPES_H
  549. # include <inttypes.h>
  550. #endif
  551. #ifdef HAVE_STDINT_H
  552. # include <stdint.h>
  553. #endif
  554. #ifdef HAVE_UNISTD_H
  555. # include <unistd.h>
  556. #endif"
  557. ac_subst_vars='LTLIBOBJS
  558. LIBOBJS
  559. PERL
  560. TARGET_PLATFORM
  561. TARGET_ARCH
  562. TARGET_OS
  563. TARGET_VER
  564. NAGIOS_INSTALL_OPTS
  565. nagios_group
  566. nagios_user
  567. nrpe_port
  568. NRPE_INSTALL_OPTS
  569. nrpe_group
  570. nrpe_user
  571. log_facility
  572. HAVE_SSL
  573. LIBWRAPLIBS
  574. SOCKETLIBS
  575. OTHERLIBS
  576. SNPRINTF_O
  577. EGREP
  578. GREP
  579. CPP
  580. SET_MAKE
  581. OBJEXT
  582. EXEEXT
  583. ac_ct_CC
  584. CPPFLAGS
  585. LDFLAGS
  586. CFLAGS
  587. CC
  588. host_os
  589. host_vendor
  590. host_cpu
  591. host
  592. build_os
  593. build_vendor
  594. build_cpu
  595. build
  596. INSTALL
  597. INSTALL_DATA
  598. INSTALL_SCRIPT
  599. INSTALL_PROGRAM
  600. RPM_RELEASE
  601. PKG_REL_DATE
  602. PKG_HOME_URL
  603. PKG_VERSION
  604. PKG_NAME
  605. target_alias
  606. host_alias
  607. build_alias
  608. LIBS
  609. ECHO_T
  610. ECHO_N
  611. ECHO_C
  612. DEFS
  613. mandir
  614. localedir
  615. libdir
  616. psdir
  617. pdfdir
  618. dvidir
  619. htmldir
  620. infodir
  621. docdir
  622. oldincludedir
  623. includedir
  624. localstatedir
  625. sharedstatedir
  626. sysconfdir
  627. datadir
  628. datarootdir
  629. libexecdir
  630. sbindir
  631. bindir
  632. program_transform_name
  633. prefix
  634. exec_prefix
  635. PACKAGE_URL
  636. PACKAGE_BUGREPORT
  637. PACKAGE_STRING
  638. PACKAGE_VERSION
  639. PACKAGE_TARNAME
  640. PACKAGE_NAME
  641. PATH_SEPARATOR
  642. SHELL'
  643. ac_subst_files=''
  644. ac_user_opts='
  645. enable_option_checking
  646. enable_ssl
  647. with_ssl
  648. with_ssl_inc
  649. with_ssl_lib
  650. with_kerberos_inc
  651. with_log_facility
  652. with_nrpe_user
  653. with_nrpe_group
  654. with_nrpe_port
  655. with_nagios_user
  656. with_nagios_group
  657. enable_command_args
  658. '
  659. ac_precious_vars='build_alias
  660. host_alias
  661. target_alias
  662. CC
  663. CFLAGS
  664. LDFLAGS
  665. LIBS
  666. CPPFLAGS
  667. CPP'
  668. # Initialize some variables set by options.
  669. ac_init_help=
  670. ac_init_version=false
  671. ac_unrecognized_opts=
  672. ac_unrecognized_sep=
  673. # The variables have the same names as the options, with
  674. # dashes changed to underlines.
  675. cache_file=/dev/null
  676. exec_prefix=NONE
  677. no_create=
  678. no_recursion=
  679. prefix=NONE
  680. program_prefix=NONE
  681. program_suffix=NONE
  682. program_transform_name=s,x,x,
  683. silent=
  684. site=
  685. srcdir=
  686. verbose=
  687. x_includes=NONE
  688. x_libraries=NONE
  689. # Installation directory options.
  690. # These are left unexpanded so users can "make install exec_prefix=/foo"
  691. # and all the variables that are supposed to be based on exec_prefix
  692. # by default will actually change.
  693. # Use braces instead of parens because sh, perl, etc. also accept them.
  694. # (The list follows the same order as the GNU Coding Standards.)
  695. bindir='${exec_prefix}/bin'
  696. sbindir='${exec_prefix}/sbin'
  697. libexecdir='${exec_prefix}/libexec'
  698. datarootdir='${prefix}/share'
  699. datadir='${datarootdir}'
  700. sysconfdir='${prefix}/etc'
  701. sharedstatedir='${prefix}/com'
  702. localstatedir='${prefix}/var'
  703. includedir='${prefix}/include'
  704. oldincludedir='/usr/include'
  705. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  706. infodir='${datarootdir}/info'
  707. htmldir='${docdir}'
  708. dvidir='${docdir}'
  709. pdfdir='${docdir}'
  710. psdir='${docdir}'
  711. libdir='${exec_prefix}/lib'
  712. localedir='${datarootdir}/locale'
  713. mandir='${datarootdir}/man'
  714. ac_prev=
  715. ac_dashdash=
  716. for ac_option
  717. do
  718. # If the previous option needs an argument, assign it.
  719. if test -n "$ac_prev"; then
  720. eval $ac_prev=\$ac_option
  721. ac_prev=
  722. continue
  723. fi
  724. case $ac_option in
  725. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  726. *=) ac_optarg= ;;
  727. *) ac_optarg=yes ;;
  728. esac
  729. # Accept the important Cygnus configure options, so we can diagnose typos.
  730. case $ac_dashdash$ac_option in
  731. --)
  732. ac_dashdash=yes ;;
  733. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  734. ac_prev=bindir ;;
  735. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  736. bindir=$ac_optarg ;;
  737. -build | --build | --buil | --bui | --bu)
  738. ac_prev=build_alias ;;
  739. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  740. build_alias=$ac_optarg ;;
  741. -cache-file | --cache-file | --cache-fil | --cache-fi \
  742. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  743. ac_prev=cache_file ;;
  744. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  745. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  746. cache_file=$ac_optarg ;;
  747. --config-cache | -C)
  748. cache_file=config.cache ;;
  749. -datadir | --datadir | --datadi | --datad)
  750. ac_prev=datadir ;;
  751. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  752. datadir=$ac_optarg ;;
  753. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  754. | --dataroo | --dataro | --datar)
  755. ac_prev=datarootdir ;;
  756. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  757. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  758. datarootdir=$ac_optarg ;;
  759. -disable-* | --disable-*)
  760. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  761. # Reject names that are not valid shell variable names.
  762. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  763. as_fn_error $? "invalid feature name: $ac_useropt"
  764. ac_useropt_orig=$ac_useropt
  765. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  766. case $ac_user_opts in
  767. *"
  768. "enable_$ac_useropt"
  769. "*) ;;
  770. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  771. ac_unrecognized_sep=', ';;
  772. esac
  773. eval enable_$ac_useropt=no ;;
  774. -docdir | --docdir | --docdi | --doc | --do)
  775. ac_prev=docdir ;;
  776. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  777. docdir=$ac_optarg ;;
  778. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  779. ac_prev=dvidir ;;
  780. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  781. dvidir=$ac_optarg ;;
  782. -enable-* | --enable-*)
  783. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  784. # Reject names that are not valid shell variable names.
  785. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  786. as_fn_error $? "invalid feature name: $ac_useropt"
  787. ac_useropt_orig=$ac_useropt
  788. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  789. case $ac_user_opts in
  790. *"
  791. "enable_$ac_useropt"
  792. "*) ;;
  793. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  794. ac_unrecognized_sep=', ';;
  795. esac
  796. eval enable_$ac_useropt=\$ac_optarg ;;
  797. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  798. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  799. | --exec | --exe | --ex)
  800. ac_prev=exec_prefix ;;
  801. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  802. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  803. | --exec=* | --exe=* | --ex=*)
  804. exec_prefix=$ac_optarg ;;
  805. -gas | --gas | --ga | --g)
  806. # Obsolete; use --with-gas.
  807. with_gas=yes ;;
  808. -help | --help | --hel | --he | -h)
  809. ac_init_help=long ;;
  810. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  811. ac_init_help=recursive ;;
  812. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  813. ac_init_help=short ;;
  814. -host | --host | --hos | --ho)
  815. ac_prev=host_alias ;;
  816. -host=* | --host=* | --hos=* | --ho=*)
  817. host_alias=$ac_optarg ;;
  818. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  819. ac_prev=htmldir ;;
  820. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  821. | --ht=*)
  822. htmldir=$ac_optarg ;;
  823. -includedir | --includedir | --includedi | --included | --include \
  824. | --includ | --inclu | --incl | --inc)
  825. ac_prev=includedir ;;
  826. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  827. | --includ=* | --inclu=* | --incl=* | --inc=*)
  828. includedir=$ac_optarg ;;
  829. -infodir | --infodir | --infodi | --infod | --info | --inf)
  830. ac_prev=infodir ;;
  831. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  832. infodir=$ac_optarg ;;
  833. -libdir | --libdir | --libdi | --libd)
  834. ac_prev=libdir ;;
  835. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  836. libdir=$ac_optarg ;;
  837. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  838. | --libexe | --libex | --libe)
  839. ac_prev=libexecdir ;;
  840. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  841. | --libexe=* | --libex=* | --libe=*)
  842. libexecdir=$ac_optarg ;;
  843. -localedir | --localedir | --localedi | --localed | --locale)
  844. ac_prev=localedir ;;
  845. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  846. localedir=$ac_optarg ;;
  847. -localstatedir | --localstatedir | --localstatedi | --localstated \
  848. | --localstate | --localstat | --localsta | --localst | --locals)
  849. ac_prev=localstatedir ;;
  850. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  851. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  852. localstatedir=$ac_optarg ;;
  853. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  854. ac_prev=mandir ;;
  855. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  856. mandir=$ac_optarg ;;
  857. -nfp | --nfp | --nf)
  858. # Obsolete; use --without-fp.
  859. with_fp=no ;;
  860. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  861. | --no-cr | --no-c | -n)
  862. no_create=yes ;;
  863. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  864. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  865. no_recursion=yes ;;
  866. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  867. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  868. | --oldin | --oldi | --old | --ol | --o)
  869. ac_prev=oldincludedir ;;
  870. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  871. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  872. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  873. oldincludedir=$ac_optarg ;;
  874. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  875. ac_prev=prefix ;;
  876. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  877. prefix=$ac_optarg ;;
  878. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  879. | --program-pre | --program-pr | --program-p)
  880. ac_prev=program_prefix ;;
  881. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  882. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  883. program_prefix=$ac_optarg ;;
  884. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  885. | --program-suf | --program-su | --program-s)
  886. ac_prev=program_suffix ;;
  887. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  888. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  889. program_suffix=$ac_optarg ;;
  890. -program-transform-name | --program-transform-name \
  891. | --program-transform-nam | --program-transform-na \
  892. | --program-transform-n | --program-transform- \
  893. | --program-transform | --program-transfor \
  894. | --program-transfo | --program-transf \
  895. | --program-trans | --program-tran \
  896. | --progr-tra | --program-tr | --program-t)
  897. ac_prev=program_transform_name ;;
  898. -program-transform-name=* | --program-transform-name=* \
  899. | --program-transform-nam=* | --program-transform-na=* \
  900. | --program-transform-n=* | --program-transform-=* \
  901. | --program-transform=* | --program-transfor=* \
  902. | --program-transfo=* | --program-transf=* \
  903. | --program-trans=* | --program-tran=* \
  904. | --progr-tra=* | --program-tr=* | --program-t=*)
  905. program_transform_name=$ac_optarg ;;
  906. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  907. ac_prev=pdfdir ;;
  908. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  909. pdfdir=$ac_optarg ;;
  910. -psdir | --psdir | --psdi | --psd | --ps)
  911. ac_prev=psdir ;;
  912. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  913. psdir=$ac_optarg ;;
  914. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  915. | -silent | --silent | --silen | --sile | --sil)
  916. silent=yes ;;
  917. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  918. ac_prev=sbindir ;;
  919. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  920. | --sbi=* | --sb=*)
  921. sbindir=$ac_optarg ;;
  922. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  923. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  924. | --sharedst | --shareds | --shared | --share | --shar \
  925. | --sha | --sh)
  926. ac_prev=sharedstatedir ;;
  927. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  928. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  929. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  930. | --sha=* | --sh=*)
  931. sharedstatedir=$ac_optarg ;;
  932. -site | --site | --sit)
  933. ac_prev=site ;;
  934. -site=* | --site=* | --sit=*)
  935. site=$ac_optarg ;;
  936. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  937. ac_prev=srcdir ;;
  938. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  939. srcdir=$ac_optarg ;;
  940. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  941. | --syscon | --sysco | --sysc | --sys | --sy)
  942. ac_prev=sysconfdir ;;
  943. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  944. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  945. sysconfdir=$ac_optarg ;;
  946. -target | --target | --targe | --targ | --tar | --ta | --t)
  947. ac_prev=target_alias ;;
  948. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  949. target_alias=$ac_optarg ;;
  950. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  951. verbose=yes ;;
  952. -version | --version | --versio | --versi | --vers | -V)
  953. ac_init_version=: ;;
  954. -with-* | --with-*)
  955. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  956. # Reject names that are not valid shell variable names.
  957. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  958. as_fn_error $? "invalid package name: $ac_useropt"
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "with_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval with_$ac_useropt=\$ac_optarg ;;
  969. -without-* | --without-*)
  970. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  971. # Reject names that are not valid shell variable names.
  972. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  973. as_fn_error $? "invalid package name: $ac_useropt"
  974. ac_useropt_orig=$ac_useropt
  975. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  976. case $ac_user_opts in
  977. *"
  978. "with_$ac_useropt"
  979. "*) ;;
  980. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  981. ac_unrecognized_sep=', ';;
  982. esac
  983. eval with_$ac_useropt=no ;;
  984. --x)
  985. # Obsolete; use --with-x.
  986. with_x=yes ;;
  987. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  988. | --x-incl | --x-inc | --x-in | --x-i)
  989. ac_prev=x_includes ;;
  990. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  991. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  992. x_includes=$ac_optarg ;;
  993. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  994. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  995. ac_prev=x_libraries ;;
  996. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  997. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  998. x_libraries=$ac_optarg ;;
  999. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1000. Try \`$0 --help' for more information"
  1001. ;;
  1002. *=*)
  1003. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1004. # Reject names that are not valid shell variable names.
  1005. case $ac_envvar in #(
  1006. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1007. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1008. esac
  1009. eval $ac_envvar=\$ac_optarg
  1010. export $ac_envvar ;;
  1011. *)
  1012. # FIXME: should be removed in autoconf 3.0.
  1013. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1014. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1015. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1016. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1017. ;;
  1018. esac
  1019. done
  1020. if test -n "$ac_prev"; then
  1021. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1022. as_fn_error $? "missing argument to $ac_option"
  1023. fi
  1024. if test -n "$ac_unrecognized_opts"; then
  1025. case $enable_option_checking in
  1026. no) ;;
  1027. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1028. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1029. esac
  1030. fi
  1031. # Check all directory arguments for consistency.
  1032. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1033. datadir sysconfdir sharedstatedir localstatedir includedir \
  1034. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1035. libdir localedir mandir
  1036. do
  1037. eval ac_val=\$$ac_var
  1038. # Remove trailing slashes.
  1039. case $ac_val in
  1040. */ )
  1041. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1042. eval $ac_var=\$ac_val;;
  1043. esac
  1044. # Be sure to have absolute directory names.
  1045. case $ac_val in
  1046. [\\/$]* | ?:[\\/]* ) continue;;
  1047. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1048. esac
  1049. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1050. done
  1051. # There might be people who depend on the old broken behavior: `$host'
  1052. # used to hold the argument of --host etc.
  1053. # FIXME: To remove some day.
  1054. build=$build_alias
  1055. host=$host_alias
  1056. target=$target_alias
  1057. # FIXME: To remove some day.
  1058. if test "x$host_alias" != x; then
  1059. if test "x$build_alias" = x; then
  1060. cross_compiling=maybe
  1061. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1062. If a cross compiler is detected then cross compile mode will be used" >&2
  1063. elif test "x$build_alias" != "x$host_alias"; then
  1064. cross_compiling=yes
  1065. fi
  1066. fi
  1067. ac_tool_prefix=
  1068. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1069. test "$silent" = yes && exec 6>/dev/null
  1070. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1071. ac_ls_di=`ls -di .` &&
  1072. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1073. as_fn_error $? "working directory cannot be determined"
  1074. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1075. as_fn_error $? "pwd does not report name of working directory"
  1076. # Find the source files, if location was not specified.
  1077. if test -z "$srcdir"; then
  1078. ac_srcdir_defaulted=yes
  1079. # Try the directory containing this script, then the parent directory.
  1080. ac_confdir=`$as_dirname -- "$as_myself" ||
  1081. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1082. X"$as_myself" : 'X\(//\)[^/]' \| \
  1083. X"$as_myself" : 'X\(//\)$' \| \
  1084. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1085. $as_echo X"$as_myself" |
  1086. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1087. s//\1/
  1088. q
  1089. }
  1090. /^X\(\/\/\)[^/].*/{
  1091. s//\1/
  1092. q
  1093. }
  1094. /^X\(\/\/\)$/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\).*/{
  1099. s//\1/
  1100. q
  1101. }
  1102. s/.*/./; q'`
  1103. srcdir=$ac_confdir
  1104. if test ! -r "$srcdir/$ac_unique_file"; then
  1105. srcdir=..
  1106. fi
  1107. else
  1108. ac_srcdir_defaulted=no
  1109. fi
  1110. if test ! -r "$srcdir/$ac_unique_file"; then
  1111. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1112. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1113. fi
  1114. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1115. ac_abs_confdir=`(
  1116. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1117. pwd)`
  1118. # When building in place, set srcdir=.
  1119. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1120. srcdir=.
  1121. fi
  1122. # Remove unnecessary trailing slashes from srcdir.
  1123. # Double slashes in file names in object file debugging info
  1124. # mess up M-x gdb in Emacs.
  1125. case $srcdir in
  1126. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1127. esac
  1128. for ac_var in $ac_precious_vars; do
  1129. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1130. eval ac_env_${ac_var}_value=\$${ac_var}
  1131. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1132. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1133. done
  1134. #
  1135. # Report the --help message.
  1136. #
  1137. if test "$ac_init_help" = "long"; then
  1138. # Omit some internal or obsolete options to make the list less imposing.
  1139. # This message is too long to be a string in the A/UX 3.1 sh.
  1140. cat <<_ACEOF
  1141. \`configure' configures nrpe 2.13 to adapt to many kinds of systems.
  1142. Usage: $0 [OPTION]... [VAR=VALUE]...
  1143. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1144. VAR=VALUE. See below for descriptions of some of the useful variables.
  1145. Defaults for the options are specified in brackets.
  1146. Configuration:
  1147. -h, --help display this help and exit
  1148. --help=short display options specific to this package
  1149. --help=recursive display the short help of all the included packages
  1150. -V, --version display version information and exit
  1151. -q, --quiet, --silent do not print \`checking ...' messages
  1152. --cache-file=FILE cache test results in FILE [disabled]
  1153. -C, --config-cache alias for \`--cache-file=config.cache'
  1154. -n, --no-create do not create output files
  1155. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1156. Installation directories:
  1157. --prefix=PREFIX install architecture-independent files in PREFIX
  1158. [$ac_default_prefix]
  1159. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1160. [PREFIX]
  1161. By default, \`make install' will install all the files in
  1162. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1163. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1164. for instance \`--prefix=\$HOME'.
  1165. For better control, use the options below.
  1166. Fine tuning of the installation directories:
  1167. --bindir=DIR user executables [EPREFIX/bin]
  1168. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1169. --libexecdir=DIR program executables [EPREFIX/libexec]
  1170. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1171. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1172. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1173. --libdir=DIR object code libraries [EPREFIX/lib]
  1174. --includedir=DIR C header files [PREFIX/include]
  1175. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1176. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1177. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1178. --infodir=DIR info documentation [DATAROOTDIR/info]
  1179. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1180. --mandir=DIR man documentation [DATAROOTDIR/man]
  1181. --docdir=DIR documentation root [DATAROOTDIR/doc/nrpe]
  1182. --htmldir=DIR html documentation [DOCDIR]
  1183. --dvidir=DIR dvi documentation [DOCDIR]
  1184. --pdfdir=DIR pdf documentation [DOCDIR]
  1185. --psdir=DIR ps documentation [DOCDIR]
  1186. _ACEOF
  1187. cat <<\_ACEOF
  1188. System types:
  1189. --build=BUILD configure for building on BUILD [guessed]
  1190. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1191. _ACEOF
  1192. fi
  1193. if test -n "$ac_init_help"; then
  1194. case $ac_init_help in
  1195. short | recursive ) echo "Configuration of nrpe 2.13:";;
  1196. esac
  1197. cat <<\_ACEOF
  1198. Optional Features:
  1199. --disable-option-checking ignore unrecognized --enable/--with options
  1200. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1201. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1202. --enable-ssl enables native SSL support
  1203. --enable-command-args allows clients to specify command arguments. *** THIS IS A SECURITY RISK! *** Read the SECURITY file before using this option!
  1204. Optional Packages:
  1205. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1206. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1207. --with-ssl=DIR sets location of the SSL installation
  1208. --with-ssl-inc=DIR sets location of the SSL include files
  1209. --with-ssl-lib=DIR sets location of the SSL libraries
  1210. --with-kerberos-inc=DIR sets location of the Kerberos include files
  1211. --with-log-facility=<facility> sets NRPE syslog facility
  1212. --with-nrpe-user=<user> sets user name to run NRPE
  1213. --with-nrpe-group=<group> sets group name to run NRPE
  1214. --with-nrpe-port=<port> sets port number for NRPE to listen on
  1215. --with-nagios-user=<user> sets user name for file permissions
  1216. --with-nagios-group=<grp> sets group name file permissions
  1217. Some influential environment variables:
  1218. CC C compiler command
  1219. CFLAGS C compiler flags
  1220. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1221. nonstandard directory <lib dir>
  1222. LIBS libraries to pass to the linker, e.g. -l<library>
  1223. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1224. you have headers in a nonstandard directory <include dir>
  1225. CPP C preprocessor
  1226. Use these variables to override the choices made by `configure' or to help
  1227. it to find libraries and programs with nonstandard names/locations.
  1228. Report bugs to <nagios-users@lists.sourceforge.net>.
  1229. nrpe home page: <http://www.nagios.org>.
  1230. _ACEOF
  1231. ac_status=$?
  1232. fi
  1233. if test "$ac_init_help" = "recursive"; then
  1234. # If there are subdirs, report their specific --help.
  1235. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1236. test -d "$ac_dir" ||
  1237. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1238. continue
  1239. ac_builddir=.
  1240. case "$ac_dir" in
  1241. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1242. *)
  1243. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1244. # A ".." for each directory in $ac_dir_suffix.
  1245. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1246. case $ac_top_builddir_sub in
  1247. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1248. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1249. esac ;;
  1250. esac
  1251. ac_abs_top_builddir=$ac_pwd
  1252. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1253. # for backward compatibility:
  1254. ac_top_builddir=$ac_top_build_prefix
  1255. case $srcdir in
  1256. .) # We are building in place.
  1257. ac_srcdir=.
  1258. ac_top_srcdir=$ac_top_builddir_sub
  1259. ac_abs_top_srcdir=$ac_pwd ;;
  1260. [\\/]* | ?:[\\/]* ) # Absolute name.
  1261. ac_srcdir=$srcdir$ac_dir_suffix;
  1262. ac_top_srcdir=$srcdir
  1263. ac_abs_top_srcdir=$srcdir ;;
  1264. *) # Relative name.
  1265. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1266. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1267. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1268. esac
  1269. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1270. cd "$ac_dir" || { ac_status=$?; continue; }
  1271. # Check for guested configure.
  1272. if test -f "$ac_srcdir/configure.gnu"; then
  1273. echo &&
  1274. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1275. elif test -f "$ac_srcdir/configure"; then
  1276. echo &&
  1277. $SHELL "$ac_srcdir/configure" --help=recursive
  1278. else
  1279. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1280. fi || ac_status=$?
  1281. cd "$ac_pwd" || { ac_status=$?; break; }
  1282. done
  1283. fi
  1284. test -n "$ac_init_help" && exit $ac_status
  1285. if $ac_init_version; then
  1286. cat <<\_ACEOF
  1287. nrpe configure 2.13
  1288. generated by GNU Autoconf 2.68
  1289. Copyright (C) 2010 Free Software Foundation, Inc.
  1290. This configure script is free software; the Free Software Foundation
  1291. gives unlimited permission to copy, distribute and modify it.
  1292. _ACEOF
  1293. exit
  1294. fi
  1295. ## ------------------------ ##
  1296. ## Autoconf initialization. ##
  1297. ## ------------------------ ##
  1298. # ac_fn_c_try_compile LINENO
  1299. # --------------------------
  1300. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1301. ac_fn_c_try_compile ()
  1302. {
  1303. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1304. rm -f conftest.$ac_objext
  1305. if { { ac_try="$ac_compile"
  1306. case "(($ac_try" in
  1307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1308. *) ac_try_echo=$ac_try;;
  1309. esac
  1310. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1311. $as_echo "$ac_try_echo"; } >&5
  1312. (eval "$ac_compile") 2>conftest.err
  1313. ac_status=$?
  1314. if test -s conftest.err; then
  1315. grep -v '^ *+' conftest.err >conftest.er1
  1316. cat conftest.er1 >&5
  1317. mv -f conftest.er1 conftest.err
  1318. fi
  1319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1320. test $ac_status = 0; } && {
  1321. test -z "$ac_c_werror_flag" ||
  1322. test ! -s conftest.err
  1323. } && test -s conftest.$ac_objext; then :
  1324. ac_retval=0
  1325. else
  1326. $as_echo "$as_me: failed program was:" >&5
  1327. sed 's/^/| /' conftest.$ac_ext >&5
  1328. ac_retval=1
  1329. fi
  1330. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1331. as_fn_set_status $ac_retval
  1332. } # ac_fn_c_try_compile
  1333. # ac_fn_c_try_cpp LINENO
  1334. # ----------------------
  1335. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1336. ac_fn_c_try_cpp ()
  1337. {
  1338. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1339. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1340. case "(($ac_try" in
  1341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1342. *) ac_try_echo=$ac_try;;
  1343. esac
  1344. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1345. $as_echo "$ac_try_echo"; } >&5
  1346. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1347. ac_status=$?
  1348. if test -s conftest.err; then
  1349. grep -v '^ *+' conftest.err >conftest.er1
  1350. cat conftest.er1 >&5
  1351. mv -f conftest.er1 conftest.err
  1352. fi
  1353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1354. test $ac_status = 0; } > conftest.i && {
  1355. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1356. test ! -s conftest.err
  1357. }; then :
  1358. ac_retval=0
  1359. else
  1360. $as_echo "$as_me: failed program was:" >&5
  1361. sed 's/^/| /' conftest.$ac_ext >&5
  1362. ac_retval=1
  1363. fi
  1364. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1365. as_fn_set_status $ac_retval
  1366. } # ac_fn_c_try_cpp
  1367. # ac_fn_c_try_run LINENO
  1368. # ----------------------
  1369. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1370. # that executables *can* be run.
  1371. ac_fn_c_try_run ()
  1372. {
  1373. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1374. if { { ac_try="$ac_link"
  1375. case "(($ac_try" in
  1376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1377. *) ac_try_echo=$ac_try;;
  1378. esac
  1379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1380. $as_echo "$ac_try_echo"; } >&5
  1381. (eval "$ac_link") 2>&5
  1382. ac_status=$?
  1383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1384. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1385. { { case "(($ac_try" in
  1386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1387. *) ac_try_echo=$ac_try;;
  1388. esac
  1389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1390. $as_echo "$ac_try_echo"; } >&5
  1391. (eval "$ac_try") 2>&5
  1392. ac_status=$?
  1393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1394. test $ac_status = 0; }; }; then :
  1395. ac_retval=0
  1396. else
  1397. $as_echo "$as_me: program exited with status $ac_status" >&5
  1398. $as_echo "$as_me: failed program was:" >&5
  1399. sed 's/^/| /' conftest.$ac_ext >&5
  1400. ac_retval=$ac_status
  1401. fi
  1402. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1403. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1404. as_fn_set_status $ac_retval
  1405. } # ac_fn_c_try_run
  1406. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1407. # -------------------------------------------------------
  1408. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1409. # the include files in INCLUDES and setting the cache variable VAR
  1410. # accordingly.
  1411. ac_fn_c_check_header_mongrel ()
  1412. {
  1413. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1414. if eval \${$3+:} false; then :
  1415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1416. $as_echo_n "checking for $2... " >&6; }
  1417. if eval \${$3+:} false; then :
  1418. $as_echo_n "(cached) " >&6
  1419. fi
  1420. eval ac_res=\$$3
  1421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1422. $as_echo "$ac_res" >&6; }
  1423. else
  1424. # Is the header compilable?
  1425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1426. $as_echo_n "checking $2 usability... " >&6; }
  1427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1428. /* end confdefs.h. */
  1429. $4
  1430. #include <$2>
  1431. _ACEOF
  1432. if ac_fn_c_try_compile "$LINENO"; then :
  1433. ac_header_compiler=yes
  1434. else
  1435. ac_header_compiler=no
  1436. fi
  1437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1439. $as_echo "$ac_header_compiler" >&6; }
  1440. # Is the header present?
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1442. $as_echo_n "checking $2 presence... " >&6; }
  1443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1444. /* end confdefs.h. */
  1445. #include <$2>
  1446. _ACEOF
  1447. if ac_fn_c_try_cpp "$LINENO"; then :
  1448. ac_header_preproc=yes
  1449. else
  1450. ac_header_preproc=no
  1451. fi
  1452. rm -f conftest.err conftest.i conftest.$ac_ext
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1454. $as_echo "$ac_header_preproc" >&6; }
  1455. # So? What about this header?
  1456. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1457. yes:no: )
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1459. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1461. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1462. ;;
  1463. no:yes:* )
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1465. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1467. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1469. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1471. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1473. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1474. ( $as_echo "## ------------------------------------------------- ##
  1475. ## Report this to nagios-users@lists.sourceforge.net ##
  1476. ## ------------------------------------------------- ##"
  1477. ) | sed "s/^/$as_me: WARNING: /" >&2
  1478. ;;
  1479. esac
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1481. $as_echo_n "checking for $2... " >&6; }
  1482. if eval \${$3+:} false; then :
  1483. $as_echo_n "(cached) " >&6
  1484. else
  1485. eval "$3=\$ac_header_compiler"
  1486. fi
  1487. eval ac_res=\$$3
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1489. $as_echo "$ac_res" >&6; }
  1490. fi
  1491. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1492. } # ac_fn_c_check_header_mongrel
  1493. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1494. # -------------------------------------------------------
  1495. # Tests whether HEADER exists and can be compiled using the include files in
  1496. # INCLUDES, setting the cache variable VAR accordingly.
  1497. ac_fn_c_check_header_compile ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1501. $as_echo_n "checking for $2... " >&6; }
  1502. if eval \${$3+:} false; then :
  1503. $as_echo_n "(cached) " >&6
  1504. else
  1505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1506. /* end confdefs.h. */
  1507. $4
  1508. #include <$2>
  1509. _ACEOF
  1510. if ac_fn_c_try_compile "$LINENO"; then :
  1511. eval "$3=yes"
  1512. else
  1513. eval "$3=no"
  1514. fi
  1515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1516. fi
  1517. eval ac_res=\$$3
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1519. $as_echo "$ac_res" >&6; }
  1520. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1521. } # ac_fn_c_check_header_compile
  1522. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1523. # -------------------------------------------
  1524. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1525. # variable VAR accordingly.
  1526. ac_fn_c_check_type ()
  1527. {
  1528. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1530. $as_echo_n "checking for $2... " >&6; }
  1531. if eval \${$3+:} false; then :
  1532. $as_echo_n "(cached) " >&6
  1533. else
  1534. eval "$3=no"
  1535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1536. /* end confdefs.h. */
  1537. $4
  1538. int
  1539. main ()
  1540. {
  1541. if (sizeof ($2))
  1542. return 0;
  1543. ;
  1544. return 0;
  1545. }
  1546. _ACEOF
  1547. if ac_fn_c_try_compile "$LINENO"; then :
  1548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1549. /* end confdefs.h. */
  1550. $4
  1551. int
  1552. main ()
  1553. {
  1554. if (sizeof (($2)))
  1555. return 0;
  1556. ;
  1557. return 0;
  1558. }
  1559. _ACEOF
  1560. if ac_fn_c_try_compile "$LINENO"; then :
  1561. else
  1562. eval "$3=yes"
  1563. fi
  1564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1565. fi
  1566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1567. fi
  1568. eval ac_res=\$$3
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1570. $as_echo "$ac_res" >&6; }
  1571. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1572. } # ac_fn_c_check_type
  1573. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1574. # --------------------------------------------
  1575. # Tries to find the compile-time value of EXPR in a program that includes
  1576. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1577. # computed
  1578. ac_fn_c_compute_int ()
  1579. {
  1580. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1581. if test "$cross_compiling" = yes; then
  1582. # Depending upon the size, compute the lo and hi bounds.
  1583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1584. /* end confdefs.h. */
  1585. $4
  1586. int
  1587. main ()
  1588. {
  1589. static int test_array [1 - 2 * !(($2) >= 0)];
  1590. test_array [0] = 0
  1591. ;
  1592. return 0;
  1593. }
  1594. _ACEOF
  1595. if ac_fn_c_try_compile "$LINENO"; then :
  1596. ac_lo=0 ac_mid=0
  1597. while :; do
  1598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1599. /* end confdefs.h. */
  1600. $4
  1601. int
  1602. main ()
  1603. {
  1604. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1605. test_array [0] = 0
  1606. ;
  1607. return 0;
  1608. }
  1609. _ACEOF
  1610. if ac_fn_c_try_compile "$LINENO"; then :
  1611. ac_hi=$ac_mid; break
  1612. else
  1613. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1614. if test $ac_lo -le $ac_mid; then
  1615. ac_lo= ac_hi=
  1616. break
  1617. fi
  1618. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1619. fi
  1620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1621. done
  1622. else
  1623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1624. /* end confdefs.h. */
  1625. $4
  1626. int
  1627. main ()
  1628. {
  1629. static int test_array [1 - 2 * !(($2) < 0)];
  1630. test_array [0] = 0
  1631. ;
  1632. return 0;
  1633. }
  1634. _ACEOF
  1635. if ac_fn_c_try_compile "$LINENO"; then :
  1636. ac_hi=-1 ac_mid=-1
  1637. while :; do
  1638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1639. /* end confdefs.h. */
  1640. $4
  1641. int
  1642. main ()
  1643. {
  1644. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1645. test_array [0] = 0
  1646. ;
  1647. return 0;
  1648. }
  1649. _ACEOF
  1650. if ac_fn_c_try_compile "$LINENO"; then :
  1651. ac_lo=$ac_mid; break
  1652. else
  1653. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1654. if test $ac_mid -le $ac_hi; then
  1655. ac_lo= ac_hi=
  1656. break
  1657. fi
  1658. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1659. fi
  1660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1661. done
  1662. else
  1663. ac_lo= ac_hi=
  1664. fi
  1665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1666. fi
  1667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1668. # Binary search between lo and hi bounds.
  1669. while test "x$ac_lo" != "x$ac_hi"; do
  1670. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1672. /* end confdefs.h. */
  1673. $4
  1674. int
  1675. main ()
  1676. {
  1677. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1678. test_array [0] = 0
  1679. ;
  1680. return 0;
  1681. }
  1682. _ACEOF
  1683. if ac_fn_c_try_compile "$LINENO"; then :
  1684. ac_hi=$ac_mid
  1685. else
  1686. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1687. fi
  1688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1689. done
  1690. case $ac_lo in #((
  1691. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1692. '') ac_retval=1 ;;
  1693. esac
  1694. else
  1695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1696. /* end confdefs.h. */
  1697. $4
  1698. static long int longval () { return $2; }
  1699. static unsigned long int ulongval () { return $2; }
  1700. #include <stdio.h>
  1701. #include <stdlib.h>
  1702. int
  1703. main ()
  1704. {
  1705. FILE *f = fopen ("conftest.val", "w");
  1706. if (! f)
  1707. return 1;
  1708. if (($2) < 0)
  1709. {
  1710. long int i = longval ();
  1711. if (i != ($2))
  1712. return 1;
  1713. fprintf (f, "%ld", i);
  1714. }
  1715. else
  1716. {
  1717. unsigned long int i = ulongval ();
  1718. if (i != ($2))
  1719. return 1;
  1720. fprintf (f, "%lu", i);
  1721. }
  1722. /* Do not output a trailing newline, as this causes \r\n confusion
  1723. on some platforms. */
  1724. return ferror (f) || fclose (f) != 0;
  1725. ;
  1726. return 0;
  1727. }
  1728. _ACEOF
  1729. if ac_fn_c_try_run "$LINENO"; then :
  1730. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1731. else
  1732. ac_retval=1
  1733. fi
  1734. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1735. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1736. rm -f conftest.val
  1737. fi
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. as_fn_set_status $ac_retval
  1740. } # ac_fn_c_compute_int
  1741. # ac_fn_c_try_link LINENO
  1742. # -----------------------
  1743. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1744. ac_fn_c_try_link ()
  1745. {
  1746. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1747. rm -f conftest.$ac_objext conftest$ac_exeext
  1748. if { { ac_try="$ac_link"
  1749. case "(($ac_try" in
  1750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1751. *) ac_try_echo=$ac_try;;
  1752. esac
  1753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1754. $as_echo "$ac_try_echo"; } >&5
  1755. (eval "$ac_link") 2>conftest.err
  1756. ac_status=$?
  1757. if test -s conftest.err; then
  1758. grep -v '^ *+' conftest.err >conftest.er1
  1759. cat conftest.er1 >&5
  1760. mv -f conftest.er1 conftest.err
  1761. fi
  1762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1763. test $ac_status = 0; } && {
  1764. test -z "$ac_c_werror_flag" ||
  1765. test ! -s conftest.err
  1766. } && test -s conftest$ac_exeext && {
  1767. test "$cross_compiling" = yes ||
  1768. $as_test_x conftest$ac_exeext
  1769. }; then :
  1770. ac_retval=0
  1771. else
  1772. $as_echo "$as_me: failed program was:" >&5
  1773. sed 's/^/| /' conftest.$ac_ext >&5
  1774. ac_retval=1
  1775. fi
  1776. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1777. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1778. # interfere with the next link command; also delete a directory that is
  1779. # left behind by Apple's compiler. We do this before executing the actions.
  1780. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1781. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1782. as_fn_set_status $ac_retval
  1783. } # ac_fn_c_try_link
  1784. # ac_fn_c_check_func LINENO FUNC VAR
  1785. # ----------------------------------
  1786. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1787. ac_fn_c_check_func ()
  1788. {
  1789. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1791. $as_echo_n "checking for $2... " >&6; }
  1792. if eval \${$3+:} false; then :
  1793. $as_echo_n "(cached) " >&6
  1794. else
  1795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1796. /* end confdefs.h. */
  1797. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1798. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1799. #define $2 innocuous_$2
  1800. /* System header to define __stub macros and hopefully few prototypes,
  1801. which can conflict with char $2 (); below.
  1802. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1803. <limits.h> exists even on freestanding compilers. */
  1804. #ifdef __STDC__
  1805. # include <limits.h>
  1806. #else
  1807. # include <assert.h>
  1808. #endif
  1809. #undef $2
  1810. /* Override any GCC internal prototype to avoid an error.
  1811. Use char because int might match the return type of a GCC
  1812. builtin and then its argument prototype would still apply. */
  1813. #ifdef __cplusplus
  1814. extern "C"
  1815. #endif
  1816. char $2 ();
  1817. /* The GNU C library defines this for functions which it implements
  1818. to always fail with ENOSYS. Some functions are actually named
  1819. something starting with __ and the normal name is an alias. */
  1820. #if defined __stub_$2 || defined __stub___$2
  1821. choke me
  1822. #endif
  1823. int
  1824. main ()
  1825. {
  1826. return $2 ();
  1827. ;
  1828. return 0;
  1829. }
  1830. _ACEOF
  1831. if ac_fn_c_try_link "$LINENO"; then :
  1832. eval "$3=yes"
  1833. else
  1834. eval "$3=no"
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext \
  1837. conftest$ac_exeext conftest.$ac_ext
  1838. fi
  1839. eval ac_res=\$$3
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1841. $as_echo "$ac_res" >&6; }
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. } # ac_fn_c_check_func
  1844. cat >config.log <<_ACEOF
  1845. This file contains any messages produced by compilers while
  1846. running configure, to aid debugging if configure makes a mistake.
  1847. It was created by nrpe $as_me 2.13, which was
  1848. generated by GNU Autoconf 2.68. Invocation command line was
  1849. $ $0 $@
  1850. _ACEOF
  1851. exec 5>>config.log
  1852. {
  1853. cat <<_ASUNAME
  1854. ## --------- ##
  1855. ## Platform. ##
  1856. ## --------- ##
  1857. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1858. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1859. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1860. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1861. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1862. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1863. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1864. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1865. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1866. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1867. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1868. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1869. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1870. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1871. _ASUNAME
  1872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1873. for as_dir in $PATH
  1874. do
  1875. IFS=$as_save_IFS
  1876. test -z "$as_dir" && as_dir=.
  1877. $as_echo "PATH: $as_dir"
  1878. done
  1879. IFS=$as_save_IFS
  1880. } >&5
  1881. cat >&5 <<_ACEOF
  1882. ## ----------- ##
  1883. ## Core tests. ##
  1884. ## ----------- ##
  1885. _ACEOF
  1886. # Keep a trace of the command line.
  1887. # Strip out --no-create and --no-recursion so they do not pile up.
  1888. # Strip out --silent because we don't want to record it for future runs.
  1889. # Also quote any args containing shell meta-characters.
  1890. # Make two passes to allow for proper duplicate-argument suppression.
  1891. ac_configure_args=
  1892. ac_configure_args0=
  1893. ac_configure_args1=
  1894. ac_must_keep_next=false
  1895. for ac_pass in 1 2
  1896. do
  1897. for ac_arg
  1898. do
  1899. case $ac_arg in
  1900. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1901. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1902. | -silent | --silent | --silen | --sile | --sil)
  1903. continue ;;
  1904. *\'*)
  1905. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1906. esac
  1907. case $ac_pass in
  1908. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1909. 2)
  1910. as_fn_append ac_configure_args1 " '$ac_arg'"
  1911. if test $ac_must_keep_next = true; then
  1912. ac_must_keep_next=false # Got value, back to normal.
  1913. else
  1914. case $ac_arg in
  1915. *=* | --config-cache | -C | -disable-* | --disable-* \
  1916. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1917. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1918. | -with-* | --with-* | -without-* | --without-* | --x)
  1919. case "$ac_configure_args0 " in
  1920. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1921. esac
  1922. ;;
  1923. -* ) ac_must_keep_next=true ;;
  1924. esac
  1925. fi
  1926. as_fn_append ac_configure_args " '$ac_arg'"
  1927. ;;
  1928. esac
  1929. done
  1930. done
  1931. { ac_configure_args0=; unset ac_configure_args0;}
  1932. { ac_configure_args1=; unset ac_configure_args1;}
  1933. # When interrupted or exit'd, cleanup temporary files, and complete
  1934. # config.log. We remove comments because anyway the quotes in there
  1935. # would cause problems or look ugly.
  1936. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1937. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1938. trap 'exit_status=$?
  1939. # Save into config.log some information that might help in debugging.
  1940. {
  1941. echo
  1942. $as_echo "## ---------------- ##
  1943. ## Cache variables. ##
  1944. ## ---------------- ##"
  1945. echo
  1946. # The following way of writing the cache mishandles newlines in values,
  1947. (
  1948. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1949. eval ac_val=\$$ac_var
  1950. case $ac_val in #(
  1951. *${as_nl}*)
  1952. case $ac_var in #(
  1953. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1954. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1955. esac
  1956. case $ac_var in #(
  1957. _ | IFS | as_nl) ;; #(
  1958. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1959. *) { eval $ac_var=; unset $ac_var;} ;;
  1960. esac ;;
  1961. esac
  1962. done
  1963. (set) 2>&1 |
  1964. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1965. *${as_nl}ac_space=\ *)
  1966. sed -n \
  1967. "s/'\''/'\''\\\\'\'''\''/g;
  1968. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1969. ;; #(
  1970. *)
  1971. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1972. ;;
  1973. esac |
  1974. sort
  1975. )
  1976. echo
  1977. $as_echo "## ----------------- ##
  1978. ## Output variables. ##
  1979. ## ----------------- ##"
  1980. echo
  1981. for ac_var in $ac_subst_vars
  1982. do
  1983. eval ac_val=\$$ac_var
  1984. case $ac_val in
  1985. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1986. esac
  1987. $as_echo "$ac_var='\''$ac_val'\''"
  1988. done | sort
  1989. echo
  1990. if test -n "$ac_subst_files"; then
  1991. $as_echo "## ------------------- ##
  1992. ## File substitutions. ##
  1993. ## ------------------- ##"
  1994. echo
  1995. for ac_var in $ac_subst_files
  1996. do
  1997. eval ac_val=\$$ac_var
  1998. case $ac_val in
  1999. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2000. esac
  2001. $as_echo "$ac_var='\''$ac_val'\''"
  2002. done | sort
  2003. echo
  2004. fi
  2005. if test -s confdefs.h; then
  2006. $as_echo "## ----------- ##
  2007. ## confdefs.h. ##
  2008. ## ----------- ##"
  2009. echo
  2010. cat confdefs.h
  2011. echo
  2012. fi
  2013. test "$ac_signal" != 0 &&
  2014. $as_echo "$as_me: caught signal $ac_signal"
  2015. $as_echo "$as_me: exit $exit_status"
  2016. } >&5
  2017. rm -f core *.core core.conftest.* &&
  2018. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2019. exit $exit_status
  2020. ' 0
  2021. for ac_signal in 1 2 13 15; do
  2022. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2023. done
  2024. ac_signal=0
  2025. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2026. rm -f -r conftest* confdefs.h
  2027. $as_echo "/* confdefs.h */" > confdefs.h
  2028. # Predefined preprocessor variables.
  2029. cat >>confdefs.h <<_ACEOF
  2030. #define PACKAGE_NAME "$PACKAGE_NAME"
  2031. _ACEOF
  2032. cat >>confdefs.h <<_ACEOF
  2033. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2034. _ACEOF
  2035. cat >>confdefs.h <<_ACEOF
  2036. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2037. _ACEOF
  2038. cat >>confdefs.h <<_ACEOF
  2039. #define PACKAGE_STRING "$PACKAGE_STRING"
  2040. _ACEOF
  2041. cat >>confdefs.h <<_ACEOF
  2042. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2043. _ACEOF
  2044. cat >>confdefs.h <<_ACEOF
  2045. #define PACKAGE_URL "$PACKAGE_URL"
  2046. _ACEOF
  2047. # Let the site file select an alternate cache file if it wants to.
  2048. # Prefer an explicitly selected file to automatically selected ones.
  2049. ac_site_file1=NONE
  2050. ac_site_file2=NONE
  2051. if test -n "$CONFIG_SITE"; then
  2052. # We do not want a PATH search for config.site.
  2053. case $CONFIG_SITE in #((
  2054. -*) ac_site_file1=./$CONFIG_SITE;;
  2055. */*) ac_site_file1=$CONFIG_SITE;;
  2056. *) ac_site_file1=./$CONFIG_SITE;;
  2057. esac
  2058. elif test "x$prefix" != xNONE; then
  2059. ac_site_file1=$prefix/share/config.site
  2060. ac_site_file2=$prefix/etc/config.site
  2061. else
  2062. ac_site_file1=$ac_default_prefix/share/config.site
  2063. ac_site_file2=$ac_default_prefix/etc/config.site
  2064. fi
  2065. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2066. do
  2067. test "x$ac_site_file" = xNONE && continue
  2068. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2070. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2071. sed 's/^/| /' "$ac_site_file" >&5
  2072. . "$ac_site_file" \
  2073. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2074. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2075. as_fn_error $? "failed to load site script $ac_site_file
  2076. See \`config.log' for more details" "$LINENO" 5; }
  2077. fi
  2078. done
  2079. # Check that the precious variables saved in the cache have kept the same
  2080. # value.
  2081. ac_cache_corrupted=false
  2082. for ac_var in $ac_precious_vars; do
  2083. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2084. eval ac_new_set=\$ac_env_${ac_var}_set
  2085. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2086. eval ac_new_val=\$ac_env_${ac_var}_value
  2087. case $ac_old_set,$ac_new_set in
  2088. set,)
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2090. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2091. ac_cache_corrupted=: ;;
  2092. ,set)
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2094. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2095. ac_cache_corrupted=: ;;
  2096. ,);;
  2097. *)
  2098. if test "x$ac_old_val" != "x$ac_new_val"; then
  2099. # differences in whitespace do not lead to failure.
  2100. ac_old_val_w=`echo x $ac_old_val`
  2101. ac_new_val_w=`echo x $ac_new_val`
  2102. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2104. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2105. ac_cache_corrupted=:
  2106. else
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2108. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2109. eval $ac_var=\$ac_old_val
  2110. fi
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2112. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2114. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2115. fi;;
  2116. esac
  2117. # Pass precious variables to config.status.
  2118. if test "$ac_new_set" = set; then
  2119. case $ac_new_val in
  2120. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2121. *) ac_arg=$ac_var=$ac_new_val ;;
  2122. esac
  2123. case " $ac_configure_args " in
  2124. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2125. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2126. esac
  2127. fi
  2128. done
  2129. if $ac_cache_corrupted; then
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2131. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2133. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2134. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2135. fi
  2136. ## -------------------- ##
  2137. ## Main body of script. ##
  2138. ## -------------------- ##
  2139. ac_ext=c
  2140. ac_cpp='$CPP $CPPFLAGS'
  2141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2144. ac_config_headers="$ac_config_headers include/config.h"
  2145. ac_config_files="$ac_config_files Makefile subst src/Makefile package/solaris/Makefile init-script init-script.debian init-script.suse nrpe.spec sample-config/nrpe.cfg sample-config/nrpe.xinetd"
  2146. PKG_NAME=nrpe
  2147. PKG_VERSION="2.13"
  2148. PKG_HOME_URL="http://www.nagios.org/"
  2149. PKG_REL_DATE="11-11-2011"
  2150. RPM_RELEASE=1
  2151. ac_aux_dir=
  2152. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2153. if test -f "$ac_dir/install-sh"; then
  2154. ac_aux_dir=$ac_dir
  2155. ac_install_sh="$ac_aux_dir/install-sh -c"
  2156. break
  2157. elif test -f "$ac_dir/install.sh"; then
  2158. ac_aux_dir=$ac_dir
  2159. ac_install_sh="$ac_aux_dir/install.sh -c"
  2160. break
  2161. elif test -f "$ac_dir/shtool"; then
  2162. ac_aux_dir=$ac_dir
  2163. ac_install_sh="$ac_aux_dir/shtool install -c"
  2164. break
  2165. fi
  2166. done
  2167. if test -z "$ac_aux_dir"; then
  2168. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2169. fi
  2170. # These three variables are undocumented and unsupported,
  2171. # and are intended to be withdrawn in a future Autoconf release.
  2172. # They can cause serious problems if a builder's source tree is in a directory
  2173. # whose full name contains unusual characters.
  2174. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2175. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2176. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2177. # Find a good install program. We prefer a C program (faster),
  2178. # so one script is as good as another. But avoid the broken or
  2179. # incompatible versions:
  2180. # SysV /etc/install, /usr/sbin/install
  2181. # SunOS /usr/etc/install
  2182. # IRIX /sbin/install
  2183. # AIX /bin/install
  2184. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2185. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2186. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2187. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2188. # OS/2's system install, which has a completely different semantic
  2189. # ./install, which can be erroneously created by make from ./install.sh.
  2190. # Reject install programs that cannot install multiple files.
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2192. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2193. if test -z "$INSTALL"; then
  2194. if ${ac_cv_path_install+:} false; then :
  2195. $as_echo_n "(cached) " >&6
  2196. else
  2197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2198. for as_dir in $PATH
  2199. do
  2200. IFS=$as_save_IFS
  2201. test -z "$as_dir" && as_dir=.
  2202. # Account for people who put trailing slashes in PATH elements.
  2203. case $as_dir/ in #((
  2204. ./ | .// | /[cC]/* | \
  2205. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2206. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2207. /usr/ucb/* ) ;;
  2208. *)
  2209. # OSF1 and SCO ODT 3.0 have their own names for install.
  2210. # Don't use installbsd from OSF since it installs stuff as root
  2211. # by default.
  2212. for ac_prog in ginstall scoinst install; do
  2213. for ac_exec_ext in '' $ac_executable_extensions; do
  2214. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2215. if test $ac_prog = install &&
  2216. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2217. # AIX install. It has an incompatible calling convention.
  2218. :
  2219. elif test $ac_prog = install &&
  2220. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2221. # program-specific install script used by HP pwplus--don't use.
  2222. :
  2223. else
  2224. rm -rf conftest.one conftest.two conftest.dir
  2225. echo one > conftest.one
  2226. echo two > conftest.two
  2227. mkdir conftest.dir
  2228. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2229. test -s conftest.one && test -s conftest.two &&
  2230. test -s conftest.dir/conftest.one &&
  2231. test -s conftest.dir/conftest.two
  2232. then
  2233. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2234. break 3
  2235. fi
  2236. fi
  2237. fi
  2238. done
  2239. done
  2240. ;;
  2241. esac
  2242. done
  2243. IFS=$as_save_IFS
  2244. rm -rf conftest.one conftest.two conftest.dir
  2245. fi
  2246. if test "${ac_cv_path_install+set}" = set; then
  2247. INSTALL=$ac_cv_path_install
  2248. else
  2249. # As a last resort, use the slow shell script. Don't cache a
  2250. # value for INSTALL within a source directory, because that will
  2251. # break other packages using the cache if that directory is
  2252. # removed, or if the value is a relative name.
  2253. INSTALL=$ac_install_sh
  2254. fi
  2255. fi
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2257. $as_echo "$INSTALL" >&6; }
  2258. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2259. # It thinks the first close brace ends the variable substitution.
  2260. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2261. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2262. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2263. # Make sure we can run config.sub.
  2264. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2265. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2267. $as_echo_n "checking build system type... " >&6; }
  2268. if ${ac_cv_build+:} false; then :
  2269. $as_echo_n "(cached) " >&6
  2270. else
  2271. ac_build_alias=$build_alias
  2272. test "x$ac_build_alias" = x &&
  2273. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2274. test "x$ac_build_alias" = x &&
  2275. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2276. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2277. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2278. fi
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2280. $as_echo "$ac_cv_build" >&6; }
  2281. case $ac_cv_build in
  2282. *-*-*) ;;
  2283. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2284. esac
  2285. build=$ac_cv_build
  2286. ac_save_IFS=$IFS; IFS='-'
  2287. set x $ac_cv_build
  2288. shift
  2289. build_cpu=$1
  2290. build_vendor=$2
  2291. shift; shift
  2292. # Remember, the first character of IFS is used to create $*,
  2293. # except with old shells:
  2294. build_os=$*
  2295. IFS=$ac_save_IFS
  2296. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2298. $as_echo_n "checking host system type... " >&6; }
  2299. if ${ac_cv_host+:} false; then :
  2300. $as_echo_n "(cached) " >&6
  2301. else
  2302. if test "x$host_alias" = x; then
  2303. ac_cv_host=$ac_cv_build
  2304. else
  2305. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2306. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2307. fi
  2308. fi
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2310. $as_echo "$ac_cv_host" >&6; }
  2311. case $ac_cv_host in
  2312. *-*-*) ;;
  2313. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2314. esac
  2315. host=$ac_cv_host
  2316. ac_save_IFS=$IFS; IFS='-'
  2317. set x $ac_cv_host
  2318. shift
  2319. host_cpu=$1
  2320. host_vendor=$2
  2321. shift; shift
  2322. # Remember, the first character of IFS is used to create $*,
  2323. # except with old shells:
  2324. host_os=$*
  2325. IFS=$ac_save_IFS
  2326. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2327. ac_ext=c
  2328. ac_cpp='$CPP $CPPFLAGS'
  2329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2332. if test -n "$ac_tool_prefix"; then
  2333. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2334. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if ${ac_cv_prog_CC+:} false; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$CC"; then
  2341. ac_cv_prog_CC="$CC" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. CC=$ac_cv_prog_CC
  2360. if test -n "$CC"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2362. $as_echo "$CC" >&6; }
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. fi
  2368. if test -z "$ac_cv_prog_CC"; then
  2369. ac_ct_CC=$CC
  2370. # Extract the first word of "gcc", so it can be a program name with args.
  2371. set dummy gcc; ac_word=$2
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2373. $as_echo_n "checking for $ac_word... " >&6; }
  2374. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2375. $as_echo_n "(cached) " >&6
  2376. else
  2377. if test -n "$ac_ct_CC"; then
  2378. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2379. else
  2380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381. for as_dir in $PATH
  2382. do
  2383. IFS=$as_save_IFS
  2384. test -z "$as_dir" && as_dir=.
  2385. for ac_exec_ext in '' $ac_executable_extensions; do
  2386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2387. ac_cv_prog_ac_ct_CC="gcc"
  2388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2389. break 2
  2390. fi
  2391. done
  2392. done
  2393. IFS=$as_save_IFS
  2394. fi
  2395. fi
  2396. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2397. if test -n "$ac_ct_CC"; then
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2399. $as_echo "$ac_ct_CC" >&6; }
  2400. else
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2402. $as_echo "no" >&6; }
  2403. fi
  2404. if test "x$ac_ct_CC" = x; then
  2405. CC=""
  2406. else
  2407. case $cross_compiling:$ac_tool_warned in
  2408. yes:)
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2411. ac_tool_warned=yes ;;
  2412. esac
  2413. CC=$ac_ct_CC
  2414. fi
  2415. else
  2416. CC="$ac_cv_prog_CC"
  2417. fi
  2418. if test -z "$CC"; then
  2419. if test -n "$ac_tool_prefix"; then
  2420. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2421. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2423. $as_echo_n "checking for $ac_word... " >&6; }
  2424. if ${ac_cv_prog_CC+:} false; then :
  2425. $as_echo_n "(cached) " >&6
  2426. else
  2427. if test -n "$CC"; then
  2428. ac_cv_prog_CC="$CC" # Let the user override the test.
  2429. else
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2437. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. fi
  2445. fi
  2446. CC=$ac_cv_prog_CC
  2447. if test -n "$CC"; then
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2449. $as_echo "$CC" >&6; }
  2450. else
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2452. $as_echo "no" >&6; }
  2453. fi
  2454. fi
  2455. fi
  2456. if test -z "$CC"; then
  2457. # Extract the first word of "cc", so it can be a program name with args.
  2458. set dummy cc; ac_word=$2
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2460. $as_echo_n "checking for $ac_word... " >&6; }
  2461. if ${ac_cv_prog_CC+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. else
  2464. if test -n "$CC"; then
  2465. ac_cv_prog_CC="$CC" # Let the user override the test.
  2466. else
  2467. ac_prog_rejected=no
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. for ac_exec_ext in '' $ac_executable_extensions; do
  2474. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2475. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2476. ac_prog_rejected=yes
  2477. continue
  2478. fi
  2479. ac_cv_prog_CC="cc"
  2480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2481. break 2
  2482. fi
  2483. done
  2484. done
  2485. IFS=$as_save_IFS
  2486. if test $ac_prog_rejected = yes; then
  2487. # We found a bogon in the path, so make sure we never use it.
  2488. set dummy $ac_cv_prog_CC
  2489. shift
  2490. if test $# != 0; then
  2491. # We chose a different compiler from the bogus one.
  2492. # However, it has the same basename, so the bogon will be chosen
  2493. # first if we set CC to just the basename; use the full file name.
  2494. shift
  2495. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2496. fi
  2497. fi
  2498. fi
  2499. fi
  2500. CC=$ac_cv_prog_CC
  2501. if test -n "$CC"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2503. $as_echo "$CC" >&6; }
  2504. else
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2506. $as_echo "no" >&6; }
  2507. fi
  2508. fi
  2509. if test -z "$CC"; then
  2510. if test -n "$ac_tool_prefix"; then
  2511. for ac_prog in cl.exe
  2512. do
  2513. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2514. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2516. $as_echo_n "checking for $ac_word... " >&6; }
  2517. if ${ac_cv_prog_CC+:} false; then :
  2518. $as_echo_n "(cached) " >&6
  2519. else
  2520. if test -n "$CC"; then
  2521. ac_cv_prog_CC="$CC" # Let the user override the test.
  2522. else
  2523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2524. for as_dir in $PATH
  2525. do
  2526. IFS=$as_save_IFS
  2527. test -z "$as_dir" && as_dir=.
  2528. for ac_exec_ext in '' $ac_executable_extensions; do
  2529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2530. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2532. break 2
  2533. fi
  2534. done
  2535. done
  2536. IFS=$as_save_IFS
  2537. fi
  2538. fi
  2539. CC=$ac_cv_prog_CC
  2540. if test -n "$CC"; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2542. $as_echo "$CC" >&6; }
  2543. else
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2545. $as_echo "no" >&6; }
  2546. fi
  2547. test -n "$CC" && break
  2548. done
  2549. fi
  2550. if test -z "$CC"; then
  2551. ac_ct_CC=$CC
  2552. for ac_prog in cl.exe
  2553. do
  2554. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2555. set dummy $ac_prog; ac_word=$2
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2557. $as_echo_n "checking for $ac_word... " >&6; }
  2558. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. if test -n "$ac_ct_CC"; then
  2562. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_exec_ext in '' $ac_executable_extensions; do
  2570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2571. ac_cv_prog_ac_ct_CC="$ac_prog"
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2573. break 2
  2574. fi
  2575. done
  2576. done
  2577. IFS=$as_save_IFS
  2578. fi
  2579. fi
  2580. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2581. if test -n "$ac_ct_CC"; then
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2583. $as_echo "$ac_ct_CC" >&6; }
  2584. else
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2586. $as_echo "no" >&6; }
  2587. fi
  2588. test -n "$ac_ct_CC" && break
  2589. done
  2590. if test "x$ac_ct_CC" = x; then
  2591. CC=""
  2592. else
  2593. case $cross_compiling:$ac_tool_warned in
  2594. yes:)
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2597. ac_tool_warned=yes ;;
  2598. esac
  2599. CC=$ac_ct_CC
  2600. fi
  2601. fi
  2602. fi
  2603. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2604. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2605. as_fn_error $? "no acceptable C compiler found in \$PATH
  2606. See \`config.log' for more details" "$LINENO" 5; }
  2607. # Provide some information about the compiler.
  2608. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2609. set X $ac_compile
  2610. ac_compiler=$2
  2611. for ac_option in --version -v -V -qversion; do
  2612. { { ac_try="$ac_compiler $ac_option >&5"
  2613. case "(($ac_try" in
  2614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2615. *) ac_try_echo=$ac_try;;
  2616. esac
  2617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2618. $as_echo "$ac_try_echo"; } >&5
  2619. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2620. ac_status=$?
  2621. if test -s conftest.err; then
  2622. sed '10a\
  2623. ... rest of stderr output deleted ...
  2624. 10q' conftest.err >conftest.er1
  2625. cat conftest.er1 >&5
  2626. fi
  2627. rm -f conftest.er1 conftest.err
  2628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2629. test $ac_status = 0; }
  2630. done
  2631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2632. /* end confdefs.h. */
  2633. int
  2634. main ()
  2635. {
  2636. ;
  2637. return 0;
  2638. }
  2639. _ACEOF
  2640. ac_clean_files_save=$ac_clean_files
  2641. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2642. # Try to create an executable without -o first, disregard a.out.
  2643. # It will help us diagnose broken compilers, and finding out an intuition
  2644. # of exeext.
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2646. $as_echo_n "checking whether the C compiler works... " >&6; }
  2647. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2648. # The possible output files:
  2649. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2650. ac_rmfiles=
  2651. for ac_file in $ac_files
  2652. do
  2653. case $ac_file in
  2654. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2655. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2656. esac
  2657. done
  2658. rm -f $ac_rmfiles
  2659. if { { ac_try="$ac_link_default"
  2660. case "(($ac_try" in
  2661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2662. *) ac_try_echo=$ac_try;;
  2663. esac
  2664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2665. $as_echo "$ac_try_echo"; } >&5
  2666. (eval "$ac_link_default") 2>&5
  2667. ac_status=$?
  2668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2669. test $ac_status = 0; }; then :
  2670. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2671. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2672. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2673. # so that the user can short-circuit this test for compilers unknown to
  2674. # Autoconf.
  2675. for ac_file in $ac_files ''
  2676. do
  2677. test -f "$ac_file" || continue
  2678. case $ac_file in
  2679. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2680. ;;
  2681. [ab].out )
  2682. # We found the default executable, but exeext='' is most
  2683. # certainly right.
  2684. break;;
  2685. *.* )
  2686. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2687. then :; else
  2688. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2689. fi
  2690. # We set ac_cv_exeext here because the later test for it is not
  2691. # safe: cross compilers may not add the suffix if given an `-o'
  2692. # argument, so we may need to know it at that point already.
  2693. # Even if this section looks crufty: it has the advantage of
  2694. # actually working.
  2695. break;;
  2696. * )
  2697. break;;
  2698. esac
  2699. done
  2700. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2701. else
  2702. ac_file=''
  2703. fi
  2704. if test -z "$ac_file"; then :
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2706. $as_echo "no" >&6; }
  2707. $as_echo "$as_me: failed program was:" >&5
  2708. sed 's/^/| /' conftest.$ac_ext >&5
  2709. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2710. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2711. as_fn_error 77 "C compiler cannot create executables
  2712. See \`config.log' for more details" "$LINENO" 5; }
  2713. else
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2715. $as_echo "yes" >&6; }
  2716. fi
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2718. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2720. $as_echo "$ac_file" >&6; }
  2721. ac_exeext=$ac_cv_exeext
  2722. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2723. ac_clean_files=$ac_clean_files_save
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2725. $as_echo_n "checking for suffix of executables... " >&6; }
  2726. if { { ac_try="$ac_link"
  2727. case "(($ac_try" in
  2728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2729. *) ac_try_echo=$ac_try;;
  2730. esac
  2731. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2732. $as_echo "$ac_try_echo"; } >&5
  2733. (eval "$ac_link") 2>&5
  2734. ac_status=$?
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2736. test $ac_status = 0; }; then :
  2737. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2738. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2739. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2740. # `rm'.
  2741. for ac_file in conftest.exe conftest conftest.*; do
  2742. test -f "$ac_file" || continue
  2743. case $ac_file in
  2744. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2745. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2746. break;;
  2747. * ) break;;
  2748. esac
  2749. done
  2750. else
  2751. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2752. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2753. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2754. See \`config.log' for more details" "$LINENO" 5; }
  2755. fi
  2756. rm -f conftest conftest$ac_cv_exeext
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2758. $as_echo "$ac_cv_exeext" >&6; }
  2759. rm -f conftest.$ac_ext
  2760. EXEEXT=$ac_cv_exeext
  2761. ac_exeext=$EXEEXT
  2762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2763. /* end confdefs.h. */
  2764. #include <stdio.h>
  2765. int
  2766. main ()
  2767. {
  2768. FILE *f = fopen ("conftest.out", "w");
  2769. return ferror (f) || fclose (f) != 0;
  2770. ;
  2771. return 0;
  2772. }
  2773. _ACEOF
  2774. ac_clean_files="$ac_clean_files conftest.out"
  2775. # Check that the compiler produces executables we can run. If not, either
  2776. # the compiler is broken, or we cross compile.
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2778. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2779. if test "$cross_compiling" != yes; then
  2780. { { ac_try="$ac_link"
  2781. case "(($ac_try" in
  2782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783. *) ac_try_echo=$ac_try;;
  2784. esac
  2785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2786. $as_echo "$ac_try_echo"; } >&5
  2787. (eval "$ac_link") 2>&5
  2788. ac_status=$?
  2789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2790. test $ac_status = 0; }
  2791. if { ac_try='./conftest$ac_cv_exeext'
  2792. { { case "(($ac_try" in
  2793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2794. *) ac_try_echo=$ac_try;;
  2795. esac
  2796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2797. $as_echo "$ac_try_echo"; } >&5
  2798. (eval "$ac_try") 2>&5
  2799. ac_status=$?
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2801. test $ac_status = 0; }; }; then
  2802. cross_compiling=no
  2803. else
  2804. if test "$cross_compiling" = maybe; then
  2805. cross_compiling=yes
  2806. else
  2807. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2808. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2809. as_fn_error $? "cannot run C compiled programs.
  2810. If you meant to cross compile, use \`--host'.
  2811. See \`config.log' for more details" "$LINENO" 5; }
  2812. fi
  2813. fi
  2814. fi
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2816. $as_echo "$cross_compiling" >&6; }
  2817. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2818. ac_clean_files=$ac_clean_files_save
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2820. $as_echo_n "checking for suffix of object files... " >&6; }
  2821. if ${ac_cv_objext+:} false; then :
  2822. $as_echo_n "(cached) " >&6
  2823. else
  2824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. rm -f conftest.o conftest.obj
  2834. if { { ac_try="$ac_compile"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2840. $as_echo "$ac_try_echo"; } >&5
  2841. (eval "$ac_compile") 2>&5
  2842. ac_status=$?
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2844. test $ac_status = 0; }; then :
  2845. for ac_file in conftest.o conftest.obj conftest.*; do
  2846. test -f "$ac_file" || continue;
  2847. case $ac_file in
  2848. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2849. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2850. break;;
  2851. esac
  2852. done
  2853. else
  2854. $as_echo "$as_me: failed program was:" >&5
  2855. sed 's/^/| /' conftest.$ac_ext >&5
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2859. See \`config.log' for more details" "$LINENO" 5; }
  2860. fi
  2861. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2862. fi
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2864. $as_echo "$ac_cv_objext" >&6; }
  2865. OBJEXT=$ac_cv_objext
  2866. ac_objext=$OBJEXT
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2868. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2869. if ${ac_cv_c_compiler_gnu+:} false; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2873. /* end confdefs.h. */
  2874. int
  2875. main ()
  2876. {
  2877. #ifndef __GNUC__
  2878. choke me
  2879. #endif
  2880. ;
  2881. return 0;
  2882. }
  2883. _ACEOF
  2884. if ac_fn_c_try_compile "$LINENO"; then :
  2885. ac_compiler_gnu=yes
  2886. else
  2887. ac_compiler_gnu=no
  2888. fi
  2889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2890. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2891. fi
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2893. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2894. if test $ac_compiler_gnu = yes; then
  2895. GCC=yes
  2896. else
  2897. GCC=
  2898. fi
  2899. ac_test_CFLAGS=${CFLAGS+set}
  2900. ac_save_CFLAGS=$CFLAGS
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2902. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2903. if ${ac_cv_prog_cc_g+:} false; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. ac_save_c_werror_flag=$ac_c_werror_flag
  2907. ac_c_werror_flag=yes
  2908. ac_cv_prog_cc_g=no
  2909. CFLAGS="-g"
  2910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2911. /* end confdefs.h. */
  2912. int
  2913. main ()
  2914. {
  2915. ;
  2916. return 0;
  2917. }
  2918. _ACEOF
  2919. if ac_fn_c_try_compile "$LINENO"; then :
  2920. ac_cv_prog_cc_g=yes
  2921. else
  2922. CFLAGS=""
  2923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2924. /* end confdefs.h. */
  2925. int
  2926. main ()
  2927. {
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. if ac_fn_c_try_compile "$LINENO"; then :
  2933. else
  2934. ac_c_werror_flag=$ac_save_c_werror_flag
  2935. CFLAGS="-g"
  2936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2937. /* end confdefs.h. */
  2938. int
  2939. main ()
  2940. {
  2941. ;
  2942. return 0;
  2943. }
  2944. _ACEOF
  2945. if ac_fn_c_try_compile "$LINENO"; then :
  2946. ac_cv_prog_cc_g=yes
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. fi
  2950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2951. fi
  2952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2953. ac_c_werror_flag=$ac_save_c_werror_flag
  2954. fi
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2956. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2957. if test "$ac_test_CFLAGS" = set; then
  2958. CFLAGS=$ac_save_CFLAGS
  2959. elif test $ac_cv_prog_cc_g = yes; then
  2960. if test "$GCC" = yes; then
  2961. CFLAGS="-g -O2"
  2962. else
  2963. CFLAGS="-g"
  2964. fi
  2965. else
  2966. if test "$GCC" = yes; then
  2967. CFLAGS="-O2"
  2968. else
  2969. CFLAGS=
  2970. fi
  2971. fi
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2973. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2974. if ${ac_cv_prog_cc_c89+:} false; then :
  2975. $as_echo_n "(cached) " >&6
  2976. else
  2977. ac_cv_prog_cc_c89=no
  2978. ac_save_CC=$CC
  2979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2980. /* end confdefs.h. */
  2981. #include <stdarg.h>
  2982. #include <stdio.h>
  2983. #include <sys/types.h>
  2984. #include <sys/stat.h>
  2985. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2986. struct buf { int x; };
  2987. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2988. static char *e (p, i)
  2989. char **p;
  2990. int i;
  2991. {
  2992. return p[i];
  2993. }
  2994. static char *f (char * (*g) (char **, int), char **p, ...)
  2995. {
  2996. char *s;
  2997. va_list v;
  2998. va_start (v,p);
  2999. s = g (p, va_arg (v,int));
  3000. va_end (v);
  3001. return s;
  3002. }
  3003. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3004. function prototypes and stuff, but not '\xHH' hex character constants.
  3005. These don't provoke an error unfortunately, instead are silently treated
  3006. as 'x'. The following induces an error, until -std is added to get
  3007. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3008. array size at least. It's necessary to write '\x00'==0 to get something
  3009. that's true only with -std. */
  3010. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3011. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3012. inside strings and character constants. */
  3013. #define FOO(x) 'x'
  3014. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3015. int test (int i, double x);
  3016. struct s1 {int (*f) (int a);};
  3017. struct s2 {int (*f) (double a);};
  3018. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3019. int argc;
  3020. char **argv;
  3021. int
  3022. main ()
  3023. {
  3024. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3025. ;
  3026. return 0;
  3027. }
  3028. _ACEOF
  3029. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3030. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3031. do
  3032. CC="$ac_save_CC $ac_arg"
  3033. if ac_fn_c_try_compile "$LINENO"; then :
  3034. ac_cv_prog_cc_c89=$ac_arg
  3035. fi
  3036. rm -f core conftest.err conftest.$ac_objext
  3037. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3038. done
  3039. rm -f conftest.$ac_ext
  3040. CC=$ac_save_CC
  3041. fi
  3042. # AC_CACHE_VAL
  3043. case "x$ac_cv_prog_cc_c89" in
  3044. x)
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3046. $as_echo "none needed" >&6; } ;;
  3047. xno)
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3049. $as_echo "unsupported" >&6; } ;;
  3050. *)
  3051. CC="$CC $ac_cv_prog_cc_c89"
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3053. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3054. esac
  3055. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3056. fi
  3057. ac_ext=c
  3058. ac_cpp='$CPP $CPPFLAGS'
  3059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3063. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3064. set x ${MAKE-make}
  3065. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3066. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3067. $as_echo_n "(cached) " >&6
  3068. else
  3069. cat >conftest.make <<\_ACEOF
  3070. SHELL = /bin/sh
  3071. all:
  3072. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3073. _ACEOF
  3074. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3075. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3076. *@@@%%%=?*=@@@%%%*)
  3077. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3078. *)
  3079. eval ac_cv_prog_make_${ac_make}_set=no;;
  3080. esac
  3081. rm -f conftest.make
  3082. fi
  3083. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3085. $as_echo "yes" >&6; }
  3086. SET_MAKE=
  3087. else
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3089. $as_echo "no" >&6; }
  3090. SET_MAKE="MAKE=${MAKE-make}"
  3091. fi
  3092. ac_ext=c
  3093. ac_cpp='$CPP $CPPFLAGS'
  3094. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3095. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3096. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3098. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3099. # On Suns, sometimes $CPP names a directory.
  3100. if test -n "$CPP" && test -d "$CPP"; then
  3101. CPP=
  3102. fi
  3103. if test -z "$CPP"; then
  3104. if ${ac_cv_prog_CPP+:} false; then :
  3105. $as_echo_n "(cached) " >&6
  3106. else
  3107. # Double quotes because CPP needs to be expanded
  3108. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3109. do
  3110. ac_preproc_ok=false
  3111. for ac_c_preproc_warn_flag in '' yes
  3112. do
  3113. # Use a header file that comes with gcc, so configuring glibc
  3114. # with a fresh cross-compiler works.
  3115. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3116. # <limits.h> exists even on freestanding compilers.
  3117. # On the NeXT, cc -E runs the code through the compiler's parser,
  3118. # not just through cpp. "Syntax error" is here to catch this case.
  3119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3120. /* end confdefs.h. */
  3121. #ifdef __STDC__
  3122. # include <limits.h>
  3123. #else
  3124. # include <assert.h>
  3125. #endif
  3126. Syntax error
  3127. _ACEOF
  3128. if ac_fn_c_try_cpp "$LINENO"; then :
  3129. else
  3130. # Broken: fails on valid input.
  3131. continue
  3132. fi
  3133. rm -f conftest.err conftest.i conftest.$ac_ext
  3134. # OK, works on sane cases. Now check whether nonexistent headers
  3135. # can be detected and how.
  3136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3137. /* end confdefs.h. */
  3138. #include <ac_nonexistent.h>
  3139. _ACEOF
  3140. if ac_fn_c_try_cpp "$LINENO"; then :
  3141. # Broken: success on invalid input.
  3142. continue
  3143. else
  3144. # Passes both tests.
  3145. ac_preproc_ok=:
  3146. break
  3147. fi
  3148. rm -f conftest.err conftest.i conftest.$ac_ext
  3149. done
  3150. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3151. rm -f conftest.i conftest.err conftest.$ac_ext
  3152. if $ac_preproc_ok; then :
  3153. break
  3154. fi
  3155. done
  3156. ac_cv_prog_CPP=$CPP
  3157. fi
  3158. CPP=$ac_cv_prog_CPP
  3159. else
  3160. ac_cv_prog_CPP=$CPP
  3161. fi
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3163. $as_echo "$CPP" >&6; }
  3164. ac_preproc_ok=false
  3165. for ac_c_preproc_warn_flag in '' yes
  3166. do
  3167. # Use a header file that comes with gcc, so configuring glibc
  3168. # with a fresh cross-compiler works.
  3169. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3170. # <limits.h> exists even on freestanding compilers.
  3171. # On the NeXT, cc -E runs the code through the compiler's parser,
  3172. # not just through cpp. "Syntax error" is here to catch this case.
  3173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3174. /* end confdefs.h. */
  3175. #ifdef __STDC__
  3176. # include <limits.h>
  3177. #else
  3178. # include <assert.h>
  3179. #endif
  3180. Syntax error
  3181. _ACEOF
  3182. if ac_fn_c_try_cpp "$LINENO"; then :
  3183. else
  3184. # Broken: fails on valid input.
  3185. continue
  3186. fi
  3187. rm -f conftest.err conftest.i conftest.$ac_ext
  3188. # OK, works on sane cases. Now check whether nonexistent headers
  3189. # can be detected and how.
  3190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3191. /* end confdefs.h. */
  3192. #include <ac_nonexistent.h>
  3193. _ACEOF
  3194. if ac_fn_c_try_cpp "$LINENO"; then :
  3195. # Broken: success on invalid input.
  3196. continue
  3197. else
  3198. # Passes both tests.
  3199. ac_preproc_ok=:
  3200. break
  3201. fi
  3202. rm -f conftest.err conftest.i conftest.$ac_ext
  3203. done
  3204. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3205. rm -f conftest.i conftest.err conftest.$ac_ext
  3206. if $ac_preproc_ok; then :
  3207. else
  3208. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3209. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3210. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3211. See \`config.log' for more details" "$LINENO" 5; }
  3212. fi
  3213. ac_ext=c
  3214. ac_cpp='$CPP $CPPFLAGS'
  3215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3219. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3220. if ${ac_cv_path_GREP+:} false; then :
  3221. $as_echo_n "(cached) " >&6
  3222. else
  3223. if test -z "$GREP"; then
  3224. ac_path_GREP_found=false
  3225. # Loop through the user's path and test for each of PROGNAME-LIST
  3226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3227. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3228. do
  3229. IFS=$as_save_IFS
  3230. test -z "$as_dir" && as_dir=.
  3231. for ac_prog in grep ggrep; do
  3232. for ac_exec_ext in '' $ac_executable_extensions; do
  3233. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3234. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3235. # Check for GNU ac_path_GREP and select it if it is found.
  3236. # Check for GNU $ac_path_GREP
  3237. case `"$ac_path_GREP" --version 2>&1` in
  3238. *GNU*)
  3239. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3240. *)
  3241. ac_count=0
  3242. $as_echo_n 0123456789 >"conftest.in"
  3243. while :
  3244. do
  3245. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3246. mv "conftest.tmp" "conftest.in"
  3247. cp "conftest.in" "conftest.nl"
  3248. $as_echo 'GREP' >> "conftest.nl"
  3249. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3250. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3251. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3252. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3253. # Best one so far, save it but keep looking for a better one
  3254. ac_cv_path_GREP="$ac_path_GREP"
  3255. ac_path_GREP_max=$ac_count
  3256. fi
  3257. # 10*(2^10) chars as input seems more than enough
  3258. test $ac_count -gt 10 && break
  3259. done
  3260. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3261. esac
  3262. $ac_path_GREP_found && break 3
  3263. done
  3264. done
  3265. done
  3266. IFS=$as_save_IFS
  3267. if test -z "$ac_cv_path_GREP"; then
  3268. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3269. fi
  3270. else
  3271. ac_cv_path_GREP=$GREP
  3272. fi
  3273. fi
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3275. $as_echo "$ac_cv_path_GREP" >&6; }
  3276. GREP="$ac_cv_path_GREP"
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3278. $as_echo_n "checking for egrep... " >&6; }
  3279. if ${ac_cv_path_EGREP+:} false; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3283. then ac_cv_path_EGREP="$GREP -E"
  3284. else
  3285. if test -z "$EGREP"; then
  3286. ac_path_EGREP_found=false
  3287. # Loop through the user's path and test for each of PROGNAME-LIST
  3288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3289. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3290. do
  3291. IFS=$as_save_IFS
  3292. test -z "$as_dir" && as_dir=.
  3293. for ac_prog in egrep; do
  3294. for ac_exec_ext in '' $ac_executable_extensions; do
  3295. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3296. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3297. # Check for GNU ac_path_EGREP and select it if it is found.
  3298. # Check for GNU $ac_path_EGREP
  3299. case `"$ac_path_EGREP" --version 2>&1` in
  3300. *GNU*)
  3301. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3302. *)
  3303. ac_count=0
  3304. $as_echo_n 0123456789 >"conftest.in"
  3305. while :
  3306. do
  3307. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3308. mv "conftest.tmp" "conftest.in"
  3309. cp "conftest.in" "conftest.nl"
  3310. $as_echo 'EGREP' >> "conftest.nl"
  3311. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3312. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3313. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3314. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3315. # Best one so far, save it but keep looking for a better one
  3316. ac_cv_path_EGREP="$ac_path_EGREP"
  3317. ac_path_EGREP_max=$ac_count
  3318. fi
  3319. # 10*(2^10) chars as input seems more than enough
  3320. test $ac_count -gt 10 && break
  3321. done
  3322. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3323. esac
  3324. $ac_path_EGREP_found && break 3
  3325. done
  3326. done
  3327. done
  3328. IFS=$as_save_IFS
  3329. if test -z "$ac_cv_path_EGREP"; then
  3330. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3331. fi
  3332. else
  3333. ac_cv_path_EGREP=$EGREP
  3334. fi
  3335. fi
  3336. fi
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3338. $as_echo "$ac_cv_path_EGREP" >&6; }
  3339. EGREP="$ac_cv_path_EGREP"
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3341. $as_echo_n "checking for ANSI C header files... " >&6; }
  3342. if ${ac_cv_header_stdc+:} false; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h. */
  3347. #include <stdlib.h>
  3348. #include <stdarg.h>
  3349. #include <string.h>
  3350. #include <float.h>
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. if ac_fn_c_try_compile "$LINENO"; then :
  3359. ac_cv_header_stdc=yes
  3360. else
  3361. ac_cv_header_stdc=no
  3362. fi
  3363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3364. if test $ac_cv_header_stdc = yes; then
  3365. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end confdefs.h. */
  3368. #include <string.h>
  3369. _ACEOF
  3370. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3371. $EGREP "memchr" >/dev/null 2>&1; then :
  3372. else
  3373. ac_cv_header_stdc=no
  3374. fi
  3375. rm -f conftest*
  3376. fi
  3377. if test $ac_cv_header_stdc = yes; then
  3378. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. #include <stdlib.h>
  3382. _ACEOF
  3383. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3384. $EGREP "free" >/dev/null 2>&1; then :
  3385. else
  3386. ac_cv_header_stdc=no
  3387. fi
  3388. rm -f conftest*
  3389. fi
  3390. if test $ac_cv_header_stdc = yes; then
  3391. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3392. if test "$cross_compiling" = yes; then :
  3393. :
  3394. else
  3395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3396. /* end confdefs.h. */
  3397. #include <ctype.h>
  3398. #include <stdlib.h>
  3399. #if ((' ' & 0x0FF) == 0x020)
  3400. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3401. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3402. #else
  3403. # define ISLOWER(c) \
  3404. (('a' <= (c) && (c) <= 'i') \
  3405. || ('j' <= (c) && (c) <= 'r') \
  3406. || ('s' <= (c) && (c) <= 'z'))
  3407. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3408. #endif
  3409. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3410. int
  3411. main ()
  3412. {
  3413. int i;
  3414. for (i = 0; i < 256; i++)
  3415. if (XOR (islower (i), ISLOWER (i))
  3416. || toupper (i) != TOUPPER (i))
  3417. return 2;
  3418. return 0;
  3419. }
  3420. _ACEOF
  3421. if ac_fn_c_try_run "$LINENO"; then :
  3422. else
  3423. ac_cv_header_stdc=no
  3424. fi
  3425. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3426. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3427. fi
  3428. fi
  3429. fi
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3431. $as_echo "$ac_cv_header_stdc" >&6; }
  3432. if test $ac_cv_header_stdc = yes; then
  3433. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3434. fi
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  3436. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  3437. if ${ac_cv_header_time+:} false; then :
  3438. $as_echo_n "(cached) " >&6
  3439. else
  3440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3441. /* end confdefs.h. */
  3442. #include <sys/types.h>
  3443. #include <sys/time.h>
  3444. #include <time.h>
  3445. int
  3446. main ()
  3447. {
  3448. if ((struct tm *) 0)
  3449. return 0;
  3450. ;
  3451. return 0;
  3452. }
  3453. _ACEOF
  3454. if ac_fn_c_try_compile "$LINENO"; then :
  3455. ac_cv_header_time=yes
  3456. else
  3457. ac_cv_header_time=no
  3458. fi
  3459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3460. fi
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  3462. $as_echo "$ac_cv_header_time" >&6; }
  3463. if test $ac_cv_header_time = yes; then
  3464. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  3465. fi
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3467. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  3468. if ${ac_cv_header_sys_wait_h+:} false; then :
  3469. $as_echo_n "(cached) " >&6
  3470. else
  3471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3472. /* end confdefs.h. */
  3473. #include <sys/types.h>
  3474. #include <sys/wait.h>
  3475. #ifndef WEXITSTATUS
  3476. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  3477. #endif
  3478. #ifndef WIFEXITED
  3479. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3480. #endif
  3481. int
  3482. main ()
  3483. {
  3484. int s;
  3485. wait (&s);
  3486. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3487. ;
  3488. return 0;
  3489. }
  3490. _ACEOF
  3491. if ac_fn_c_try_compile "$LINENO"; then :
  3492. ac_cv_header_sys_wait_h=yes
  3493. else
  3494. ac_cv_header_sys_wait_h=no
  3495. fi
  3496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3497. fi
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  3499. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  3500. if test $ac_cv_header_sys_wait_h = yes; then
  3501. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  3502. fi
  3503. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3504. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3505. inttypes.h stdint.h unistd.h
  3506. do :
  3507. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3508. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3509. "
  3510. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3511. cat >>confdefs.h <<_ACEOF
  3512. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3513. _ACEOF
  3514. fi
  3515. done
  3516. for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h signal.h stdint.h strings.h string.h syslog.h tcpd.h unistd.h arpa/inet.h netinet/in.h socket.h sys/types.h sys/time.h sys/resource.h sys/wait.h sys/socket.h sys/stat.h
  3517. do :
  3518. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3519. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3520. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3521. cat >>confdefs.h <<_ACEOF
  3522. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3523. _ACEOF
  3524. fi
  3525. done
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3527. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3528. if ${ac_cv_c_const+:} false; then :
  3529. $as_echo_n "(cached) " >&6
  3530. else
  3531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3532. /* end confdefs.h. */
  3533. int
  3534. main ()
  3535. {
  3536. /* FIXME: Include the comments suggested by Paul. */
  3537. #ifndef __cplusplus
  3538. /* Ultrix mips cc rejects this. */
  3539. typedef int charset[2];
  3540. const charset cs;
  3541. /* SunOS 4.1.1 cc rejects this. */
  3542. char const *const *pcpcc;
  3543. char **ppc;
  3544. /* NEC SVR4.0.2 mips cc rejects this. */
  3545. struct point {int x, y;};
  3546. static struct point const zero = {0,0};
  3547. /* AIX XL C 1.02.0.0 rejects this.
  3548. It does not let you subtract one const X* pointer from another in
  3549. an arm of an if-expression whose if-part is not a constant
  3550. expression */
  3551. const char *g = "string";
  3552. pcpcc = &g + (g ? g-g : 0);
  3553. /* HPUX 7.0 cc rejects these. */
  3554. ++pcpcc;
  3555. ppc = (char**) pcpcc;
  3556. pcpcc = (char const *const *) ppc;
  3557. { /* SCO 3.2v4 cc rejects this. */
  3558. char *t;
  3559. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3560. *t++ = 0;
  3561. if (s) return 0;
  3562. }
  3563. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3564. int x[] = {25, 17};
  3565. const int *foo = &x[0];
  3566. ++foo;
  3567. }
  3568. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3569. typedef const int *iptr;
  3570. iptr p = 0;
  3571. ++p;
  3572. }
  3573. { /* AIX XL C 1.02.0.0 rejects this saying
  3574. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3575. struct s { int j; const int *ap[3]; };
  3576. struct s *b; b->j = 5;
  3577. }
  3578. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3579. const int foo = 10;
  3580. if (!foo) return 0;
  3581. }
  3582. return !cs[0] && !zero.x;
  3583. #endif
  3584. ;
  3585. return 0;
  3586. }
  3587. _ACEOF
  3588. if ac_fn_c_try_compile "$LINENO"; then :
  3589. ac_cv_c_const=yes
  3590. else
  3591. ac_cv_c_const=no
  3592. fi
  3593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3594. fi
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3596. $as_echo "$ac_cv_c_const" >&6; }
  3597. if test $ac_cv_c_const = no; then
  3598. $as_echo "#define const /**/" >>confdefs.h
  3599. fi
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  3601. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  3602. if ${ac_cv_struct_tm+:} false; then :
  3603. $as_echo_n "(cached) " >&6
  3604. else
  3605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3606. /* end confdefs.h. */
  3607. #include <sys/types.h>
  3608. #include <time.h>
  3609. int
  3610. main ()
  3611. {
  3612. struct tm tm;
  3613. int *p = &tm.tm_sec;
  3614. return !p;
  3615. ;
  3616. return 0;
  3617. }
  3618. _ACEOF
  3619. if ac_fn_c_try_compile "$LINENO"; then :
  3620. ac_cv_struct_tm=time.h
  3621. else
  3622. ac_cv_struct_tm=sys/time.h
  3623. fi
  3624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3625. fi
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  3627. $as_echo "$ac_cv_struct_tm" >&6; }
  3628. if test $ac_cv_struct_tm = sys/time.h; then
  3629. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  3630. fi
  3631. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  3632. if test "x$ac_cv_type_mode_t" = xyes; then :
  3633. else
  3634. cat >>confdefs.h <<_ACEOF
  3635. #define mode_t int
  3636. _ACEOF
  3637. fi
  3638. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  3639. if test "x$ac_cv_type_pid_t" = xyes; then :
  3640. else
  3641. cat >>confdefs.h <<_ACEOF
  3642. #define pid_t int
  3643. _ACEOF
  3644. fi
  3645. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3646. if test "x$ac_cv_type_size_t" = xyes; then :
  3647. else
  3648. cat >>confdefs.h <<_ACEOF
  3649. #define size_t unsigned int
  3650. _ACEOF
  3651. fi
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  3653. $as_echo_n "checking return type of signal handlers... " >&6; }
  3654. if ${ac_cv_type_signal+:} false; then :
  3655. $as_echo_n "(cached) " >&6
  3656. else
  3657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3658. /* end confdefs.h. */
  3659. #include <sys/types.h>
  3660. #include <signal.h>
  3661. int
  3662. main ()
  3663. {
  3664. return *(signal (0, 0)) (0) == 1;
  3665. ;
  3666. return 0;
  3667. }
  3668. _ACEOF
  3669. if ac_fn_c_try_compile "$LINENO"; then :
  3670. ac_cv_type_signal=int
  3671. else
  3672. ac_cv_type_signal=void
  3673. fi
  3674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3675. fi
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  3677. $as_echo "$ac_cv_type_signal" >&6; }
  3678. cat >>confdefs.h <<_ACEOF
  3679. #define RETSIGTYPE $ac_cv_type_signal
  3680. _ACEOF
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  3682. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  3683. if ${ac_cv_type_uid_t+:} false; then :
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3687. /* end confdefs.h. */
  3688. #include <sys/types.h>
  3689. _ACEOF
  3690. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3691. $EGREP "uid_t" >/dev/null 2>&1; then :
  3692. ac_cv_type_uid_t=yes
  3693. else
  3694. ac_cv_type_uid_t=no
  3695. fi
  3696. rm -f conftest*
  3697. fi
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  3699. $as_echo "$ac_cv_type_uid_t" >&6; }
  3700. if test $ac_cv_type_uid_t = no; then
  3701. $as_echo "#define uid_t int" >>confdefs.h
  3702. $as_echo "#define gid_t int" >>confdefs.h
  3703. fi
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
  3705. $as_echo_n "checking type of array argument to getgroups... " >&6; }
  3706. if ${ac_cv_type_getgroups+:} false; then :
  3707. $as_echo_n "(cached) " >&6
  3708. else
  3709. if test "$cross_compiling" = yes; then :
  3710. ac_cv_type_getgroups=cross
  3711. else
  3712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3713. /* end confdefs.h. */
  3714. /* Thanks to Mike Rendell for this test. */
  3715. $ac_includes_default
  3716. #define NGID 256
  3717. #undef MAX
  3718. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  3719. int
  3720. main ()
  3721. {
  3722. gid_t gidset[NGID];
  3723. int i, n;
  3724. union { gid_t gval; long int lval; } val;
  3725. val.lval = -1;
  3726. for (i = 0; i < NGID; i++)
  3727. gidset[i] = val.gval;
  3728. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  3729. gidset);
  3730. /* Exit non-zero if getgroups seems to require an array of ints. This
  3731. happens when gid_t is short int but getgroups modifies an array
  3732. of ints. */
  3733. return n > 0 && gidset[n] != val.gval;
  3734. }
  3735. _ACEOF
  3736. if ac_fn_c_try_run "$LINENO"; then :
  3737. ac_cv_type_getgroups=gid_t
  3738. else
  3739. ac_cv_type_getgroups=int
  3740. fi
  3741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3742. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3743. fi
  3744. if test $ac_cv_type_getgroups = cross; then
  3745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3746. /* end confdefs.h. */
  3747. #include <unistd.h>
  3748. _ACEOF
  3749. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3750. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
  3751. ac_cv_type_getgroups=gid_t
  3752. else
  3753. ac_cv_type_getgroups=int
  3754. fi
  3755. rm -f conftest*
  3756. fi
  3757. fi
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
  3759. $as_echo "$ac_cv_type_getgroups" >&6; }
  3760. cat >>confdefs.h <<_ACEOF
  3761. #define GETGROUPS_T $ac_cv_type_getgroups
  3762. _ACEOF
  3763. # The cast to long int works around a bug in the HP C Compiler
  3764. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3765. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3766. # This bug is HP SR number 8606223364.
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3768. $as_echo_n "checking size of int... " >&6; }
  3769. if ${ac_cv_sizeof_int+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3773. else
  3774. if test "$ac_cv_type_int" = yes; then
  3775. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3776. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3777. as_fn_error 77 "cannot compute sizeof (int)
  3778. See \`config.log' for more details" "$LINENO" 5; }
  3779. else
  3780. ac_cv_sizeof_int=0
  3781. fi
  3782. fi
  3783. fi
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3785. $as_echo "$ac_cv_sizeof_int" >&6; }
  3786. cat >>confdefs.h <<_ACEOF
  3787. #define SIZEOF_INT $ac_cv_sizeof_int
  3788. _ACEOF
  3789. # The cast to long int works around a bug in the HP C Compiler
  3790. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3791. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3792. # This bug is HP SR number 8606223364.
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  3794. $as_echo_n "checking size of short... " >&6; }
  3795. if ${ac_cv_sizeof_short+:} false; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  3799. else
  3800. if test "$ac_cv_type_short" = yes; then
  3801. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3803. as_fn_error 77 "cannot compute sizeof (short)
  3804. See \`config.log' for more details" "$LINENO" 5; }
  3805. else
  3806. ac_cv_sizeof_short=0
  3807. fi
  3808. fi
  3809. fi
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  3811. $as_echo "$ac_cv_sizeof_short" >&6; }
  3812. cat >>confdefs.h <<_ACEOF
  3813. #define SIZEOF_SHORT $ac_cv_sizeof_short
  3814. _ACEOF
  3815. # The cast to long int works around a bug in the HP C Compiler
  3816. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3817. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3818. # This bug is HP SR number 8606223364.
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3820. $as_echo_n "checking size of long... " >&6; }
  3821. if ${ac_cv_sizeof_long+:} false; then :
  3822. $as_echo_n "(cached) " >&6
  3823. else
  3824. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3825. else
  3826. if test "$ac_cv_type_long" = yes; then
  3827. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3828. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3829. as_fn_error 77 "cannot compute sizeof (long)
  3830. See \`config.log' for more details" "$LINENO" 5; }
  3831. else
  3832. ac_cv_sizeof_long=0
  3833. fi
  3834. fi
  3835. fi
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3837. $as_echo "$ac_cv_sizeof_long" >&6; }
  3838. cat >>confdefs.h <<_ACEOF
  3839. #define SIZEOF_LONG $ac_cv_sizeof_long
  3840. _ACEOF
  3841. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  3842. if test "x$ac_cv_type_uint32_t" = xyes; then :
  3843. else
  3844. cat >>confdefs.h <<_ACEOF
  3845. #define uint32_t unsigned int
  3846. _ACEOF
  3847. fi
  3848. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  3849. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  3850. else
  3851. cat >>confdefs.h <<_ACEOF
  3852. #define u_int32_t unsigned int
  3853. _ACEOF
  3854. fi
  3855. if test "$ac_cv_type_u_int32_t" = no ; then
  3856. if test "$ac_cv_type_u_int32_t" = yes ; then
  3857. $as_echo "#define U_INT32_T_IS_UINT32_T 1" >>confdefs.h
  3858. else
  3859. if test "$ac_cv_sizeof_int" = 4 ; then
  3860. $as_echo "#define U_INT32_T_IS_UINT 1" >>confdefs.h
  3861. else
  3862. if test "$ac_cv_sizeof_long" = 4 ; then
  3863. $as_echo "#define U_INT32_T_IS_ULONG 1" >>confdefs.h
  3864. else
  3865. if test "$ac_cv_sizeof_short" = 4 ; then
  3866. $as_echo "#define U_INT32_T_IS_USHORT 1" >>confdefs.h
  3867. fi
  3868. fi
  3869. fi
  3870. fi
  3871. fi
  3872. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  3873. if test "x$ac_cv_type_int32_t" = xyes; then :
  3874. else
  3875. cat >>confdefs.h <<_ACEOF
  3876. #define int32_t int
  3877. _ACEOF
  3878. fi
  3879. if test "$ac_cv_type_int32_t" = no ; then
  3880. if test "$ac_cv_sizeof_int" = 4 ; then
  3881. $as_echo "#define INT32_T_IS_UINT 1" >>confdefs.h
  3882. else
  3883. if test "$ac_cv_sizeof_long" = 4 ; then
  3884. $as_echo "#define INT32_T_IS_ULONG 1" >>confdefs.h
  3885. else
  3886. if test "$ac_cv_sizeof_short" = 4 ; then
  3887. $as_echo "#define INT32_T_IS_USHORT 1" >>confdefs.h
  3888. fi
  3889. fi
  3890. fi
  3891. fi
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  3893. $as_echo_n "checking for va_copy... " >&6; }
  3894. if ${ac_cv_HAVE_VA_COPY+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3898. /* end confdefs.h. */
  3899. #include <stdarg.h>
  3900. va_list ap1,ap2;
  3901. int
  3902. main ()
  3903. {
  3904. va_copy(ap1,ap2);
  3905. ;
  3906. return 0;
  3907. }
  3908. _ACEOF
  3909. if ac_fn_c_try_link "$LINENO"; then :
  3910. ac_cv_HAVE_VA_COPY=yes
  3911. else
  3912. ac_cv_HAVE_VA_COPY=no
  3913. fi
  3914. rm -f core conftest.err conftest.$ac_objext \
  3915. conftest$ac_exeext conftest.$ac_ext
  3916. fi
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_VA_COPY" >&5
  3918. $as_echo "$ac_cv_HAVE_VA_COPY" >&6; }
  3919. if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then
  3920. $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
  3921. else
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
  3923. $as_echo_n "checking for __va_copy... " >&6; }
  3924. if ${ac_cv_HAVE___VA_COPY+:} false; then :
  3925. $as_echo_n "(cached) " >&6
  3926. else
  3927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3928. /* end confdefs.h. */
  3929. #include <stdarg.h>
  3930. va_list ap1,ap2;
  3931. int
  3932. main ()
  3933. {
  3934. __va_copy(ap1,ap2);
  3935. ;
  3936. return 0;
  3937. }
  3938. _ACEOF
  3939. if ac_fn_c_try_link "$LINENO"; then :
  3940. ac_cv_HAVE___VA_COPY=yes
  3941. else
  3942. ac_cv_HAVE___VA_COPY=no
  3943. fi
  3944. rm -f core conftest.err conftest.$ac_objext \
  3945. conftest$ac_exeext conftest.$ac_ext
  3946. fi
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE___VA_COPY" >&5
  3948. $as_echo "$ac_cv_HAVE___VA_COPY" >&6; }
  3949. if test x"$ac_cv_HAVE___VA_COPY" = x"yes"; then
  3950. $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
  3951. fi
  3952. fi
  3953. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  3954. if test "x$ac_cv_func_vsnprintf" = xyes; then :
  3955. else
  3956. SNPRINTF_O=./snprintf.o
  3957. fi
  3958. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  3959. if test "x$ac_cv_func_snprintf" = xyes; then :
  3960. else
  3961. SNPRINTF_O=./snprintf.o
  3962. fi
  3963. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  3964. if test "x$ac_cv_func_asprintf" = xyes; then :
  3965. else
  3966. SNPRINTF_O=./snprintf.o
  3967. fi
  3968. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  3969. if test "x$ac_cv_func_vasprintf" = xyes; then :
  3970. else
  3971. SNPRINTF_O=./snprintf.o
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
  3974. $as_echo_n "checking for C99 vsnprintf... " >&6; }
  3975. if ${ac_cv_HAVE_C99_VSNPRINTF+:} false; then :
  3976. $as_echo_n "(cached) " >&6
  3977. else
  3978. if test "$cross_compiling" = yes; then :
  3979. ac_cv_HAVE_C99_VSNPRINTF=cross
  3980. else
  3981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3982. /* end confdefs.h. */
  3983. #include <sys/types.h>
  3984. #include <stdarg.h>
  3985. void foo(const char *format, ...) {
  3986. va_list ap;
  3987. int len;
  3988. char buf[5];
  3989. va_start(ap, format);
  3990. len = vsnprintf(buf, 0, format, ap);
  3991. va_end(ap);
  3992. if (len != 5) exit(1);
  3993. va_start(ap, format);
  3994. len = vsnprintf(0, 0, format, ap);
  3995. va_end(ap);
  3996. if (len != 5) exit(1);
  3997. if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
  3998. exit(0);
  3999. }
  4000. main() { foo("hello"); }
  4001. _ACEOF
  4002. if ac_fn_c_try_run "$LINENO"; then :
  4003. ac_cv_HAVE_C99_VSNPRINTF=yes
  4004. else
  4005. ac_cv_HAVE_C99_VSNPRINTF=no
  4006. fi
  4007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4009. fi
  4010. fi
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_C99_VSNPRINTF" >&5
  4012. $as_echo "$ac_cv_HAVE_C99_VSNPRINTF" >&6; }
  4013. if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
  4014. $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
  4015. fi
  4016. for ac_func in getopt_long
  4017. do :
  4018. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  4019. if test "x$ac_cv_func_getopt_long" = xyes; then :
  4020. cat >>confdefs.h <<_ACEOF
  4021. #define HAVE_GETOPT_LONG 1
  4022. _ACEOF
  4023. else
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -liberty" >&5
  4025. $as_echo_n "checking for getopt_long in -liberty... " >&6; }
  4026. if ${ac_cv_lib_iberty_getopt_long+:} false; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. ac_check_lib_save_LIBS=$LIBS
  4030. LIBS="-liberty $LIBS"
  4031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4032. /* end confdefs.h. */
  4033. /* Override any GCC internal prototype to avoid an error.
  4034. Use char because int might match the return type of a GCC
  4035. builtin and then its argument prototype would still apply. */
  4036. #ifdef __cplusplus
  4037. extern "C"
  4038. #endif
  4039. char getopt_long ();
  4040. int
  4041. main ()
  4042. {
  4043. return getopt_long ();
  4044. ;
  4045. return 0;
  4046. }
  4047. _ACEOF
  4048. if ac_fn_c_try_link "$LINENO"; then :
  4049. ac_cv_lib_iberty_getopt_long=yes
  4050. else
  4051. ac_cv_lib_iberty_getopt_long=no
  4052. fi
  4053. rm -f core conftest.err conftest.$ac_objext \
  4054. conftest$ac_exeext conftest.$ac_ext
  4055. LIBS=$ac_check_lib_save_LIBS
  4056. fi
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_getopt_long" >&5
  4058. $as_echo "$ac_cv_lib_iberty_getopt_long" >&6; }
  4059. if test "x$ac_cv_lib_iberty_getopt_long" = xyes; then :
  4060. OTHERLIBS="$OTHERLIBS -liberty"
  4061. fi
  4062. fi
  4063. done
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4065. $as_echo_n "checking for main in -lnsl... " >&6; }
  4066. if ${ac_cv_lib_nsl_main+:} false; then :
  4067. $as_echo_n "(cached) " >&6
  4068. else
  4069. ac_check_lib_save_LIBS=$LIBS
  4070. LIBS="-lnsl $LIBS"
  4071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4072. /* end confdefs.h. */
  4073. int
  4074. main ()
  4075. {
  4076. return main ();
  4077. ;
  4078. return 0;
  4079. }
  4080. _ACEOF
  4081. if ac_fn_c_try_link "$LINENO"; then :
  4082. ac_cv_lib_nsl_main=yes
  4083. else
  4084. ac_cv_lib_nsl_main=no
  4085. fi
  4086. rm -f core conftest.err conftest.$ac_objext \
  4087. conftest$ac_exeext conftest.$ac_ext
  4088. LIBS=$ac_check_lib_save_LIBS
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4091. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4092. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4093. SOCKETLIBS="$SOCKETLIBS -lnsl"
  4094. fi
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4096. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4097. if ${ac_cv_lib_socket_socket+:} false; then :
  4098. $as_echo_n "(cached) " >&6
  4099. else
  4100. ac_check_lib_save_LIBS=$LIBS
  4101. LIBS="-lsocket $LIBS"
  4102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4103. /* end confdefs.h. */
  4104. /* Override any GCC internal prototype to avoid an error.
  4105. Use char because int might match the return type of a GCC
  4106. builtin and then its argument prototype would still apply. */
  4107. #ifdef __cplusplus
  4108. extern "C"
  4109. #endif
  4110. char socket ();
  4111. int
  4112. main ()
  4113. {
  4114. return socket ();
  4115. ;
  4116. return 0;
  4117. }
  4118. _ACEOF
  4119. if ac_fn_c_try_link "$LINENO"; then :
  4120. ac_cv_lib_socket_socket=yes
  4121. else
  4122. ac_cv_lib_socket_socket=no
  4123. fi
  4124. rm -f core conftest.err conftest.$ac_objext \
  4125. conftest$ac_exeext conftest.$ac_ext
  4126. LIBS=$ac_check_lib_save_LIBS
  4127. fi
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4129. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4130. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4131. SOCKETLIBS="$SOCKETLIBS -lsocket"
  4132. fi
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwrap" >&5
  4134. $as_echo_n "checking for main in -lwrap... " >&6; }
  4135. if ${ac_cv_lib_wrap_main+:} false; then :
  4136. $as_echo_n "(cached) " >&6
  4137. else
  4138. ac_check_lib_save_LIBS=$LIBS
  4139. LIBS="-lwrap $LIBS"
  4140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4141. /* end confdefs.h. */
  4142. int
  4143. main ()
  4144. {
  4145. return main ();
  4146. ;
  4147. return 0;
  4148. }
  4149. _ACEOF
  4150. if ac_fn_c_try_link "$LINENO"; then :
  4151. ac_cv_lib_wrap_main=yes
  4152. else
  4153. ac_cv_lib_wrap_main=no
  4154. fi
  4155. rm -f core conftest.err conftest.$ac_objext \
  4156. conftest$ac_exeext conftest.$ac_ext
  4157. LIBS=$ac_check_lib_save_LIBS
  4158. fi
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_main" >&5
  4160. $as_echo "$ac_cv_lib_wrap_main" >&6; }
  4161. if test "x$ac_cv_lib_wrap_main" = xyes; then :
  4162. LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
  4163. $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
  4164. fi
  4165. for ac_func in strdup strstr strtoul initgroups closesocket
  4166. do :
  4167. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4168. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4169. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4170. cat >>confdefs.h <<_ACEOF
  4171. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4172. _ACEOF
  4173. fi
  4174. done
  4175. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  4176. #include <sys/socket.h>
  4177. "
  4178. if test "x$ac_cv_type_socklen_t" = xyes; then :
  4179. else
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  4181. $as_echo_n "checking for socklen_t equivalent... " >&6; }
  4182. if ${curl_cv_socklen_t_equiv+:} false; then :
  4183. $as_echo_n "(cached) " >&6
  4184. else
  4185. # Systems have either "struct sockaddr *" or
  4186. # "void *" as the second argument to getpeername
  4187. curl_cv_socklen_t_equiv=
  4188. for arg2 in "struct sockaddr" void; do
  4189. for t in int size_t unsigned long "unsigned long"; do
  4190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4191. /* end confdefs.h. */
  4192. #ifdef HAVE_SYS_TYPES_H
  4193. #include <sys/types.h>
  4194. #endif
  4195. #ifdef HAVE_SYS_SOCKET_H
  4196. #include <sys/socket.h>
  4197. #endif
  4198. int getpeername (int, $arg2 *, $t *);
  4199. int
  4200. main ()
  4201. {
  4202. $t len;
  4203. getpeername(0,0,&len);
  4204. ;
  4205. return 0;
  4206. }
  4207. _ACEOF
  4208. if ac_fn_c_try_compile "$LINENO"; then :
  4209. curl_cv_socklen_t_equiv="$t"
  4210. break
  4211. fi
  4212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4213. done
  4214. done
  4215. if test "x$curl_cv_socklen_t_equiv" = x; then
  4216. as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  4217. fi
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
  4220. $as_echo "$curl_cv_socklen_t_equiv" >&6; }
  4221. cat >>confdefs.h <<_ACEOF
  4222. #define socklen_t $curl_cv_socklen_t_equiv
  4223. _ACEOF
  4224. fi
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket size" >&5
  4226. $as_echo_n "checking for type of socket size... " >&6; }
  4227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h. */
  4229. #include <stdlib.h>
  4230. #include <sys/types.h>
  4231. #include <sys/socket.h>
  4232. int
  4233. main ()
  4234. {
  4235. int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
  4236. ;
  4237. return 0;
  4238. }
  4239. _ACEOF
  4240. if ac_fn_c_try_compile "$LINENO"; then :
  4241. $as_echo "#define SOCKET_SIZE_TYPE size_t" >>confdefs.h
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
  4243. $as_echo "size_t" >&6; }
  4244. else
  4245. $as_echo "#define SOCKET_SIZE_TYPE int" >>confdefs.h
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
  4247. $as_echo "int" >&6; }
  4248. fi
  4249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4250. #AC_CHECK_TYPE(socklen_t,int,
  4251. # AC_DEFINE(socklen_t,int,
  4252. # Define to `int' if <sys/socket.h> does not define.),[
  4253. # #ifdef HAVE_SYS_TYPES_H
  4254. # #include <sys/types.h>
  4255. # #endif
  4256. # #ifdef HAVE_SYS_SOCKET_H
  4257. # #include <sys/socket.h>
  4258. # #endif
  4259. # ])
  4260. # Check whether --enable-ssl was given.
  4261. if test "${enable_ssl+set}" = set; then :
  4262. enableval=$enable_ssl;
  4263. if test x$enableval = xyes; then
  4264. check_for_ssl=yes
  4265. else
  4266. check_for_ssl=no
  4267. fi
  4268. else
  4269. check_for_ssl=yes
  4270. fi
  4271. ssl_dir=
  4272. ssl_inc_dir=
  4273. ssl_lib_dir=
  4274. # Check whether --with-ssl was given.
  4275. if test "${with_ssl+set}" = set; then :
  4276. withval=$with_ssl;
  4277. ssl_dir=$withval
  4278. fi
  4279. # Check whether --with-ssl-inc was given.
  4280. if test "${with_ssl_inc+set}" = set; then :
  4281. withval=$with_ssl_inc;
  4282. ssl_inc_dir=$withval
  4283. fi
  4284. # Check whether --with-ssl-lib was given.
  4285. if test "${with_ssl_lib+set}" = set; then :
  4286. withval=$with_ssl_lib;
  4287. ssl_lib_dir=$withval
  4288. fi
  4289. # Check whether --with-kerberos-inc was given.
  4290. if test "${with_kerberos_inc+set}" = set; then :
  4291. withval=$with_kerberos_inc;
  4292. kerberos_inc_dir=$withval
  4293. fi
  4294. if test x$check_for_ssl = xyes; then
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL headers" >&5
  4296. $as_echo_n "checking for SSL headers... " >&6; }
  4297. found_ssl=no
  4298. for dir in $ssl_inc_dir $ssl_dir /usr/local/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr /usr/freeware/lib/openssl /usr/sfw/include; do
  4299. ssldir="$dir"
  4300. if test -f "$dir/include/openssl/ssl.h"; then
  4301. found_ssl=yes
  4302. CFLAGS="$CFLAGS -I$dir/include/openssl -I$ssldir/include"
  4303. sslincdir="$dir/include/openssl"
  4304. break
  4305. fi
  4306. if test -f "$dir/include/ssl.h"; then
  4307. found_ssl=yes
  4308. CFLAGS="$CFLAGS -I$dir/include"
  4309. sslincdir="$dir/include"
  4310. break
  4311. fi
  4312. if test -f "$dir/ssl.h"; then
  4313. found_ssl=yes
  4314. CFLAGS="$CFLAGS -I$dir"
  4315. sslincdir="$dir"
  4316. ssldir="$dir/.."
  4317. break
  4318. fi
  4319. if test -f "$dir/openssl/ssl.h"; then
  4320. found_ssl=yes
  4321. CFLAGS="$CFLAGS -I$dir/openssl"
  4322. sslincdir="$dir/openssl"
  4323. ssldir="$dir/.."
  4324. break
  4325. fi
  4326. done
  4327. if test x_$found_ssl != x_yes; then
  4328. as_fn_error $? "Cannot find ssl headers" "$LINENO" 5
  4329. else
  4330. printf "SSL headers found in $ssldir\n";
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL libraries" >&5
  4332. $as_echo_n "checking for SSL libraries... " >&6; }
  4333. found_ssl=no
  4334. for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/local/lib /usr/lib/ssl /usr/ssl/lib /usr/openssl/lib /usr/pkg/lib /usr/freeware/lib/openssl /usr/sfw/lib /opt/freeware/lib; do
  4335. ssllibdir="$dir"
  4336. if test "`uname -s`" == "Darwin" ; then
  4337. soext="dylib"
  4338. else
  4339. soext="so"
  4340. fi
  4341. if test -f "$dir/libssl.$soext"; then
  4342. found_ssl=yes
  4343. break
  4344. fi
  4345. done
  4346. if test x_$found_ssl != x_yes; then
  4347. as_fn_error $? "Cannot find ssl libraries" "$LINENO" 5
  4348. else
  4349. printf "SSL libraries found in $ssllibdir\n";
  4350. LDFLAGS="$LDFLAGS -L$ssllibdir";
  4351. LIBS="$LIBS -lssl -lcrypto";
  4352. cat >>confdefs.h <<_ACEOF
  4353. #define HAVE_SSL 1
  4354. _ACEOF
  4355. echo ""
  4356. echo "*** Generating DH Parameters for SSL/TLS ***"
  4357. if test -f "$ssldir/sbin/openssl"; then
  4358. sslbin=$ssldir/sbin/openssl
  4359. else
  4360. sslbin=$ssldir/bin/openssl
  4361. fi
  4362. # awk to strip off meta data at bottom of dhparam output
  4363. $sslbin dhparam -C 512 | awk '/^-----/ {exit} {print}' > include/dh.h
  4364. fi
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos include files" >&5
  4367. $as_echo_n "checking for Kerberos include files... " >&6; }
  4368. found_kerberos=no
  4369. for dir in $kerberos_inc_dir /usr/kerberos/include; do
  4370. kerbdir="$dir"
  4371. if test -f "$dir/krb5.h"; then
  4372. found_kerberos=yes
  4373. CFLAGS="$CFLAGS -I$kerbdir"
  4374. cat >>confdefs.h <<_ACEOF
  4375. #define HAVE_KRB5_H 1
  4376. _ACEOF
  4377. break
  4378. fi
  4379. done
  4380. if test x_$found_kerberos != x_yes; then
  4381. printf "could not find include files\n";
  4382. else
  4383. printf "found Kerberos include files in $kerbdir\n";
  4384. fi
  4385. fi
  4386. # Check whether --with-log_facility was given.
  4387. if test "${with_log_facility+set}" = set; then :
  4388. withval=$with_log_facility; log_facility=$withval
  4389. else
  4390. log_facility=daemon
  4391. fi
  4392. cat >>confdefs.h <<_ACEOF
  4393. #define NRPE_LOG_FACILITY "$log_facility"
  4394. _ACEOF
  4395. # Check whether --with-nrpe_user was given.
  4396. if test "${with_nrpe_user+set}" = set; then :
  4397. withval=$with_nrpe_user; nrpe_user=$withval
  4398. else
  4399. nrpe_user=nagios
  4400. fi
  4401. # Check whether --with-nrpe_group was given.
  4402. if test "${with_nrpe_group+set}" = set; then :
  4403. withval=$with_nrpe_group; nrpe_group=$withval
  4404. else
  4405. nrpe_group=nagios
  4406. fi
  4407. # Check whether --with-nrpe_port was given.
  4408. if test "${with_nrpe_port+set}" = set; then :
  4409. withval=$with_nrpe_port; nrpe_port=$withval
  4410. else
  4411. nrpe_port=5666
  4412. fi
  4413. NRPE_INSTALL_OPTS="-o $nrpe_user -g $nrpe_group"
  4414. cat >>confdefs.h <<_ACEOF
  4415. #define DEFAULT_SERVER_PORT $nrpe_port
  4416. _ACEOF
  4417. # Check whether --with-nagios_user was given.
  4418. if test "${with_nagios_user+set}" = set; then :
  4419. withval=$with_nagios_user; nagios_user=$withval
  4420. else
  4421. nagios_user=nagios
  4422. fi
  4423. # Check whether --with-nagios_group was given.
  4424. if test "${with_nagios_group+set}" = set; then :
  4425. withval=$with_nagios_group; nagios_group=$withval
  4426. else
  4427. nagios_group=nagios
  4428. fi
  4429. NAGIOS_INSTALL_OPTS="-o $nagios_user -g $nagios_group"
  4430. # Determine target OS, version and architecture for package build macros
  4431. if test "x$target_ver" = "x" ; then
  4432. TARGET_VER=`uname -r`
  4433. else
  4434. TARGET_VER=$target_ver
  4435. fi
  4436. if test "x$target_os" = "x" ; then
  4437. TARGET_OS=`uname -s`
  4438. else
  4439. TARGET_OS=$target_os
  4440. fi
  4441. if test "x$target_cpu" = "x" ; then
  4442. TARGET_ARCH=`uname -p`
  4443. else
  4444. TARGET_ARCH=$target_cpu
  4445. fi
  4446. TARGET_PLATFORM=""
  4447. if test "x$TARGET_OS" = "xSunOS" ; then
  4448. if test "x$TARGET_VER" = "x5.10" ; then
  4449. TARGET_PLATFORM="sol10"
  4450. fi
  4451. fi
  4452. # Check whether --enable-command-args was given.
  4453. if test "${enable_command_args+set}" = set; then :
  4454. enableval=$enable_command_args;
  4455. cat >>confdefs.h <<_ACEOF
  4456. #define ENABLE_COMMAND_ARGUMENTS 1
  4457. _ACEOF
  4458. fi
  4459. # Extract the first word of "perl", so it can be a program name with args.
  4460. set dummy perl; ac_word=$2
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4462. $as_echo_n "checking for $ac_word... " >&6; }
  4463. if ${ac_cv_path_PERL+:} false; then :
  4464. $as_echo_n "(cached) " >&6
  4465. else
  4466. case $PERL in
  4467. [\\/]* | ?:[\\/]*)
  4468. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4469. ;;
  4470. *)
  4471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4472. for as_dir in $PATH
  4473. do
  4474. IFS=$as_save_IFS
  4475. test -z "$as_dir" && as_dir=.
  4476. for ac_exec_ext in '' $ac_executable_extensions; do
  4477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4478. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4480. break 2
  4481. fi
  4482. done
  4483. done
  4484. IFS=$as_save_IFS
  4485. ;;
  4486. esac
  4487. fi
  4488. PERL=$ac_cv_path_PERL
  4489. if test -n "$PERL"; then
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4491. $as_echo "$PERL" >&6; }
  4492. else
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4494. $as_echo "no" >&6; }
  4495. fi
  4496. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4497. # Let make expand exec_prefix.
  4498. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4499. DEFS=-DHAVE_CONFIG_H
  4500. ac_libobjs=
  4501. ac_ltlibobjs=
  4502. U=
  4503. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4504. # 1. Remove the extension, and $U if already installed.
  4505. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4506. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4507. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4508. # will be set to the directory where LIBOBJS objects are built.
  4509. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4510. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4511. done
  4512. LIBOBJS=$ac_libobjs
  4513. LTLIBOBJS=$ac_ltlibobjs
  4514. : "${CONFIG_STATUS=./config.status}"
  4515. ac_write_fail=0
  4516. ac_clean_files_save=$ac_clean_files
  4517. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4519. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4520. as_write_fail=0
  4521. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4522. #! $SHELL
  4523. # Generated by $as_me.
  4524. # Run this file to recreate the current configuration.
  4525. # Compiler output produced by configure, useful for debugging
  4526. # configure, is in config.log if it exists.
  4527. debug=false
  4528. ac_cs_recheck=false
  4529. ac_cs_silent=false
  4530. SHELL=\${CONFIG_SHELL-$SHELL}
  4531. export SHELL
  4532. _ASEOF
  4533. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4534. ## -------------------- ##
  4535. ## M4sh Initialization. ##
  4536. ## -------------------- ##
  4537. # Be more Bourne compatible
  4538. DUALCASE=1; export DUALCASE # for MKS sh
  4539. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4540. emulate sh
  4541. NULLCMD=:
  4542. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4543. # is contrary to our usage. Disable this feature.
  4544. alias -g '${1+"$@"}'='"$@"'
  4545. setopt NO_GLOB_SUBST
  4546. else
  4547. case `(set -o) 2>/dev/null` in #(
  4548. *posix*) :
  4549. set -o posix ;; #(
  4550. *) :
  4551. ;;
  4552. esac
  4553. fi
  4554. as_nl='
  4555. '
  4556. export as_nl
  4557. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4558. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4559. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4560. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4561. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4562. # but without wasting forks for bash or zsh.
  4563. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4564. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4565. as_echo='print -r --'
  4566. as_echo_n='print -rn --'
  4567. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4568. as_echo='printf %s\n'
  4569. as_echo_n='printf %s'
  4570. else
  4571. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4572. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4573. as_echo_n='/usr/ucb/echo -n'
  4574. else
  4575. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4576. as_echo_n_body='eval
  4577. arg=$1;
  4578. case $arg in #(
  4579. *"$as_nl"*)
  4580. expr "X$arg" : "X\\(.*\\)$as_nl";
  4581. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4582. esac;
  4583. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4584. '
  4585. export as_echo_n_body
  4586. as_echo_n='sh -c $as_echo_n_body as_echo'
  4587. fi
  4588. export as_echo_body
  4589. as_echo='sh -c $as_echo_body as_echo'
  4590. fi
  4591. # The user is always right.
  4592. if test "${PATH_SEPARATOR+set}" != set; then
  4593. PATH_SEPARATOR=:
  4594. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4595. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4596. PATH_SEPARATOR=';'
  4597. }
  4598. fi
  4599. # IFS
  4600. # We need space, tab and new line, in precisely that order. Quoting is
  4601. # there to prevent editors from complaining about space-tab.
  4602. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4603. # splitting by setting IFS to empty value.)
  4604. IFS=" "" $as_nl"
  4605. # Find who we are. Look in the path if we contain no directory separator.
  4606. as_myself=
  4607. case $0 in #((
  4608. *[\\/]* ) as_myself=$0 ;;
  4609. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4615. done
  4616. IFS=$as_save_IFS
  4617. ;;
  4618. esac
  4619. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4620. # in which case we are not to be found in the path.
  4621. if test "x$as_myself" = x; then
  4622. as_myself=$0
  4623. fi
  4624. if test ! -f "$as_myself"; then
  4625. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4626. exit 1
  4627. fi
  4628. # Unset variables that we do not need and which cause bugs (e.g. in
  4629. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4630. # suppresses any "Segmentation fault" message there. '((' could
  4631. # trigger a bug in pdksh 5.2.14.
  4632. for as_var in BASH_ENV ENV MAIL MAILPATH
  4633. do eval test x\${$as_var+set} = xset \
  4634. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4635. done
  4636. PS1='$ '
  4637. PS2='> '
  4638. PS4='+ '
  4639. # NLS nuisances.
  4640. LC_ALL=C
  4641. export LC_ALL
  4642. LANGUAGE=C
  4643. export LANGUAGE
  4644. # CDPATH.
  4645. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4646. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4647. # ----------------------------------------
  4648. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4649. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4650. # script with STATUS, using 1 if that was 0.
  4651. as_fn_error ()
  4652. {
  4653. as_status=$1; test $as_status -eq 0 && as_status=1
  4654. if test "$4"; then
  4655. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4656. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4657. fi
  4658. $as_echo "$as_me: error: $2" >&2
  4659. as_fn_exit $as_status
  4660. } # as_fn_error
  4661. # as_fn_set_status STATUS
  4662. # -----------------------
  4663. # Set $? to STATUS, without forking.
  4664. as_fn_set_status ()
  4665. {
  4666. return $1
  4667. } # as_fn_set_status
  4668. # as_fn_exit STATUS
  4669. # -----------------
  4670. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4671. as_fn_exit ()
  4672. {
  4673. set +e
  4674. as_fn_set_status $1
  4675. exit $1
  4676. } # as_fn_exit
  4677. # as_fn_unset VAR
  4678. # ---------------
  4679. # Portably unset VAR.
  4680. as_fn_unset ()
  4681. {
  4682. { eval $1=; unset $1;}
  4683. }
  4684. as_unset=as_fn_unset
  4685. # as_fn_append VAR VALUE
  4686. # ----------------------
  4687. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4688. # advantage of any shell optimizations that allow amortized linear growth over
  4689. # repeated appends, instead of the typical quadratic growth present in naive
  4690. # implementations.
  4691. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4692. eval 'as_fn_append ()
  4693. {
  4694. eval $1+=\$2
  4695. }'
  4696. else
  4697. as_fn_append ()
  4698. {
  4699. eval $1=\$$1\$2
  4700. }
  4701. fi # as_fn_append
  4702. # as_fn_arith ARG...
  4703. # ------------------
  4704. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4705. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4706. # must be portable across $(()) and expr.
  4707. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4708. eval 'as_fn_arith ()
  4709. {
  4710. as_val=$(( $* ))
  4711. }'
  4712. else
  4713. as_fn_arith ()
  4714. {
  4715. as_val=`expr "$@" || test $? -eq 1`
  4716. }
  4717. fi # as_fn_arith
  4718. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4719. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4720. as_expr=expr
  4721. else
  4722. as_expr=false
  4723. fi
  4724. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4725. as_basename=basename
  4726. else
  4727. as_basename=false
  4728. fi
  4729. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4730. as_dirname=dirname
  4731. else
  4732. as_dirname=false
  4733. fi
  4734. as_me=`$as_basename -- "$0" ||
  4735. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4736. X"$0" : 'X\(//\)$' \| \
  4737. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4738. $as_echo X/"$0" |
  4739. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4740. s//\1/
  4741. q
  4742. }
  4743. /^X\/\(\/\/\)$/{
  4744. s//\1/
  4745. q
  4746. }
  4747. /^X\/\(\/\).*/{
  4748. s//\1/
  4749. q
  4750. }
  4751. s/.*/./; q'`
  4752. # Avoid depending upon Character Ranges.
  4753. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4754. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4755. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4756. as_cr_digits='0123456789'
  4757. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4758. ECHO_C= ECHO_N= ECHO_T=
  4759. case `echo -n x` in #(((((
  4760. -n*)
  4761. case `echo 'xy\c'` in
  4762. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4763. xy) ECHO_C='\c';;
  4764. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4765. ECHO_T=' ';;
  4766. esac;;
  4767. *)
  4768. ECHO_N='-n';;
  4769. esac
  4770. rm -f conf$$ conf$$.exe conf$$.file
  4771. if test -d conf$$.dir; then
  4772. rm -f conf$$.dir/conf$$.file
  4773. else
  4774. rm -f conf$$.dir
  4775. mkdir conf$$.dir 2>/dev/null
  4776. fi
  4777. if (echo >conf$$.file) 2>/dev/null; then
  4778. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4779. as_ln_s='ln -s'
  4780. # ... but there are two gotchas:
  4781. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4782. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4783. # In both cases, we have to default to `cp -p'.
  4784. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4785. as_ln_s='cp -p'
  4786. elif ln conf$$.file conf$$ 2>/dev/null; then
  4787. as_ln_s=ln
  4788. else
  4789. as_ln_s='cp -p'
  4790. fi
  4791. else
  4792. as_ln_s='cp -p'
  4793. fi
  4794. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4795. rmdir conf$$.dir 2>/dev/null
  4796. # as_fn_mkdir_p
  4797. # -------------
  4798. # Create "$as_dir" as a directory, including parents if necessary.
  4799. as_fn_mkdir_p ()
  4800. {
  4801. case $as_dir in #(
  4802. -*) as_dir=./$as_dir;;
  4803. esac
  4804. test -d "$as_dir" || eval $as_mkdir_p || {
  4805. as_dirs=
  4806. while :; do
  4807. case $as_dir in #(
  4808. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4809. *) as_qdir=$as_dir;;
  4810. esac
  4811. as_dirs="'$as_qdir' $as_dirs"
  4812. as_dir=`$as_dirname -- "$as_dir" ||
  4813. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4814. X"$as_dir" : 'X\(//\)[^/]' \| \
  4815. X"$as_dir" : 'X\(//\)$' \| \
  4816. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4817. $as_echo X"$as_dir" |
  4818. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4819. s//\1/
  4820. q
  4821. }
  4822. /^X\(\/\/\)[^/].*/{
  4823. s//\1/
  4824. q
  4825. }
  4826. /^X\(\/\/\)$/{
  4827. s//\1/
  4828. q
  4829. }
  4830. /^X\(\/\).*/{
  4831. s//\1/
  4832. q
  4833. }
  4834. s/.*/./; q'`
  4835. test -d "$as_dir" && break
  4836. done
  4837. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4838. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4839. } # as_fn_mkdir_p
  4840. if mkdir -p . 2>/dev/null; then
  4841. as_mkdir_p='mkdir -p "$as_dir"'
  4842. else
  4843. test -d ./-p && rmdir ./-p
  4844. as_mkdir_p=false
  4845. fi
  4846. if test -x / >/dev/null 2>&1; then
  4847. as_test_x='test -x'
  4848. else
  4849. if ls -dL / >/dev/null 2>&1; then
  4850. as_ls_L_option=L
  4851. else
  4852. as_ls_L_option=
  4853. fi
  4854. as_test_x='
  4855. eval sh -c '\''
  4856. if test -d "$1"; then
  4857. test -d "$1/.";
  4858. else
  4859. case $1 in #(
  4860. -*)set "./$1";;
  4861. esac;
  4862. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  4863. ???[sx]*):;;*)false;;esac;fi
  4864. '\'' sh
  4865. '
  4866. fi
  4867. as_executable_p=$as_test_x
  4868. # Sed expression to map a string onto a valid CPP name.
  4869. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4870. # Sed expression to map a string onto a valid variable name.
  4871. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4872. exec 6>&1
  4873. ## ----------------------------------- ##
  4874. ## Main body of $CONFIG_STATUS script. ##
  4875. ## ----------------------------------- ##
  4876. _ASEOF
  4877. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4878. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4879. # Save the log message, to keep $0 and so on meaningful, and to
  4880. # report actual input values of CONFIG_FILES etc. instead of their
  4881. # values after options handling.
  4882. ac_log="
  4883. This file was extended by nrpe $as_me 2.13, which was
  4884. generated by GNU Autoconf 2.68. Invocation command line was
  4885. CONFIG_FILES = $CONFIG_FILES
  4886. CONFIG_HEADERS = $CONFIG_HEADERS
  4887. CONFIG_LINKS = $CONFIG_LINKS
  4888. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4889. $ $0 $@
  4890. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4891. "
  4892. _ACEOF
  4893. case $ac_config_files in *"
  4894. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4895. esac
  4896. case $ac_config_headers in *"
  4897. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4898. esac
  4899. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4900. # Files that config.status was made for.
  4901. config_files="$ac_config_files"
  4902. config_headers="$ac_config_headers"
  4903. _ACEOF
  4904. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4905. ac_cs_usage="\
  4906. \`$as_me' instantiates files and other configuration actions
  4907. from templates according to the current configuration. Unless the files
  4908. and actions are specified as TAGs, all are instantiated by default.
  4909. Usage: $0 [OPTION]... [TAG]...
  4910. -h, --help print this help, then exit
  4911. -V, --version print version number and configuration settings, then exit
  4912. --config print configuration, then exit
  4913. -q, --quiet, --silent
  4914. do not print progress messages
  4915. -d, --debug don't remove temporary files
  4916. --recheck update $as_me by reconfiguring in the same conditions
  4917. --file=FILE[:TEMPLATE]
  4918. instantiate the configuration file FILE
  4919. --header=FILE[:TEMPLATE]
  4920. instantiate the configuration header FILE
  4921. Configuration files:
  4922. $config_files
  4923. Configuration headers:
  4924. $config_headers
  4925. Report bugs to <nagios-users@lists.sourceforge.net>.
  4926. nrpe home page: <http://www.nagios.org>."
  4927. _ACEOF
  4928. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4929. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4930. ac_cs_version="\\
  4931. nrpe config.status 2.13
  4932. configured by $0, generated by GNU Autoconf 2.68,
  4933. with options \\"\$ac_cs_config\\"
  4934. Copyright (C) 2010 Free Software Foundation, Inc.
  4935. This config.status script is free software; the Free Software Foundation
  4936. gives unlimited permission to copy, distribute and modify it."
  4937. ac_pwd='$ac_pwd'
  4938. srcdir='$srcdir'
  4939. INSTALL='$INSTALL'
  4940. test -n "\$AWK" || AWK=awk
  4941. _ACEOF
  4942. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4943. # The default lists apply if the user does not specify any file.
  4944. ac_need_defaults=:
  4945. while test $# != 0
  4946. do
  4947. case $1 in
  4948. --*=?*)
  4949. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4950. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4951. ac_shift=:
  4952. ;;
  4953. --*=)
  4954. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4955. ac_optarg=
  4956. ac_shift=:
  4957. ;;
  4958. *)
  4959. ac_option=$1
  4960. ac_optarg=$2
  4961. ac_shift=shift
  4962. ;;
  4963. esac
  4964. case $ac_option in
  4965. # Handling of the options.
  4966. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4967. ac_cs_recheck=: ;;
  4968. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4969. $as_echo "$ac_cs_version"; exit ;;
  4970. --config | --confi | --conf | --con | --co | --c )
  4971. $as_echo "$ac_cs_config"; exit ;;
  4972. --debug | --debu | --deb | --de | --d | -d )
  4973. debug=: ;;
  4974. --file | --fil | --fi | --f )
  4975. $ac_shift
  4976. case $ac_optarg in
  4977. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4978. '') as_fn_error $? "missing file argument" ;;
  4979. esac
  4980. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4981. ac_need_defaults=false;;
  4982. --header | --heade | --head | --hea )
  4983. $ac_shift
  4984. case $ac_optarg in
  4985. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4986. esac
  4987. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  4988. ac_need_defaults=false;;
  4989. --he | --h)
  4990. # Conflict between --help and --header
  4991. as_fn_error $? "ambiguous option: \`$1'
  4992. Try \`$0 --help' for more information.";;
  4993. --help | --hel | -h )
  4994. $as_echo "$ac_cs_usage"; exit ;;
  4995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4996. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4997. ac_cs_silent=: ;;
  4998. # This is an error.
  4999. -*) as_fn_error $? "unrecognized option: \`$1'
  5000. Try \`$0 --help' for more information." ;;
  5001. *) as_fn_append ac_config_targets " $1"
  5002. ac_need_defaults=false ;;
  5003. esac
  5004. shift
  5005. done
  5006. ac_configure_extra_args=
  5007. if $ac_cs_silent; then
  5008. exec 6>/dev/null
  5009. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5010. fi
  5011. _ACEOF
  5012. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5013. if \$ac_cs_recheck; then
  5014. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5015. shift
  5016. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5017. CONFIG_SHELL='$SHELL'
  5018. export CONFIG_SHELL
  5019. exec "\$@"
  5020. fi
  5021. _ACEOF
  5022. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5023. exec 5>>config.log
  5024. {
  5025. echo
  5026. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5027. ## Running $as_me. ##
  5028. _ASBOX
  5029. $as_echo "$ac_log"
  5030. } >&5
  5031. _ACEOF
  5032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5033. _ACEOF
  5034. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5035. # Handling of arguments.
  5036. for ac_config_target in $ac_config_targets
  5037. do
  5038. case $ac_config_target in
  5039. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  5040. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5041. "subst") CONFIG_FILES="$CONFIG_FILES subst" ;;
  5042. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  5043. "package/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES package/solaris/Makefile" ;;
  5044. "init-script") CONFIG_FILES="$CONFIG_FILES init-script" ;;
  5045. "init-script.debian") CONFIG_FILES="$CONFIG_FILES init-script.debian" ;;
  5046. "init-script.suse") CONFIG_FILES="$CONFIG_FILES init-script.suse" ;;
  5047. "nrpe.spec") CONFIG_FILES="$CONFIG_FILES nrpe.spec" ;;
  5048. "sample-config/nrpe.cfg") CONFIG_FILES="$CONFIG_FILES sample-config/nrpe.cfg" ;;
  5049. "sample-config/nrpe.xinetd") CONFIG_FILES="$CONFIG_FILES sample-config/nrpe.xinetd" ;;
  5050. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5051. esac
  5052. done
  5053. # If the user did not use the arguments to specify the items to instantiate,
  5054. # then the envvar interface is used. Set only those that are not.
  5055. # We use the long form for the default assignment because of an extremely
  5056. # bizarre bug on SunOS 4.1.3.
  5057. if $ac_need_defaults; then
  5058. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5059. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5060. fi
  5061. # Have a temporary directory for convenience. Make it in the build tree
  5062. # simply because there is no reason against having it here, and in addition,
  5063. # creating and moving files from /tmp can sometimes cause problems.
  5064. # Hook for its removal unless debugging.
  5065. # Note that there is a small window in which the directory will not be cleaned:
  5066. # after its creation but before its name has been assigned to `$tmp'.
  5067. $debug ||
  5068. {
  5069. tmp= ac_tmp=
  5070. trap 'exit_status=$?
  5071. : "${ac_tmp:=$tmp}"
  5072. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5073. ' 0
  5074. trap 'as_fn_exit 1' 1 2 13 15
  5075. }
  5076. # Create a (secure) tmp directory for tmp files.
  5077. {
  5078. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5079. test -d "$tmp"
  5080. } ||
  5081. {
  5082. tmp=./conf$$-$RANDOM
  5083. (umask 077 && mkdir "$tmp")
  5084. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5085. ac_tmp=$tmp
  5086. # Set up the scripts for CONFIG_FILES section.
  5087. # No need to generate them if there are no CONFIG_FILES.
  5088. # This happens for instance with `./config.status config.h'.
  5089. if test -n "$CONFIG_FILES"; then
  5090. ac_cr=`echo X | tr X '\015'`
  5091. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5092. # But we know of no other shell where ac_cr would be empty at this
  5093. # point, so we can use a bashism as a fallback.
  5094. if test "x$ac_cr" = x; then
  5095. eval ac_cr=\$\'\\r\'
  5096. fi
  5097. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5098. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5099. ac_cs_awk_cr='\\r'
  5100. else
  5101. ac_cs_awk_cr=$ac_cr
  5102. fi
  5103. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5104. _ACEOF
  5105. {
  5106. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5107. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5108. echo "_ACEOF"
  5109. } >conf$$subs.sh ||
  5110. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5111. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5112. ac_delim='%!_!# '
  5113. for ac_last_try in false false false false false :; do
  5114. . ./conf$$subs.sh ||
  5115. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5116. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5117. if test $ac_delim_n = $ac_delim_num; then
  5118. break
  5119. elif $ac_last_try; then
  5120. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5121. else
  5122. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5123. fi
  5124. done
  5125. rm -f conf$$subs.sh
  5126. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5127. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5128. _ACEOF
  5129. sed -n '
  5130. h
  5131. s/^/S["/; s/!.*/"]=/
  5132. p
  5133. g
  5134. s/^[^!]*!//
  5135. :repl
  5136. t repl
  5137. s/'"$ac_delim"'$//
  5138. t delim
  5139. :nl
  5140. h
  5141. s/\(.\{148\}\)..*/\1/
  5142. t more1
  5143. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5144. p
  5145. n
  5146. b repl
  5147. :more1
  5148. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5149. p
  5150. g
  5151. s/.\{148\}//
  5152. t nl
  5153. :delim
  5154. h
  5155. s/\(.\{148\}\)..*/\1/
  5156. t more2
  5157. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5158. p
  5159. b
  5160. :more2
  5161. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5162. p
  5163. g
  5164. s/.\{148\}//
  5165. t delim
  5166. ' <conf$$subs.awk | sed '
  5167. /^[^""]/{
  5168. N
  5169. s/\n//
  5170. }
  5171. ' >>$CONFIG_STATUS || ac_write_fail=1
  5172. rm -f conf$$subs.awk
  5173. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5174. _ACAWK
  5175. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5176. for (key in S) S_is_set[key] = 1
  5177. FS = ""
  5178. }
  5179. {
  5180. line = $ 0
  5181. nfields = split(line, field, "@")
  5182. substed = 0
  5183. len = length(field[1])
  5184. for (i = 2; i < nfields; i++) {
  5185. key = field[i]
  5186. keylen = length(key)
  5187. if (S_is_set[key]) {
  5188. value = S[key]
  5189. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5190. len += length(value) + length(field[++i])
  5191. substed = 1
  5192. } else
  5193. len += 1 + keylen
  5194. }
  5195. print line
  5196. }
  5197. _ACAWK
  5198. _ACEOF
  5199. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5200. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5201. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5202. else
  5203. cat
  5204. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5205. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5206. _ACEOF
  5207. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5208. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5209. # trailing colons and then remove the whole line if VPATH becomes empty
  5210. # (actually we leave an empty line to preserve line numbers).
  5211. if test "x$srcdir" = x.; then
  5212. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5213. h
  5214. s///
  5215. s/^/:/
  5216. s/[ ]*$/:/
  5217. s/:\$(srcdir):/:/g
  5218. s/:\${srcdir}:/:/g
  5219. s/:@srcdir@:/:/g
  5220. s/^:*//
  5221. s/:*$//
  5222. x
  5223. s/\(=[ ]*\).*/\1/
  5224. G
  5225. s/\n//
  5226. s/^[^=]*=[ ]*$//
  5227. }'
  5228. fi
  5229. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5230. fi # test -n "$CONFIG_FILES"
  5231. # Set up the scripts for CONFIG_HEADERS section.
  5232. # No need to generate them if there are no CONFIG_HEADERS.
  5233. # This happens for instance with `./config.status Makefile'.
  5234. if test -n "$CONFIG_HEADERS"; then
  5235. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5236. BEGIN {
  5237. _ACEOF
  5238. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5239. # here-document in config.status, that substitutes the proper values into
  5240. # config.h.in to produce config.h.
  5241. # Create a delimiter string that does not exist in confdefs.h, to ease
  5242. # handling of long lines.
  5243. ac_delim='%!_!# '
  5244. for ac_last_try in false false :; do
  5245. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5246. if test -z "$ac_tt"; then
  5247. break
  5248. elif $ac_last_try; then
  5249. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5250. else
  5251. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5252. fi
  5253. done
  5254. # For the awk script, D is an array of macro values keyed by name,
  5255. # likewise P contains macro parameters if any. Preserve backslash
  5256. # newline sequences.
  5257. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5258. sed -n '
  5259. s/.\{148\}/&'"$ac_delim"'/g
  5260. t rset
  5261. :rset
  5262. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5263. t def
  5264. d
  5265. :def
  5266. s/\\$//
  5267. t bsnl
  5268. s/["\\]/\\&/g
  5269. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5270. D["\1"]=" \3"/p
  5271. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5272. d
  5273. :bsnl
  5274. s/["\\]/\\&/g
  5275. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5276. D["\1"]=" \3\\\\\\n"\\/p
  5277. t cont
  5278. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5279. t cont
  5280. d
  5281. :cont
  5282. n
  5283. s/.\{148\}/&'"$ac_delim"'/g
  5284. t clear
  5285. :clear
  5286. s/\\$//
  5287. t bsnlc
  5288. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5289. d
  5290. :bsnlc
  5291. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5292. b cont
  5293. ' <confdefs.h | sed '
  5294. s/'"$ac_delim"'/"\\\
  5295. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5296. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5297. for (key in D) D_is_set[key] = 1
  5298. FS = ""
  5299. }
  5300. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5301. line = \$ 0
  5302. split(line, arg, " ")
  5303. if (arg[1] == "#") {
  5304. defundef = arg[2]
  5305. mac1 = arg[3]
  5306. } else {
  5307. defundef = substr(arg[1], 2)
  5308. mac1 = arg[2]
  5309. }
  5310. split(mac1, mac2, "(") #)
  5311. macro = mac2[1]
  5312. prefix = substr(line, 1, index(line, defundef) - 1)
  5313. if (D_is_set[macro]) {
  5314. # Preserve the white space surrounding the "#".
  5315. print prefix "define", macro P[macro] D[macro]
  5316. next
  5317. } else {
  5318. # Replace #undef with comments. This is necessary, for example,
  5319. # in the case of _POSIX_SOURCE, which is predefined and required
  5320. # on some systems where configure will not decide to define it.
  5321. if (defundef == "undef") {
  5322. print "/*", prefix defundef, macro, "*/"
  5323. next
  5324. }
  5325. }
  5326. }
  5327. { print }
  5328. _ACAWK
  5329. _ACEOF
  5330. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5331. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5332. fi # test -n "$CONFIG_HEADERS"
  5333. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5334. shift
  5335. for ac_tag
  5336. do
  5337. case $ac_tag in
  5338. :[FHLC]) ac_mode=$ac_tag; continue;;
  5339. esac
  5340. case $ac_mode$ac_tag in
  5341. :[FHL]*:*);;
  5342. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5343. :[FH]-) ac_tag=-:-;;
  5344. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5345. esac
  5346. ac_save_IFS=$IFS
  5347. IFS=:
  5348. set x $ac_tag
  5349. IFS=$ac_save_IFS
  5350. shift
  5351. ac_file=$1
  5352. shift
  5353. case $ac_mode in
  5354. :L) ac_source=$1;;
  5355. :[FH])
  5356. ac_file_inputs=
  5357. for ac_f
  5358. do
  5359. case $ac_f in
  5360. -) ac_f="$ac_tmp/stdin";;
  5361. *) # Look for the file first in the build tree, then in the source tree
  5362. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5363. # because $ac_f cannot contain `:'.
  5364. test -f "$ac_f" ||
  5365. case $ac_f in
  5366. [\\/$]*) false;;
  5367. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5368. esac ||
  5369. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5370. esac
  5371. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5372. as_fn_append ac_file_inputs " '$ac_f'"
  5373. done
  5374. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5375. # use $as_me), people would be surprised to read:
  5376. # /* config.h. Generated by config.status. */
  5377. configure_input='Generated from '`
  5378. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5379. `' by configure.'
  5380. if test x"$ac_file" != x-; then
  5381. configure_input="$ac_file. $configure_input"
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5383. $as_echo "$as_me: creating $ac_file" >&6;}
  5384. fi
  5385. # Neutralize special characters interpreted by sed in replacement strings.
  5386. case $configure_input in #(
  5387. *\&* | *\|* | *\\* )
  5388. ac_sed_conf_input=`$as_echo "$configure_input" |
  5389. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5390. *) ac_sed_conf_input=$configure_input;;
  5391. esac
  5392. case $ac_tag in
  5393. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5394. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5395. esac
  5396. ;;
  5397. esac
  5398. ac_dir=`$as_dirname -- "$ac_file" ||
  5399. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5400. X"$ac_file" : 'X\(//\)[^/]' \| \
  5401. X"$ac_file" : 'X\(//\)$' \| \
  5402. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5403. $as_echo X"$ac_file" |
  5404. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5405. s//\1/
  5406. q
  5407. }
  5408. /^X\(\/\/\)[^/].*/{
  5409. s//\1/
  5410. q
  5411. }
  5412. /^X\(\/\/\)$/{
  5413. s//\1/
  5414. q
  5415. }
  5416. /^X\(\/\).*/{
  5417. s//\1/
  5418. q
  5419. }
  5420. s/.*/./; q'`
  5421. as_dir="$ac_dir"; as_fn_mkdir_p
  5422. ac_builddir=.
  5423. case "$ac_dir" in
  5424. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5425. *)
  5426. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5427. # A ".." for each directory in $ac_dir_suffix.
  5428. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5429. case $ac_top_builddir_sub in
  5430. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5431. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5432. esac ;;
  5433. esac
  5434. ac_abs_top_builddir=$ac_pwd
  5435. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5436. # for backward compatibility:
  5437. ac_top_builddir=$ac_top_build_prefix
  5438. case $srcdir in
  5439. .) # We are building in place.
  5440. ac_srcdir=.
  5441. ac_top_srcdir=$ac_top_builddir_sub
  5442. ac_abs_top_srcdir=$ac_pwd ;;
  5443. [\\/]* | ?:[\\/]* ) # Absolute name.
  5444. ac_srcdir=$srcdir$ac_dir_suffix;
  5445. ac_top_srcdir=$srcdir
  5446. ac_abs_top_srcdir=$srcdir ;;
  5447. *) # Relative name.
  5448. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5449. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5450. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5451. esac
  5452. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5453. case $ac_mode in
  5454. :F)
  5455. #
  5456. # CONFIG_FILE
  5457. #
  5458. case $INSTALL in
  5459. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5460. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5461. esac
  5462. _ACEOF
  5463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5464. # If the template does not know about datarootdir, expand it.
  5465. # FIXME: This hack should be removed a few years after 2.60.
  5466. ac_datarootdir_hack=; ac_datarootdir_seen=
  5467. ac_sed_dataroot='
  5468. /datarootdir/ {
  5469. p
  5470. q
  5471. }
  5472. /@datadir@/p
  5473. /@docdir@/p
  5474. /@infodir@/p
  5475. /@localedir@/p
  5476. /@mandir@/p'
  5477. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5478. *datarootdir*) ac_datarootdir_seen=yes;;
  5479. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5481. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5482. _ACEOF
  5483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5484. ac_datarootdir_hack='
  5485. s&@datadir@&$datadir&g
  5486. s&@docdir@&$docdir&g
  5487. s&@infodir@&$infodir&g
  5488. s&@localedir@&$localedir&g
  5489. s&@mandir@&$mandir&g
  5490. s&\\\${datarootdir}&$datarootdir&g' ;;
  5491. esac
  5492. _ACEOF
  5493. # Neutralize VPATH when `$srcdir' = `.'.
  5494. # Shell code in configure.ac might set extrasub.
  5495. # FIXME: do we really want to maintain this feature?
  5496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5497. ac_sed_extra="$ac_vpsub
  5498. $extrasub
  5499. _ACEOF
  5500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5501. :t
  5502. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5503. s|@configure_input@|$ac_sed_conf_input|;t t
  5504. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5505. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5506. s&@srcdir@&$ac_srcdir&;t t
  5507. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5508. s&@top_srcdir@&$ac_top_srcdir&;t t
  5509. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5510. s&@builddir@&$ac_builddir&;t t
  5511. s&@abs_builddir@&$ac_abs_builddir&;t t
  5512. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5513. s&@INSTALL@&$ac_INSTALL&;t t
  5514. $ac_datarootdir_hack
  5515. "
  5516. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5517. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5518. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5519. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5520. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5521. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5523. which seems to be undefined. Please make sure it is defined" >&5
  5524. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5525. which seems to be undefined. Please make sure it is defined" >&2;}
  5526. rm -f "$ac_tmp/stdin"
  5527. case $ac_file in
  5528. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5529. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5530. esac \
  5531. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5532. ;;
  5533. :H)
  5534. #
  5535. # CONFIG_HEADER
  5536. #
  5537. if test x"$ac_file" != x-; then
  5538. {
  5539. $as_echo "/* $configure_input */" \
  5540. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5541. } >"$ac_tmp/config.h" \
  5542. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5543. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5545. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5546. else
  5547. rm -f "$ac_file"
  5548. mv "$ac_tmp/config.h" "$ac_file" \
  5549. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5550. fi
  5551. else
  5552. $as_echo "/* $configure_input */" \
  5553. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5554. || as_fn_error $? "could not create -" "$LINENO" 5
  5555. fi
  5556. ;;
  5557. esac
  5558. done # for ac_tag
  5559. as_fn_exit 0
  5560. _ACEOF
  5561. ac_clean_files=$ac_clean_files_save
  5562. test $ac_write_fail = 0 ||
  5563. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5564. # configure is writing to config.log, and then calls config.status.
  5565. # config.status does its own redirection, appending to config.log.
  5566. # Unfortunately, on DOS this fails, as config.log is still kept open
  5567. # by configure, so config.status won't be able to write to it; its
  5568. # output is simply discarded. So we exec the FD to /dev/null,
  5569. # effectively closing config.log, so it can be properly (re)opened and
  5570. # appended to by config.status. When coming back to configure, we
  5571. # need to make the FD available again.
  5572. if test "$no_create" != yes; then
  5573. ac_cs_success=:
  5574. ac_config_status_args=
  5575. test "$silent" = yes &&
  5576. ac_config_status_args="$ac_config_status_args --quiet"
  5577. exec 5>/dev/null
  5578. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5579. exec 5>>config.log
  5580. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5581. # would make configure fail if this is the last instruction.
  5582. $ac_cs_success || as_fn_exit 1
  5583. fi
  5584. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5586. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5587. fi
  5588. perl subst init-script
  5589. perl subst init-script.debian
  5590. perl subst init-script.suse
  5591. perl subst sample-config/nrpe.cfg
  5592. perl subst sample-config/nrpe.xinetd
  5593. echo ""
  5594. echo ""
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&5
  5596. $as_echo "*** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&6; }
  5597. echo ""
  5598. echo " General Options:"
  5599. echo " -------------------------"
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE port: $nrpe_port" >&5
  5601. $as_echo " NRPE port: $nrpe_port" >&6; }
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE user: $nrpe_user" >&5
  5603. $as_echo " NRPE user: $nrpe_user" >&6; }
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE group: $nrpe_group" >&5
  5605. $as_echo " NRPE group: $nrpe_group" >&6; }
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Nagios user: $nagios_user" >&5
  5607. $as_echo " Nagios user: $nagios_user" >&6; }
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Nagios group: $nagios_group" >&5
  5609. $as_echo " Nagios group: $nagios_group" >&6; }
  5610. echo ""
  5611. echo ""
  5612. echo "Review the options above for accuracy. If they look okay,"
  5613. echo "type 'make all' to compile the NRPE daemon and client."
  5614. echo ""