configure 269 KB

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