configure 235 KB

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