configure 236 KB

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