configure 232 KB

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