configure 232 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684
  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="$PKG_NAME"} ;; #(
  3186. gentoo) :
  3187. initdir=${initdir="/etc/init.d"}
  3188. initname=${initname="$PKG_NAME"}
  3189. initconfdir=${initconfdir="/etc/init.d"}
  3190. initconf=${initconf="$initconfdir/$PKG_NAME"} ;; #(
  3191. openrc) :
  3192. initdir=${initdir="/etc/init.d"}
  3193. initname=${initname="$PKG_NAME"}
  3194. initconfdir=${initconfdir="/etc/conf.d"}
  3195. initconf=${initconf="$initconfdir/$PKG_NAME"} ;; #(
  3196. smf*) :
  3197. if test $init_type = smf10; then
  3198. initdir=${initdir="/var/svc/manifest/network"}
  3199. else
  3200. initdir=${initdir="/lib/svc/manifest/network"}
  3201. fi
  3202. initname=${initname="$PKG_NAME.xml"}
  3203. initconfdir=unknown
  3204. initconf=unknown ;; #(
  3205. upstart) :
  3206. initdir=${initdir="/etc/init"}
  3207. initname=${initname="$PKG_NAME"}
  3208. initconfdir=${initconfdir="/etc/default"}
  3209. initconf=${initconf="$initconfdir/$PKG_NAME"} ;; #(
  3210. launchd) :
  3211. initdir=${initdir="/System/Library/LaunchDaemons"}
  3212. initname=${initname="org.nagios.$PKG_NAME.plist"} ;; #(
  3213. # initconfdir=${initconfdir="/private/etc"}
  3214. # initconf=${initconf="$initconfdir/$PKG_NAME"},
  3215. *) :
  3216. initdir=unknown
  3217. initname=unknown ;; #(
  3218. *) :
  3219. ;;
  3220. esac
  3221. #
  3222. # Inetd (per connection) scripts/files
  3223. #
  3224. case $inetd_type in #(
  3225. inetd) :
  3226. inetddir=${inetddir="/etc"}
  3227. inetdname=${inetdname="inetd.conf"} ;; #(
  3228. xinetd) :
  3229. inetddir=${inetddir="/etc/xinetd.d"}
  3230. inetdname=${inetdname="$PKG_NAME"} ;; #(
  3231. systemd) :
  3232. if test $dist_type = "debian"; then
  3233. inetddir=${inetddir="/lib/systemd/system"}
  3234. else
  3235. inetddir=${inetddir="/usr/lib/systemd/system"}
  3236. fi
  3237. netdname=${inetdname="$PKG_NAME.socket"} ;; #(
  3238. smf*) :
  3239. if test $init_type = smf10; then
  3240. inetddir=${inetddir="/var/svc/manifest/network"}
  3241. else
  3242. inetddir=${inetddir="/lib/svc/manifest/network"}
  3243. fi
  3244. inetdname=${inetdname="$PKG_NAME.xml"} ;; #(
  3245. upstart) :
  3246. inetddir=${inetddir="/etc/init"}
  3247. inetdname=${inetdname="$PKG_NAME"} ;; #(
  3248. launchd) :
  3249. inetddir=${inetddir="/System/Library/LaunchDaemons"}
  3250. inetdname=${inetdname="org.nagios.$PKG_NAME.plist"} ;; #(
  3251. *) :
  3252. inetddir=${inetddir="unknown"}
  3253. inetdname=${inetdname="unknown"} ;; #(
  3254. *) :
  3255. ;;
  3256. esac
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_method" >&5
  3258. $as_echo "$install_method" >&6; }
  3259. src_inetd=""
  3260. src_init=""
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which init file to use " >&5
  3262. $as_echo_n "checking for which init file to use ... " >&6; }
  3263. case $init_type in #(
  3264. sysv) :
  3265. if test $dist_type = debian; then
  3266. src_init=debian-init.in
  3267. else
  3268. src_init=default-init.in
  3269. fi ;; #(
  3270. systemd) :
  3271. src_init=default-service.in
  3272. src_inetd=default-service.in ;; #(
  3273. # [*bsd],
  3274. # [gentoo],
  3275. openrc) :
  3276. src_init=openrc-init.in ;; #(
  3277. smf*) :
  3278. src_init="solaris-@PKG_NAME@.xml.in"
  3279. src_inetd="solaris-@PKG_NAME@.xml.in" ;; #(
  3280. # [upstart],
  3281. launchd) :
  3282. src_init="mac-org.nagios.@PKG_NAME@.plist.in"
  3283. src_inetd="mac-org.nagios.@PKG_NAME@.plist.in" ;; #(
  3284. *) :
  3285. src_init="unknown"
  3286. ;; #(
  3287. *) :
  3288. ;;
  3289. esac
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $src_init" >&5
  3291. $as_echo "$src_init" >&6; }
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which inetd files to use " >&5
  3293. $as_echo_n "checking for which inetd files to use ... " >&6; }
  3294. if test x$src_inetd = x; then
  3295. case $inetd_type in #(
  3296. inetd) :
  3297. src_inetd=default-inetd.in ;; #(
  3298. xinetd) :
  3299. src_inetd=default-xinetd.in ;; #(
  3300. # [upstart],
  3301. *) :
  3302. src_inetd="unknown"
  3303. ;; #(
  3304. *) :
  3305. ;;
  3306. esac
  3307. fi
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $src_inetd" >&5
  3309. $as_echo "$src_inetd" >&6; }
  3310. if test x${showdirs_only} = xyes; then
  3311. ac_config_files="$ac_config_files paths"
  3312. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3313. # Let make expand exec_prefix.
  3314. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3315. # Transform confdefs.h into DEFS.
  3316. # Protect against shell expansion while executing Makefile rules.
  3317. # Protect against Makefile macro expansion.
  3318. #
  3319. # If the first sed substitution is executed (which looks for macros that
  3320. # take arguments), then branch to the quote section. Otherwise,
  3321. # look for a macro that doesn't take arguments.
  3322. ac_script='
  3323. :mline
  3324. /\\$/{
  3325. N
  3326. s,\\\n,,
  3327. b mline
  3328. }
  3329. t clear
  3330. :clear
  3331. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  3332. t quote
  3333. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  3334. t quote
  3335. b any
  3336. :quote
  3337. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  3338. s/\[/\\&/g
  3339. s/\]/\\&/g
  3340. s/\$/$$/g
  3341. H
  3342. :any
  3343. ${
  3344. g
  3345. s/^\n//
  3346. s/\n/ /g
  3347. p
  3348. }
  3349. '
  3350. DEFS=`sed -n "$ac_script" confdefs.h`
  3351. ac_libobjs=
  3352. ac_ltlibobjs=
  3353. U=
  3354. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3355. # 1. Remove the extension, and $U if already installed.
  3356. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3357. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3358. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3359. # will be set to the directory where LIBOBJS objects are built.
  3360. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3361. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  3362. done
  3363. LIBOBJS=$ac_libobjs
  3364. LTLIBOBJS=$ac_ltlibobjs
  3365. : "${CONFIG_STATUS=./config.status}"
  3366. ac_write_fail=0
  3367. ac_clean_files_save=$ac_clean_files
  3368. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  3370. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3371. as_write_fail=0
  3372. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  3373. #! $SHELL
  3374. # Generated by $as_me.
  3375. # Run this file to recreate the current configuration.
  3376. # Compiler output produced by configure, useful for debugging
  3377. # configure, is in config.log if it exists.
  3378. debug=false
  3379. ac_cs_recheck=false
  3380. ac_cs_silent=false
  3381. SHELL=\${CONFIG_SHELL-$SHELL}
  3382. export SHELL
  3383. _ASEOF
  3384. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  3385. ## -------------------- ##
  3386. ## M4sh Initialization. ##
  3387. ## -------------------- ##
  3388. # Be more Bourne compatible
  3389. DUALCASE=1; export DUALCASE # for MKS sh
  3390. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  3391. emulate sh
  3392. NULLCMD=:
  3393. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3394. # is contrary to our usage. Disable this feature.
  3395. alias -g '${1+"$@"}'='"$@"'
  3396. setopt NO_GLOB_SUBST
  3397. else
  3398. case `(set -o) 2>/dev/null` in #(
  3399. *posix*) :
  3400. set -o posix ;; #(
  3401. *) :
  3402. ;;
  3403. esac
  3404. fi
  3405. as_nl='
  3406. '
  3407. export as_nl
  3408. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  3409. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3410. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  3411. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  3412. # Prefer a ksh shell builtin over an external printf program on Solaris,
  3413. # but without wasting forks for bash or zsh.
  3414. if test -z "$BASH_VERSION$ZSH_VERSION" \
  3415. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  3416. as_echo='print -r --'
  3417. as_echo_n='print -rn --'
  3418. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  3419. as_echo='printf %s\n'
  3420. as_echo_n='printf %s'
  3421. else
  3422. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  3423. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  3424. as_echo_n='/usr/ucb/echo -n'
  3425. else
  3426. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  3427. as_echo_n_body='eval
  3428. arg=$1;
  3429. case $arg in #(
  3430. *"$as_nl"*)
  3431. expr "X$arg" : "X\\(.*\\)$as_nl";
  3432. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  3433. esac;
  3434. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  3435. '
  3436. export as_echo_n_body
  3437. as_echo_n='sh -c $as_echo_n_body as_echo'
  3438. fi
  3439. export as_echo_body
  3440. as_echo='sh -c $as_echo_body as_echo'
  3441. fi
  3442. # The user is always right.
  3443. if test "${PATH_SEPARATOR+set}" != set; then
  3444. PATH_SEPARATOR=:
  3445. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3446. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3447. PATH_SEPARATOR=';'
  3448. }
  3449. fi
  3450. # IFS
  3451. # We need space, tab and new line, in precisely that order. Quoting is
  3452. # there to prevent editors from complaining about space-tab.
  3453. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3454. # splitting by setting IFS to empty value.)
  3455. IFS=" "" $as_nl"
  3456. # Find who we are. Look in the path if we contain no directory separator.
  3457. as_myself=
  3458. case $0 in #((
  3459. *[\\/]* ) as_myself=$0 ;;
  3460. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3461. for as_dir in $PATH
  3462. do
  3463. IFS=$as_save_IFS
  3464. test -z "$as_dir" && as_dir=.
  3465. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3466. done
  3467. IFS=$as_save_IFS
  3468. ;;
  3469. esac
  3470. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3471. # in which case we are not to be found in the path.
  3472. if test "x$as_myself" = x; then
  3473. as_myself=$0
  3474. fi
  3475. if test ! -f "$as_myself"; then
  3476. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3477. exit 1
  3478. fi
  3479. # Unset variables that we do not need and which cause bugs (e.g. in
  3480. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  3481. # suppresses any "Segmentation fault" message there. '((' could
  3482. # trigger a bug in pdksh 5.2.14.
  3483. for as_var in BASH_ENV ENV MAIL MAILPATH
  3484. do eval test x\${$as_var+set} = xset \
  3485. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  3486. done
  3487. PS1='$ '
  3488. PS2='> '
  3489. PS4='+ '
  3490. # NLS nuisances.
  3491. LC_ALL=C
  3492. export LC_ALL
  3493. LANGUAGE=C
  3494. export LANGUAGE
  3495. # CDPATH.
  3496. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3497. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  3498. # ----------------------------------------
  3499. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  3500. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  3501. # script with STATUS, using 1 if that was 0.
  3502. as_fn_error ()
  3503. {
  3504. as_status=$1; test $as_status -eq 0 && as_status=1
  3505. if test "$4"; then
  3506. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3507. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  3508. fi
  3509. $as_echo "$as_me: error: $2" >&2
  3510. as_fn_exit $as_status
  3511. } # as_fn_error
  3512. # as_fn_set_status STATUS
  3513. # -----------------------
  3514. # Set $? to STATUS, without forking.
  3515. as_fn_set_status ()
  3516. {
  3517. return $1
  3518. } # as_fn_set_status
  3519. # as_fn_exit STATUS
  3520. # -----------------
  3521. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  3522. as_fn_exit ()
  3523. {
  3524. set +e
  3525. as_fn_set_status $1
  3526. exit $1
  3527. } # as_fn_exit
  3528. # as_fn_unset VAR
  3529. # ---------------
  3530. # Portably unset VAR.
  3531. as_fn_unset ()
  3532. {
  3533. { eval $1=; unset $1;}
  3534. }
  3535. as_unset=as_fn_unset
  3536. # as_fn_append VAR VALUE
  3537. # ----------------------
  3538. # Append the text in VALUE to the end of the definition contained in VAR. Take
  3539. # advantage of any shell optimizations that allow amortized linear growth over
  3540. # repeated appends, instead of the typical quadratic growth present in naive
  3541. # implementations.
  3542. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  3543. eval 'as_fn_append ()
  3544. {
  3545. eval $1+=\$2
  3546. }'
  3547. else
  3548. as_fn_append ()
  3549. {
  3550. eval $1=\$$1\$2
  3551. }
  3552. fi # as_fn_append
  3553. # as_fn_arith ARG...
  3554. # ------------------
  3555. # Perform arithmetic evaluation on the ARGs, and store the result in the
  3556. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  3557. # must be portable across $(()) and expr.
  3558. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  3559. eval 'as_fn_arith ()
  3560. {
  3561. as_val=$(( $* ))
  3562. }'
  3563. else
  3564. as_fn_arith ()
  3565. {
  3566. as_val=`expr "$@" || test $? -eq 1`
  3567. }
  3568. fi # as_fn_arith
  3569. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3570. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3571. as_expr=expr
  3572. else
  3573. as_expr=false
  3574. fi
  3575. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  3576. as_basename=basename
  3577. else
  3578. as_basename=false
  3579. fi
  3580. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  3581. as_dirname=dirname
  3582. else
  3583. as_dirname=false
  3584. fi
  3585. as_me=`$as_basename -- "$0" ||
  3586. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3587. X"$0" : 'X\(//\)$' \| \
  3588. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3589. $as_echo X/"$0" |
  3590. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3591. s//\1/
  3592. q
  3593. }
  3594. /^X\/\(\/\/\)$/{
  3595. s//\1/
  3596. q
  3597. }
  3598. /^X\/\(\/\).*/{
  3599. s//\1/
  3600. q
  3601. }
  3602. s/.*/./; q'`
  3603. # Avoid depending upon Character Ranges.
  3604. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3605. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3606. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3607. as_cr_digits='0123456789'
  3608. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3609. ECHO_C= ECHO_N= ECHO_T=
  3610. case `echo -n x` in #(((((
  3611. -n*)
  3612. case `echo 'xy\c'` in
  3613. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  3614. xy) ECHO_C='\c';;
  3615. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  3616. ECHO_T=' ';;
  3617. esac;;
  3618. *)
  3619. ECHO_N='-n';;
  3620. esac
  3621. rm -f conf$$ conf$$.exe conf$$.file
  3622. if test -d conf$$.dir; then
  3623. rm -f conf$$.dir/conf$$.file
  3624. else
  3625. rm -f conf$$.dir
  3626. mkdir conf$$.dir 2>/dev/null
  3627. fi
  3628. if (echo >conf$$.file) 2>/dev/null; then
  3629. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3630. as_ln_s='ln -s'
  3631. # ... but there are two gotchas:
  3632. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3633. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3634. # In both cases, we have to default to `cp -pR'.
  3635. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3636. as_ln_s='cp -pR'
  3637. elif ln conf$$.file conf$$ 2>/dev/null; then
  3638. as_ln_s=ln
  3639. else
  3640. as_ln_s='cp -pR'
  3641. fi
  3642. else
  3643. as_ln_s='cp -pR'
  3644. fi
  3645. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  3646. rmdir conf$$.dir 2>/dev/null
  3647. # as_fn_mkdir_p
  3648. # -------------
  3649. # Create "$as_dir" as a directory, including parents if necessary.
  3650. as_fn_mkdir_p ()
  3651. {
  3652. case $as_dir in #(
  3653. -*) as_dir=./$as_dir;;
  3654. esac
  3655. test -d "$as_dir" || eval $as_mkdir_p || {
  3656. as_dirs=
  3657. while :; do
  3658. case $as_dir in #(
  3659. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  3660. *) as_qdir=$as_dir;;
  3661. esac
  3662. as_dirs="'$as_qdir' $as_dirs"
  3663. as_dir=`$as_dirname -- "$as_dir" ||
  3664. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3665. X"$as_dir" : 'X\(//\)[^/]' \| \
  3666. X"$as_dir" : 'X\(//\)$' \| \
  3667. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  3668. $as_echo X"$as_dir" |
  3669. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3670. s//\1/
  3671. q
  3672. }
  3673. /^X\(\/\/\)[^/].*/{
  3674. s//\1/
  3675. q
  3676. }
  3677. /^X\(\/\/\)$/{
  3678. s//\1/
  3679. q
  3680. }
  3681. /^X\(\/\).*/{
  3682. s//\1/
  3683. q
  3684. }
  3685. s/.*/./; q'`
  3686. test -d "$as_dir" && break
  3687. done
  3688. test -z "$as_dirs" || eval "mkdir $as_dirs"
  3689. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  3690. } # as_fn_mkdir_p
  3691. if mkdir -p . 2>/dev/null; then
  3692. as_mkdir_p='mkdir -p "$as_dir"'
  3693. else
  3694. test -d ./-p && rmdir ./-p
  3695. as_mkdir_p=false
  3696. fi
  3697. # as_fn_executable_p FILE
  3698. # -----------------------
  3699. # Test if FILE is an executable regular file.
  3700. as_fn_executable_p ()
  3701. {
  3702. test -f "$1" && test -x "$1"
  3703. } # as_fn_executable_p
  3704. as_test_x='test -x'
  3705. as_executable_p=as_fn_executable_p
  3706. # Sed expression to map a string onto a valid CPP name.
  3707. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  3708. # Sed expression to map a string onto a valid variable name.
  3709. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  3710. exec 6>&1
  3711. ## ----------------------------------- ##
  3712. ## Main body of $CONFIG_STATUS script. ##
  3713. ## ----------------------------------- ##
  3714. _ASEOF
  3715. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  3716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3717. # Save the log message, to keep $0 and so on meaningful, and to
  3718. # report actual input values of CONFIG_FILES etc. instead of their
  3719. # values after options handling.
  3720. ac_log="
  3721. This file was extended by nrpe $as_me 3.0-beta1, which was
  3722. generated by GNU Autoconf 2.69. Invocation command line was
  3723. CONFIG_FILES = $CONFIG_FILES
  3724. CONFIG_HEADERS = $CONFIG_HEADERS
  3725. CONFIG_LINKS = $CONFIG_LINKS
  3726. CONFIG_COMMANDS = $CONFIG_COMMANDS
  3727. $ $0 $@
  3728. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  3729. "
  3730. _ACEOF
  3731. case $ac_config_files in *"
  3732. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  3733. esac
  3734. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3735. # Files that config.status was made for.
  3736. config_files="$ac_config_files"
  3737. _ACEOF
  3738. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3739. ac_cs_usage="\
  3740. \`$as_me' instantiates files and other configuration actions
  3741. from templates according to the current configuration. Unless the files
  3742. and actions are specified as TAGs, all are instantiated by default.
  3743. Usage: $0 [OPTION]... [TAG]...
  3744. -h, --help print this help, then exit
  3745. -V, --version print version number and configuration settings, then exit
  3746. --config print configuration, then exit
  3747. -q, --quiet, --silent
  3748. do not print progress messages
  3749. -d, --debug don't remove temporary files
  3750. --recheck update $as_me by reconfiguring in the same conditions
  3751. --file=FILE[:TEMPLATE]
  3752. instantiate the configuration file FILE
  3753. Configuration files:
  3754. $config_files
  3755. Report bugs to <nagios-users@lists.sourceforge.net>.
  3756. nrpe home page: <https://www.nagios.org/downloads/nagios-core-addons/>."
  3757. _ACEOF
  3758. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3759. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  3760. ac_cs_version="\\
  3761. nrpe config.status 3.0-beta1
  3762. configured by $0, generated by GNU Autoconf 2.69,
  3763. with options \\"\$ac_cs_config\\"
  3764. Copyright (C) 2012 Free Software Foundation, Inc.
  3765. This config.status script is free software; the Free Software Foundation
  3766. gives unlimited permission to copy, distribute and modify it."
  3767. ac_pwd='$ac_pwd'
  3768. srcdir='$srcdir'
  3769. INSTALL='$INSTALL'
  3770. test -n "\$AWK" || AWK=awk
  3771. _ACEOF
  3772. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3773. # The default lists apply if the user does not specify any file.
  3774. ac_need_defaults=:
  3775. while test $# != 0
  3776. do
  3777. case $1 in
  3778. --*=?*)
  3779. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  3780. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  3781. ac_shift=:
  3782. ;;
  3783. --*=)
  3784. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  3785. ac_optarg=
  3786. ac_shift=:
  3787. ;;
  3788. *)
  3789. ac_option=$1
  3790. ac_optarg=$2
  3791. ac_shift=shift
  3792. ;;
  3793. esac
  3794. case $ac_option in
  3795. # Handling of the options.
  3796. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3797. ac_cs_recheck=: ;;
  3798. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  3799. $as_echo "$ac_cs_version"; exit ;;
  3800. --config | --confi | --conf | --con | --co | --c )
  3801. $as_echo "$ac_cs_config"; exit ;;
  3802. --debug | --debu | --deb | --de | --d | -d )
  3803. debug=: ;;
  3804. --file | --fil | --fi | --f )
  3805. $ac_shift
  3806. case $ac_optarg in
  3807. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  3808. '') as_fn_error $? "missing file argument" ;;
  3809. esac
  3810. as_fn_append CONFIG_FILES " '$ac_optarg'"
  3811. ac_need_defaults=false;;
  3812. --he | --h | --help | --hel | -h )
  3813. $as_echo "$ac_cs_usage"; exit ;;
  3814. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3815. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3816. ac_cs_silent=: ;;
  3817. # This is an error.
  3818. -*) as_fn_error $? "unrecognized option: \`$1'
  3819. Try \`$0 --help' for more information." ;;
  3820. *) as_fn_append ac_config_targets " $1"
  3821. ac_need_defaults=false ;;
  3822. esac
  3823. shift
  3824. done
  3825. ac_configure_extra_args=
  3826. if $ac_cs_silent; then
  3827. exec 6>/dev/null
  3828. ac_configure_extra_args="$ac_configure_extra_args --silent"
  3829. fi
  3830. _ACEOF
  3831. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3832. if \$ac_cs_recheck; then
  3833. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3834. shift
  3835. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  3836. CONFIG_SHELL='$SHELL'
  3837. export CONFIG_SHELL
  3838. exec "\$@"
  3839. fi
  3840. _ACEOF
  3841. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3842. exec 5>>config.log
  3843. {
  3844. echo
  3845. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3846. ## Running $as_me. ##
  3847. _ASBOX
  3848. $as_echo "$ac_log"
  3849. } >&5
  3850. _ACEOF
  3851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3852. _ACEOF
  3853. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3854. # Handling of arguments.
  3855. for ac_config_target in $ac_config_targets
  3856. do
  3857. case $ac_config_target in
  3858. "paths") CONFIG_FILES="$CONFIG_FILES paths" ;;
  3859. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  3860. esac
  3861. done
  3862. # If the user did not use the arguments to specify the items to instantiate,
  3863. # then the envvar interface is used. Set only those that are not.
  3864. # We use the long form for the default assignment because of an extremely
  3865. # bizarre bug on SunOS 4.1.3.
  3866. if $ac_need_defaults; then
  3867. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  3868. fi
  3869. # Have a temporary directory for convenience. Make it in the build tree
  3870. # simply because there is no reason against having it here, and in addition,
  3871. # creating and moving files from /tmp can sometimes cause problems.
  3872. # Hook for its removal unless debugging.
  3873. # Note that there is a small window in which the directory will not be cleaned:
  3874. # after its creation but before its name has been assigned to `$tmp'.
  3875. $debug ||
  3876. {
  3877. tmp= ac_tmp=
  3878. trap 'exit_status=$?
  3879. : "${ac_tmp:=$tmp}"
  3880. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  3881. ' 0
  3882. trap 'as_fn_exit 1' 1 2 13 15
  3883. }
  3884. # Create a (secure) tmp directory for tmp files.
  3885. {
  3886. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  3887. test -d "$tmp"
  3888. } ||
  3889. {
  3890. tmp=./conf$$-$RANDOM
  3891. (umask 077 && mkdir "$tmp")
  3892. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  3893. ac_tmp=$tmp
  3894. # Set up the scripts for CONFIG_FILES section.
  3895. # No need to generate them if there are no CONFIG_FILES.
  3896. # This happens for instance with `./config.status config.h'.
  3897. if test -n "$CONFIG_FILES"; then
  3898. ac_cr=`echo X | tr X '\015'`
  3899. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  3900. # But we know of no other shell where ac_cr would be empty at this
  3901. # point, so we can use a bashism as a fallback.
  3902. if test "x$ac_cr" = x; then
  3903. eval ac_cr=\$\'\\r\'
  3904. fi
  3905. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  3906. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  3907. ac_cs_awk_cr='\\r'
  3908. else
  3909. ac_cs_awk_cr=$ac_cr
  3910. fi
  3911. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  3912. _ACEOF
  3913. {
  3914. echo "cat >conf$$subs.awk <<_ACEOF" &&
  3915. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  3916. echo "_ACEOF"
  3917. } >conf$$subs.sh ||
  3918. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3919. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  3920. ac_delim='%!_!# '
  3921. for ac_last_try in false false false false false :; do
  3922. . ./conf$$subs.sh ||
  3923. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3924. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  3925. if test $ac_delim_n = $ac_delim_num; then
  3926. break
  3927. elif $ac_last_try; then
  3928. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3929. else
  3930. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  3931. fi
  3932. done
  3933. rm -f conf$$subs.sh
  3934. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3935. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  3936. _ACEOF
  3937. sed -n '
  3938. h
  3939. s/^/S["/; s/!.*/"]=/
  3940. p
  3941. g
  3942. s/^[^!]*!//
  3943. :repl
  3944. t repl
  3945. s/'"$ac_delim"'$//
  3946. t delim
  3947. :nl
  3948. h
  3949. s/\(.\{148\}\)..*/\1/
  3950. t more1
  3951. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  3952. p
  3953. n
  3954. b repl
  3955. :more1
  3956. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3957. p
  3958. g
  3959. s/.\{148\}//
  3960. t nl
  3961. :delim
  3962. h
  3963. s/\(.\{148\}\)..*/\1/
  3964. t more2
  3965. s/["\\]/\\&/g; s/^/"/; s/$/"/
  3966. p
  3967. b
  3968. :more2
  3969. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3970. p
  3971. g
  3972. s/.\{148\}//
  3973. t delim
  3974. ' <conf$$subs.awk | sed '
  3975. /^[^""]/{
  3976. N
  3977. s/\n//
  3978. }
  3979. ' >>$CONFIG_STATUS || ac_write_fail=1
  3980. rm -f conf$$subs.awk
  3981. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3982. _ACAWK
  3983. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  3984. for (key in S) S_is_set[key] = 1
  3985. FS = ""
  3986. }
  3987. {
  3988. line = $ 0
  3989. nfields = split(line, field, "@")
  3990. substed = 0
  3991. len = length(field[1])
  3992. for (i = 2; i < nfields; i++) {
  3993. key = field[i]
  3994. keylen = length(key)
  3995. if (S_is_set[key]) {
  3996. value = S[key]
  3997. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  3998. len += length(value) + length(field[++i])
  3999. substed = 1
  4000. } else
  4001. len += 1 + keylen
  4002. }
  4003. print line
  4004. }
  4005. _ACAWK
  4006. _ACEOF
  4007. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4008. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4009. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4010. else
  4011. cat
  4012. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4013. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4014. _ACEOF
  4015. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4016. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  4017. # trailing colons and then remove the whole line if VPATH becomes empty
  4018. # (actually we leave an empty line to preserve line numbers).
  4019. if test "x$srcdir" = x.; then
  4020. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  4021. h
  4022. s///
  4023. s/^/:/
  4024. s/[ ]*$/:/
  4025. s/:\$(srcdir):/:/g
  4026. s/:\${srcdir}:/:/g
  4027. s/:@srcdir@:/:/g
  4028. s/^:*//
  4029. s/:*$//
  4030. x
  4031. s/\(=[ ]*\).*/\1/
  4032. G
  4033. s/\n//
  4034. s/^[^=]*=[ ]*$//
  4035. }'
  4036. fi
  4037. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4038. fi # test -n "$CONFIG_FILES"
  4039. eval set X " :F $CONFIG_FILES "
  4040. shift
  4041. for ac_tag
  4042. do
  4043. case $ac_tag in
  4044. :[FHLC]) ac_mode=$ac_tag; continue;;
  4045. esac
  4046. case $ac_mode$ac_tag in
  4047. :[FHL]*:*);;
  4048. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  4049. :[FH]-) ac_tag=-:-;;
  4050. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4051. esac
  4052. ac_save_IFS=$IFS
  4053. IFS=:
  4054. set x $ac_tag
  4055. IFS=$ac_save_IFS
  4056. shift
  4057. ac_file=$1
  4058. shift
  4059. case $ac_mode in
  4060. :L) ac_source=$1;;
  4061. :[FH])
  4062. ac_file_inputs=
  4063. for ac_f
  4064. do
  4065. case $ac_f in
  4066. -) ac_f="$ac_tmp/stdin";;
  4067. *) # Look for the file first in the build tree, then in the source tree
  4068. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4069. # because $ac_f cannot contain `:'.
  4070. test -f "$ac_f" ||
  4071. case $ac_f in
  4072. [\\/$]*) false;;
  4073. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4074. esac ||
  4075. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  4076. esac
  4077. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  4078. as_fn_append ac_file_inputs " '$ac_f'"
  4079. done
  4080. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4081. # use $as_me), people would be surprised to read:
  4082. # /* config.h. Generated by config.status. */
  4083. configure_input='Generated from '`
  4084. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  4085. `' by configure.'
  4086. if test x"$ac_file" != x-; then
  4087. configure_input="$ac_file. $configure_input"
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  4089. $as_echo "$as_me: creating $ac_file" >&6;}
  4090. fi
  4091. # Neutralize special characters interpreted by sed in replacement strings.
  4092. case $configure_input in #(
  4093. *\&* | *\|* | *\\* )
  4094. ac_sed_conf_input=`$as_echo "$configure_input" |
  4095. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  4096. *) ac_sed_conf_input=$configure_input;;
  4097. esac
  4098. case $ac_tag in
  4099. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  4100. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  4101. esac
  4102. ;;
  4103. esac
  4104. ac_dir=`$as_dirname -- "$ac_file" ||
  4105. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4106. X"$ac_file" : 'X\(//\)[^/]' \| \
  4107. X"$ac_file" : 'X\(//\)$' \| \
  4108. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4109. $as_echo X"$ac_file" |
  4110. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4111. s//\1/
  4112. q
  4113. }
  4114. /^X\(\/\/\)[^/].*/{
  4115. s//\1/
  4116. q
  4117. }
  4118. /^X\(\/\/\)$/{
  4119. s//\1/
  4120. q
  4121. }
  4122. /^X\(\/\).*/{
  4123. s//\1/
  4124. q
  4125. }
  4126. s/.*/./; q'`
  4127. as_dir="$ac_dir"; as_fn_mkdir_p
  4128. ac_builddir=.
  4129. case "$ac_dir" in
  4130. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4131. *)
  4132. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  4133. # A ".." for each directory in $ac_dir_suffix.
  4134. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  4135. case $ac_top_builddir_sub in
  4136. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4137. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4138. esac ;;
  4139. esac
  4140. ac_abs_top_builddir=$ac_pwd
  4141. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4142. # for backward compatibility:
  4143. ac_top_builddir=$ac_top_build_prefix
  4144. case $srcdir in
  4145. .) # We are building in place.
  4146. ac_srcdir=.
  4147. ac_top_srcdir=$ac_top_builddir_sub
  4148. ac_abs_top_srcdir=$ac_pwd ;;
  4149. [\\/]* | ?:[\\/]* ) # Absolute name.
  4150. ac_srcdir=$srcdir$ac_dir_suffix;
  4151. ac_top_srcdir=$srcdir
  4152. ac_abs_top_srcdir=$srcdir ;;
  4153. *) # Relative name.
  4154. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4155. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4156. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4157. esac
  4158. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4159. case $ac_mode in
  4160. :F)
  4161. #
  4162. # CONFIG_FILE
  4163. #
  4164. case $INSTALL in
  4165. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  4166. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  4167. esac
  4168. _ACEOF
  4169. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4170. # If the template does not know about datarootdir, expand it.
  4171. # FIXME: This hack should be removed a few years after 2.60.
  4172. ac_datarootdir_hack=; ac_datarootdir_seen=
  4173. ac_sed_dataroot='
  4174. /datarootdir/ {
  4175. p
  4176. q
  4177. }
  4178. /@datadir@/p
  4179. /@docdir@/p
  4180. /@infodir@/p
  4181. /@localedir@/p
  4182. /@mandir@/p'
  4183. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  4184. *datarootdir*) ac_datarootdir_seen=yes;;
  4185. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4187. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4188. _ACEOF
  4189. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4190. ac_datarootdir_hack='
  4191. s&@datadir@&$datadir&g
  4192. s&@docdir@&$docdir&g
  4193. s&@infodir@&$infodir&g
  4194. s&@localedir@&$localedir&g
  4195. s&@mandir@&$mandir&g
  4196. s&\\\${datarootdir}&$datarootdir&g' ;;
  4197. esac
  4198. _ACEOF
  4199. # Neutralize VPATH when `$srcdir' = `.'.
  4200. # Shell code in configure.ac might set extrasub.
  4201. # FIXME: do we really want to maintain this feature?
  4202. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4203. ac_sed_extra="$ac_vpsub
  4204. $extrasub
  4205. _ACEOF
  4206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4207. :t
  4208. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4209. s|@configure_input@|$ac_sed_conf_input|;t t
  4210. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4211. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  4212. s&@srcdir@&$ac_srcdir&;t t
  4213. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4214. s&@top_srcdir@&$ac_top_srcdir&;t t
  4215. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4216. s&@builddir@&$ac_builddir&;t t
  4217. s&@abs_builddir@&$ac_abs_builddir&;t t
  4218. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4219. s&@INSTALL@&$ac_INSTALL&;t t
  4220. $ac_datarootdir_hack
  4221. "
  4222. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  4223. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4224. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4225. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  4226. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  4227. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4229. which seems to be undefined. Please make sure it is defined" >&5
  4230. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4231. which seems to be undefined. Please make sure it is defined" >&2;}
  4232. rm -f "$ac_tmp/stdin"
  4233. case $ac_file in
  4234. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  4235. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  4236. esac \
  4237. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4238. ;;
  4239. esac
  4240. done # for ac_tag
  4241. as_fn_exit 0
  4242. _ACEOF
  4243. ac_clean_files=$ac_clean_files_save
  4244. test $ac_write_fail = 0 ||
  4245. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  4246. # configure is writing to config.log, and then calls config.status.
  4247. # config.status does its own redirection, appending to config.log.
  4248. # Unfortunately, on DOS this fails, as config.log is still kept open
  4249. # by configure, so config.status won't be able to write to it; its
  4250. # output is simply discarded. So we exec the FD to /dev/null,
  4251. # effectively closing config.log, so it can be properly (re)opened and
  4252. # appended to by config.status. When coming back to configure, we
  4253. # need to make the FD available again.
  4254. if test "$no_create" != yes; then
  4255. ac_cs_success=:
  4256. ac_config_status_args=
  4257. test "$silent" = yes &&
  4258. ac_config_status_args="$ac_config_status_args --quiet"
  4259. exec 5>/dev/null
  4260. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4261. exec 5>>config.log
  4262. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4263. # would make configure fail if this is the last instruction.
  4264. $ac_cs_success || as_fn_exit 1
  4265. fi
  4266. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4268. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4269. fi
  4270. chmod 755 paths
  4271. ./paths
  4272. exit 0
  4273. fi
  4274. ac_config_headers="$ac_config_headers include/config.h"
  4275. 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"
  4276. #sample-config/debian-nrpe-inetd
  4277. #sample-config/openrc-nrpe-inetd
  4278. ac_ext=c
  4279. ac_cpp='$CPP $CPPFLAGS'
  4280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4283. if test -n "$ac_tool_prefix"; then
  4284. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4285. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4287. $as_echo_n "checking for $ac_word... " >&6; }
  4288. if ${ac_cv_prog_CC+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. if test -n "$CC"; then
  4292. ac_cv_prog_CC="$CC" # Let the user override the test.
  4293. else
  4294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. for as_dir in $PATH
  4296. do
  4297. IFS=$as_save_IFS
  4298. test -z "$as_dir" && as_dir=.
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4301. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4303. break 2
  4304. fi
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308. fi
  4309. fi
  4310. CC=$ac_cv_prog_CC
  4311. if test -n "$CC"; then
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4313. $as_echo "$CC" >&6; }
  4314. else
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4316. $as_echo "no" >&6; }
  4317. fi
  4318. fi
  4319. if test -z "$ac_cv_prog_CC"; then
  4320. ac_ct_CC=$CC
  4321. # Extract the first word of "gcc", so it can be a program name with args.
  4322. set dummy gcc; ac_word=$2
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4324. $as_echo_n "checking for $ac_word... " >&6; }
  4325. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. if test -n "$ac_ct_CC"; then
  4329. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4330. else
  4331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4332. for as_dir in $PATH
  4333. do
  4334. IFS=$as_save_IFS
  4335. test -z "$as_dir" && as_dir=.
  4336. for ac_exec_ext in '' $ac_executable_extensions; do
  4337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4338. ac_cv_prog_ac_ct_CC="gcc"
  4339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4340. break 2
  4341. fi
  4342. done
  4343. done
  4344. IFS=$as_save_IFS
  4345. fi
  4346. fi
  4347. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4348. if test -n "$ac_ct_CC"; then
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4350. $as_echo "$ac_ct_CC" >&6; }
  4351. else
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4353. $as_echo "no" >&6; }
  4354. fi
  4355. if test "x$ac_ct_CC" = x; then
  4356. CC=""
  4357. else
  4358. case $cross_compiling:$ac_tool_warned in
  4359. yes:)
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4362. ac_tool_warned=yes ;;
  4363. esac
  4364. CC=$ac_ct_CC
  4365. fi
  4366. else
  4367. CC="$ac_cv_prog_CC"
  4368. fi
  4369. if test -z "$CC"; then
  4370. if test -n "$ac_tool_prefix"; then
  4371. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4372. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4374. $as_echo_n "checking for $ac_word... " >&6; }
  4375. if ${ac_cv_prog_CC+:} false; then :
  4376. $as_echo_n "(cached) " >&6
  4377. else
  4378. if test -n "$CC"; then
  4379. ac_cv_prog_CC="$CC" # Let the user override the test.
  4380. else
  4381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4382. for as_dir in $PATH
  4383. do
  4384. IFS=$as_save_IFS
  4385. test -z "$as_dir" && as_dir=.
  4386. for ac_exec_ext in '' $ac_executable_extensions; do
  4387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4388. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4390. break 2
  4391. fi
  4392. done
  4393. done
  4394. IFS=$as_save_IFS
  4395. fi
  4396. fi
  4397. CC=$ac_cv_prog_CC
  4398. if test -n "$CC"; then
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4400. $as_echo "$CC" >&6; }
  4401. else
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4403. $as_echo "no" >&6; }
  4404. fi
  4405. fi
  4406. fi
  4407. if test -z "$CC"; then
  4408. # Extract the first word of "cc", so it can be a program name with args.
  4409. set dummy cc; ac_word=$2
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4411. $as_echo_n "checking for $ac_word... " >&6; }
  4412. if ${ac_cv_prog_CC+:} false; then :
  4413. $as_echo_n "(cached) " >&6
  4414. else
  4415. if test -n "$CC"; then
  4416. ac_cv_prog_CC="$CC" # Let the user override the test.
  4417. else
  4418. ac_prog_rejected=no
  4419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4420. for as_dir in $PATH
  4421. do
  4422. IFS=$as_save_IFS
  4423. test -z "$as_dir" && as_dir=.
  4424. for ac_exec_ext in '' $ac_executable_extensions; do
  4425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4426. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4427. ac_prog_rejected=yes
  4428. continue
  4429. fi
  4430. ac_cv_prog_CC="cc"
  4431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4432. break 2
  4433. fi
  4434. done
  4435. done
  4436. IFS=$as_save_IFS
  4437. if test $ac_prog_rejected = yes; then
  4438. # We found a bogon in the path, so make sure we never use it.
  4439. set dummy $ac_cv_prog_CC
  4440. shift
  4441. if test $# != 0; then
  4442. # We chose a different compiler from the bogus one.
  4443. # However, it has the same basename, so the bogon will be chosen
  4444. # first if we set CC to just the basename; use the full file name.
  4445. shift
  4446. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4447. fi
  4448. fi
  4449. fi
  4450. fi
  4451. CC=$ac_cv_prog_CC
  4452. if test -n "$CC"; then
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4454. $as_echo "$CC" >&6; }
  4455. else
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4457. $as_echo "no" >&6; }
  4458. fi
  4459. fi
  4460. if test -z "$CC"; then
  4461. if test -n "$ac_tool_prefix"; then
  4462. for ac_prog in cl.exe
  4463. do
  4464. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4465. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4467. $as_echo_n "checking for $ac_word... " >&6; }
  4468. if ${ac_cv_prog_CC+:} false; then :
  4469. $as_echo_n "(cached) " >&6
  4470. else
  4471. if test -n "$CC"; then
  4472. ac_cv_prog_CC="$CC" # Let the user override the test.
  4473. else
  4474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4475. for as_dir in $PATH
  4476. do
  4477. IFS=$as_save_IFS
  4478. test -z "$as_dir" && as_dir=.
  4479. for ac_exec_ext in '' $ac_executable_extensions; do
  4480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4481. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4483. break 2
  4484. fi
  4485. done
  4486. done
  4487. IFS=$as_save_IFS
  4488. fi
  4489. fi
  4490. CC=$ac_cv_prog_CC
  4491. if test -n "$CC"; then
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4493. $as_echo "$CC" >&6; }
  4494. else
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4496. $as_echo "no" >&6; }
  4497. fi
  4498. test -n "$CC" && break
  4499. done
  4500. fi
  4501. if test -z "$CC"; then
  4502. ac_ct_CC=$CC
  4503. for ac_prog in cl.exe
  4504. do
  4505. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4506. set dummy $ac_prog; ac_word=$2
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4508. $as_echo_n "checking for $ac_word... " >&6; }
  4509. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4510. $as_echo_n "(cached) " >&6
  4511. else
  4512. if test -n "$ac_ct_CC"; then
  4513. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4514. else
  4515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4516. for as_dir in $PATH
  4517. do
  4518. IFS=$as_save_IFS
  4519. test -z "$as_dir" && as_dir=.
  4520. for ac_exec_ext in '' $ac_executable_extensions; do
  4521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4522. ac_cv_prog_ac_ct_CC="$ac_prog"
  4523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4524. break 2
  4525. fi
  4526. done
  4527. done
  4528. IFS=$as_save_IFS
  4529. fi
  4530. fi
  4531. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4532. if test -n "$ac_ct_CC"; then
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4534. $as_echo "$ac_ct_CC" >&6; }
  4535. else
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4537. $as_echo "no" >&6; }
  4538. fi
  4539. test -n "$ac_ct_CC" && break
  4540. done
  4541. if test "x$ac_ct_CC" = x; then
  4542. CC=""
  4543. else
  4544. case $cross_compiling:$ac_tool_warned in
  4545. yes:)
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4548. ac_tool_warned=yes ;;
  4549. esac
  4550. CC=$ac_ct_CC
  4551. fi
  4552. fi
  4553. fi
  4554. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4555. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4556. as_fn_error $? "no acceptable C compiler found in \$PATH
  4557. See \`config.log' for more details" "$LINENO" 5; }
  4558. # Provide some information about the compiler.
  4559. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4560. set X $ac_compile
  4561. ac_compiler=$2
  4562. for ac_option in --version -v -V -qversion; do
  4563. { { ac_try="$ac_compiler $ac_option >&5"
  4564. case "(($ac_try" in
  4565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4566. *) ac_try_echo=$ac_try;;
  4567. esac
  4568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4569. $as_echo "$ac_try_echo"; } >&5
  4570. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4571. ac_status=$?
  4572. if test -s conftest.err; then
  4573. sed '10a\
  4574. ... rest of stderr output deleted ...
  4575. 10q' conftest.err >conftest.er1
  4576. cat conftest.er1 >&5
  4577. fi
  4578. rm -f conftest.er1 conftest.err
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4580. test $ac_status = 0; }
  4581. done
  4582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4583. /* end confdefs.h. */
  4584. int
  4585. main ()
  4586. {
  4587. ;
  4588. return 0;
  4589. }
  4590. _ACEOF
  4591. ac_clean_files_save=$ac_clean_files
  4592. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4593. # Try to create an executable without -o first, disregard a.out.
  4594. # It will help us diagnose broken compilers, and finding out an intuition
  4595. # of exeext.
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4597. $as_echo_n "checking whether the C compiler works... " >&6; }
  4598. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4599. # The possible output files:
  4600. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4601. ac_rmfiles=
  4602. for ac_file in $ac_files
  4603. do
  4604. case $ac_file in
  4605. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4606. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4607. esac
  4608. done
  4609. rm -f $ac_rmfiles
  4610. if { { ac_try="$ac_link_default"
  4611. case "(($ac_try" in
  4612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4613. *) ac_try_echo=$ac_try;;
  4614. esac
  4615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4616. $as_echo "$ac_try_echo"; } >&5
  4617. (eval "$ac_link_default") 2>&5
  4618. ac_status=$?
  4619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4620. test $ac_status = 0; }; then :
  4621. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4622. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4623. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4624. # so that the user can short-circuit this test for compilers unknown to
  4625. # Autoconf.
  4626. for ac_file in $ac_files ''
  4627. do
  4628. test -f "$ac_file" || continue
  4629. case $ac_file in
  4630. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4631. ;;
  4632. [ab].out )
  4633. # We found the default executable, but exeext='' is most
  4634. # certainly right.
  4635. break;;
  4636. *.* )
  4637. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4638. then :; else
  4639. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4640. fi
  4641. # We set ac_cv_exeext here because the later test for it is not
  4642. # safe: cross compilers may not add the suffix if given an `-o'
  4643. # argument, so we may need to know it at that point already.
  4644. # Even if this section looks crufty: it has the advantage of
  4645. # actually working.
  4646. break;;
  4647. * )
  4648. break;;
  4649. esac
  4650. done
  4651. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4652. else
  4653. ac_file=''
  4654. fi
  4655. if test -z "$ac_file"; then :
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4657. $as_echo "no" >&6; }
  4658. $as_echo "$as_me: failed program was:" >&5
  4659. sed 's/^/| /' conftest.$ac_ext >&5
  4660. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4661. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4662. as_fn_error 77 "C compiler cannot create executables
  4663. See \`config.log' for more details" "$LINENO" 5; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4666. $as_echo "yes" >&6; }
  4667. fi
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4669. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4671. $as_echo "$ac_file" >&6; }
  4672. ac_exeext=$ac_cv_exeext
  4673. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4674. ac_clean_files=$ac_clean_files_save
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4676. $as_echo_n "checking for suffix of executables... " >&6; }
  4677. if { { ac_try="$ac_link"
  4678. case "(($ac_try" in
  4679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4680. *) ac_try_echo=$ac_try;;
  4681. esac
  4682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4683. $as_echo "$ac_try_echo"; } >&5
  4684. (eval "$ac_link") 2>&5
  4685. ac_status=$?
  4686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4687. test $ac_status = 0; }; then :
  4688. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4689. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4690. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4691. # `rm'.
  4692. for ac_file in conftest.exe conftest conftest.*; do
  4693. test -f "$ac_file" || continue
  4694. case $ac_file in
  4695. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4696. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4697. break;;
  4698. * ) break;;
  4699. esac
  4700. done
  4701. else
  4702. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4703. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4704. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4705. See \`config.log' for more details" "$LINENO" 5; }
  4706. fi
  4707. rm -f conftest conftest$ac_cv_exeext
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4709. $as_echo "$ac_cv_exeext" >&6; }
  4710. rm -f conftest.$ac_ext
  4711. EXEEXT=$ac_cv_exeext
  4712. ac_exeext=$EXEEXT
  4713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4714. /* end confdefs.h. */
  4715. #include <stdio.h>
  4716. int
  4717. main ()
  4718. {
  4719. FILE *f = fopen ("conftest.out", "w");
  4720. return ferror (f) || fclose (f) != 0;
  4721. ;
  4722. return 0;
  4723. }
  4724. _ACEOF
  4725. ac_clean_files="$ac_clean_files conftest.out"
  4726. # Check that the compiler produces executables we can run. If not, either
  4727. # the compiler is broken, or we cross compile.
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4729. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4730. if test "$cross_compiling" != yes; then
  4731. { { ac_try="$ac_link"
  4732. case "(($ac_try" in
  4733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4734. *) ac_try_echo=$ac_try;;
  4735. esac
  4736. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4737. $as_echo "$ac_try_echo"; } >&5
  4738. (eval "$ac_link") 2>&5
  4739. ac_status=$?
  4740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4741. test $ac_status = 0; }
  4742. if { ac_try='./conftest$ac_cv_exeext'
  4743. { { case "(($ac_try" in
  4744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4745. *) ac_try_echo=$ac_try;;
  4746. esac
  4747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4748. $as_echo "$ac_try_echo"; } >&5
  4749. (eval "$ac_try") 2>&5
  4750. ac_status=$?
  4751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4752. test $ac_status = 0; }; }; then
  4753. cross_compiling=no
  4754. else
  4755. if test "$cross_compiling" = maybe; then
  4756. cross_compiling=yes
  4757. else
  4758. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4759. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4760. as_fn_error $? "cannot run C compiled programs.
  4761. If you meant to cross compile, use \`--host'.
  4762. See \`config.log' for more details" "$LINENO" 5; }
  4763. fi
  4764. fi
  4765. fi
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4767. $as_echo "$cross_compiling" >&6; }
  4768. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4769. ac_clean_files=$ac_clean_files_save
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4771. $as_echo_n "checking for suffix of object files... " >&6; }
  4772. if ${ac_cv_objext+:} false; then :
  4773. $as_echo_n "(cached) " >&6
  4774. else
  4775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4776. /* end confdefs.h. */
  4777. int
  4778. main ()
  4779. {
  4780. ;
  4781. return 0;
  4782. }
  4783. _ACEOF
  4784. rm -f conftest.o conftest.obj
  4785. if { { ac_try="$ac_compile"
  4786. case "(($ac_try" in
  4787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4788. *) ac_try_echo=$ac_try;;
  4789. esac
  4790. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4791. $as_echo "$ac_try_echo"; } >&5
  4792. (eval "$ac_compile") 2>&5
  4793. ac_status=$?
  4794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4795. test $ac_status = 0; }; then :
  4796. for ac_file in conftest.o conftest.obj conftest.*; do
  4797. test -f "$ac_file" || continue;
  4798. case $ac_file in
  4799. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4800. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4801. break;;
  4802. esac
  4803. done
  4804. else
  4805. $as_echo "$as_me: failed program was:" >&5
  4806. sed 's/^/| /' conftest.$ac_ext >&5
  4807. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4808. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4809. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4810. See \`config.log' for more details" "$LINENO" 5; }
  4811. fi
  4812. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4813. fi
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4815. $as_echo "$ac_cv_objext" >&6; }
  4816. OBJEXT=$ac_cv_objext
  4817. ac_objext=$OBJEXT
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4819. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4820. if ${ac_cv_c_compiler_gnu+:} false; then :
  4821. $as_echo_n "(cached) " >&6
  4822. else
  4823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4824. /* end confdefs.h. */
  4825. int
  4826. main ()
  4827. {
  4828. #ifndef __GNUC__
  4829. choke me
  4830. #endif
  4831. ;
  4832. return 0;
  4833. }
  4834. _ACEOF
  4835. if ac_fn_c_try_compile "$LINENO"; then :
  4836. ac_compiler_gnu=yes
  4837. else
  4838. ac_compiler_gnu=no
  4839. fi
  4840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4841. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4842. fi
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4844. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4845. if test $ac_compiler_gnu = yes; then
  4846. GCC=yes
  4847. else
  4848. GCC=
  4849. fi
  4850. ac_test_CFLAGS=${CFLAGS+set}
  4851. ac_save_CFLAGS=$CFLAGS
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4853. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4854. if ${ac_cv_prog_cc_g+:} false; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. ac_save_c_werror_flag=$ac_c_werror_flag
  4858. ac_c_werror_flag=yes
  4859. ac_cv_prog_cc_g=no
  4860. CFLAGS="-g"
  4861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4862. /* end confdefs.h. */
  4863. int
  4864. main ()
  4865. {
  4866. ;
  4867. return 0;
  4868. }
  4869. _ACEOF
  4870. if ac_fn_c_try_compile "$LINENO"; then :
  4871. ac_cv_prog_cc_g=yes
  4872. else
  4873. CFLAGS=""
  4874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4875. /* end confdefs.h. */
  4876. int
  4877. main ()
  4878. {
  4879. ;
  4880. return 0;
  4881. }
  4882. _ACEOF
  4883. if ac_fn_c_try_compile "$LINENO"; then :
  4884. else
  4885. ac_c_werror_flag=$ac_save_c_werror_flag
  4886. CFLAGS="-g"
  4887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4888. /* end confdefs.h. */
  4889. int
  4890. main ()
  4891. {
  4892. ;
  4893. return 0;
  4894. }
  4895. _ACEOF
  4896. if ac_fn_c_try_compile "$LINENO"; then :
  4897. ac_cv_prog_cc_g=yes
  4898. fi
  4899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4900. fi
  4901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4902. fi
  4903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4904. ac_c_werror_flag=$ac_save_c_werror_flag
  4905. fi
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4907. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4908. if test "$ac_test_CFLAGS" = set; then
  4909. CFLAGS=$ac_save_CFLAGS
  4910. elif test $ac_cv_prog_cc_g = yes; then
  4911. if test "$GCC" = yes; then
  4912. CFLAGS="-g -O2"
  4913. else
  4914. CFLAGS="-g"
  4915. fi
  4916. else
  4917. if test "$GCC" = yes; then
  4918. CFLAGS="-O2"
  4919. else
  4920. CFLAGS=
  4921. fi
  4922. fi
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4924. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4925. if ${ac_cv_prog_cc_c89+:} false; then :
  4926. $as_echo_n "(cached) " >&6
  4927. else
  4928. ac_cv_prog_cc_c89=no
  4929. ac_save_CC=$CC
  4930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4931. /* end confdefs.h. */
  4932. #include <stdarg.h>
  4933. #include <stdio.h>
  4934. struct stat;
  4935. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4936. struct buf { int x; };
  4937. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4938. static char *e (p, i)
  4939. char **p;
  4940. int i;
  4941. {
  4942. return p[i];
  4943. }
  4944. static char *f (char * (*g) (char **, int), char **p, ...)
  4945. {
  4946. char *s;
  4947. va_list v;
  4948. va_start (v,p);
  4949. s = g (p, va_arg (v,int));
  4950. va_end (v);
  4951. return s;
  4952. }
  4953. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4954. function prototypes and stuff, but not '\xHH' hex character constants.
  4955. These don't provoke an error unfortunately, instead are silently treated
  4956. as 'x'. The following induces an error, until -std is added to get
  4957. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4958. array size at least. It's necessary to write '\x00'==0 to get something
  4959. that's true only with -std. */
  4960. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4961. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4962. inside strings and character constants. */
  4963. #define FOO(x) 'x'
  4964. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4965. int test (int i, double x);
  4966. struct s1 {int (*f) (int a);};
  4967. struct s2 {int (*f) (double a);};
  4968. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4969. int argc;
  4970. char **argv;
  4971. int
  4972. main ()
  4973. {
  4974. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4975. ;
  4976. return 0;
  4977. }
  4978. _ACEOF
  4979. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4980. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4981. do
  4982. CC="$ac_save_CC $ac_arg"
  4983. if ac_fn_c_try_compile "$LINENO"; then :
  4984. ac_cv_prog_cc_c89=$ac_arg
  4985. fi
  4986. rm -f core conftest.err conftest.$ac_objext
  4987. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4988. done
  4989. rm -f conftest.$ac_ext
  4990. CC=$ac_save_CC
  4991. fi
  4992. # AC_CACHE_VAL
  4993. case "x$ac_cv_prog_cc_c89" in
  4994. x)
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4996. $as_echo "none needed" >&6; } ;;
  4997. xno)
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4999. $as_echo "unsupported" >&6; } ;;
  5000. *)
  5001. CC="$CC $ac_cv_prog_cc_c89"
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5003. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5004. esac
  5005. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5006. fi
  5007. ac_ext=c
  5008. ac_cpp='$CPP $CPPFLAGS'
  5009. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5010. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5011. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5013. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  5014. set x ${MAKE-make}
  5015. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  5016. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. cat >conftest.make <<\_ACEOF
  5020. SHELL = /bin/sh
  5021. all:
  5022. @echo '@@@%%%=$(MAKE)=@@@%%%'
  5023. _ACEOF
  5024. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5025. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5026. *@@@%%%=?*=@@@%%%*)
  5027. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5028. *)
  5029. eval ac_cv_prog_make_${ac_make}_set=no;;
  5030. esac
  5031. rm -f conftest.make
  5032. fi
  5033. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5035. $as_echo "yes" >&6; }
  5036. SET_MAKE=
  5037. else
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5039. $as_echo "no" >&6; }
  5040. SET_MAKE="MAKE=${MAKE-make}"
  5041. fi
  5042. ac_ext=c
  5043. ac_cpp='$CPP $CPPFLAGS'
  5044. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5045. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5046. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5048. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5049. # On Suns, sometimes $CPP names a directory.
  5050. if test -n "$CPP" && test -d "$CPP"; then
  5051. CPP=
  5052. fi
  5053. if test -z "$CPP"; then
  5054. if ${ac_cv_prog_CPP+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. # Double quotes because CPP needs to be expanded
  5058. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5059. do
  5060. ac_preproc_ok=false
  5061. for ac_c_preproc_warn_flag in '' yes
  5062. do
  5063. # Use a header file that comes with gcc, so configuring glibc
  5064. # with a fresh cross-compiler works.
  5065. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5066. # <limits.h> exists even on freestanding compilers.
  5067. # On the NeXT, cc -E runs the code through the compiler's parser,
  5068. # not just through cpp. "Syntax error" is here to catch this case.
  5069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5070. /* end confdefs.h. */
  5071. #ifdef __STDC__
  5072. # include <limits.h>
  5073. #else
  5074. # include <assert.h>
  5075. #endif
  5076. Syntax error
  5077. _ACEOF
  5078. if ac_fn_c_try_cpp "$LINENO"; then :
  5079. else
  5080. # Broken: fails on valid input.
  5081. continue
  5082. fi
  5083. rm -f conftest.err conftest.i conftest.$ac_ext
  5084. # OK, works on sane cases. Now check whether nonexistent headers
  5085. # can be detected and how.
  5086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5087. /* end confdefs.h. */
  5088. #include <ac_nonexistent.h>
  5089. _ACEOF
  5090. if ac_fn_c_try_cpp "$LINENO"; then :
  5091. # Broken: success on invalid input.
  5092. continue
  5093. else
  5094. # Passes both tests.
  5095. ac_preproc_ok=:
  5096. break
  5097. fi
  5098. rm -f conftest.err conftest.i conftest.$ac_ext
  5099. done
  5100. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5101. rm -f conftest.i conftest.err conftest.$ac_ext
  5102. if $ac_preproc_ok; then :
  5103. break
  5104. fi
  5105. done
  5106. ac_cv_prog_CPP=$CPP
  5107. fi
  5108. CPP=$ac_cv_prog_CPP
  5109. else
  5110. ac_cv_prog_CPP=$CPP
  5111. fi
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5113. $as_echo "$CPP" >&6; }
  5114. ac_preproc_ok=false
  5115. for ac_c_preproc_warn_flag in '' yes
  5116. do
  5117. # Use a header file that comes with gcc, so configuring glibc
  5118. # with a fresh cross-compiler works.
  5119. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5120. # <limits.h> exists even on freestanding compilers.
  5121. # On the NeXT, cc -E runs the code through the compiler's parser,
  5122. # not just through cpp. "Syntax error" is here to catch this case.
  5123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5124. /* end confdefs.h. */
  5125. #ifdef __STDC__
  5126. # include <limits.h>
  5127. #else
  5128. # include <assert.h>
  5129. #endif
  5130. Syntax error
  5131. _ACEOF
  5132. if ac_fn_c_try_cpp "$LINENO"; then :
  5133. else
  5134. # Broken: fails on valid input.
  5135. continue
  5136. fi
  5137. rm -f conftest.err conftest.i conftest.$ac_ext
  5138. # OK, works on sane cases. Now check whether nonexistent headers
  5139. # can be detected and how.
  5140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5141. /* end confdefs.h. */
  5142. #include <ac_nonexistent.h>
  5143. _ACEOF
  5144. if ac_fn_c_try_cpp "$LINENO"; then :
  5145. # Broken: success on invalid input.
  5146. continue
  5147. else
  5148. # Passes both tests.
  5149. ac_preproc_ok=:
  5150. break
  5151. fi
  5152. rm -f conftest.err conftest.i conftest.$ac_ext
  5153. done
  5154. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5155. rm -f conftest.i conftest.err conftest.$ac_ext
  5156. if $ac_preproc_ok; then :
  5157. else
  5158. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5159. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5160. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5161. See \`config.log' for more details" "$LINENO" 5; }
  5162. fi
  5163. ac_ext=c
  5164. ac_cpp='$CPP $CPPFLAGS'
  5165. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5166. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5167. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5169. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5170. if ${ac_cv_path_GREP+:} false; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. if test -z "$GREP"; then
  5174. ac_path_GREP_found=false
  5175. # Loop through the user's path and test for each of PROGNAME-LIST
  5176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5177. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5178. do
  5179. IFS=$as_save_IFS
  5180. test -z "$as_dir" && as_dir=.
  5181. for ac_prog in grep ggrep; do
  5182. for ac_exec_ext in '' $ac_executable_extensions; do
  5183. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5184. as_fn_executable_p "$ac_path_GREP" || continue
  5185. # Check for GNU ac_path_GREP and select it if it is found.
  5186. # Check for GNU $ac_path_GREP
  5187. case `"$ac_path_GREP" --version 2>&1` in
  5188. *GNU*)
  5189. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5190. *)
  5191. ac_count=0
  5192. $as_echo_n 0123456789 >"conftest.in"
  5193. while :
  5194. do
  5195. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5196. mv "conftest.tmp" "conftest.in"
  5197. cp "conftest.in" "conftest.nl"
  5198. $as_echo 'GREP' >> "conftest.nl"
  5199. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5200. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5201. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5202. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5203. # Best one so far, save it but keep looking for a better one
  5204. ac_cv_path_GREP="$ac_path_GREP"
  5205. ac_path_GREP_max=$ac_count
  5206. fi
  5207. # 10*(2^10) chars as input seems more than enough
  5208. test $ac_count -gt 10 && break
  5209. done
  5210. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5211. esac
  5212. $ac_path_GREP_found && break 3
  5213. done
  5214. done
  5215. done
  5216. IFS=$as_save_IFS
  5217. if test -z "$ac_cv_path_GREP"; then
  5218. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5219. fi
  5220. else
  5221. ac_cv_path_GREP=$GREP
  5222. fi
  5223. fi
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5225. $as_echo "$ac_cv_path_GREP" >&6; }
  5226. GREP="$ac_cv_path_GREP"
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5228. $as_echo_n "checking for egrep... " >&6; }
  5229. if ${ac_cv_path_EGREP+:} false; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5233. then ac_cv_path_EGREP="$GREP -E"
  5234. else
  5235. if test -z "$EGREP"; then
  5236. ac_path_EGREP_found=false
  5237. # Loop through the user's path and test for each of PROGNAME-LIST
  5238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5239. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5240. do
  5241. IFS=$as_save_IFS
  5242. test -z "$as_dir" && as_dir=.
  5243. for ac_prog in egrep; do
  5244. for ac_exec_ext in '' $ac_executable_extensions; do
  5245. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5246. as_fn_executable_p "$ac_path_EGREP" || continue
  5247. # Check for GNU ac_path_EGREP and select it if it is found.
  5248. # Check for GNU $ac_path_EGREP
  5249. case `"$ac_path_EGREP" --version 2>&1` in
  5250. *GNU*)
  5251. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5252. *)
  5253. ac_count=0
  5254. $as_echo_n 0123456789 >"conftest.in"
  5255. while :
  5256. do
  5257. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5258. mv "conftest.tmp" "conftest.in"
  5259. cp "conftest.in" "conftest.nl"
  5260. $as_echo 'EGREP' >> "conftest.nl"
  5261. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5262. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5263. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5264. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5265. # Best one so far, save it but keep looking for a better one
  5266. ac_cv_path_EGREP="$ac_path_EGREP"
  5267. ac_path_EGREP_max=$ac_count
  5268. fi
  5269. # 10*(2^10) chars as input seems more than enough
  5270. test $ac_count -gt 10 && break
  5271. done
  5272. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5273. esac
  5274. $ac_path_EGREP_found && break 3
  5275. done
  5276. done
  5277. done
  5278. IFS=$as_save_IFS
  5279. if test -z "$ac_cv_path_EGREP"; then
  5280. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5281. fi
  5282. else
  5283. ac_cv_path_EGREP=$EGREP
  5284. fi
  5285. fi
  5286. fi
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5288. $as_echo "$ac_cv_path_EGREP" >&6; }
  5289. EGREP="$ac_cv_path_EGREP"
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5291. $as_echo_n "checking for ANSI C header files... " >&6; }
  5292. if ${ac_cv_header_stdc+:} false; then :
  5293. $as_echo_n "(cached) " >&6
  5294. else
  5295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5296. /* end confdefs.h. */
  5297. #include <stdlib.h>
  5298. #include <stdarg.h>
  5299. #include <string.h>
  5300. #include <float.h>
  5301. int
  5302. main ()
  5303. {
  5304. ;
  5305. return 0;
  5306. }
  5307. _ACEOF
  5308. if ac_fn_c_try_compile "$LINENO"; then :
  5309. ac_cv_header_stdc=yes
  5310. else
  5311. ac_cv_header_stdc=no
  5312. fi
  5313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5314. if test $ac_cv_header_stdc = yes; then
  5315. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5317. /* end confdefs.h. */
  5318. #include <string.h>
  5319. _ACEOF
  5320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5321. $EGREP "memchr" >/dev/null 2>&1; then :
  5322. else
  5323. ac_cv_header_stdc=no
  5324. fi
  5325. rm -f conftest*
  5326. fi
  5327. if test $ac_cv_header_stdc = yes; then
  5328. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5330. /* end confdefs.h. */
  5331. #include <stdlib.h>
  5332. _ACEOF
  5333. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5334. $EGREP "free" >/dev/null 2>&1; then :
  5335. else
  5336. ac_cv_header_stdc=no
  5337. fi
  5338. rm -f conftest*
  5339. fi
  5340. if test $ac_cv_header_stdc = yes; then
  5341. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5342. if test "$cross_compiling" = yes; then :
  5343. :
  5344. else
  5345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5346. /* end confdefs.h. */
  5347. #include <ctype.h>
  5348. #include <stdlib.h>
  5349. #if ((' ' & 0x0FF) == 0x020)
  5350. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5351. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5352. #else
  5353. # define ISLOWER(c) \
  5354. (('a' <= (c) && (c) <= 'i') \
  5355. || ('j' <= (c) && (c) <= 'r') \
  5356. || ('s' <= (c) && (c) <= 'z'))
  5357. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5358. #endif
  5359. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5360. int
  5361. main ()
  5362. {
  5363. int i;
  5364. for (i = 0; i < 256; i++)
  5365. if (XOR (islower (i), ISLOWER (i))
  5366. || toupper (i) != TOUPPER (i))
  5367. return 2;
  5368. return 0;
  5369. }
  5370. _ACEOF
  5371. if ac_fn_c_try_run "$LINENO"; then :
  5372. else
  5373. ac_cv_header_stdc=no
  5374. fi
  5375. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5376. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5377. fi
  5378. fi
  5379. fi
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5381. $as_echo "$ac_cv_header_stdc" >&6; }
  5382. if test $ac_cv_header_stdc = yes; then
  5383. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5384. fi
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5386. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5387. if ${ac_cv_header_time+:} false; then :
  5388. $as_echo_n "(cached) " >&6
  5389. else
  5390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5391. /* end confdefs.h. */
  5392. #include <sys/types.h>
  5393. #include <sys/time.h>
  5394. #include <time.h>
  5395. int
  5396. main ()
  5397. {
  5398. if ((struct tm *) 0)
  5399. return 0;
  5400. ;
  5401. return 0;
  5402. }
  5403. _ACEOF
  5404. if ac_fn_c_try_compile "$LINENO"; then :
  5405. ac_cv_header_time=yes
  5406. else
  5407. ac_cv_header_time=no
  5408. fi
  5409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5410. fi
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5412. $as_echo "$ac_cv_header_time" >&6; }
  5413. if test $ac_cv_header_time = yes; then
  5414. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  5415. fi
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5417. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5418. if ${ac_cv_header_sys_wait_h+:} false; then :
  5419. $as_echo_n "(cached) " >&6
  5420. else
  5421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5422. /* end confdefs.h. */
  5423. #include <sys/types.h>
  5424. #include <sys/wait.h>
  5425. #ifndef WEXITSTATUS
  5426. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5427. #endif
  5428. #ifndef WIFEXITED
  5429. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5430. #endif
  5431. int
  5432. main ()
  5433. {
  5434. int s;
  5435. wait (&s);
  5436. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5437. ;
  5438. return 0;
  5439. }
  5440. _ACEOF
  5441. if ac_fn_c_try_compile "$LINENO"; then :
  5442. ac_cv_header_sys_wait_h=yes
  5443. else
  5444. ac_cv_header_sys_wait_h=no
  5445. fi
  5446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5447. fi
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5449. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  5450. if test $ac_cv_header_sys_wait_h = yes; then
  5451. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  5452. fi
  5453. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5454. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5455. inttypes.h stdint.h unistd.h
  5456. do :
  5457. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5458. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5459. "
  5460. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5461. cat >>confdefs.h <<_ACEOF
  5462. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5463. _ACEOF
  5464. fi
  5465. done
  5466. for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h grp.h inttypes.h
  5467. do :
  5468. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5469. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5470. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5471. cat >>confdefs.h <<_ACEOF
  5472. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5473. _ACEOF
  5474. fi
  5475. done
  5476. for ac_header in netdb.h pwd.h signal.h stdint.h strings.h string.h syslog.h
  5477. do :
  5478. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5479. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5480. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5481. cat >>confdefs.h <<_ACEOF
  5482. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5483. _ACEOF
  5484. fi
  5485. done
  5486. for ac_header in tcpd.h unistd.h arpa/inet.h netinet/in.h socket.h sys/types.h
  5487. do :
  5488. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5489. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5490. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5491. cat >>confdefs.h <<_ACEOF
  5492. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5493. _ACEOF
  5494. fi
  5495. done
  5496. for ac_header in sys/time.h sys/resource.h sys/wait.h sys/socket.h sys/stat.h
  5497. do :
  5498. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5499. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5500. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5501. cat >>confdefs.h <<_ACEOF
  5502. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5503. _ACEOF
  5504. fi
  5505. done
  5506. for ac_header in paths.h
  5507. do :
  5508. ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
  5509. if test "x$ac_cv_header_paths_h" = xyes; then :
  5510. cat >>confdefs.h <<_ACEOF
  5511. #define HAVE_PATHS_H 1
  5512. _ACEOF
  5513. fi
  5514. done
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  5516. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  5517. if ${ac_cv_c_const+:} false; then :
  5518. $as_echo_n "(cached) " >&6
  5519. else
  5520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5521. /* end confdefs.h. */
  5522. int
  5523. main ()
  5524. {
  5525. #ifndef __cplusplus
  5526. /* Ultrix mips cc rejects this sort of thing. */
  5527. typedef int charset[2];
  5528. const charset cs = { 0, 0 };
  5529. /* SunOS 4.1.1 cc rejects this. */
  5530. char const *const *pcpcc;
  5531. char **ppc;
  5532. /* NEC SVR4.0.2 mips cc rejects this. */
  5533. struct point {int x, y;};
  5534. static struct point const zero = {0,0};
  5535. /* AIX XL C 1.02.0.0 rejects this.
  5536. It does not let you subtract one const X* pointer from another in
  5537. an arm of an if-expression whose if-part is not a constant
  5538. expression */
  5539. const char *g = "string";
  5540. pcpcc = &g + (g ? g-g : 0);
  5541. /* HPUX 7.0 cc rejects these. */
  5542. ++pcpcc;
  5543. ppc = (char**) pcpcc;
  5544. pcpcc = (char const *const *) ppc;
  5545. { /* SCO 3.2v4 cc rejects this sort of thing. */
  5546. char tx;
  5547. char *t = &tx;
  5548. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5549. *t++ = 0;
  5550. if (s) return 0;
  5551. }
  5552. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5553. int x[] = {25, 17};
  5554. const int *foo = &x[0];
  5555. ++foo;
  5556. }
  5557. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5558. typedef const int *iptr;
  5559. iptr p = 0;
  5560. ++p;
  5561. }
  5562. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  5563. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5564. struct s { int j; const int *ap[3]; } bx;
  5565. struct s *b = &bx; b->j = 5;
  5566. }
  5567. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5568. const int foo = 10;
  5569. if (!foo) return 0;
  5570. }
  5571. return !cs[0] && !zero.x;
  5572. #endif
  5573. ;
  5574. return 0;
  5575. }
  5576. _ACEOF
  5577. if ac_fn_c_try_compile "$LINENO"; then :
  5578. ac_cv_c_const=yes
  5579. else
  5580. ac_cv_c_const=no
  5581. fi
  5582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5583. fi
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5585. $as_echo "$ac_cv_c_const" >&6; }
  5586. if test $ac_cv_c_const = no; then
  5587. $as_echo "#define const /**/" >>confdefs.h
  5588. fi
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  5590. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  5591. if ${ac_cv_struct_tm+:} false; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5595. /* end confdefs.h. */
  5596. #include <sys/types.h>
  5597. #include <time.h>
  5598. int
  5599. main ()
  5600. {
  5601. struct tm tm;
  5602. int *p = &tm.tm_sec;
  5603. return !p;
  5604. ;
  5605. return 0;
  5606. }
  5607. _ACEOF
  5608. if ac_fn_c_try_compile "$LINENO"; then :
  5609. ac_cv_struct_tm=time.h
  5610. else
  5611. ac_cv_struct_tm=sys/time.h
  5612. fi
  5613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5614. fi
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  5616. $as_echo "$ac_cv_struct_tm" >&6; }
  5617. if test $ac_cv_struct_tm = sys/time.h; then
  5618. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  5619. fi
  5620. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  5621. if test "x$ac_cv_type_mode_t" = xyes; then :
  5622. else
  5623. cat >>confdefs.h <<_ACEOF
  5624. #define mode_t int
  5625. _ACEOF
  5626. fi
  5627. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5628. if test "x$ac_cv_type_pid_t" = xyes; then :
  5629. else
  5630. cat >>confdefs.h <<_ACEOF
  5631. #define pid_t int
  5632. _ACEOF
  5633. fi
  5634. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5635. if test "x$ac_cv_type_size_t" = xyes; then :
  5636. else
  5637. cat >>confdefs.h <<_ACEOF
  5638. #define size_t unsigned int
  5639. _ACEOF
  5640. fi
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  5642. $as_echo_n "checking return type of signal handlers... " >&6; }
  5643. if ${ac_cv_type_signal+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5647. /* end confdefs.h. */
  5648. #include <sys/types.h>
  5649. #include <signal.h>
  5650. int
  5651. main ()
  5652. {
  5653. return *(signal (0, 0)) (0) == 1;
  5654. ;
  5655. return 0;
  5656. }
  5657. _ACEOF
  5658. if ac_fn_c_try_compile "$LINENO"; then :
  5659. ac_cv_type_signal=int
  5660. else
  5661. ac_cv_type_signal=void
  5662. fi
  5663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5664. fi
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  5666. $as_echo "$ac_cv_type_signal" >&6; }
  5667. cat >>confdefs.h <<_ACEOF
  5668. #define RETSIGTYPE $ac_cv_type_signal
  5669. _ACEOF
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5671. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5672. if ${ac_cv_type_uid_t+:} false; then :
  5673. $as_echo_n "(cached) " >&6
  5674. else
  5675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5676. /* end confdefs.h. */
  5677. #include <sys/types.h>
  5678. _ACEOF
  5679. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5680. $EGREP "uid_t" >/dev/null 2>&1; then :
  5681. ac_cv_type_uid_t=yes
  5682. else
  5683. ac_cv_type_uid_t=no
  5684. fi
  5685. rm -f conftest*
  5686. fi
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5688. $as_echo "$ac_cv_type_uid_t" >&6; }
  5689. if test $ac_cv_type_uid_t = no; then
  5690. $as_echo "#define uid_t int" >>confdefs.h
  5691. $as_echo "#define gid_t int" >>confdefs.h
  5692. fi
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
  5694. $as_echo_n "checking type of array argument to getgroups... " >&6; }
  5695. if ${ac_cv_type_getgroups+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. if test "$cross_compiling" = yes; then :
  5699. ac_cv_type_getgroups=cross
  5700. else
  5701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5702. /* end confdefs.h. */
  5703. /* Thanks to Mike Rendell for this test. */
  5704. $ac_includes_default
  5705. #define NGID 256
  5706. #undef MAX
  5707. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  5708. int
  5709. main ()
  5710. {
  5711. gid_t gidset[NGID];
  5712. int i, n;
  5713. union { gid_t gval; long int lval; } val;
  5714. val.lval = -1;
  5715. for (i = 0; i < NGID; i++)
  5716. gidset[i] = val.gval;
  5717. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  5718. gidset);
  5719. /* Exit non-zero if getgroups seems to require an array of ints. This
  5720. happens when gid_t is short int but getgroups modifies an array
  5721. of ints. */
  5722. return n > 0 && gidset[n] != val.gval;
  5723. }
  5724. _ACEOF
  5725. if ac_fn_c_try_run "$LINENO"; then :
  5726. ac_cv_type_getgroups=gid_t
  5727. else
  5728. ac_cv_type_getgroups=int
  5729. fi
  5730. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5731. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5732. fi
  5733. if test $ac_cv_type_getgroups = cross; then
  5734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5735. /* end confdefs.h. */
  5736. #include <unistd.h>
  5737. _ACEOF
  5738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5739. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
  5740. ac_cv_type_getgroups=gid_t
  5741. else
  5742. ac_cv_type_getgroups=int
  5743. fi
  5744. rm -f conftest*
  5745. fi
  5746. fi
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
  5748. $as_echo "$ac_cv_type_getgroups" >&6; }
  5749. cat >>confdefs.h <<_ACEOF
  5750. #define GETGROUPS_T $ac_cv_type_getgroups
  5751. _ACEOF
  5752. # The cast to long int works around a bug in the HP C Compiler
  5753. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5754. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5755. # This bug is HP SR number 8606223364.
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5757. $as_echo_n "checking size of int... " >&6; }
  5758. if ${ac_cv_sizeof_int+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5762. else
  5763. if test "$ac_cv_type_int" = yes; then
  5764. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5765. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5766. as_fn_error 77 "cannot compute sizeof (int)
  5767. See \`config.log' for more details" "$LINENO" 5; }
  5768. else
  5769. ac_cv_sizeof_int=0
  5770. fi
  5771. fi
  5772. fi
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5774. $as_echo "$ac_cv_sizeof_int" >&6; }
  5775. cat >>confdefs.h <<_ACEOF
  5776. #define SIZEOF_INT $ac_cv_sizeof_int
  5777. _ACEOF
  5778. # The cast to long int works around a bug in the HP C Compiler
  5779. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5780. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5781. # This bug is HP SR number 8606223364.
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  5783. $as_echo_n "checking size of short... " >&6; }
  5784. if ${ac_cv_sizeof_short+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  5788. else
  5789. if test "$ac_cv_type_short" = yes; then
  5790. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5791. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5792. as_fn_error 77 "cannot compute sizeof (short)
  5793. See \`config.log' for more details" "$LINENO" 5; }
  5794. else
  5795. ac_cv_sizeof_short=0
  5796. fi
  5797. fi
  5798. fi
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  5800. $as_echo "$ac_cv_sizeof_short" >&6; }
  5801. cat >>confdefs.h <<_ACEOF
  5802. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5803. _ACEOF
  5804. # The cast to long int works around a bug in the HP C Compiler
  5805. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5806. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5807. # This bug is HP SR number 8606223364.
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5809. $as_echo_n "checking size of long... " >&6; }
  5810. if ${ac_cv_sizeof_long+:} false; then :
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5814. else
  5815. if test "$ac_cv_type_long" = yes; then
  5816. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5817. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5818. as_fn_error 77 "cannot compute sizeof (long)
  5819. See \`config.log' for more details" "$LINENO" 5; }
  5820. else
  5821. ac_cv_sizeof_long=0
  5822. fi
  5823. fi
  5824. fi
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5826. $as_echo "$ac_cv_sizeof_long" >&6; }
  5827. cat >>confdefs.h <<_ACEOF
  5828. #define SIZEOF_LONG $ac_cv_sizeof_long
  5829. _ACEOF
  5830. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  5831. if test "x$ac_cv_type_uint32_t" = xyes; then :
  5832. else
  5833. cat >>confdefs.h <<_ACEOF
  5834. #define uint32_t unsigned int
  5835. _ACEOF
  5836. fi
  5837. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  5838. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  5839. else
  5840. cat >>confdefs.h <<_ACEOF
  5841. #define u_int32_t unsigned int
  5842. _ACEOF
  5843. fi
  5844. if test "$ac_cv_type_u_int32_t" = no ; then
  5845. if test "$ac_cv_type_u_int32_t" = yes ; then
  5846. $as_echo "#define U_INT32_T_IS_UINT32_T 1" >>confdefs.h
  5847. else
  5848. if test "$ac_cv_sizeof_int" = 4 ; then
  5849. $as_echo "#define U_INT32_T_IS_UINT 1" >>confdefs.h
  5850. else
  5851. if test "$ac_cv_sizeof_long" = 4 ; then
  5852. $as_echo "#define U_INT32_T_IS_ULONG 1" >>confdefs.h
  5853. else
  5854. if test "$ac_cv_sizeof_short" = 4 ; then
  5855. $as_echo "#define U_INT32_T_IS_USHORT 1" >>confdefs.h
  5856. fi
  5857. fi
  5858. fi
  5859. fi
  5860. fi
  5861. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  5862. if test "x$ac_cv_type_int32_t" = xyes; then :
  5863. else
  5864. cat >>confdefs.h <<_ACEOF
  5865. #define int32_t int
  5866. _ACEOF
  5867. fi
  5868. if test "$ac_cv_type_int32_t" = no ; then
  5869. if test "$ac_cv_sizeof_int" = 4 ; then
  5870. $as_echo "#define INT32_T_IS_UINT 1" >>confdefs.h
  5871. else
  5872. if test "$ac_cv_sizeof_long" = 4 ; then
  5873. $as_echo "#define INT32_T_IS_ULONG 1" >>confdefs.h
  5874. else
  5875. if test "$ac_cv_sizeof_short" = 4 ; then
  5876. $as_echo "#define INT32_T_IS_USHORT 1" >>confdefs.h
  5877. fi
  5878. fi
  5879. fi
  5880. fi
  5881. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
  5882. "
  5883. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
  5884. cat >>confdefs.h <<_ACEOF
  5885. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  5886. _ACEOF
  5887. fi
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  5889. $as_echo_n "checking for va_copy... " >&6; }
  5890. if ${ac_cv_HAVE_VA_COPY+:} false; then :
  5891. $as_echo_n "(cached) " >&6
  5892. else
  5893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5894. /* end confdefs.h. */
  5895. #include <stdarg.h>
  5896. va_list ap1,ap2;
  5897. int
  5898. main ()
  5899. {
  5900. va_copy(ap1,ap2);
  5901. ;
  5902. return 0;
  5903. }
  5904. _ACEOF
  5905. if ac_fn_c_try_link "$LINENO"; then :
  5906. ac_cv_HAVE_VA_COPY=yes
  5907. else
  5908. ac_cv_HAVE_VA_COPY=no
  5909. fi
  5910. rm -f core conftest.err conftest.$ac_objext \
  5911. conftest$ac_exeext conftest.$ac_ext
  5912. fi
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_VA_COPY" >&5
  5914. $as_echo "$ac_cv_HAVE_VA_COPY" >&6; }
  5915. if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then
  5916. $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
  5917. else
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
  5919. $as_echo_n "checking for __va_copy... " >&6; }
  5920. if ${ac_cv_HAVE___VA_COPY+:} false; then :
  5921. $as_echo_n "(cached) " >&6
  5922. else
  5923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5924. /* end confdefs.h. */
  5925. #include <stdarg.h>
  5926. va_list ap1,ap2;
  5927. int
  5928. main ()
  5929. {
  5930. __va_copy(ap1,ap2);
  5931. ;
  5932. return 0;
  5933. }
  5934. _ACEOF
  5935. if ac_fn_c_try_link "$LINENO"; then :
  5936. ac_cv_HAVE___VA_COPY=yes
  5937. else
  5938. ac_cv_HAVE___VA_COPY=no
  5939. fi
  5940. rm -f core conftest.err conftest.$ac_objext \
  5941. conftest$ac_exeext conftest.$ac_ext
  5942. fi
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE___VA_COPY" >&5
  5944. $as_echo "$ac_cv_HAVE___VA_COPY" >&6; }
  5945. if test x"$ac_cv_HAVE___VA_COPY" = x"yes"; then
  5946. $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
  5947. fi
  5948. fi
  5949. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  5950. if test "x$ac_cv_func_vsnprintf" = xyes; then :
  5951. else
  5952. SNPRINTF_O=./snprintf.o
  5953. fi
  5954. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  5955. if test "x$ac_cv_func_snprintf" = xyes; then :
  5956. else
  5957. SNPRINTF_O=./snprintf.o
  5958. fi
  5959. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  5960. if test "x$ac_cv_func_asprintf" = xyes; then :
  5961. else
  5962. SNPRINTF_O=./snprintf.o
  5963. fi
  5964. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  5965. if test "x$ac_cv_func_vasprintf" = xyes; then :
  5966. else
  5967. SNPRINTF_O=./snprintf.o
  5968. fi
  5969. ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
  5970. if test "x$ac_cv_func_seteuid" = xyes; then :
  5971. $as_echo "#define SETEUID(id) seteuid(id)" >>confdefs.h
  5972. else
  5973. $as_echo "#define SETEUID(id) setresuid((uid_t) -1, id, (uid_t) -1)" >>confdefs.h
  5974. fi
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
  5976. $as_echo_n "checking for C99 vsnprintf... " >&6; }
  5977. if ${ac_cv_HAVE_C99_VSNPRINTF+:} false; then :
  5978. $as_echo_n "(cached) " >&6
  5979. else
  5980. if test "$cross_compiling" = yes; then :
  5981. ac_cv_HAVE_C99_VSNPRINTF=cross
  5982. else
  5983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5984. /* end confdefs.h. */
  5985. #include <sys/types.h>
  5986. #include <stdarg.h>
  5987. void foo(const char *format, ...) {
  5988. va_list ap;
  5989. int len;
  5990. char buf[5];
  5991. va_start(ap, format);
  5992. len = vsnprintf(buf, 0, format, ap);
  5993. va_end(ap);
  5994. if (len != 5) exit(1);
  5995. va_start(ap, format);
  5996. len = vsnprintf(0, 0, format, ap);
  5997. va_end(ap);
  5998. if (len != 5) exit(1);
  5999. if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
  6000. exit(0);
  6001. }
  6002. main() { foo("hello"); }
  6003. _ACEOF
  6004. if ac_fn_c_try_run "$LINENO"; then :
  6005. ac_cv_HAVE_C99_VSNPRINTF=yes
  6006. else
  6007. ac_cv_HAVE_C99_VSNPRINTF=no
  6008. fi
  6009. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6010. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6011. fi
  6012. fi
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_C99_VSNPRINTF" >&5
  6014. $as_echo "$ac_cv_HAVE_C99_VSNPRINTF" >&6; }
  6015. if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
  6016. $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
  6017. fi
  6018. for ac_func in getopt_long
  6019. do :
  6020. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  6021. if test "x$ac_cv_func_getopt_long" = xyes; then :
  6022. cat >>confdefs.h <<_ACEOF
  6023. #define HAVE_GETOPT_LONG 1
  6024. _ACEOF
  6025. else
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -liberty" >&5
  6027. $as_echo_n "checking for getopt_long in -liberty... " >&6; }
  6028. if ${ac_cv_lib_iberty_getopt_long+:} false; then :
  6029. $as_echo_n "(cached) " >&6
  6030. else
  6031. ac_check_lib_save_LIBS=$LIBS
  6032. LIBS="-liberty $LIBS"
  6033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6034. /* end confdefs.h. */
  6035. /* Override any GCC internal prototype to avoid an error.
  6036. Use char because int might match the return type of a GCC
  6037. builtin and then its argument prototype would still apply. */
  6038. #ifdef __cplusplus
  6039. extern "C"
  6040. #endif
  6041. char getopt_long ();
  6042. int
  6043. main ()
  6044. {
  6045. return getopt_long ();
  6046. ;
  6047. return 0;
  6048. }
  6049. _ACEOF
  6050. if ac_fn_c_try_link "$LINENO"; then :
  6051. ac_cv_lib_iberty_getopt_long=yes
  6052. else
  6053. ac_cv_lib_iberty_getopt_long=no
  6054. fi
  6055. rm -f core conftest.err conftest.$ac_objext \
  6056. conftest$ac_exeext conftest.$ac_ext
  6057. LIBS=$ac_check_lib_save_LIBS
  6058. fi
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_getopt_long" >&5
  6060. $as_echo "$ac_cv_lib_iberty_getopt_long" >&6; }
  6061. if test "x$ac_cv_lib_iberty_getopt_long" = xyes; then :
  6062. OTHERLIBS="$OTHERLIBS -liberty"
  6063. fi
  6064. fi
  6065. done
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  6067. $as_echo_n "checking for main in -lnsl... " >&6; }
  6068. if ${ac_cv_lib_nsl_main+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. ac_check_lib_save_LIBS=$LIBS
  6072. LIBS="-lnsl $LIBS"
  6073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6074. /* end confdefs.h. */
  6075. int
  6076. main ()
  6077. {
  6078. return main ();
  6079. ;
  6080. return 0;
  6081. }
  6082. _ACEOF
  6083. if ac_fn_c_try_link "$LINENO"; then :
  6084. ac_cv_lib_nsl_main=yes
  6085. else
  6086. ac_cv_lib_nsl_main=no
  6087. fi
  6088. rm -f core conftest.err conftest.$ac_objext \
  6089. conftest$ac_exeext conftest.$ac_ext
  6090. LIBS=$ac_check_lib_save_LIBS
  6091. fi
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  6093. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  6094. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  6095. SOCKETLIBS="$SOCKETLIBS -lnsl"
  6096. fi
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  6098. $as_echo_n "checking for socket in -lsocket... " >&6; }
  6099. if ${ac_cv_lib_socket_socket+:} false; then :
  6100. $as_echo_n "(cached) " >&6
  6101. else
  6102. ac_check_lib_save_LIBS=$LIBS
  6103. LIBS="-lsocket $LIBS"
  6104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6105. /* end confdefs.h. */
  6106. /* Override any GCC internal prototype to avoid an error.
  6107. Use char because int might match the return type of a GCC
  6108. builtin and then its argument prototype would still apply. */
  6109. #ifdef __cplusplus
  6110. extern "C"
  6111. #endif
  6112. char socket ();
  6113. int
  6114. main ()
  6115. {
  6116. return socket ();
  6117. ;
  6118. return 0;
  6119. }
  6120. _ACEOF
  6121. if ac_fn_c_try_link "$LINENO"; then :
  6122. ac_cv_lib_socket_socket=yes
  6123. else
  6124. ac_cv_lib_socket_socket=no
  6125. fi
  6126. rm -f core conftest.err conftest.$ac_objext \
  6127. conftest$ac_exeext conftest.$ac_ext
  6128. LIBS=$ac_check_lib_save_LIBS
  6129. fi
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  6131. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  6132. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  6133. SOCKETLIBS="$SOCKETLIBS -lsocket"
  6134. fi
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwrap" >&5
  6136. $as_echo_n "checking for main in -lwrap... " >&6; }
  6137. if ${ac_cv_lib_wrap_main+:} false; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. ac_check_lib_save_LIBS=$LIBS
  6141. LIBS="-lwrap $LIBS"
  6142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6143. /* end confdefs.h. */
  6144. int
  6145. main ()
  6146. {
  6147. return main ();
  6148. ;
  6149. return 0;
  6150. }
  6151. _ACEOF
  6152. if ac_fn_c_try_link "$LINENO"; then :
  6153. ac_cv_lib_wrap_main=yes
  6154. else
  6155. ac_cv_lib_wrap_main=no
  6156. fi
  6157. rm -f core conftest.err conftest.$ac_objext \
  6158. conftest$ac_exeext conftest.$ac_ext
  6159. LIBS=$ac_check_lib_save_LIBS
  6160. fi
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_main" >&5
  6162. $as_echo "$ac_cv_lib_wrap_main" >&6; }
  6163. if test "x$ac_cv_lib_wrap_main" = xyes; then :
  6164. LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
  6165. $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
  6166. fi
  6167. for ac_func in strdup strstr strtoul strtok_r initgroups closesocket sigaction
  6168. do :
  6169. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6170. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6171. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6172. cat >>confdefs.h <<_ACEOF
  6173. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6174. _ACEOF
  6175. fi
  6176. done
  6177. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  6178. #include <sys/socket.h>
  6179. "
  6180. if test "x$ac_cv_type_socklen_t" = xyes; then :
  6181. else
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  6183. $as_echo_n "checking for socklen_t equivalent... " >&6; }
  6184. if ${curl_cv_socklen_t_equiv+:} false; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. # Systems have either "struct sockaddr *" or
  6188. # "void *" as the second argument to getpeername
  6189. curl_cv_socklen_t_equiv=
  6190. for arg2 in "struct sockaddr" void; do
  6191. for t in int size_t unsigned long "unsigned long"; do
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #ifdef HAVE_SYS_TYPES_H
  6195. #include <sys/types.h>
  6196. #endif
  6197. #ifdef HAVE_SYS_SOCKET_H
  6198. #include <sys/socket.h>
  6199. #endif
  6200. int getpeername (int, $arg2 *, $t *);
  6201. int
  6202. main ()
  6203. {
  6204. $t len;
  6205. getpeername(0,0,&len);
  6206. ;
  6207. return 0;
  6208. }
  6209. _ACEOF
  6210. if ac_fn_c_try_compile "$LINENO"; then :
  6211. curl_cv_socklen_t_equiv="$t"
  6212. break
  6213. fi
  6214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6215. done
  6216. done
  6217. if test "x$curl_cv_socklen_t_equiv" = x; then
  6218. as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  6219. fi
  6220. fi
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
  6222. $as_echo "$curl_cv_socklen_t_equiv" >&6; }
  6223. cat >>confdefs.h <<_ACEOF
  6224. #define socklen_t $curl_cv_socklen_t_equiv
  6225. _ACEOF
  6226. fi
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket size" >&5
  6228. $as_echo_n "checking for type of socket size... " >&6; }
  6229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end confdefs.h. */
  6231. #include <stdlib.h>
  6232. #include <sys/types.h>
  6233. #include <sys/socket.h>
  6234. int
  6235. main ()
  6236. {
  6237. int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. if ac_fn_c_try_compile "$LINENO"; then :
  6243. $as_echo "#define SOCKET_SIZE_TYPE size_t" >>confdefs.h
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
  6245. $as_echo "size_t" >&6; }
  6246. else
  6247. $as_echo "#define SOCKET_SIZE_TYPE int" >>confdefs.h
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
  6249. $as_echo "int" >&6; }
  6250. fi
  6251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6252. # Check whether --enable-ssl was given.
  6253. if test "${enable_ssl+set}" = set; then :
  6254. enableval=$enable_ssl;
  6255. if test x$enableval = xyes; then
  6256. check_for_ssl=yes
  6257. else
  6258. check_for_ssl=no
  6259. fi
  6260. else
  6261. check_for_ssl=yes
  6262. fi
  6263. ssl_dir=
  6264. ssl_inc_dir=
  6265. ssl_lib_dir=
  6266. # Check whether --with-ssl was given.
  6267. if test "${with_ssl+set}" = set; then :
  6268. withval=$with_ssl; ssl_dir=$withval
  6269. fi
  6270. # Check whether --with-ssl-inc was given.
  6271. if test "${with_ssl_inc+set}" = set; then :
  6272. withval=$with_ssl_inc; ssl_inc_dir=$withval
  6273. fi
  6274. # Check whether --with-ssl-lib was given.
  6275. if test "${with_ssl_lib+set}" = set; then :
  6276. withval=$with_ssl_lib; ssl_lib_dir=$withval
  6277. fi
  6278. # Check whether --with-kerberos-inc was given.
  6279. if test "${with_kerberos_inc+set}" = set; then :
  6280. withval=$with_kerberos_inc; kerberos_inc_dir=$withval
  6281. fi
  6282. if test x$check_for_ssl = xyes; then
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL headers" >&5
  6284. $as_echo_n "checking for SSL headers... " >&6; }
  6285. found_ssl=no
  6286. 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
  6287. ssldir="$dir"
  6288. if test -f "$dir/include/openssl/ssl.h"; then
  6289. found_ssl=yes
  6290. CFLAGS="$CFLAGS -I$dir/include/openssl -I$ssldir/include"
  6291. sslincdir="$dir/include/openssl"
  6292. break
  6293. fi
  6294. if test -f "$dir/include/ssl.h"; then
  6295. found_ssl=yes
  6296. CFLAGS="$CFLAGS -I$dir/include"
  6297. sslincdir="$dir/include"
  6298. break
  6299. fi
  6300. if test -f "$dir/ssl.h"; then
  6301. found_ssl=yes
  6302. CFLAGS="$CFLAGS -I$dir"
  6303. sslincdir="$dir"
  6304. ssldir="$dir/.."
  6305. break
  6306. fi
  6307. if test -f "$dir/openssl/ssl.h"; then
  6308. found_ssl=yes
  6309. CFLAGS="$CFLAGS -I$dir/openssl"
  6310. sslincdir="$dir/openssl"
  6311. ssldir="$dir/.."
  6312. break
  6313. fi
  6314. done
  6315. if test x_$found_ssl != x_yes; then
  6316. as_fn_error $? "Cannot find ssl headers" "$LINENO" 5
  6317. else
  6318. printf "SSL headers found in $ssldir\n";
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL libraries" >&5
  6320. $as_echo_n "checking for SSL libraries... " >&6; }
  6321. found_ssl=no
  6322. for dir in $ssl_lib_dir $ssldir $ssldir/lib $ssldir/lib64 /usr/lib64 \
  6323. /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/i386-linux-gnu \
  6324. /usr/local/lib /usr/lib/ssl /usr/ssl/lib /usr/openssl/lib \
  6325. /usr/pkg/lib /usr/freeware/lib/openssl /usr/sfw/lib \
  6326. /opt/freeware/lib; do
  6327. ssllibdir="$dir"
  6328. if test "`uname -s`" = "Darwin" ; then
  6329. soext="dylib"
  6330. elif test "`uname -s`" = "HP-UX" ; then
  6331. soext="sl"
  6332. elif test "`uname -s`" = "AIX" ; then
  6333. soext="a"
  6334. else
  6335. soext="so"
  6336. fi
  6337. if test -f "$dir/libssl.$soext"; then
  6338. found_ssl=yes
  6339. break
  6340. fi
  6341. done
  6342. if test x_$found_ssl != x_yes; then
  6343. as_fn_error $? "Cannot find ssl libraries" "$LINENO" 5
  6344. else
  6345. printf "SSL libraries found in $ssllibdir\n";
  6346. LDFLAGS="$LDFLAGS -L$ssllibdir";
  6347. LIBS="$LIBS -lssl -lcrypto";
  6348. cat >>confdefs.h <<_ACEOF
  6349. #define HAVE_SSL 1
  6350. _ACEOF
  6351. # Extract the first word of "openssl", so it can be a program name with args.
  6352. set dummy openssl; ac_word=$2
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6354. $as_echo_n "checking for $ac_word... " >&6; }
  6355. if ${ac_cv_path_sslbin+:} false; then :
  6356. $as_echo_n "(cached) " >&6
  6357. else
  6358. case $sslbin in
  6359. [\\/]* | ?:[\\/]*)
  6360. ac_cv_path_sslbin="$sslbin" # Let the user override the test with a path.
  6361. ;;
  6362. *)
  6363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6364. for as_dir in $ssldir/sbin$PATH_SEPARATOR$ssldir/bin$PATH_SEPARATOR$PATH
  6365. do
  6366. IFS=$as_save_IFS
  6367. test -z "$as_dir" && as_dir=.
  6368. for ac_exec_ext in '' $ac_executable_extensions; do
  6369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6370. ac_cv_path_sslbin="$as_dir/$ac_word$ac_exec_ext"
  6371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6372. break 2
  6373. fi
  6374. done
  6375. done
  6376. IFS=$as_save_IFS
  6377. test -z "$ac_cv_path_sslbin" && ac_cv_path_sslbin="value-if-not-found"
  6378. ;;
  6379. esac
  6380. fi
  6381. sslbin=$ac_cv_path_sslbin
  6382. if test -n "$sslbin"; then
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sslbin" >&5
  6384. $as_echo "$sslbin" >&6; }
  6385. else
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6387. $as_echo "no" >&6; }
  6388. fi
  6389. if test -f "$sslbin"; then
  6390. echo ""
  6391. echo "*** Generating DH Parameters for SSL/TLS ***"
  6392. # awk to strip off meta data at bottom of dhparam output
  6393. $sslbin dhparam -C 2048 | awk '/^-----/ {exit} {print}' > include/dh.h
  6394. fi
  6395. fi
  6396. fi
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos include files" >&5
  6398. $as_echo_n "checking for Kerberos include files... " >&6; }
  6399. found_kerberos=no
  6400. for dir in $kerberos_inc_dir /usr/kerberos/include; do
  6401. kerbdir="$dir"
  6402. if test -f "$dir/krb5.h"; then
  6403. found_kerberos=yes
  6404. CFLAGS="$CFLAGS -I$kerbdir"
  6405. cat >>confdefs.h <<_ACEOF
  6406. #define HAVE_KRB5_H 1
  6407. _ACEOF
  6408. break
  6409. fi
  6410. done
  6411. if test x_$found_kerberos != x_yes; then
  6412. printf "could not find include files\n";
  6413. else
  6414. printf "found Kerberos include files in $kerbdir\n";
  6415. fi
  6416. fi
  6417. # Check whether --with-log_facility was given.
  6418. if test "${with_log_facility+set}" = set; then :
  6419. withval=$with_log_facility; log_facility=$withval
  6420. else
  6421. log_facility=daemon
  6422. fi
  6423. cat >>confdefs.h <<_ACEOF
  6424. #define NRPE_LOG_FACILITY "$log_facility"
  6425. _ACEOF
  6426. # Check whether --with-nrpe_user was given.
  6427. if test "${with_nrpe_user+set}" = set; then :
  6428. withval=$with_nrpe_user; nrpe_user=$withval
  6429. else
  6430. nrpe_user=nagios
  6431. fi
  6432. # Check whether --with-nrpe_group was given.
  6433. if test "${with_nrpe_group+set}" = set; then :
  6434. withval=$with_nrpe_group; nrpe_group=$withval
  6435. else
  6436. nrpe_group=nagios
  6437. fi
  6438. # Check whether --with-nrpe_port was given.
  6439. if test "${with_nrpe_port+set}" = set; then :
  6440. withval=$with_nrpe_port; nrpe_port=$withval
  6441. else
  6442. nrpe_port=5666
  6443. fi
  6444. NRPE_INSTALL_OPTS="-o $nrpe_user -g $nrpe_group"
  6445. cat >>confdefs.h <<_ACEOF
  6446. #define DEFAULT_SERVER_PORT $nrpe_port
  6447. _ACEOF
  6448. # Check whether --with-nagios_user was given.
  6449. if test "${with_nagios_user+set}" = set; then :
  6450. withval=$with_nagios_user; nagios_user=$withval
  6451. else
  6452. nagios_user=nagios
  6453. fi
  6454. # Check whether --with-nagios_group was given.
  6455. if test "${with_nagios_group+set}" = set; then :
  6456. withval=$with_nagios_group; nagios_group=$withval
  6457. else
  6458. nagios_group=nagios
  6459. fi
  6460. NAGIOS_INSTALL_OPTS="-o $nagios_user -g $nagios_group"
  6461. if test "`uname -s`" = "HP-UX" ; then
  6462. LDFLAGS="$LDFLAGS -Wl,+allowdups";
  6463. fi
  6464. # Determine target OS, version and architecture for package build macros
  6465. if test "x$target_ver" = "x" ; then
  6466. TARGET_VER=`uname -r`
  6467. else
  6468. TARGET_VER=$target_ver
  6469. fi
  6470. if test "x$target_os" = "x" ; then
  6471. TARGET_OS=`uname -s`
  6472. else
  6473. TARGET_OS=$target_os
  6474. fi
  6475. if test "x$target_cpu" = "x" ; then
  6476. TARGET_ARCH=`uname -p`
  6477. else
  6478. TARGET_ARCH=$target_cpu
  6479. fi
  6480. TARGET_PLATFORM=""
  6481. if test "x$TARGET_OS" = "xSunOS" ; then
  6482. if test "x$TARGET_VER" = "x5.10" ; then
  6483. TARGET_PLATFORM="sol10"
  6484. fi
  6485. fi
  6486. # Check whether --enable-command-args was given.
  6487. if test "${enable_command_args+set}" = set; then :
  6488. enableval=$enable_command_args;
  6489. cat >>confdefs.h <<_ACEOF
  6490. #define ENABLE_COMMAND_ARGUMENTS 1
  6491. _ACEOF
  6492. fi
  6493. # Check whether --enable-bash-command-substitution was given.
  6494. if test "${enable_bash_command_substitution+set}" = set; then :
  6495. enableval=$enable_bash_command_substitution;
  6496. cat >>confdefs.h <<_ACEOF
  6497. #define ENABLE_BASH_COMMAND_SUBSTITUTION 1
  6498. _ACEOF
  6499. fi
  6500. # Extract the first word of "perl", so it can be a program name with args.
  6501. set dummy perl; ac_word=$2
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6503. $as_echo_n "checking for $ac_word... " >&6; }
  6504. if ${ac_cv_path_PERL+:} false; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. case $PERL in
  6508. [\\/]* | ?:[\\/]*)
  6509. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  6510. ;;
  6511. *)
  6512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6513. for as_dir in $PATH
  6514. do
  6515. IFS=$as_save_IFS
  6516. test -z "$as_dir" && as_dir=.
  6517. for ac_exec_ext in '' $ac_executable_extensions; do
  6518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6519. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  6520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6521. break 2
  6522. fi
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. ;;
  6527. esac
  6528. fi
  6529. PERL=$ac_cv_path_PERL
  6530. if test -n "$PERL"; then
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  6532. $as_echo "$PERL" >&6; }
  6533. else
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6535. $as_echo "no" >&6; }
  6536. fi
  6537. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6538. # Let make expand exec_prefix.
  6539. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6540. DEFS=-DHAVE_CONFIG_H
  6541. ac_libobjs=
  6542. ac_ltlibobjs=
  6543. U=
  6544. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6545. # 1. Remove the extension, and $U if already installed.
  6546. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6547. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6548. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6549. # will be set to the directory where LIBOBJS objects are built.
  6550. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6551. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6552. done
  6553. LIBOBJS=$ac_libobjs
  6554. LTLIBOBJS=$ac_ltlibobjs
  6555. : "${CONFIG_STATUS=./config.status}"
  6556. ac_write_fail=0
  6557. ac_clean_files_save=$ac_clean_files
  6558. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6560. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6561. as_write_fail=0
  6562. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6563. #! $SHELL
  6564. # Generated by $as_me.
  6565. # Run this file to recreate the current configuration.
  6566. # Compiler output produced by configure, useful for debugging
  6567. # configure, is in config.log if it exists.
  6568. debug=false
  6569. ac_cs_recheck=false
  6570. ac_cs_silent=false
  6571. SHELL=\${CONFIG_SHELL-$SHELL}
  6572. export SHELL
  6573. _ASEOF
  6574. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6575. ## -------------------- ##
  6576. ## M4sh Initialization. ##
  6577. ## -------------------- ##
  6578. # Be more Bourne compatible
  6579. DUALCASE=1; export DUALCASE # for MKS sh
  6580. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6581. emulate sh
  6582. NULLCMD=:
  6583. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6584. # is contrary to our usage. Disable this feature.
  6585. alias -g '${1+"$@"}'='"$@"'
  6586. setopt NO_GLOB_SUBST
  6587. else
  6588. case `(set -o) 2>/dev/null` in #(
  6589. *posix*) :
  6590. set -o posix ;; #(
  6591. *) :
  6592. ;;
  6593. esac
  6594. fi
  6595. as_nl='
  6596. '
  6597. export as_nl
  6598. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6599. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6600. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6601. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6602. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6603. # but without wasting forks for bash or zsh.
  6604. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6605. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6606. as_echo='print -r --'
  6607. as_echo_n='print -rn --'
  6608. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6609. as_echo='printf %s\n'
  6610. as_echo_n='printf %s'
  6611. else
  6612. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6613. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6614. as_echo_n='/usr/ucb/echo -n'
  6615. else
  6616. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6617. as_echo_n_body='eval
  6618. arg=$1;
  6619. case $arg in #(
  6620. *"$as_nl"*)
  6621. expr "X$arg" : "X\\(.*\\)$as_nl";
  6622. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6623. esac;
  6624. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6625. '
  6626. export as_echo_n_body
  6627. as_echo_n='sh -c $as_echo_n_body as_echo'
  6628. fi
  6629. export as_echo_body
  6630. as_echo='sh -c $as_echo_body as_echo'
  6631. fi
  6632. # The user is always right.
  6633. if test "${PATH_SEPARATOR+set}" != set; then
  6634. PATH_SEPARATOR=:
  6635. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6636. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6637. PATH_SEPARATOR=';'
  6638. }
  6639. fi
  6640. # IFS
  6641. # We need space, tab and new line, in precisely that order. Quoting is
  6642. # there to prevent editors from complaining about space-tab.
  6643. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6644. # splitting by setting IFS to empty value.)
  6645. IFS=" "" $as_nl"
  6646. # Find who we are. Look in the path if we contain no directory separator.
  6647. as_myself=
  6648. case $0 in #((
  6649. *[\\/]* ) as_myself=$0 ;;
  6650. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6651. for as_dir in $PATH
  6652. do
  6653. IFS=$as_save_IFS
  6654. test -z "$as_dir" && as_dir=.
  6655. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6656. done
  6657. IFS=$as_save_IFS
  6658. ;;
  6659. esac
  6660. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6661. # in which case we are not to be found in the path.
  6662. if test "x$as_myself" = x; then
  6663. as_myself=$0
  6664. fi
  6665. if test ! -f "$as_myself"; then
  6666. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6667. exit 1
  6668. fi
  6669. # Unset variables that we do not need and which cause bugs (e.g. in
  6670. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6671. # suppresses any "Segmentation fault" message there. '((' could
  6672. # trigger a bug in pdksh 5.2.14.
  6673. for as_var in BASH_ENV ENV MAIL MAILPATH
  6674. do eval test x\${$as_var+set} = xset \
  6675. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6676. done
  6677. PS1='$ '
  6678. PS2='> '
  6679. PS4='+ '
  6680. # NLS nuisances.
  6681. LC_ALL=C
  6682. export LC_ALL
  6683. LANGUAGE=C
  6684. export LANGUAGE
  6685. # CDPATH.
  6686. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6687. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6688. # ----------------------------------------
  6689. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6690. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6691. # script with STATUS, using 1 if that was 0.
  6692. as_fn_error ()
  6693. {
  6694. as_status=$1; test $as_status -eq 0 && as_status=1
  6695. if test "$4"; then
  6696. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6697. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6698. fi
  6699. $as_echo "$as_me: error: $2" >&2
  6700. as_fn_exit $as_status
  6701. } # as_fn_error
  6702. # as_fn_set_status STATUS
  6703. # -----------------------
  6704. # Set $? to STATUS, without forking.
  6705. as_fn_set_status ()
  6706. {
  6707. return $1
  6708. } # as_fn_set_status
  6709. # as_fn_exit STATUS
  6710. # -----------------
  6711. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6712. as_fn_exit ()
  6713. {
  6714. set +e
  6715. as_fn_set_status $1
  6716. exit $1
  6717. } # as_fn_exit
  6718. # as_fn_unset VAR
  6719. # ---------------
  6720. # Portably unset VAR.
  6721. as_fn_unset ()
  6722. {
  6723. { eval $1=; unset $1;}
  6724. }
  6725. as_unset=as_fn_unset
  6726. # as_fn_append VAR VALUE
  6727. # ----------------------
  6728. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6729. # advantage of any shell optimizations that allow amortized linear growth over
  6730. # repeated appends, instead of the typical quadratic growth present in naive
  6731. # implementations.
  6732. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6733. eval 'as_fn_append ()
  6734. {
  6735. eval $1+=\$2
  6736. }'
  6737. else
  6738. as_fn_append ()
  6739. {
  6740. eval $1=\$$1\$2
  6741. }
  6742. fi # as_fn_append
  6743. # as_fn_arith ARG...
  6744. # ------------------
  6745. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6746. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6747. # must be portable across $(()) and expr.
  6748. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6749. eval 'as_fn_arith ()
  6750. {
  6751. as_val=$(( $* ))
  6752. }'
  6753. else
  6754. as_fn_arith ()
  6755. {
  6756. as_val=`expr "$@" || test $? -eq 1`
  6757. }
  6758. fi # as_fn_arith
  6759. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6760. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6761. as_expr=expr
  6762. else
  6763. as_expr=false
  6764. fi
  6765. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6766. as_basename=basename
  6767. else
  6768. as_basename=false
  6769. fi
  6770. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6771. as_dirname=dirname
  6772. else
  6773. as_dirname=false
  6774. fi
  6775. as_me=`$as_basename -- "$0" ||
  6776. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6777. X"$0" : 'X\(//\)$' \| \
  6778. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6779. $as_echo X/"$0" |
  6780. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6781. s//\1/
  6782. q
  6783. }
  6784. /^X\/\(\/\/\)$/{
  6785. s//\1/
  6786. q
  6787. }
  6788. /^X\/\(\/\).*/{
  6789. s//\1/
  6790. q
  6791. }
  6792. s/.*/./; q'`
  6793. # Avoid depending upon Character Ranges.
  6794. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6795. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6796. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6797. as_cr_digits='0123456789'
  6798. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6799. ECHO_C= ECHO_N= ECHO_T=
  6800. case `echo -n x` in #(((((
  6801. -n*)
  6802. case `echo 'xy\c'` in
  6803. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6804. xy) ECHO_C='\c';;
  6805. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6806. ECHO_T=' ';;
  6807. esac;;
  6808. *)
  6809. ECHO_N='-n';;
  6810. esac
  6811. rm -f conf$$ conf$$.exe conf$$.file
  6812. if test -d conf$$.dir; then
  6813. rm -f conf$$.dir/conf$$.file
  6814. else
  6815. rm -f conf$$.dir
  6816. mkdir conf$$.dir 2>/dev/null
  6817. fi
  6818. if (echo >conf$$.file) 2>/dev/null; then
  6819. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6820. as_ln_s='ln -s'
  6821. # ... but there are two gotchas:
  6822. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6823. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6824. # In both cases, we have to default to `cp -pR'.
  6825. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6826. as_ln_s='cp -pR'
  6827. elif ln conf$$.file conf$$ 2>/dev/null; then
  6828. as_ln_s=ln
  6829. else
  6830. as_ln_s='cp -pR'
  6831. fi
  6832. else
  6833. as_ln_s='cp -pR'
  6834. fi
  6835. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6836. rmdir conf$$.dir 2>/dev/null
  6837. # as_fn_mkdir_p
  6838. # -------------
  6839. # Create "$as_dir" as a directory, including parents if necessary.
  6840. as_fn_mkdir_p ()
  6841. {
  6842. case $as_dir in #(
  6843. -*) as_dir=./$as_dir;;
  6844. esac
  6845. test -d "$as_dir" || eval $as_mkdir_p || {
  6846. as_dirs=
  6847. while :; do
  6848. case $as_dir in #(
  6849. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6850. *) as_qdir=$as_dir;;
  6851. esac
  6852. as_dirs="'$as_qdir' $as_dirs"
  6853. as_dir=`$as_dirname -- "$as_dir" ||
  6854. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6855. X"$as_dir" : 'X\(//\)[^/]' \| \
  6856. X"$as_dir" : 'X\(//\)$' \| \
  6857. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6858. $as_echo X"$as_dir" |
  6859. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6860. s//\1/
  6861. q
  6862. }
  6863. /^X\(\/\/\)[^/].*/{
  6864. s//\1/
  6865. q
  6866. }
  6867. /^X\(\/\/\)$/{
  6868. s//\1/
  6869. q
  6870. }
  6871. /^X\(\/\).*/{
  6872. s//\1/
  6873. q
  6874. }
  6875. s/.*/./; q'`
  6876. test -d "$as_dir" && break
  6877. done
  6878. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6879. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6880. } # as_fn_mkdir_p
  6881. if mkdir -p . 2>/dev/null; then
  6882. as_mkdir_p='mkdir -p "$as_dir"'
  6883. else
  6884. test -d ./-p && rmdir ./-p
  6885. as_mkdir_p=false
  6886. fi
  6887. # as_fn_executable_p FILE
  6888. # -----------------------
  6889. # Test if FILE is an executable regular file.
  6890. as_fn_executable_p ()
  6891. {
  6892. test -f "$1" && test -x "$1"
  6893. } # as_fn_executable_p
  6894. as_test_x='test -x'
  6895. as_executable_p=as_fn_executable_p
  6896. # Sed expression to map a string onto a valid CPP name.
  6897. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6898. # Sed expression to map a string onto a valid variable name.
  6899. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6900. exec 6>&1
  6901. ## ----------------------------------- ##
  6902. ## Main body of $CONFIG_STATUS script. ##
  6903. ## ----------------------------------- ##
  6904. _ASEOF
  6905. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6906. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6907. # Save the log message, to keep $0 and so on meaningful, and to
  6908. # report actual input values of CONFIG_FILES etc. instead of their
  6909. # values after options handling.
  6910. ac_log="
  6911. This file was extended by nrpe $as_me 3.0-beta1, which was
  6912. generated by GNU Autoconf 2.69. Invocation command line was
  6913. CONFIG_FILES = $CONFIG_FILES
  6914. CONFIG_HEADERS = $CONFIG_HEADERS
  6915. CONFIG_LINKS = $CONFIG_LINKS
  6916. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6917. $ $0 $@
  6918. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6919. "
  6920. _ACEOF
  6921. case $ac_config_files in *"
  6922. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6923. esac
  6924. case $ac_config_headers in *"
  6925. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6926. esac
  6927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6928. # Files that config.status was made for.
  6929. config_files="$ac_config_files"
  6930. config_headers="$ac_config_headers"
  6931. _ACEOF
  6932. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6933. ac_cs_usage="\
  6934. \`$as_me' instantiates files and other configuration actions
  6935. from templates according to the current configuration. Unless the files
  6936. and actions are specified as TAGs, all are instantiated by default.
  6937. Usage: $0 [OPTION]... [TAG]...
  6938. -h, --help print this help, then exit
  6939. -V, --version print version number and configuration settings, then exit
  6940. --config print configuration, then exit
  6941. -q, --quiet, --silent
  6942. do not print progress messages
  6943. -d, --debug don't remove temporary files
  6944. --recheck update $as_me by reconfiguring in the same conditions
  6945. --file=FILE[:TEMPLATE]
  6946. instantiate the configuration file FILE
  6947. --header=FILE[:TEMPLATE]
  6948. instantiate the configuration header FILE
  6949. Configuration files:
  6950. $config_files
  6951. Configuration headers:
  6952. $config_headers
  6953. Report bugs to <nagios-users@lists.sourceforge.net>.
  6954. nrpe home page: <https://www.nagios.org/downloads/nagios-core-addons/>."
  6955. _ACEOF
  6956. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6957. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6958. ac_cs_version="\\
  6959. nrpe config.status 3.0-beta1
  6960. configured by $0, generated by GNU Autoconf 2.69,
  6961. with options \\"\$ac_cs_config\\"
  6962. Copyright (C) 2012 Free Software Foundation, Inc.
  6963. This config.status script is free software; the Free Software Foundation
  6964. gives unlimited permission to copy, distribute and modify it."
  6965. ac_pwd='$ac_pwd'
  6966. srcdir='$srcdir'
  6967. INSTALL='$INSTALL'
  6968. test -n "\$AWK" || AWK=awk
  6969. _ACEOF
  6970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6971. # The default lists apply if the user does not specify any file.
  6972. ac_need_defaults=:
  6973. while test $# != 0
  6974. do
  6975. case $1 in
  6976. --*=?*)
  6977. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6978. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6979. ac_shift=:
  6980. ;;
  6981. --*=)
  6982. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6983. ac_optarg=
  6984. ac_shift=:
  6985. ;;
  6986. *)
  6987. ac_option=$1
  6988. ac_optarg=$2
  6989. ac_shift=shift
  6990. ;;
  6991. esac
  6992. case $ac_option in
  6993. # Handling of the options.
  6994. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6995. ac_cs_recheck=: ;;
  6996. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6997. $as_echo "$ac_cs_version"; exit ;;
  6998. --config | --confi | --conf | --con | --co | --c )
  6999. $as_echo "$ac_cs_config"; exit ;;
  7000. --debug | --debu | --deb | --de | --d | -d )
  7001. debug=: ;;
  7002. --file | --fil | --fi | --f )
  7003. $ac_shift
  7004. case $ac_optarg in
  7005. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7006. '') as_fn_error $? "missing file argument" ;;
  7007. esac
  7008. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7009. ac_need_defaults=false;;
  7010. --header | --heade | --head | --hea )
  7011. $ac_shift
  7012. case $ac_optarg in
  7013. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7014. esac
  7015. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7016. ac_need_defaults=false;;
  7017. --he | --h)
  7018. # Conflict between --help and --header
  7019. as_fn_error $? "ambiguous option: \`$1'
  7020. Try \`$0 --help' for more information.";;
  7021. --help | --hel | -h )
  7022. $as_echo "$ac_cs_usage"; exit ;;
  7023. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7024. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7025. ac_cs_silent=: ;;
  7026. # This is an error.
  7027. -*) as_fn_error $? "unrecognized option: \`$1'
  7028. Try \`$0 --help' for more information." ;;
  7029. *) as_fn_append ac_config_targets " $1"
  7030. ac_need_defaults=false ;;
  7031. esac
  7032. shift
  7033. done
  7034. ac_configure_extra_args=
  7035. if $ac_cs_silent; then
  7036. exec 6>/dev/null
  7037. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7038. fi
  7039. _ACEOF
  7040. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7041. if \$ac_cs_recheck; then
  7042. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7043. shift
  7044. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7045. CONFIG_SHELL='$SHELL'
  7046. export CONFIG_SHELL
  7047. exec "\$@"
  7048. fi
  7049. _ACEOF
  7050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7051. exec 5>>config.log
  7052. {
  7053. echo
  7054. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7055. ## Running $as_me. ##
  7056. _ASBOX
  7057. $as_echo "$ac_log"
  7058. } >&5
  7059. _ACEOF
  7060. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7061. _ACEOF
  7062. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7063. # Handling of arguments.
  7064. for ac_config_target in $ac_config_targets
  7065. do
  7066. case $ac_config_target in
  7067. "paths") CONFIG_FILES="$CONFIG_FILES paths" ;;
  7068. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  7069. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7070. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  7071. "package/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES package/solaris/Makefile" ;;
  7072. "nrpe.spec") CONFIG_FILES="$CONFIG_FILES nrpe.spec" ;;
  7073. "sample-config/nrpe.cfg") CONFIG_FILES="$CONFIG_FILES sample-config/nrpe.cfg" ;;
  7074. "startup/bsd-init") CONFIG_FILES="$CONFIG_FILES startup/bsd-init" ;;
  7075. "startup/debian-init") CONFIG_FILES="$CONFIG_FILES startup/debian-init" ;;
  7076. "startup/default-init") CONFIG_FILES="$CONFIG_FILES startup/default-init" ;;
  7077. "startup/default-inetd") CONFIG_FILES="$CONFIG_FILES startup/default-inetd" ;;
  7078. "startup/default-service") CONFIG_FILES="$CONFIG_FILES startup/default-service" ;;
  7079. "startup/default-xinetd") CONFIG_FILES="$CONFIG_FILES startup/default-xinetd" ;;
  7080. "startup/mac-org.nagios.PKG_NAME.plist") CONFIG_FILES="$CONFIG_FILES startup/mac-org.nagios.PKG_NAME.plist" ;;
  7081. "startup/openrc-conf") CONFIG_FILES="$CONFIG_FILES startup/openrc-conf" ;;
  7082. "startup/openrc-init") CONFIG_FILES="$CONFIG_FILES startup/openrc-init" ;;
  7083. "startup/solaris-PKG_NAME.xml") CONFIG_FILES="$CONFIG_FILES startup/solaris-PKG_NAME.xml" ;;
  7084. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7085. esac
  7086. done
  7087. # If the user did not use the arguments to specify the items to instantiate,
  7088. # then the envvar interface is used. Set only those that are not.
  7089. # We use the long form for the default assignment because of an extremely
  7090. # bizarre bug on SunOS 4.1.3.
  7091. if $ac_need_defaults; then
  7092. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7093. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7094. fi
  7095. # Have a temporary directory for convenience. Make it in the build tree
  7096. # simply because there is no reason against having it here, and in addition,
  7097. # creating and moving files from /tmp can sometimes cause problems.
  7098. # Hook for its removal unless debugging.
  7099. # Note that there is a small window in which the directory will not be cleaned:
  7100. # after its creation but before its name has been assigned to `$tmp'.
  7101. $debug ||
  7102. {
  7103. tmp= ac_tmp=
  7104. trap 'exit_status=$?
  7105. : "${ac_tmp:=$tmp}"
  7106. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7107. ' 0
  7108. trap 'as_fn_exit 1' 1 2 13 15
  7109. }
  7110. # Create a (secure) tmp directory for tmp files.
  7111. {
  7112. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7113. test -d "$tmp"
  7114. } ||
  7115. {
  7116. tmp=./conf$$-$RANDOM
  7117. (umask 077 && mkdir "$tmp")
  7118. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7119. ac_tmp=$tmp
  7120. # Set up the scripts for CONFIG_FILES section.
  7121. # No need to generate them if there are no CONFIG_FILES.
  7122. # This happens for instance with `./config.status config.h'.
  7123. if test -n "$CONFIG_FILES"; then
  7124. ac_cr=`echo X | tr X '\015'`
  7125. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7126. # But we know of no other shell where ac_cr would be empty at this
  7127. # point, so we can use a bashism as a fallback.
  7128. if test "x$ac_cr" = x; then
  7129. eval ac_cr=\$\'\\r\'
  7130. fi
  7131. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7132. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7133. ac_cs_awk_cr='\\r'
  7134. else
  7135. ac_cs_awk_cr=$ac_cr
  7136. fi
  7137. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7138. _ACEOF
  7139. {
  7140. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7141. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7142. echo "_ACEOF"
  7143. } >conf$$subs.sh ||
  7144. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7145. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7146. ac_delim='%!_!# '
  7147. for ac_last_try in false false false false false :; do
  7148. . ./conf$$subs.sh ||
  7149. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7150. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7151. if test $ac_delim_n = $ac_delim_num; then
  7152. break
  7153. elif $ac_last_try; then
  7154. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7155. else
  7156. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7157. fi
  7158. done
  7159. rm -f conf$$subs.sh
  7160. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7161. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7162. _ACEOF
  7163. sed -n '
  7164. h
  7165. s/^/S["/; s/!.*/"]=/
  7166. p
  7167. g
  7168. s/^[^!]*!//
  7169. :repl
  7170. t repl
  7171. s/'"$ac_delim"'$//
  7172. t delim
  7173. :nl
  7174. h
  7175. s/\(.\{148\}\)..*/\1/
  7176. t more1
  7177. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7178. p
  7179. n
  7180. b repl
  7181. :more1
  7182. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7183. p
  7184. g
  7185. s/.\{148\}//
  7186. t nl
  7187. :delim
  7188. h
  7189. s/\(.\{148\}\)..*/\1/
  7190. t more2
  7191. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7192. p
  7193. b
  7194. :more2
  7195. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7196. p
  7197. g
  7198. s/.\{148\}//
  7199. t delim
  7200. ' <conf$$subs.awk | sed '
  7201. /^[^""]/{
  7202. N
  7203. s/\n//
  7204. }
  7205. ' >>$CONFIG_STATUS || ac_write_fail=1
  7206. rm -f conf$$subs.awk
  7207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7208. _ACAWK
  7209. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7210. for (key in S) S_is_set[key] = 1
  7211. FS = ""
  7212. }
  7213. {
  7214. line = $ 0
  7215. nfields = split(line, field, "@")
  7216. substed = 0
  7217. len = length(field[1])
  7218. for (i = 2; i < nfields; i++) {
  7219. key = field[i]
  7220. keylen = length(key)
  7221. if (S_is_set[key]) {
  7222. value = S[key]
  7223. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7224. len += length(value) + length(field[++i])
  7225. substed = 1
  7226. } else
  7227. len += 1 + keylen
  7228. }
  7229. print line
  7230. }
  7231. _ACAWK
  7232. _ACEOF
  7233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7234. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7235. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7236. else
  7237. cat
  7238. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7239. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7240. _ACEOF
  7241. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7242. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7243. # trailing colons and then remove the whole line if VPATH becomes empty
  7244. # (actually we leave an empty line to preserve line numbers).
  7245. if test "x$srcdir" = x.; then
  7246. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7247. h
  7248. s///
  7249. s/^/:/
  7250. s/[ ]*$/:/
  7251. s/:\$(srcdir):/:/g
  7252. s/:\${srcdir}:/:/g
  7253. s/:@srcdir@:/:/g
  7254. s/^:*//
  7255. s/:*$//
  7256. x
  7257. s/\(=[ ]*\).*/\1/
  7258. G
  7259. s/\n//
  7260. s/^[^=]*=[ ]*$//
  7261. }'
  7262. fi
  7263. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7264. fi # test -n "$CONFIG_FILES"
  7265. # Set up the scripts for CONFIG_HEADERS section.
  7266. # No need to generate them if there are no CONFIG_HEADERS.
  7267. # This happens for instance with `./config.status Makefile'.
  7268. if test -n "$CONFIG_HEADERS"; then
  7269. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  7270. BEGIN {
  7271. _ACEOF
  7272. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7273. # here-document in config.status, that substitutes the proper values into
  7274. # config.h.in to produce config.h.
  7275. # Create a delimiter string that does not exist in confdefs.h, to ease
  7276. # handling of long lines.
  7277. ac_delim='%!_!# '
  7278. for ac_last_try in false false :; do
  7279. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  7280. if test -z "$ac_tt"; then
  7281. break
  7282. elif $ac_last_try; then
  7283. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7284. else
  7285. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7286. fi
  7287. done
  7288. # For the awk script, D is an array of macro values keyed by name,
  7289. # likewise P contains macro parameters if any. Preserve backslash
  7290. # newline sequences.
  7291. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7292. sed -n '
  7293. s/.\{148\}/&'"$ac_delim"'/g
  7294. t rset
  7295. :rset
  7296. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7297. t def
  7298. d
  7299. :def
  7300. s/\\$//
  7301. t bsnl
  7302. s/["\\]/\\&/g
  7303. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7304. D["\1"]=" \3"/p
  7305. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7306. d
  7307. :bsnl
  7308. s/["\\]/\\&/g
  7309. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7310. D["\1"]=" \3\\\\\\n"\\/p
  7311. t cont
  7312. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7313. t cont
  7314. d
  7315. :cont
  7316. n
  7317. s/.\{148\}/&'"$ac_delim"'/g
  7318. t clear
  7319. :clear
  7320. s/\\$//
  7321. t bsnlc
  7322. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7323. d
  7324. :bsnlc
  7325. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7326. b cont
  7327. ' <confdefs.h | sed '
  7328. s/'"$ac_delim"'/"\\\
  7329. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7331. for (key in D) D_is_set[key] = 1
  7332. FS = ""
  7333. }
  7334. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7335. line = \$ 0
  7336. split(line, arg, " ")
  7337. if (arg[1] == "#") {
  7338. defundef = arg[2]
  7339. mac1 = arg[3]
  7340. } else {
  7341. defundef = substr(arg[1], 2)
  7342. mac1 = arg[2]
  7343. }
  7344. split(mac1, mac2, "(") #)
  7345. macro = mac2[1]
  7346. prefix = substr(line, 1, index(line, defundef) - 1)
  7347. if (D_is_set[macro]) {
  7348. # Preserve the white space surrounding the "#".
  7349. print prefix "define", macro P[macro] D[macro]
  7350. next
  7351. } else {
  7352. # Replace #undef with comments. This is necessary, for example,
  7353. # in the case of _POSIX_SOURCE, which is predefined and required
  7354. # on some systems where configure will not decide to define it.
  7355. if (defundef == "undef") {
  7356. print "/*", prefix defundef, macro, "*/"
  7357. next
  7358. }
  7359. }
  7360. }
  7361. { print }
  7362. _ACAWK
  7363. _ACEOF
  7364. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7365. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7366. fi # test -n "$CONFIG_HEADERS"
  7367. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  7368. shift
  7369. for ac_tag
  7370. do
  7371. case $ac_tag in
  7372. :[FHLC]) ac_mode=$ac_tag; continue;;
  7373. esac
  7374. case $ac_mode$ac_tag in
  7375. :[FHL]*:*);;
  7376. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7377. :[FH]-) ac_tag=-:-;;
  7378. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7379. esac
  7380. ac_save_IFS=$IFS
  7381. IFS=:
  7382. set x $ac_tag
  7383. IFS=$ac_save_IFS
  7384. shift
  7385. ac_file=$1
  7386. shift
  7387. case $ac_mode in
  7388. :L) ac_source=$1;;
  7389. :[FH])
  7390. ac_file_inputs=
  7391. for ac_f
  7392. do
  7393. case $ac_f in
  7394. -) ac_f="$ac_tmp/stdin";;
  7395. *) # Look for the file first in the build tree, then in the source tree
  7396. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7397. # because $ac_f cannot contain `:'.
  7398. test -f "$ac_f" ||
  7399. case $ac_f in
  7400. [\\/$]*) false;;
  7401. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7402. esac ||
  7403. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7404. esac
  7405. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7406. as_fn_append ac_file_inputs " '$ac_f'"
  7407. done
  7408. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7409. # use $as_me), people would be surprised to read:
  7410. # /* config.h. Generated by config.status. */
  7411. configure_input='Generated from '`
  7412. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7413. `' by configure.'
  7414. if test x"$ac_file" != x-; then
  7415. configure_input="$ac_file. $configure_input"
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7417. $as_echo "$as_me: creating $ac_file" >&6;}
  7418. fi
  7419. # Neutralize special characters interpreted by sed in replacement strings.
  7420. case $configure_input in #(
  7421. *\&* | *\|* | *\\* )
  7422. ac_sed_conf_input=`$as_echo "$configure_input" |
  7423. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7424. *) ac_sed_conf_input=$configure_input;;
  7425. esac
  7426. case $ac_tag in
  7427. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7428. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7429. esac
  7430. ;;
  7431. esac
  7432. ac_dir=`$as_dirname -- "$ac_file" ||
  7433. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7434. X"$ac_file" : 'X\(//\)[^/]' \| \
  7435. X"$ac_file" : 'X\(//\)$' \| \
  7436. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7437. $as_echo X"$ac_file" |
  7438. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7439. s//\1/
  7440. q
  7441. }
  7442. /^X\(\/\/\)[^/].*/{
  7443. s//\1/
  7444. q
  7445. }
  7446. /^X\(\/\/\)$/{
  7447. s//\1/
  7448. q
  7449. }
  7450. /^X\(\/\).*/{
  7451. s//\1/
  7452. q
  7453. }
  7454. s/.*/./; q'`
  7455. as_dir="$ac_dir"; as_fn_mkdir_p
  7456. ac_builddir=.
  7457. case "$ac_dir" in
  7458. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7459. *)
  7460. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7461. # A ".." for each directory in $ac_dir_suffix.
  7462. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7463. case $ac_top_builddir_sub in
  7464. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7465. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7466. esac ;;
  7467. esac
  7468. ac_abs_top_builddir=$ac_pwd
  7469. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7470. # for backward compatibility:
  7471. ac_top_builddir=$ac_top_build_prefix
  7472. case $srcdir in
  7473. .) # We are building in place.
  7474. ac_srcdir=.
  7475. ac_top_srcdir=$ac_top_builddir_sub
  7476. ac_abs_top_srcdir=$ac_pwd ;;
  7477. [\\/]* | ?:[\\/]* ) # Absolute name.
  7478. ac_srcdir=$srcdir$ac_dir_suffix;
  7479. ac_top_srcdir=$srcdir
  7480. ac_abs_top_srcdir=$srcdir ;;
  7481. *) # Relative name.
  7482. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7483. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7484. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7485. esac
  7486. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7487. case $ac_mode in
  7488. :F)
  7489. #
  7490. # CONFIG_FILE
  7491. #
  7492. case $INSTALL in
  7493. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7494. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7495. esac
  7496. _ACEOF
  7497. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7498. # If the template does not know about datarootdir, expand it.
  7499. # FIXME: This hack should be removed a few years after 2.60.
  7500. ac_datarootdir_hack=; ac_datarootdir_seen=
  7501. ac_sed_dataroot='
  7502. /datarootdir/ {
  7503. p
  7504. q
  7505. }
  7506. /@datadir@/p
  7507. /@docdir@/p
  7508. /@infodir@/p
  7509. /@localedir@/p
  7510. /@mandir@/p'
  7511. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7512. *datarootdir*) ac_datarootdir_seen=yes;;
  7513. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7515. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7516. _ACEOF
  7517. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7518. ac_datarootdir_hack='
  7519. s&@datadir@&$datadir&g
  7520. s&@docdir@&$docdir&g
  7521. s&@infodir@&$infodir&g
  7522. s&@localedir@&$localedir&g
  7523. s&@mandir@&$mandir&g
  7524. s&\\\${datarootdir}&$datarootdir&g' ;;
  7525. esac
  7526. _ACEOF
  7527. # Neutralize VPATH when `$srcdir' = `.'.
  7528. # Shell code in configure.ac might set extrasub.
  7529. # FIXME: do we really want to maintain this feature?
  7530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7531. ac_sed_extra="$ac_vpsub
  7532. $extrasub
  7533. _ACEOF
  7534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7535. :t
  7536. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7537. s|@configure_input@|$ac_sed_conf_input|;t t
  7538. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7539. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7540. s&@srcdir@&$ac_srcdir&;t t
  7541. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7542. s&@top_srcdir@&$ac_top_srcdir&;t t
  7543. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7544. s&@builddir@&$ac_builddir&;t t
  7545. s&@abs_builddir@&$ac_abs_builddir&;t t
  7546. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7547. s&@INSTALL@&$ac_INSTALL&;t t
  7548. $ac_datarootdir_hack
  7549. "
  7550. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7551. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7552. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7553. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7554. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  7555. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7557. which seems to be undefined. Please make sure it is defined" >&5
  7558. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7559. which seems to be undefined. Please make sure it is defined" >&2;}
  7560. rm -f "$ac_tmp/stdin"
  7561. case $ac_file in
  7562. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7563. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7564. esac \
  7565. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7566. ;;
  7567. :H)
  7568. #
  7569. # CONFIG_HEADER
  7570. #
  7571. if test x"$ac_file" != x-; then
  7572. {
  7573. $as_echo "/* $configure_input */" \
  7574. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  7575. } >"$ac_tmp/config.h" \
  7576. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7577. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7579. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7580. else
  7581. rm -f "$ac_file"
  7582. mv "$ac_tmp/config.h" "$ac_file" \
  7583. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7584. fi
  7585. else
  7586. $as_echo "/* $configure_input */" \
  7587. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  7588. || as_fn_error $? "could not create -" "$LINENO" 5
  7589. fi
  7590. ;;
  7591. esac
  7592. done # for ac_tag
  7593. as_fn_exit 0
  7594. _ACEOF
  7595. ac_clean_files=$ac_clean_files_save
  7596. test $ac_write_fail = 0 ||
  7597. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7598. # configure is writing to config.log, and then calls config.status.
  7599. # config.status does its own redirection, appending to config.log.
  7600. # Unfortunately, on DOS this fails, as config.log is still kept open
  7601. # by configure, so config.status won't be able to write to it; its
  7602. # output is simply discarded. So we exec the FD to /dev/null,
  7603. # effectively closing config.log, so it can be properly (re)opened and
  7604. # appended to by config.status. When coming back to configure, we
  7605. # need to make the FD available again.
  7606. if test "$no_create" != yes; then
  7607. ac_cs_success=:
  7608. ac_config_status_args=
  7609. test "$silent" = yes &&
  7610. ac_config_status_args="$ac_config_status_args --quiet"
  7611. exec 5>/dev/null
  7612. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7613. exec 5>>config.log
  7614. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7615. # would make configure fail if this is the last instruction.
  7616. $ac_cs_success || as_fn_exit 1
  7617. fi
  7618. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7620. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7621. fi
  7622. echo ""
  7623. echo ""
  7624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&5
  7625. $as_echo "*** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&6; }
  7626. echo ""
  7627. echo " General Options:"
  7628. echo " -------------------------"
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE port: $nrpe_port" >&5
  7630. $as_echo " NRPE port: $nrpe_port" >&6; }
  7631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE user: $nrpe_user" >&5
  7632. $as_echo " NRPE user: $nrpe_user" >&6; }
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE group: $nrpe_group" >&5
  7634. $as_echo " NRPE group: $nrpe_group" >&6; }
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Nagios user: $nagios_user" >&5
  7636. $as_echo " Nagios user: $nagios_user" >&6; }
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Nagios group: $nagios_group" >&5
  7638. $as_echo " Nagios group: $nagios_group" >&6; }
  7639. echo ""
  7640. echo ""
  7641. echo "Review the options above for accuracy. If they look okay,"
  7642. echo "type 'make all' to compile the NRPE daemon and client."
  7643. echo ""