configure 175 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for nrpe 2.16RC2.
  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='2.16RC2'
  536. PACKAGE_STRING='nrpe 2.16RC2'
  537. PACKAGE_BUGREPORT='nagios-users@lists.sourceforge.net'
  538. PACKAGE_URL='http://www.nagios.org'
  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='LTLIBOBJS
  577. LIBOBJS
  578. PERL
  579. TARGET_PLATFORM
  580. TARGET_ARCH
  581. TARGET_OS
  582. TARGET_VER
  583. NAGIOS_INSTALL_OPTS
  584. nagios_group
  585. nagios_user
  586. nrpe_port
  587. NRPE_INSTALL_OPTS
  588. nrpe_group
  589. nrpe_user
  590. log_facility
  591. HAVE_SSL
  592. LIBWRAPLIBS
  593. SOCKETLIBS
  594. OTHERLIBS
  595. SNPRINTF_O
  596. EGREP
  597. GREP
  598. CPP
  599. SET_MAKE
  600. OBJEXT
  601. EXEEXT
  602. ac_ct_CC
  603. CPPFLAGS
  604. LDFLAGS
  605. CFLAGS
  606. CC
  607. host_os
  608. host_vendor
  609. host_cpu
  610. host
  611. build_os
  612. build_vendor
  613. build_cpu
  614. build
  615. INSTALL
  616. INSTALL_DATA
  617. INSTALL_SCRIPT
  618. INSTALL_PROGRAM
  619. RPM_RELEASE
  620. PKG_REL_DATE
  621. PKG_HOME_URL
  622. PKG_VERSION
  623. PKG_NAME
  624. target_alias
  625. host_alias
  626. build_alias
  627. LIBS
  628. ECHO_T
  629. ECHO_N
  630. ECHO_C
  631. DEFS
  632. mandir
  633. localedir
  634. libdir
  635. psdir
  636. pdfdir
  637. dvidir
  638. htmldir
  639. infodir
  640. docdir
  641. oldincludedir
  642. includedir
  643. localstatedir
  644. sharedstatedir
  645. sysconfdir
  646. datadir
  647. datarootdir
  648. libexecdir
  649. sbindir
  650. bindir
  651. program_transform_name
  652. prefix
  653. exec_prefix
  654. PACKAGE_URL
  655. PACKAGE_BUGREPORT
  656. PACKAGE_STRING
  657. PACKAGE_VERSION
  658. PACKAGE_TARNAME
  659. PACKAGE_NAME
  660. PATH_SEPARATOR
  661. SHELL'
  662. ac_subst_files=''
  663. ac_user_opts='
  664. enable_option_checking
  665. enable_ssl
  666. with_ssl
  667. with_ssl_inc
  668. with_ssl_lib
  669. with_kerberos_inc
  670. with_log_facility
  671. with_nrpe_user
  672. with_nrpe_group
  673. with_nrpe_port
  674. with_nagios_user
  675. with_nagios_group
  676. enable_command_args
  677. enable_bash_command_substitution
  678. '
  679. ac_precious_vars='build_alias
  680. host_alias
  681. target_alias
  682. CC
  683. CFLAGS
  684. LDFLAGS
  685. LIBS
  686. CPPFLAGS
  687. CPP'
  688. # Initialize some variables set by options.
  689. ac_init_help=
  690. ac_init_version=false
  691. ac_unrecognized_opts=
  692. ac_unrecognized_sep=
  693. # The variables have the same names as the options, with
  694. # dashes changed to underlines.
  695. cache_file=/dev/null
  696. exec_prefix=NONE
  697. no_create=
  698. no_recursion=
  699. prefix=NONE
  700. program_prefix=NONE
  701. program_suffix=NONE
  702. program_transform_name=s,x,x,
  703. silent=
  704. site=
  705. srcdir=
  706. verbose=
  707. x_includes=NONE
  708. x_libraries=NONE
  709. # Installation directory options.
  710. # These are left unexpanded so users can "make install exec_prefix=/foo"
  711. # and all the variables that are supposed to be based on exec_prefix
  712. # by default will actually change.
  713. # Use braces instead of parens because sh, perl, etc. also accept them.
  714. # (The list follows the same order as the GNU Coding Standards.)
  715. bindir='${exec_prefix}/bin'
  716. sbindir='${exec_prefix}/sbin'
  717. libexecdir='${exec_prefix}/libexec'
  718. datarootdir='${prefix}/share'
  719. datadir='${datarootdir}'
  720. sysconfdir='${prefix}/etc'
  721. sharedstatedir='${prefix}/com'
  722. localstatedir='${prefix}/var'
  723. includedir='${prefix}/include'
  724. oldincludedir='/usr/include'
  725. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  726. infodir='${datarootdir}/info'
  727. htmldir='${docdir}'
  728. dvidir='${docdir}'
  729. pdfdir='${docdir}'
  730. psdir='${docdir}'
  731. libdir='${exec_prefix}/lib'
  732. localedir='${datarootdir}/locale'
  733. mandir='${datarootdir}/man'
  734. ac_prev=
  735. ac_dashdash=
  736. for ac_option
  737. do
  738. # If the previous option needs an argument, assign it.
  739. if test -n "$ac_prev"; then
  740. eval $ac_prev=\$ac_option
  741. ac_prev=
  742. continue
  743. fi
  744. case $ac_option in
  745. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  746. *=) ac_optarg= ;;
  747. *) ac_optarg=yes ;;
  748. esac
  749. # Accept the important Cygnus configure options, so we can diagnose typos.
  750. case $ac_dashdash$ac_option in
  751. --)
  752. ac_dashdash=yes ;;
  753. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  754. ac_prev=bindir ;;
  755. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  756. bindir=$ac_optarg ;;
  757. -build | --build | --buil | --bui | --bu)
  758. ac_prev=build_alias ;;
  759. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  760. build_alias=$ac_optarg ;;
  761. -cache-file | --cache-file | --cache-fil | --cache-fi \
  762. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  763. ac_prev=cache_file ;;
  764. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  765. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  766. cache_file=$ac_optarg ;;
  767. --config-cache | -C)
  768. cache_file=config.cache ;;
  769. -datadir | --datadir | --datadi | --datad)
  770. ac_prev=datadir ;;
  771. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  772. datadir=$ac_optarg ;;
  773. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  774. | --dataroo | --dataro | --datar)
  775. ac_prev=datarootdir ;;
  776. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  777. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  778. datarootdir=$ac_optarg ;;
  779. -disable-* | --disable-*)
  780. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  781. # Reject names that are not valid shell variable names.
  782. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  783. as_fn_error $? "invalid feature name: $ac_useropt"
  784. ac_useropt_orig=$ac_useropt
  785. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  786. case $ac_user_opts in
  787. *"
  788. "enable_$ac_useropt"
  789. "*) ;;
  790. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  791. ac_unrecognized_sep=', ';;
  792. esac
  793. eval enable_$ac_useropt=no ;;
  794. -docdir | --docdir | --docdi | --doc | --do)
  795. ac_prev=docdir ;;
  796. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  797. docdir=$ac_optarg ;;
  798. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  799. ac_prev=dvidir ;;
  800. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  801. dvidir=$ac_optarg ;;
  802. -enable-* | --enable-*)
  803. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  804. # Reject names that are not valid shell variable names.
  805. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  806. as_fn_error $? "invalid feature name: $ac_useropt"
  807. ac_useropt_orig=$ac_useropt
  808. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  809. case $ac_user_opts in
  810. *"
  811. "enable_$ac_useropt"
  812. "*) ;;
  813. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  814. ac_unrecognized_sep=', ';;
  815. esac
  816. eval enable_$ac_useropt=\$ac_optarg ;;
  817. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  818. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  819. | --exec | --exe | --ex)
  820. ac_prev=exec_prefix ;;
  821. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  822. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  823. | --exec=* | --exe=* | --ex=*)
  824. exec_prefix=$ac_optarg ;;
  825. -gas | --gas | --ga | --g)
  826. # Obsolete; use --with-gas.
  827. with_gas=yes ;;
  828. -help | --help | --hel | --he | -h)
  829. ac_init_help=long ;;
  830. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  831. ac_init_help=recursive ;;
  832. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  833. ac_init_help=short ;;
  834. -host | --host | --hos | --ho)
  835. ac_prev=host_alias ;;
  836. -host=* | --host=* | --hos=* | --ho=*)
  837. host_alias=$ac_optarg ;;
  838. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  839. ac_prev=htmldir ;;
  840. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  841. | --ht=*)
  842. htmldir=$ac_optarg ;;
  843. -includedir | --includedir | --includedi | --included | --include \
  844. | --includ | --inclu | --incl | --inc)
  845. ac_prev=includedir ;;
  846. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  847. | --includ=* | --inclu=* | --incl=* | --inc=*)
  848. includedir=$ac_optarg ;;
  849. -infodir | --infodir | --infodi | --infod | --info | --inf)
  850. ac_prev=infodir ;;
  851. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  852. infodir=$ac_optarg ;;
  853. -libdir | --libdir | --libdi | --libd)
  854. ac_prev=libdir ;;
  855. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  856. libdir=$ac_optarg ;;
  857. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  858. | --libexe | --libex | --libe)
  859. ac_prev=libexecdir ;;
  860. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  861. | --libexe=* | --libex=* | --libe=*)
  862. libexecdir=$ac_optarg ;;
  863. -localedir | --localedir | --localedi | --localed | --locale)
  864. ac_prev=localedir ;;
  865. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  866. localedir=$ac_optarg ;;
  867. -localstatedir | --localstatedir | --localstatedi | --localstated \
  868. | --localstate | --localstat | --localsta | --localst | --locals)
  869. ac_prev=localstatedir ;;
  870. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  871. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  872. localstatedir=$ac_optarg ;;
  873. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  874. ac_prev=mandir ;;
  875. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  876. mandir=$ac_optarg ;;
  877. -nfp | --nfp | --nf)
  878. # Obsolete; use --without-fp.
  879. with_fp=no ;;
  880. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  881. | --no-cr | --no-c | -n)
  882. no_create=yes ;;
  883. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  884. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  885. no_recursion=yes ;;
  886. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  887. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  888. | --oldin | --oldi | --old | --ol | --o)
  889. ac_prev=oldincludedir ;;
  890. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  891. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  892. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  893. oldincludedir=$ac_optarg ;;
  894. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  895. ac_prev=prefix ;;
  896. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  897. prefix=$ac_optarg ;;
  898. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  899. | --program-pre | --program-pr | --program-p)
  900. ac_prev=program_prefix ;;
  901. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  902. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  903. program_prefix=$ac_optarg ;;
  904. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  905. | --program-suf | --program-su | --program-s)
  906. ac_prev=program_suffix ;;
  907. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  908. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  909. program_suffix=$ac_optarg ;;
  910. -program-transform-name | --program-transform-name \
  911. | --program-transform-nam | --program-transform-na \
  912. | --program-transform-n | --program-transform- \
  913. | --program-transform | --program-transfor \
  914. | --program-transfo | --program-transf \
  915. | --program-trans | --program-tran \
  916. | --progr-tra | --program-tr | --program-t)
  917. ac_prev=program_transform_name ;;
  918. -program-transform-name=* | --program-transform-name=* \
  919. | --program-transform-nam=* | --program-transform-na=* \
  920. | --program-transform-n=* | --program-transform-=* \
  921. | --program-transform=* | --program-transfor=* \
  922. | --program-transfo=* | --program-transf=* \
  923. | --program-trans=* | --program-tran=* \
  924. | --progr-tra=* | --program-tr=* | --program-t=*)
  925. program_transform_name=$ac_optarg ;;
  926. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  927. ac_prev=pdfdir ;;
  928. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  929. pdfdir=$ac_optarg ;;
  930. -psdir | --psdir | --psdi | --psd | --ps)
  931. ac_prev=psdir ;;
  932. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  933. psdir=$ac_optarg ;;
  934. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  935. | -silent | --silent | --silen | --sile | --sil)
  936. silent=yes ;;
  937. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  938. ac_prev=sbindir ;;
  939. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  940. | --sbi=* | --sb=*)
  941. sbindir=$ac_optarg ;;
  942. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  943. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  944. | --sharedst | --shareds | --shared | --share | --shar \
  945. | --sha | --sh)
  946. ac_prev=sharedstatedir ;;
  947. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  948. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  949. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  950. | --sha=* | --sh=*)
  951. sharedstatedir=$ac_optarg ;;
  952. -site | --site | --sit)
  953. ac_prev=site ;;
  954. -site=* | --site=* | --sit=*)
  955. site=$ac_optarg ;;
  956. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  957. ac_prev=srcdir ;;
  958. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  959. srcdir=$ac_optarg ;;
  960. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  961. | --syscon | --sysco | --sysc | --sys | --sy)
  962. ac_prev=sysconfdir ;;
  963. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  964. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  965. sysconfdir=$ac_optarg ;;
  966. -target | --target | --targe | --targ | --tar | --ta | --t)
  967. ac_prev=target_alias ;;
  968. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  969. target_alias=$ac_optarg ;;
  970. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  971. verbose=yes ;;
  972. -version | --version | --versio | --versi | --vers | -V)
  973. ac_init_version=: ;;
  974. -with-* | --with-*)
  975. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  976. # Reject names that are not valid shell variable names.
  977. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  978. as_fn_error $? "invalid package name: $ac_useropt"
  979. ac_useropt_orig=$ac_useropt
  980. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  981. case $ac_user_opts in
  982. *"
  983. "with_$ac_useropt"
  984. "*) ;;
  985. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  986. ac_unrecognized_sep=', ';;
  987. esac
  988. eval with_$ac_useropt=\$ac_optarg ;;
  989. -without-* | --without-*)
  990. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  991. # Reject names that are not valid shell variable names.
  992. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  993. as_fn_error $? "invalid package name: $ac_useropt"
  994. ac_useropt_orig=$ac_useropt
  995. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  996. case $ac_user_opts in
  997. *"
  998. "with_$ac_useropt"
  999. "*) ;;
  1000. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1001. ac_unrecognized_sep=', ';;
  1002. esac
  1003. eval with_$ac_useropt=no ;;
  1004. --x)
  1005. # Obsolete; use --with-x.
  1006. with_x=yes ;;
  1007. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1008. | --x-incl | --x-inc | --x-in | --x-i)
  1009. ac_prev=x_includes ;;
  1010. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1011. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1012. x_includes=$ac_optarg ;;
  1013. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1014. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1015. ac_prev=x_libraries ;;
  1016. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1017. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1018. x_libraries=$ac_optarg ;;
  1019. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1020. Try \`$0 --help' for more information"
  1021. ;;
  1022. *=*)
  1023. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1024. # Reject names that are not valid shell variable names.
  1025. case $ac_envvar in #(
  1026. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1027. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1028. esac
  1029. eval $ac_envvar=\$ac_optarg
  1030. export $ac_envvar ;;
  1031. *)
  1032. # FIXME: should be removed in autoconf 3.0.
  1033. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1034. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1035. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1036. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1037. ;;
  1038. esac
  1039. done
  1040. if test -n "$ac_prev"; then
  1041. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1042. as_fn_error $? "missing argument to $ac_option"
  1043. fi
  1044. if test -n "$ac_unrecognized_opts"; then
  1045. case $enable_option_checking in
  1046. no) ;;
  1047. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1048. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1049. esac
  1050. fi
  1051. # Check all directory arguments for consistency.
  1052. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1053. datadir sysconfdir sharedstatedir localstatedir includedir \
  1054. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1055. libdir localedir mandir
  1056. do
  1057. eval ac_val=\$$ac_var
  1058. # Remove trailing slashes.
  1059. case $ac_val in
  1060. */ )
  1061. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1062. eval $ac_var=\$ac_val;;
  1063. esac
  1064. # Be sure to have absolute directory names.
  1065. case $ac_val in
  1066. [\\/$]* | ?:[\\/]* ) continue;;
  1067. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1068. esac
  1069. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1070. done
  1071. # There might be people who depend on the old broken behavior: `$host'
  1072. # used to hold the argument of --host etc.
  1073. # FIXME: To remove some day.
  1074. build=$build_alias
  1075. host=$host_alias
  1076. target=$target_alias
  1077. # FIXME: To remove some day.
  1078. if test "x$host_alias" != x; then
  1079. if test "x$build_alias" = x; then
  1080. cross_compiling=maybe
  1081. elif test "x$build_alias" != "x$host_alias"; then
  1082. cross_compiling=yes
  1083. fi
  1084. fi
  1085. ac_tool_prefix=
  1086. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1087. test "$silent" = yes && exec 6>/dev/null
  1088. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1089. ac_ls_di=`ls -di .` &&
  1090. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1091. as_fn_error $? "working directory cannot be determined"
  1092. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1093. as_fn_error $? "pwd does not report name of working directory"
  1094. # Find the source files, if location was not specified.
  1095. if test -z "$srcdir"; then
  1096. ac_srcdir_defaulted=yes
  1097. # Try the directory containing this script, then the parent directory.
  1098. ac_confdir=`$as_dirname -- "$as_myself" ||
  1099. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1100. X"$as_myself" : 'X\(//\)[^/]' \| \
  1101. X"$as_myself" : 'X\(//\)$' \| \
  1102. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1103. $as_echo X"$as_myself" |
  1104. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1105. s//\1/
  1106. q
  1107. }
  1108. /^X\(\/\/\)[^/].*/{
  1109. s//\1/
  1110. q
  1111. }
  1112. /^X\(\/\/\)$/{
  1113. s//\1/
  1114. q
  1115. }
  1116. /^X\(\/\).*/{
  1117. s//\1/
  1118. q
  1119. }
  1120. s/.*/./; q'`
  1121. srcdir=$ac_confdir
  1122. if test ! -r "$srcdir/$ac_unique_file"; then
  1123. srcdir=..
  1124. fi
  1125. else
  1126. ac_srcdir_defaulted=no
  1127. fi
  1128. if test ! -r "$srcdir/$ac_unique_file"; then
  1129. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1130. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1131. fi
  1132. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1133. ac_abs_confdir=`(
  1134. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1135. pwd)`
  1136. # When building in place, set srcdir=.
  1137. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1138. srcdir=.
  1139. fi
  1140. # Remove unnecessary trailing slashes from srcdir.
  1141. # Double slashes in file names in object file debugging info
  1142. # mess up M-x gdb in Emacs.
  1143. case $srcdir in
  1144. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1145. esac
  1146. for ac_var in $ac_precious_vars; do
  1147. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1148. eval ac_env_${ac_var}_value=\$${ac_var}
  1149. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1150. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1151. done
  1152. #
  1153. # Report the --help message.
  1154. #
  1155. if test "$ac_init_help" = "long"; then
  1156. # Omit some internal or obsolete options to make the list less imposing.
  1157. # This message is too long to be a string in the A/UX 3.1 sh.
  1158. cat <<_ACEOF
  1159. \`configure' configures nrpe 2.16RC2 to adapt to many kinds of systems.
  1160. Usage: $0 [OPTION]... [VAR=VALUE]...
  1161. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1162. VAR=VALUE. See below for descriptions of some of the useful variables.
  1163. Defaults for the options are specified in brackets.
  1164. Configuration:
  1165. -h, --help display this help and exit
  1166. --help=short display options specific to this package
  1167. --help=recursive display the short help of all the included packages
  1168. -V, --version display version information and exit
  1169. -q, --quiet, --silent do not print \`checking ...' messages
  1170. --cache-file=FILE cache test results in FILE [disabled]
  1171. -C, --config-cache alias for \`--cache-file=config.cache'
  1172. -n, --no-create do not create output files
  1173. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1174. Installation directories:
  1175. --prefix=PREFIX install architecture-independent files in PREFIX
  1176. [$ac_default_prefix]
  1177. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1178. [PREFIX]
  1179. By default, \`make install' will install all the files in
  1180. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1181. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1182. for instance \`--prefix=\$HOME'.
  1183. For better control, use the options below.
  1184. Fine tuning of the installation directories:
  1185. --bindir=DIR user executables [EPREFIX/bin]
  1186. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1187. --libexecdir=DIR program executables [EPREFIX/libexec]
  1188. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1189. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1190. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1191. --libdir=DIR object code libraries [EPREFIX/lib]
  1192. --includedir=DIR C header files [PREFIX/include]
  1193. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1194. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1195. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1196. --infodir=DIR info documentation [DATAROOTDIR/info]
  1197. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1198. --mandir=DIR man documentation [DATAROOTDIR/man]
  1199. --docdir=DIR documentation root [DATAROOTDIR/doc/nrpe]
  1200. --htmldir=DIR html documentation [DOCDIR]
  1201. --dvidir=DIR dvi documentation [DOCDIR]
  1202. --pdfdir=DIR pdf documentation [DOCDIR]
  1203. --psdir=DIR ps documentation [DOCDIR]
  1204. _ACEOF
  1205. cat <<\_ACEOF
  1206. System types:
  1207. --build=BUILD configure for building on BUILD [guessed]
  1208. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1209. _ACEOF
  1210. fi
  1211. if test -n "$ac_init_help"; then
  1212. case $ac_init_help in
  1213. short | recursive ) echo "Configuration of nrpe 2.16RC2:";;
  1214. esac
  1215. cat <<\_ACEOF
  1216. Optional Features:
  1217. --disable-option-checking ignore unrecognized --enable/--with options
  1218. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1219. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1220. --enable-ssl enables native SSL support
  1221. --enable-command-args allows clients to specify command arguments. ***
  1222. THIS IS A SECURITY RISK! *** Read the SECURITY file
  1223. before using this option!
  1224. --enable-bash-command-substitution
  1225. allows clients to pass bash command substitutions of
  1226. the form $(command). *** THIS IS A HIGH SECURITY
  1227. RISK! *** Read the SECURITY file before using this
  1228. option!
  1229. Optional Packages:
  1230. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1231. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1232. --with-ssl=DIR sets location of the SSL installation
  1233. --with-ssl-inc=DIR sets location of the SSL include files
  1234. --with-ssl-lib=DIR sets location of the SSL libraries
  1235. --with-kerberos-inc=DIR sets location of the Kerberos include files
  1236. --with-log-facility=<facility>
  1237. sets NRPE syslog facility
  1238. --with-nrpe-user=<user> sets user name to run NRPE
  1239. --with-nrpe-group=<group>
  1240. sets group name to run NRPE
  1241. --with-nrpe-port=<port> sets port number for NRPE to listen on
  1242. --with-nagios-user=<user>
  1243. sets user name for file permissions
  1244. --with-nagios-group=<grp>
  1245. sets group name file permissions
  1246. Some influential environment variables:
  1247. CC C compiler command
  1248. CFLAGS C compiler flags
  1249. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1250. nonstandard directory <lib dir>
  1251. LIBS libraries to pass to the linker, e.g. -l<library>
  1252. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1253. you have headers in a nonstandard directory <include dir>
  1254. CPP C preprocessor
  1255. Use these variables to override the choices made by `configure' or to help
  1256. it to find libraries and programs with nonstandard names/locations.
  1257. Report bugs to <nagios-users@lists.sourceforge.net>.
  1258. nrpe home page: <http://www.nagios.org>.
  1259. _ACEOF
  1260. ac_status=$?
  1261. fi
  1262. if test "$ac_init_help" = "recursive"; then
  1263. # If there are subdirs, report their specific --help.
  1264. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1265. test -d "$ac_dir" ||
  1266. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1267. continue
  1268. ac_builddir=.
  1269. case "$ac_dir" in
  1270. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1271. *)
  1272. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1273. # A ".." for each directory in $ac_dir_suffix.
  1274. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1275. case $ac_top_builddir_sub in
  1276. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1277. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1278. esac ;;
  1279. esac
  1280. ac_abs_top_builddir=$ac_pwd
  1281. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1282. # for backward compatibility:
  1283. ac_top_builddir=$ac_top_build_prefix
  1284. case $srcdir in
  1285. .) # We are building in place.
  1286. ac_srcdir=.
  1287. ac_top_srcdir=$ac_top_builddir_sub
  1288. ac_abs_top_srcdir=$ac_pwd ;;
  1289. [\\/]* | ?:[\\/]* ) # Absolute name.
  1290. ac_srcdir=$srcdir$ac_dir_suffix;
  1291. ac_top_srcdir=$srcdir
  1292. ac_abs_top_srcdir=$srcdir ;;
  1293. *) # Relative name.
  1294. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1295. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1296. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1297. esac
  1298. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1299. cd "$ac_dir" || { ac_status=$?; continue; }
  1300. # Check for guested configure.
  1301. if test -f "$ac_srcdir/configure.gnu"; then
  1302. echo &&
  1303. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1304. elif test -f "$ac_srcdir/configure"; then
  1305. echo &&
  1306. $SHELL "$ac_srcdir/configure" --help=recursive
  1307. else
  1308. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1309. fi || ac_status=$?
  1310. cd "$ac_pwd" || { ac_status=$?; break; }
  1311. done
  1312. fi
  1313. test -n "$ac_init_help" && exit $ac_status
  1314. if $ac_init_version; then
  1315. cat <<\_ACEOF
  1316. nrpe configure 2.16RC2
  1317. generated by GNU Autoconf 2.69
  1318. Copyright (C) 2012 Free Software Foundation, Inc.
  1319. This configure script is free software; the Free Software Foundation
  1320. gives unlimited permission to copy, distribute and modify it.
  1321. _ACEOF
  1322. exit
  1323. fi
  1324. ## ------------------------ ##
  1325. ## Autoconf initialization. ##
  1326. ## ------------------------ ##
  1327. # ac_fn_c_try_compile LINENO
  1328. # --------------------------
  1329. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1330. ac_fn_c_try_compile ()
  1331. {
  1332. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1333. rm -f conftest.$ac_objext
  1334. if { { ac_try="$ac_compile"
  1335. case "(($ac_try" in
  1336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1337. *) ac_try_echo=$ac_try;;
  1338. esac
  1339. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1340. $as_echo "$ac_try_echo"; } >&5
  1341. (eval "$ac_compile") 2>conftest.err
  1342. ac_status=$?
  1343. if test -s conftest.err; then
  1344. grep -v '^ *+' conftest.err >conftest.er1
  1345. cat conftest.er1 >&5
  1346. mv -f conftest.er1 conftest.err
  1347. fi
  1348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1349. test $ac_status = 0; } && {
  1350. test -z "$ac_c_werror_flag" ||
  1351. test ! -s conftest.err
  1352. } && test -s conftest.$ac_objext; then :
  1353. ac_retval=0
  1354. else
  1355. $as_echo "$as_me: failed program was:" >&5
  1356. sed 's/^/| /' conftest.$ac_ext >&5
  1357. ac_retval=1
  1358. fi
  1359. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1360. as_fn_set_status $ac_retval
  1361. } # ac_fn_c_try_compile
  1362. # ac_fn_c_try_cpp LINENO
  1363. # ----------------------
  1364. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1365. ac_fn_c_try_cpp ()
  1366. {
  1367. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1368. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1369. case "(($ac_try" in
  1370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1371. *) ac_try_echo=$ac_try;;
  1372. esac
  1373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1374. $as_echo "$ac_try_echo"; } >&5
  1375. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1376. ac_status=$?
  1377. if test -s conftest.err; then
  1378. grep -v '^ *+' conftest.err >conftest.er1
  1379. cat conftest.er1 >&5
  1380. mv -f conftest.er1 conftest.err
  1381. fi
  1382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1383. test $ac_status = 0; } > conftest.i && {
  1384. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1385. test ! -s conftest.err
  1386. }; then :
  1387. ac_retval=0
  1388. else
  1389. $as_echo "$as_me: failed program was:" >&5
  1390. sed 's/^/| /' conftest.$ac_ext >&5
  1391. ac_retval=1
  1392. fi
  1393. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1394. as_fn_set_status $ac_retval
  1395. } # ac_fn_c_try_cpp
  1396. # ac_fn_c_try_run LINENO
  1397. # ----------------------
  1398. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1399. # that executables *can* be run.
  1400. ac_fn_c_try_run ()
  1401. {
  1402. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1403. if { { ac_try="$ac_link"
  1404. case "(($ac_try" in
  1405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1406. *) ac_try_echo=$ac_try;;
  1407. esac
  1408. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1409. $as_echo "$ac_try_echo"; } >&5
  1410. (eval "$ac_link") 2>&5
  1411. ac_status=$?
  1412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1413. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1414. { { case "(($ac_try" in
  1415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1416. *) ac_try_echo=$ac_try;;
  1417. esac
  1418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1419. $as_echo "$ac_try_echo"; } >&5
  1420. (eval "$ac_try") 2>&5
  1421. ac_status=$?
  1422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1423. test $ac_status = 0; }; }; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: program exited with status $ac_status" >&5
  1427. $as_echo "$as_me: failed program was:" >&5
  1428. sed 's/^/| /' conftest.$ac_ext >&5
  1429. ac_retval=$ac_status
  1430. fi
  1431. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1432. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1433. as_fn_set_status $ac_retval
  1434. } # ac_fn_c_try_run
  1435. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1436. # -------------------------------------------------------
  1437. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1438. # the include files in INCLUDES and setting the cache variable VAR
  1439. # accordingly.
  1440. ac_fn_c_check_header_mongrel ()
  1441. {
  1442. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1443. if eval \${$3+:} false; then :
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1445. $as_echo_n "checking for $2... " >&6; }
  1446. if eval \${$3+:} false; then :
  1447. $as_echo_n "(cached) " >&6
  1448. fi
  1449. eval ac_res=\$$3
  1450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1451. $as_echo "$ac_res" >&6; }
  1452. else
  1453. # Is the header compilable?
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1455. $as_echo_n "checking $2 usability... " >&6; }
  1456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1457. /* end confdefs.h. */
  1458. $4
  1459. #include <$2>
  1460. _ACEOF
  1461. if ac_fn_c_try_compile "$LINENO"; then :
  1462. ac_header_compiler=yes
  1463. else
  1464. ac_header_compiler=no
  1465. fi
  1466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1468. $as_echo "$ac_header_compiler" >&6; }
  1469. # Is the header present?
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1471. $as_echo_n "checking $2 presence... " >&6; }
  1472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1473. /* end confdefs.h. */
  1474. #include <$2>
  1475. _ACEOF
  1476. if ac_fn_c_try_cpp "$LINENO"; then :
  1477. ac_header_preproc=yes
  1478. else
  1479. ac_header_preproc=no
  1480. fi
  1481. rm -f conftest.err conftest.i conftest.$ac_ext
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1483. $as_echo "$ac_header_preproc" >&6; }
  1484. # So? What about this header?
  1485. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1486. yes:no: )
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1488. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1490. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1491. ;;
  1492. no:yes:* )
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1494. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1496. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1498. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1500. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1502. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1503. ( $as_echo "## ------------------------------------------------- ##
  1504. ## Report this to nagios-users@lists.sourceforge.net ##
  1505. ## ------------------------------------------------- ##"
  1506. ) | sed "s/^/$as_me: WARNING: /" >&2
  1507. ;;
  1508. esac
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1510. $as_echo_n "checking for $2... " >&6; }
  1511. if eval \${$3+:} false; then :
  1512. $as_echo_n "(cached) " >&6
  1513. else
  1514. eval "$3=\$ac_header_compiler"
  1515. fi
  1516. eval ac_res=\$$3
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1518. $as_echo "$ac_res" >&6; }
  1519. fi
  1520. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1521. } # ac_fn_c_check_header_mongrel
  1522. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1523. # -------------------------------------------------------
  1524. # Tests whether HEADER exists and can be compiled using the include files in
  1525. # INCLUDES, setting the cache variable VAR accordingly.
  1526. ac_fn_c_check_header_compile ()
  1527. {
  1528. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1530. $as_echo_n "checking for $2... " >&6; }
  1531. if eval \${$3+:} false; then :
  1532. $as_echo_n "(cached) " >&6
  1533. else
  1534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1535. /* end confdefs.h. */
  1536. $4
  1537. #include <$2>
  1538. _ACEOF
  1539. if ac_fn_c_try_compile "$LINENO"; then :
  1540. eval "$3=yes"
  1541. else
  1542. eval "$3=no"
  1543. fi
  1544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1545. fi
  1546. eval ac_res=\$$3
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1548. $as_echo "$ac_res" >&6; }
  1549. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1550. } # ac_fn_c_check_header_compile
  1551. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1552. # -------------------------------------------
  1553. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1554. # variable VAR accordingly.
  1555. ac_fn_c_check_type ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1559. $as_echo_n "checking for $2... " >&6; }
  1560. if eval \${$3+:} false; then :
  1561. $as_echo_n "(cached) " >&6
  1562. else
  1563. eval "$3=no"
  1564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1565. /* end confdefs.h. */
  1566. $4
  1567. int
  1568. main ()
  1569. {
  1570. if (sizeof ($2))
  1571. return 0;
  1572. ;
  1573. return 0;
  1574. }
  1575. _ACEOF
  1576. if ac_fn_c_try_compile "$LINENO"; then :
  1577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1578. /* end confdefs.h. */
  1579. $4
  1580. int
  1581. main ()
  1582. {
  1583. if (sizeof (($2)))
  1584. return 0;
  1585. ;
  1586. return 0;
  1587. }
  1588. _ACEOF
  1589. if ac_fn_c_try_compile "$LINENO"; then :
  1590. else
  1591. eval "$3=yes"
  1592. fi
  1593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1594. fi
  1595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1596. fi
  1597. eval ac_res=\$$3
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1599. $as_echo "$ac_res" >&6; }
  1600. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. } # ac_fn_c_check_type
  1602. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1603. # --------------------------------------------
  1604. # Tries to find the compile-time value of EXPR in a program that includes
  1605. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1606. # computed
  1607. ac_fn_c_compute_int ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. if test "$cross_compiling" = yes; then
  1611. # Depending upon the size, compute the lo and hi bounds.
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. $4
  1615. int
  1616. main ()
  1617. {
  1618. static int test_array [1 - 2 * !(($2) >= 0)];
  1619. test_array [0] = 0;
  1620. return test_array [0];
  1621. ;
  1622. return 0;
  1623. }
  1624. _ACEOF
  1625. if ac_fn_c_try_compile "$LINENO"; then :
  1626. ac_lo=0 ac_mid=0
  1627. while :; do
  1628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1629. /* end confdefs.h. */
  1630. $4
  1631. int
  1632. main ()
  1633. {
  1634. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1635. test_array [0] = 0;
  1636. return test_array [0];
  1637. ;
  1638. return 0;
  1639. }
  1640. _ACEOF
  1641. if ac_fn_c_try_compile "$LINENO"; then :
  1642. ac_hi=$ac_mid; break
  1643. else
  1644. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1645. if test $ac_lo -le $ac_mid; then
  1646. ac_lo= ac_hi=
  1647. break
  1648. fi
  1649. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1650. fi
  1651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1652. done
  1653. else
  1654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1655. /* end confdefs.h. */
  1656. $4
  1657. int
  1658. main ()
  1659. {
  1660. static int test_array [1 - 2 * !(($2) < 0)];
  1661. test_array [0] = 0;
  1662. return test_array [0];
  1663. ;
  1664. return 0;
  1665. }
  1666. _ACEOF
  1667. if ac_fn_c_try_compile "$LINENO"; then :
  1668. ac_hi=-1 ac_mid=-1
  1669. while :; do
  1670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1671. /* end confdefs.h. */
  1672. $4
  1673. int
  1674. main ()
  1675. {
  1676. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1677. test_array [0] = 0;
  1678. return test_array [0];
  1679. ;
  1680. return 0;
  1681. }
  1682. _ACEOF
  1683. if ac_fn_c_try_compile "$LINENO"; then :
  1684. ac_lo=$ac_mid; break
  1685. else
  1686. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1687. if test $ac_mid -le $ac_hi; then
  1688. ac_lo= ac_hi=
  1689. break
  1690. fi
  1691. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1692. fi
  1693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1694. done
  1695. else
  1696. ac_lo= ac_hi=
  1697. fi
  1698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1699. fi
  1700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1701. # Binary search between lo and hi bounds.
  1702. while test "x$ac_lo" != "x$ac_hi"; do
  1703. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. $4
  1707. int
  1708. main ()
  1709. {
  1710. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1711. test_array [0] = 0;
  1712. return test_array [0];
  1713. ;
  1714. return 0;
  1715. }
  1716. _ACEOF
  1717. if ac_fn_c_try_compile "$LINENO"; then :
  1718. ac_hi=$ac_mid
  1719. else
  1720. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1723. done
  1724. case $ac_lo in #((
  1725. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1726. '') ac_retval=1 ;;
  1727. esac
  1728. else
  1729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1730. /* end confdefs.h. */
  1731. $4
  1732. static long int longval () { return $2; }
  1733. static unsigned long int ulongval () { return $2; }
  1734. #include <stdio.h>
  1735. #include <stdlib.h>
  1736. int
  1737. main ()
  1738. {
  1739. FILE *f = fopen ("conftest.val", "w");
  1740. if (! f)
  1741. return 1;
  1742. if (($2) < 0)
  1743. {
  1744. long int i = longval ();
  1745. if (i != ($2))
  1746. return 1;
  1747. fprintf (f, "%ld", i);
  1748. }
  1749. else
  1750. {
  1751. unsigned long int i = ulongval ();
  1752. if (i != ($2))
  1753. return 1;
  1754. fprintf (f, "%lu", i);
  1755. }
  1756. /* Do not output a trailing newline, as this causes \r\n confusion
  1757. on some platforms. */
  1758. return ferror (f) || fclose (f) != 0;
  1759. ;
  1760. return 0;
  1761. }
  1762. _ACEOF
  1763. if ac_fn_c_try_run "$LINENO"; then :
  1764. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1765. else
  1766. ac_retval=1
  1767. fi
  1768. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1769. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1770. rm -f conftest.val
  1771. fi
  1772. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1773. as_fn_set_status $ac_retval
  1774. } # ac_fn_c_compute_int
  1775. # ac_fn_c_try_link LINENO
  1776. # -----------------------
  1777. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1778. ac_fn_c_try_link ()
  1779. {
  1780. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1781. rm -f conftest.$ac_objext conftest$ac_exeext
  1782. if { { ac_try="$ac_link"
  1783. case "(($ac_try" in
  1784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1785. *) ac_try_echo=$ac_try;;
  1786. esac
  1787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1788. $as_echo "$ac_try_echo"; } >&5
  1789. (eval "$ac_link") 2>conftest.err
  1790. ac_status=$?
  1791. if test -s conftest.err; then
  1792. grep -v '^ *+' conftest.err >conftest.er1
  1793. cat conftest.er1 >&5
  1794. mv -f conftest.er1 conftest.err
  1795. fi
  1796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1797. test $ac_status = 0; } && {
  1798. test -z "$ac_c_werror_flag" ||
  1799. test ! -s conftest.err
  1800. } && test -s conftest$ac_exeext && {
  1801. test "$cross_compiling" = yes ||
  1802. test -x conftest$ac_exeext
  1803. }; then :
  1804. ac_retval=0
  1805. else
  1806. $as_echo "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808. ac_retval=1
  1809. fi
  1810. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1811. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1812. # interfere with the next link command; also delete a directory that is
  1813. # left behind by Apple's compiler. We do this before executing the actions.
  1814. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1815. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1816. as_fn_set_status $ac_retval
  1817. } # ac_fn_c_try_link
  1818. # ac_fn_c_check_func LINENO FUNC VAR
  1819. # ----------------------------------
  1820. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1821. ac_fn_c_check_func ()
  1822. {
  1823. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1825. $as_echo_n "checking for $2... " >&6; }
  1826. if eval \${$3+:} false; then :
  1827. $as_echo_n "(cached) " >&6
  1828. else
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1832. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1833. #define $2 innocuous_$2
  1834. /* System header to define __stub macros and hopefully few prototypes,
  1835. which can conflict with char $2 (); below.
  1836. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1837. <limits.h> exists even on freestanding compilers. */
  1838. #ifdef __STDC__
  1839. # include <limits.h>
  1840. #else
  1841. # include <assert.h>
  1842. #endif
  1843. #undef $2
  1844. /* Override any GCC internal prototype to avoid an error.
  1845. Use char because int might match the return type of a GCC
  1846. builtin and then its argument prototype would still apply. */
  1847. #ifdef __cplusplus
  1848. extern "C"
  1849. #endif
  1850. char $2 ();
  1851. /* The GNU C library defines this for functions which it implements
  1852. to always fail with ENOSYS. Some functions are actually named
  1853. something starting with __ and the normal name is an alias. */
  1854. #if defined __stub_$2 || defined __stub___$2
  1855. choke me
  1856. #endif
  1857. int
  1858. main ()
  1859. {
  1860. return $2 ();
  1861. ;
  1862. return 0;
  1863. }
  1864. _ACEOF
  1865. if ac_fn_c_try_link "$LINENO"; then :
  1866. eval "$3=yes"
  1867. else
  1868. eval "$3=no"
  1869. fi
  1870. rm -f core conftest.err conftest.$ac_objext \
  1871. conftest$ac_exeext conftest.$ac_ext
  1872. fi
  1873. eval ac_res=\$$3
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1875. $as_echo "$ac_res" >&6; }
  1876. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1877. } # ac_fn_c_check_func
  1878. cat >config.log <<_ACEOF
  1879. This file contains any messages produced by compilers while
  1880. running configure, to aid debugging if configure makes a mistake.
  1881. It was created by nrpe $as_me 2.16RC2, which was
  1882. generated by GNU Autoconf 2.69. Invocation command line was
  1883. $ $0 $@
  1884. _ACEOF
  1885. exec 5>>config.log
  1886. {
  1887. cat <<_ASUNAME
  1888. ## --------- ##
  1889. ## Platform. ##
  1890. ## --------- ##
  1891. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1892. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1893. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1894. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1895. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1896. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1897. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1898. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1899. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1900. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1901. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1902. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1903. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1904. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1905. _ASUNAME
  1906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1907. for as_dir in $PATH
  1908. do
  1909. IFS=$as_save_IFS
  1910. test -z "$as_dir" && as_dir=.
  1911. $as_echo "PATH: $as_dir"
  1912. done
  1913. IFS=$as_save_IFS
  1914. } >&5
  1915. cat >&5 <<_ACEOF
  1916. ## ----------- ##
  1917. ## Core tests. ##
  1918. ## ----------- ##
  1919. _ACEOF
  1920. # Keep a trace of the command line.
  1921. # Strip out --no-create and --no-recursion so they do not pile up.
  1922. # Strip out --silent because we don't want to record it for future runs.
  1923. # Also quote any args containing shell meta-characters.
  1924. # Make two passes to allow for proper duplicate-argument suppression.
  1925. ac_configure_args=
  1926. ac_configure_args0=
  1927. ac_configure_args1=
  1928. ac_must_keep_next=false
  1929. for ac_pass in 1 2
  1930. do
  1931. for ac_arg
  1932. do
  1933. case $ac_arg in
  1934. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1935. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1936. | -silent | --silent | --silen | --sile | --sil)
  1937. continue ;;
  1938. *\'*)
  1939. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1940. esac
  1941. case $ac_pass in
  1942. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1943. 2)
  1944. as_fn_append ac_configure_args1 " '$ac_arg'"
  1945. if test $ac_must_keep_next = true; then
  1946. ac_must_keep_next=false # Got value, back to normal.
  1947. else
  1948. case $ac_arg in
  1949. *=* | --config-cache | -C | -disable-* | --disable-* \
  1950. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1951. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1952. | -with-* | --with-* | -without-* | --without-* | --x)
  1953. case "$ac_configure_args0 " in
  1954. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1955. esac
  1956. ;;
  1957. -* ) ac_must_keep_next=true ;;
  1958. esac
  1959. fi
  1960. as_fn_append ac_configure_args " '$ac_arg'"
  1961. ;;
  1962. esac
  1963. done
  1964. done
  1965. { ac_configure_args0=; unset ac_configure_args0;}
  1966. { ac_configure_args1=; unset ac_configure_args1;}
  1967. # When interrupted or exit'd, cleanup temporary files, and complete
  1968. # config.log. We remove comments because anyway the quotes in there
  1969. # would cause problems or look ugly.
  1970. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1971. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1972. trap 'exit_status=$?
  1973. # Save into config.log some information that might help in debugging.
  1974. {
  1975. echo
  1976. $as_echo "## ---------------- ##
  1977. ## Cache variables. ##
  1978. ## ---------------- ##"
  1979. echo
  1980. # The following way of writing the cache mishandles newlines in values,
  1981. (
  1982. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1983. eval ac_val=\$$ac_var
  1984. case $ac_val in #(
  1985. *${as_nl}*)
  1986. case $ac_var in #(
  1987. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1988. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1989. esac
  1990. case $ac_var in #(
  1991. _ | IFS | as_nl) ;; #(
  1992. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1993. *) { eval $ac_var=; unset $ac_var;} ;;
  1994. esac ;;
  1995. esac
  1996. done
  1997. (set) 2>&1 |
  1998. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1999. *${as_nl}ac_space=\ *)
  2000. sed -n \
  2001. "s/'\''/'\''\\\\'\'''\''/g;
  2002. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2003. ;; #(
  2004. *)
  2005. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2006. ;;
  2007. esac |
  2008. sort
  2009. )
  2010. echo
  2011. $as_echo "## ----------------- ##
  2012. ## Output variables. ##
  2013. ## ----------------- ##"
  2014. echo
  2015. for ac_var in $ac_subst_vars
  2016. do
  2017. eval ac_val=\$$ac_var
  2018. case $ac_val in
  2019. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2020. esac
  2021. $as_echo "$ac_var='\''$ac_val'\''"
  2022. done | sort
  2023. echo
  2024. if test -n "$ac_subst_files"; then
  2025. $as_echo "## ------------------- ##
  2026. ## File substitutions. ##
  2027. ## ------------------- ##"
  2028. echo
  2029. for ac_var in $ac_subst_files
  2030. do
  2031. eval ac_val=\$$ac_var
  2032. case $ac_val in
  2033. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2034. esac
  2035. $as_echo "$ac_var='\''$ac_val'\''"
  2036. done | sort
  2037. echo
  2038. fi
  2039. if test -s confdefs.h; then
  2040. $as_echo "## ----------- ##
  2041. ## confdefs.h. ##
  2042. ## ----------- ##"
  2043. echo
  2044. cat confdefs.h
  2045. echo
  2046. fi
  2047. test "$ac_signal" != 0 &&
  2048. $as_echo "$as_me: caught signal $ac_signal"
  2049. $as_echo "$as_me: exit $exit_status"
  2050. } >&5
  2051. rm -f core *.core core.conftest.* &&
  2052. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2053. exit $exit_status
  2054. ' 0
  2055. for ac_signal in 1 2 13 15; do
  2056. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2057. done
  2058. ac_signal=0
  2059. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2060. rm -f -r conftest* confdefs.h
  2061. $as_echo "/* confdefs.h */" > confdefs.h
  2062. # Predefined preprocessor variables.
  2063. cat >>confdefs.h <<_ACEOF
  2064. #define PACKAGE_NAME "$PACKAGE_NAME"
  2065. _ACEOF
  2066. cat >>confdefs.h <<_ACEOF
  2067. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2068. _ACEOF
  2069. cat >>confdefs.h <<_ACEOF
  2070. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2071. _ACEOF
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define PACKAGE_STRING "$PACKAGE_STRING"
  2074. _ACEOF
  2075. cat >>confdefs.h <<_ACEOF
  2076. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2077. _ACEOF
  2078. cat >>confdefs.h <<_ACEOF
  2079. #define PACKAGE_URL "$PACKAGE_URL"
  2080. _ACEOF
  2081. # Let the site file select an alternate cache file if it wants to.
  2082. # Prefer an explicitly selected file to automatically selected ones.
  2083. ac_site_file1=NONE
  2084. ac_site_file2=NONE
  2085. if test -n "$CONFIG_SITE"; then
  2086. # We do not want a PATH search for config.site.
  2087. case $CONFIG_SITE in #((
  2088. -*) ac_site_file1=./$CONFIG_SITE;;
  2089. */*) ac_site_file1=$CONFIG_SITE;;
  2090. *) ac_site_file1=./$CONFIG_SITE;;
  2091. esac
  2092. elif test "x$prefix" != xNONE; then
  2093. ac_site_file1=$prefix/share/config.site
  2094. ac_site_file2=$prefix/etc/config.site
  2095. else
  2096. ac_site_file1=$ac_default_prefix/share/config.site
  2097. ac_site_file2=$ac_default_prefix/etc/config.site
  2098. fi
  2099. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2100. do
  2101. test "x$ac_site_file" = xNONE && continue
  2102. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2104. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2105. sed 's/^/| /' "$ac_site_file" >&5
  2106. . "$ac_site_file" \
  2107. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2108. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2109. as_fn_error $? "failed to load site script $ac_site_file
  2110. See \`config.log' for more details" "$LINENO" 5; }
  2111. fi
  2112. done
  2113. # Check that the precious variables saved in the cache have kept the same
  2114. # value.
  2115. ac_cache_corrupted=false
  2116. for ac_var in $ac_precious_vars; do
  2117. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2118. eval ac_new_set=\$ac_env_${ac_var}_set
  2119. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2120. eval ac_new_val=\$ac_env_${ac_var}_value
  2121. case $ac_old_set,$ac_new_set in
  2122. set,)
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2124. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2125. ac_cache_corrupted=: ;;
  2126. ,set)
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2128. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2129. ac_cache_corrupted=: ;;
  2130. ,);;
  2131. *)
  2132. if test "x$ac_old_val" != "x$ac_new_val"; then
  2133. # differences in whitespace do not lead to failure.
  2134. ac_old_val_w=`echo x $ac_old_val`
  2135. ac_new_val_w=`echo x $ac_new_val`
  2136. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2138. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2139. ac_cache_corrupted=:
  2140. else
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2142. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2143. eval $ac_var=\$ac_old_val
  2144. fi
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2146. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2148. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2149. fi;;
  2150. esac
  2151. # Pass precious variables to config.status.
  2152. if test "$ac_new_set" = set; then
  2153. case $ac_new_val in
  2154. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2155. *) ac_arg=$ac_var=$ac_new_val ;;
  2156. esac
  2157. case " $ac_configure_args " in
  2158. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2159. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2160. esac
  2161. fi
  2162. done
  2163. if $ac_cache_corrupted; then
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2167. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2168. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2169. fi
  2170. ## -------------------- ##
  2171. ## Main body of script. ##
  2172. ## -------------------- ##
  2173. ac_ext=c
  2174. ac_cpp='$CPP $CPPFLAGS'
  2175. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2176. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2177. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2178. ac_config_headers="$ac_config_headers include/config.h"
  2179. ac_config_files="$ac_config_files Makefile subst src/Makefile package/solaris/Makefile init-script init-script.debian init-script.suse nrpe.spec sample-config/nrpe.cfg sample-config/nrpe.xinetd"
  2180. PKG_NAME=nrpe
  2181. PKG_VERSION="2.16RC2"
  2182. PKG_HOME_URL="http://www.nagios.org/"
  2183. PKG_REL_DATE="11-09-2015"
  2184. RPM_RELEASE=1
  2185. ac_aux_dir=
  2186. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2187. if test -f "$ac_dir/install-sh"; then
  2188. ac_aux_dir=$ac_dir
  2189. ac_install_sh="$ac_aux_dir/install-sh -c"
  2190. break
  2191. elif test -f "$ac_dir/install.sh"; then
  2192. ac_aux_dir=$ac_dir
  2193. ac_install_sh="$ac_aux_dir/install.sh -c"
  2194. break
  2195. elif test -f "$ac_dir/shtool"; then
  2196. ac_aux_dir=$ac_dir
  2197. ac_install_sh="$ac_aux_dir/shtool install -c"
  2198. break
  2199. fi
  2200. done
  2201. if test -z "$ac_aux_dir"; then
  2202. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2203. fi
  2204. # These three variables are undocumented and unsupported,
  2205. # and are intended to be withdrawn in a future Autoconf release.
  2206. # They can cause serious problems if a builder's source tree is in a directory
  2207. # whose full name contains unusual characters.
  2208. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2209. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2210. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2211. # Find a good install program. We prefer a C program (faster),
  2212. # so one script is as good as another. But avoid the broken or
  2213. # incompatible versions:
  2214. # SysV /etc/install, /usr/sbin/install
  2215. # SunOS /usr/etc/install
  2216. # IRIX /sbin/install
  2217. # AIX /bin/install
  2218. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2219. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2220. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2221. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2222. # OS/2's system install, which has a completely different semantic
  2223. # ./install, which can be erroneously created by make from ./install.sh.
  2224. # Reject install programs that cannot install multiple files.
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2226. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2227. if test -z "$INSTALL"; then
  2228. if ${ac_cv_path_install+:} false; then :
  2229. $as_echo_n "(cached) " >&6
  2230. else
  2231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2232. for as_dir in $PATH
  2233. do
  2234. IFS=$as_save_IFS
  2235. test -z "$as_dir" && as_dir=.
  2236. # Account for people who put trailing slashes in PATH elements.
  2237. case $as_dir/ in #((
  2238. ./ | .// | /[cC]/* | \
  2239. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2240. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2241. /usr/ucb/* ) ;;
  2242. *)
  2243. # OSF1 and SCO ODT 3.0 have their own names for install.
  2244. # Don't use installbsd from OSF since it installs stuff as root
  2245. # by default.
  2246. for ac_prog in ginstall scoinst install; do
  2247. for ac_exec_ext in '' $ac_executable_extensions; do
  2248. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2249. if test $ac_prog = install &&
  2250. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2251. # AIX install. It has an incompatible calling convention.
  2252. :
  2253. elif test $ac_prog = install &&
  2254. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2255. # program-specific install script used by HP pwplus--don't use.
  2256. :
  2257. else
  2258. rm -rf conftest.one conftest.two conftest.dir
  2259. echo one > conftest.one
  2260. echo two > conftest.two
  2261. mkdir conftest.dir
  2262. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2263. test -s conftest.one && test -s conftest.two &&
  2264. test -s conftest.dir/conftest.one &&
  2265. test -s conftest.dir/conftest.two
  2266. then
  2267. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2268. break 3
  2269. fi
  2270. fi
  2271. fi
  2272. done
  2273. done
  2274. ;;
  2275. esac
  2276. done
  2277. IFS=$as_save_IFS
  2278. rm -rf conftest.one conftest.two conftest.dir
  2279. fi
  2280. if test "${ac_cv_path_install+set}" = set; then
  2281. INSTALL=$ac_cv_path_install
  2282. else
  2283. # As a last resort, use the slow shell script. Don't cache a
  2284. # value for INSTALL within a source directory, because that will
  2285. # break other packages using the cache if that directory is
  2286. # removed, or if the value is a relative name.
  2287. INSTALL=$ac_install_sh
  2288. fi
  2289. fi
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2291. $as_echo "$INSTALL" >&6; }
  2292. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2293. # It thinks the first close brace ends the variable substitution.
  2294. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2295. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2296. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2297. # Make sure we can run config.sub.
  2298. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2299. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2301. $as_echo_n "checking build system type... " >&6; }
  2302. if ${ac_cv_build+:} false; then :
  2303. $as_echo_n "(cached) " >&6
  2304. else
  2305. ac_build_alias=$build_alias
  2306. test "x$ac_build_alias" = x &&
  2307. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2308. test "x$ac_build_alias" = x &&
  2309. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2310. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2311. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2312. fi
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2314. $as_echo "$ac_cv_build" >&6; }
  2315. case $ac_cv_build in
  2316. *-*-*) ;;
  2317. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2318. esac
  2319. build=$ac_cv_build
  2320. ac_save_IFS=$IFS; IFS='-'
  2321. set x $ac_cv_build
  2322. shift
  2323. build_cpu=$1
  2324. build_vendor=$2
  2325. shift; shift
  2326. # Remember, the first character of IFS is used to create $*,
  2327. # except with old shells:
  2328. build_os=$*
  2329. IFS=$ac_save_IFS
  2330. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2332. $as_echo_n "checking host system type... " >&6; }
  2333. if ${ac_cv_host+:} false; then :
  2334. $as_echo_n "(cached) " >&6
  2335. else
  2336. if test "x$host_alias" = x; then
  2337. ac_cv_host=$ac_cv_build
  2338. else
  2339. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2340. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2341. fi
  2342. fi
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2344. $as_echo "$ac_cv_host" >&6; }
  2345. case $ac_cv_host in
  2346. *-*-*) ;;
  2347. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2348. esac
  2349. host=$ac_cv_host
  2350. ac_save_IFS=$IFS; IFS='-'
  2351. set x $ac_cv_host
  2352. shift
  2353. host_cpu=$1
  2354. host_vendor=$2
  2355. shift; shift
  2356. # Remember, the first character of IFS is used to create $*,
  2357. # except with old shells:
  2358. host_os=$*
  2359. IFS=$ac_save_IFS
  2360. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2361. ac_ext=c
  2362. ac_cpp='$CPP $CPPFLAGS'
  2363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2366. if test -n "$ac_tool_prefix"; then
  2367. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2368. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2370. $as_echo_n "checking for $ac_word... " >&6; }
  2371. if ${ac_cv_prog_CC+:} false; then :
  2372. $as_echo_n "(cached) " >&6
  2373. else
  2374. if test -n "$CC"; then
  2375. ac_cv_prog_CC="$CC" # Let the user override the test.
  2376. else
  2377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2378. for as_dir in $PATH
  2379. do
  2380. IFS=$as_save_IFS
  2381. test -z "$as_dir" && as_dir=.
  2382. for ac_exec_ext in '' $ac_executable_extensions; do
  2383. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2384. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2386. break 2
  2387. fi
  2388. done
  2389. done
  2390. IFS=$as_save_IFS
  2391. fi
  2392. fi
  2393. CC=$ac_cv_prog_CC
  2394. if test -n "$CC"; then
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2396. $as_echo "$CC" >&6; }
  2397. else
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2399. $as_echo "no" >&6; }
  2400. fi
  2401. fi
  2402. if test -z "$ac_cv_prog_CC"; then
  2403. ac_ct_CC=$CC
  2404. # Extract the first word of "gcc", so it can be a program name with args.
  2405. set dummy gcc; ac_word=$2
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2407. $as_echo_n "checking for $ac_word... " >&6; }
  2408. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2409. $as_echo_n "(cached) " >&6
  2410. else
  2411. if test -n "$ac_ct_CC"; then
  2412. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2413. else
  2414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2415. for as_dir in $PATH
  2416. do
  2417. IFS=$as_save_IFS
  2418. test -z "$as_dir" && as_dir=.
  2419. for ac_exec_ext in '' $ac_executable_extensions; do
  2420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2421. ac_cv_prog_ac_ct_CC="gcc"
  2422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2423. break 2
  2424. fi
  2425. done
  2426. done
  2427. IFS=$as_save_IFS
  2428. fi
  2429. fi
  2430. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2431. if test -n "$ac_ct_CC"; then
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2433. $as_echo "$ac_ct_CC" >&6; }
  2434. else
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2436. $as_echo "no" >&6; }
  2437. fi
  2438. if test "x$ac_ct_CC" = x; then
  2439. CC=""
  2440. else
  2441. case $cross_compiling:$ac_tool_warned in
  2442. yes:)
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2444. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2445. ac_tool_warned=yes ;;
  2446. esac
  2447. CC=$ac_ct_CC
  2448. fi
  2449. else
  2450. CC="$ac_cv_prog_CC"
  2451. fi
  2452. if test -z "$CC"; then
  2453. if test -n "$ac_tool_prefix"; then
  2454. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2455. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2457. $as_echo_n "checking for $ac_word... " >&6; }
  2458. if ${ac_cv_prog_CC+:} false; then :
  2459. $as_echo_n "(cached) " >&6
  2460. else
  2461. if test -n "$CC"; then
  2462. ac_cv_prog_CC="$CC" # Let the user override the test.
  2463. else
  2464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2465. for as_dir in $PATH
  2466. do
  2467. IFS=$as_save_IFS
  2468. test -z "$as_dir" && as_dir=.
  2469. for ac_exec_ext in '' $ac_executable_extensions; do
  2470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2471. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2473. break 2
  2474. fi
  2475. done
  2476. done
  2477. IFS=$as_save_IFS
  2478. fi
  2479. fi
  2480. CC=$ac_cv_prog_CC
  2481. if test -n "$CC"; then
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2483. $as_echo "$CC" >&6; }
  2484. else
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2486. $as_echo "no" >&6; }
  2487. fi
  2488. fi
  2489. fi
  2490. if test -z "$CC"; then
  2491. # Extract the first word of "cc", so it can be a program name with args.
  2492. set dummy cc; ac_word=$2
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2494. $as_echo_n "checking for $ac_word... " >&6; }
  2495. if ${ac_cv_prog_CC+:} false; then :
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. if test -n "$CC"; then
  2499. ac_cv_prog_CC="$CC" # Let the user override the test.
  2500. else
  2501. ac_prog_rejected=no
  2502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2503. for as_dir in $PATH
  2504. do
  2505. IFS=$as_save_IFS
  2506. test -z "$as_dir" && as_dir=.
  2507. for ac_exec_ext in '' $ac_executable_extensions; do
  2508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2509. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2510. ac_prog_rejected=yes
  2511. continue
  2512. fi
  2513. ac_cv_prog_CC="cc"
  2514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2515. break 2
  2516. fi
  2517. done
  2518. done
  2519. IFS=$as_save_IFS
  2520. if test $ac_prog_rejected = yes; then
  2521. # We found a bogon in the path, so make sure we never use it.
  2522. set dummy $ac_cv_prog_CC
  2523. shift
  2524. if test $# != 0; then
  2525. # We chose a different compiler from the bogus one.
  2526. # However, it has the same basename, so the bogon will be chosen
  2527. # first if we set CC to just the basename; use the full file name.
  2528. shift
  2529. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2530. fi
  2531. fi
  2532. fi
  2533. fi
  2534. CC=$ac_cv_prog_CC
  2535. if test -n "$CC"; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2537. $as_echo "$CC" >&6; }
  2538. else
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2540. $as_echo "no" >&6; }
  2541. fi
  2542. fi
  2543. if test -z "$CC"; then
  2544. if test -n "$ac_tool_prefix"; then
  2545. for ac_prog in cl.exe
  2546. do
  2547. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2548. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2550. $as_echo_n "checking for $ac_word... " >&6; }
  2551. if ${ac_cv_prog_CC+:} false; then :
  2552. $as_echo_n "(cached) " >&6
  2553. else
  2554. if test -n "$CC"; then
  2555. ac_cv_prog_CC="$CC" # Let the user override the test.
  2556. else
  2557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2558. for as_dir in $PATH
  2559. do
  2560. IFS=$as_save_IFS
  2561. test -z "$as_dir" && as_dir=.
  2562. for ac_exec_ext in '' $ac_executable_extensions; do
  2563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2564. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2566. break 2
  2567. fi
  2568. done
  2569. done
  2570. IFS=$as_save_IFS
  2571. fi
  2572. fi
  2573. CC=$ac_cv_prog_CC
  2574. if test -n "$CC"; then
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2576. $as_echo "$CC" >&6; }
  2577. else
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2579. $as_echo "no" >&6; }
  2580. fi
  2581. test -n "$CC" && break
  2582. done
  2583. fi
  2584. if test -z "$CC"; then
  2585. ac_ct_CC=$CC
  2586. for ac_prog in cl.exe
  2587. do
  2588. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2589. set dummy $ac_prog; ac_word=$2
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2591. $as_echo_n "checking for $ac_word... " >&6; }
  2592. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2593. $as_echo_n "(cached) " >&6
  2594. else
  2595. if test -n "$ac_ct_CC"; then
  2596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2597. else
  2598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2599. for as_dir in $PATH
  2600. do
  2601. IFS=$as_save_IFS
  2602. test -z "$as_dir" && as_dir=.
  2603. for ac_exec_ext in '' $ac_executable_extensions; do
  2604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2605. ac_cv_prog_ac_ct_CC="$ac_prog"
  2606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. IFS=$as_save_IFS
  2612. fi
  2613. fi
  2614. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2615. if test -n "$ac_ct_CC"; then
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2617. $as_echo "$ac_ct_CC" >&6; }
  2618. else
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2620. $as_echo "no" >&6; }
  2621. fi
  2622. test -n "$ac_ct_CC" && break
  2623. done
  2624. if test "x$ac_ct_CC" = x; then
  2625. CC=""
  2626. else
  2627. case $cross_compiling:$ac_tool_warned in
  2628. yes:)
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2630. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2631. ac_tool_warned=yes ;;
  2632. esac
  2633. CC=$ac_ct_CC
  2634. fi
  2635. fi
  2636. fi
  2637. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2638. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2639. as_fn_error $? "no acceptable C compiler found in \$PATH
  2640. See \`config.log' for more details" "$LINENO" 5; }
  2641. # Provide some information about the compiler.
  2642. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2643. set X $ac_compile
  2644. ac_compiler=$2
  2645. for ac_option in --version -v -V -qversion; do
  2646. { { ac_try="$ac_compiler $ac_option >&5"
  2647. case "(($ac_try" in
  2648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2649. *) ac_try_echo=$ac_try;;
  2650. esac
  2651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2652. $as_echo "$ac_try_echo"; } >&5
  2653. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2654. ac_status=$?
  2655. if test -s conftest.err; then
  2656. sed '10a\
  2657. ... rest of stderr output deleted ...
  2658. 10q' conftest.err >conftest.er1
  2659. cat conftest.er1 >&5
  2660. fi
  2661. rm -f conftest.er1 conftest.err
  2662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2663. test $ac_status = 0; }
  2664. done
  2665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2666. /* end confdefs.h. */
  2667. int
  2668. main ()
  2669. {
  2670. ;
  2671. return 0;
  2672. }
  2673. _ACEOF
  2674. ac_clean_files_save=$ac_clean_files
  2675. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2676. # Try to create an executable without -o first, disregard a.out.
  2677. # It will help us diagnose broken compilers, and finding out an intuition
  2678. # of exeext.
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2680. $as_echo_n "checking whether the C compiler works... " >&6; }
  2681. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2682. # The possible output files:
  2683. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2684. ac_rmfiles=
  2685. for ac_file in $ac_files
  2686. do
  2687. case $ac_file in
  2688. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2689. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2690. esac
  2691. done
  2692. rm -f $ac_rmfiles
  2693. if { { ac_try="$ac_link_default"
  2694. case "(($ac_try" in
  2695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2696. *) ac_try_echo=$ac_try;;
  2697. esac
  2698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2699. $as_echo "$ac_try_echo"; } >&5
  2700. (eval "$ac_link_default") 2>&5
  2701. ac_status=$?
  2702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2703. test $ac_status = 0; }; then :
  2704. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2705. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2706. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2707. # so that the user can short-circuit this test for compilers unknown to
  2708. # Autoconf.
  2709. for ac_file in $ac_files ''
  2710. do
  2711. test -f "$ac_file" || continue
  2712. case $ac_file in
  2713. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2714. ;;
  2715. [ab].out )
  2716. # We found the default executable, but exeext='' is most
  2717. # certainly right.
  2718. break;;
  2719. *.* )
  2720. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2721. then :; else
  2722. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2723. fi
  2724. # We set ac_cv_exeext here because the later test for it is not
  2725. # safe: cross compilers may not add the suffix if given an `-o'
  2726. # argument, so we may need to know it at that point already.
  2727. # Even if this section looks crufty: it has the advantage of
  2728. # actually working.
  2729. break;;
  2730. * )
  2731. break;;
  2732. esac
  2733. done
  2734. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2735. else
  2736. ac_file=''
  2737. fi
  2738. if test -z "$ac_file"; then :
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2740. $as_echo "no" >&6; }
  2741. $as_echo "$as_me: failed program was:" >&5
  2742. sed 's/^/| /' conftest.$ac_ext >&5
  2743. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2744. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2745. as_fn_error 77 "C compiler cannot create executables
  2746. See \`config.log' for more details" "$LINENO" 5; }
  2747. else
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2749. $as_echo "yes" >&6; }
  2750. fi
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2752. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2754. $as_echo "$ac_file" >&6; }
  2755. ac_exeext=$ac_cv_exeext
  2756. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2757. ac_clean_files=$ac_clean_files_save
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2759. $as_echo_n "checking for suffix of executables... " >&6; }
  2760. if { { ac_try="$ac_link"
  2761. case "(($ac_try" in
  2762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2763. *) ac_try_echo=$ac_try;;
  2764. esac
  2765. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2766. $as_echo "$ac_try_echo"; } >&5
  2767. (eval "$ac_link") 2>&5
  2768. ac_status=$?
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2770. test $ac_status = 0; }; then :
  2771. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2772. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2773. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2774. # `rm'.
  2775. for ac_file in conftest.exe conftest conftest.*; do
  2776. test -f "$ac_file" || continue
  2777. case $ac_file in
  2778. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2779. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2780. break;;
  2781. * ) break;;
  2782. esac
  2783. done
  2784. else
  2785. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2786. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2787. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2788. See \`config.log' for more details" "$LINENO" 5; }
  2789. fi
  2790. rm -f conftest conftest$ac_cv_exeext
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2792. $as_echo "$ac_cv_exeext" >&6; }
  2793. rm -f conftest.$ac_ext
  2794. EXEEXT=$ac_cv_exeext
  2795. ac_exeext=$EXEEXT
  2796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2797. /* end confdefs.h. */
  2798. #include <stdio.h>
  2799. int
  2800. main ()
  2801. {
  2802. FILE *f = fopen ("conftest.out", "w");
  2803. return ferror (f) || fclose (f) != 0;
  2804. ;
  2805. return 0;
  2806. }
  2807. _ACEOF
  2808. ac_clean_files="$ac_clean_files conftest.out"
  2809. # Check that the compiler produces executables we can run. If not, either
  2810. # the compiler is broken, or we cross compile.
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2812. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2813. if test "$cross_compiling" != yes; then
  2814. { { ac_try="$ac_link"
  2815. case "(($ac_try" in
  2816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2817. *) ac_try_echo=$ac_try;;
  2818. esac
  2819. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2820. $as_echo "$ac_try_echo"; } >&5
  2821. (eval "$ac_link") 2>&5
  2822. ac_status=$?
  2823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2824. test $ac_status = 0; }
  2825. if { ac_try='./conftest$ac_cv_exeext'
  2826. { { case "(($ac_try" in
  2827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2828. *) ac_try_echo=$ac_try;;
  2829. esac
  2830. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2831. $as_echo "$ac_try_echo"; } >&5
  2832. (eval "$ac_try") 2>&5
  2833. ac_status=$?
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2835. test $ac_status = 0; }; }; then
  2836. cross_compiling=no
  2837. else
  2838. if test "$cross_compiling" = maybe; then
  2839. cross_compiling=yes
  2840. else
  2841. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2842. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2843. as_fn_error $? "cannot run C compiled programs.
  2844. If you meant to cross compile, use \`--host'.
  2845. See \`config.log' for more details" "$LINENO" 5; }
  2846. fi
  2847. fi
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2850. $as_echo "$cross_compiling" >&6; }
  2851. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2852. ac_clean_files=$ac_clean_files_save
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2854. $as_echo_n "checking for suffix of object files... " >&6; }
  2855. if ${ac_cv_objext+:} false; then :
  2856. $as_echo_n "(cached) " >&6
  2857. else
  2858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2859. /* end confdefs.h. */
  2860. int
  2861. main ()
  2862. {
  2863. ;
  2864. return 0;
  2865. }
  2866. _ACEOF
  2867. rm -f conftest.o conftest.obj
  2868. if { { ac_try="$ac_compile"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2874. $as_echo "$ac_try_echo"; } >&5
  2875. (eval "$ac_compile") 2>&5
  2876. ac_status=$?
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2878. test $ac_status = 0; }; then :
  2879. for ac_file in conftest.o conftest.obj conftest.*; do
  2880. test -f "$ac_file" || continue;
  2881. case $ac_file in
  2882. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2883. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2884. break;;
  2885. esac
  2886. done
  2887. else
  2888. $as_echo "$as_me: failed program was:" >&5
  2889. sed 's/^/| /' conftest.$ac_ext >&5
  2890. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2891. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2892. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2893. See \`config.log' for more details" "$LINENO" 5; }
  2894. fi
  2895. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2896. fi
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2898. $as_echo "$ac_cv_objext" >&6; }
  2899. OBJEXT=$ac_cv_objext
  2900. ac_objext=$OBJEXT
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2902. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2903. if ${ac_cv_c_compiler_gnu+:} false; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2907. /* end confdefs.h. */
  2908. int
  2909. main ()
  2910. {
  2911. #ifndef __GNUC__
  2912. choke me
  2913. #endif
  2914. ;
  2915. return 0;
  2916. }
  2917. _ACEOF
  2918. if ac_fn_c_try_compile "$LINENO"; then :
  2919. ac_compiler_gnu=yes
  2920. else
  2921. ac_compiler_gnu=no
  2922. fi
  2923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2924. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2925. fi
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2927. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2928. if test $ac_compiler_gnu = yes; then
  2929. GCC=yes
  2930. else
  2931. GCC=
  2932. fi
  2933. ac_test_CFLAGS=${CFLAGS+set}
  2934. ac_save_CFLAGS=$CFLAGS
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2936. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2937. if ${ac_cv_prog_cc_g+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. ac_save_c_werror_flag=$ac_c_werror_flag
  2941. ac_c_werror_flag=yes
  2942. ac_cv_prog_cc_g=no
  2943. CFLAGS="-g"
  2944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2945. /* end confdefs.h. */
  2946. int
  2947. main ()
  2948. {
  2949. ;
  2950. return 0;
  2951. }
  2952. _ACEOF
  2953. if ac_fn_c_try_compile "$LINENO"; then :
  2954. ac_cv_prog_cc_g=yes
  2955. else
  2956. CFLAGS=""
  2957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2958. /* end confdefs.h. */
  2959. int
  2960. main ()
  2961. {
  2962. ;
  2963. return 0;
  2964. }
  2965. _ACEOF
  2966. if ac_fn_c_try_compile "$LINENO"; then :
  2967. else
  2968. ac_c_werror_flag=$ac_save_c_werror_flag
  2969. CFLAGS="-g"
  2970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2971. /* end confdefs.h. */
  2972. int
  2973. main ()
  2974. {
  2975. ;
  2976. return 0;
  2977. }
  2978. _ACEOF
  2979. if ac_fn_c_try_compile "$LINENO"; then :
  2980. ac_cv_prog_cc_g=yes
  2981. fi
  2982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2983. fi
  2984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2985. fi
  2986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2987. ac_c_werror_flag=$ac_save_c_werror_flag
  2988. fi
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2990. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2991. if test "$ac_test_CFLAGS" = set; then
  2992. CFLAGS=$ac_save_CFLAGS
  2993. elif test $ac_cv_prog_cc_g = yes; then
  2994. if test "$GCC" = yes; then
  2995. CFLAGS="-g -O2"
  2996. else
  2997. CFLAGS="-g"
  2998. fi
  2999. else
  3000. if test "$GCC" = yes; then
  3001. CFLAGS="-O2"
  3002. else
  3003. CFLAGS=
  3004. fi
  3005. fi
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3007. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3008. if ${ac_cv_prog_cc_c89+:} false; then :
  3009. $as_echo_n "(cached) " >&6
  3010. else
  3011. ac_cv_prog_cc_c89=no
  3012. ac_save_CC=$CC
  3013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3014. /* end confdefs.h. */
  3015. #include <stdarg.h>
  3016. #include <stdio.h>
  3017. struct stat;
  3018. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3019. struct buf { int x; };
  3020. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3021. static char *e (p, i)
  3022. char **p;
  3023. int i;
  3024. {
  3025. return p[i];
  3026. }
  3027. static char *f (char * (*g) (char **, int), char **p, ...)
  3028. {
  3029. char *s;
  3030. va_list v;
  3031. va_start (v,p);
  3032. s = g (p, va_arg (v,int));
  3033. va_end (v);
  3034. return s;
  3035. }
  3036. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3037. function prototypes and stuff, but not '\xHH' hex character constants.
  3038. These don't provoke an error unfortunately, instead are silently treated
  3039. as 'x'. The following induces an error, until -std is added to get
  3040. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3041. array size at least. It's necessary to write '\x00'==0 to get something
  3042. that's true only with -std. */
  3043. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3044. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3045. inside strings and character constants. */
  3046. #define FOO(x) 'x'
  3047. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3048. int test (int i, double x);
  3049. struct s1 {int (*f) (int a);};
  3050. struct s2 {int (*f) (double a);};
  3051. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3052. int argc;
  3053. char **argv;
  3054. int
  3055. main ()
  3056. {
  3057. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3058. ;
  3059. return 0;
  3060. }
  3061. _ACEOF
  3062. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3063. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3064. do
  3065. CC="$ac_save_CC $ac_arg"
  3066. if ac_fn_c_try_compile "$LINENO"; then :
  3067. ac_cv_prog_cc_c89=$ac_arg
  3068. fi
  3069. rm -f core conftest.err conftest.$ac_objext
  3070. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3071. done
  3072. rm -f conftest.$ac_ext
  3073. CC=$ac_save_CC
  3074. fi
  3075. # AC_CACHE_VAL
  3076. case "x$ac_cv_prog_cc_c89" in
  3077. x)
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3079. $as_echo "none needed" >&6; } ;;
  3080. xno)
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3082. $as_echo "unsupported" >&6; } ;;
  3083. *)
  3084. CC="$CC $ac_cv_prog_cc_c89"
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3086. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3087. esac
  3088. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3089. fi
  3090. ac_ext=c
  3091. ac_cpp='$CPP $CPPFLAGS'
  3092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3096. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3097. set x ${MAKE-make}
  3098. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3099. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3100. $as_echo_n "(cached) " >&6
  3101. else
  3102. cat >conftest.make <<\_ACEOF
  3103. SHELL = /bin/sh
  3104. all:
  3105. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3106. _ACEOF
  3107. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3108. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3109. *@@@%%%=?*=@@@%%%*)
  3110. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3111. *)
  3112. eval ac_cv_prog_make_${ac_make}_set=no;;
  3113. esac
  3114. rm -f conftest.make
  3115. fi
  3116. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3118. $as_echo "yes" >&6; }
  3119. SET_MAKE=
  3120. else
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3122. $as_echo "no" >&6; }
  3123. SET_MAKE="MAKE=${MAKE-make}"
  3124. fi
  3125. ac_ext=c
  3126. ac_cpp='$CPP $CPPFLAGS'
  3127. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3128. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3129. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3131. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3132. # On Suns, sometimes $CPP names a directory.
  3133. if test -n "$CPP" && test -d "$CPP"; then
  3134. CPP=
  3135. fi
  3136. if test -z "$CPP"; then
  3137. if ${ac_cv_prog_CPP+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. # Double quotes because CPP needs to be expanded
  3141. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3142. do
  3143. ac_preproc_ok=false
  3144. for ac_c_preproc_warn_flag in '' yes
  3145. do
  3146. # Use a header file that comes with gcc, so configuring glibc
  3147. # with a fresh cross-compiler works.
  3148. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3149. # <limits.h> exists even on freestanding compilers.
  3150. # On the NeXT, cc -E runs the code through the compiler's parser,
  3151. # not just through cpp. "Syntax error" is here to catch this case.
  3152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3153. /* end confdefs.h. */
  3154. #ifdef __STDC__
  3155. # include <limits.h>
  3156. #else
  3157. # include <assert.h>
  3158. #endif
  3159. Syntax error
  3160. _ACEOF
  3161. if ac_fn_c_try_cpp "$LINENO"; then :
  3162. else
  3163. # Broken: fails on valid input.
  3164. continue
  3165. fi
  3166. rm -f conftest.err conftest.i conftest.$ac_ext
  3167. # OK, works on sane cases. Now check whether nonexistent headers
  3168. # can be detected and how.
  3169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3170. /* end confdefs.h. */
  3171. #include <ac_nonexistent.h>
  3172. _ACEOF
  3173. if ac_fn_c_try_cpp "$LINENO"; then :
  3174. # Broken: success on invalid input.
  3175. continue
  3176. else
  3177. # Passes both tests.
  3178. ac_preproc_ok=:
  3179. break
  3180. fi
  3181. rm -f conftest.err conftest.i conftest.$ac_ext
  3182. done
  3183. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3184. rm -f conftest.i conftest.err conftest.$ac_ext
  3185. if $ac_preproc_ok; then :
  3186. break
  3187. fi
  3188. done
  3189. ac_cv_prog_CPP=$CPP
  3190. fi
  3191. CPP=$ac_cv_prog_CPP
  3192. else
  3193. ac_cv_prog_CPP=$CPP
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3196. $as_echo "$CPP" >&6; }
  3197. ac_preproc_ok=false
  3198. for ac_c_preproc_warn_flag in '' yes
  3199. do
  3200. # Use a header file that comes with gcc, so configuring glibc
  3201. # with a fresh cross-compiler works.
  3202. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3203. # <limits.h> exists even on freestanding compilers.
  3204. # On the NeXT, cc -E runs the code through the compiler's parser,
  3205. # not just through cpp. "Syntax error" is here to catch this case.
  3206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3207. /* end confdefs.h. */
  3208. #ifdef __STDC__
  3209. # include <limits.h>
  3210. #else
  3211. # include <assert.h>
  3212. #endif
  3213. Syntax error
  3214. _ACEOF
  3215. if ac_fn_c_try_cpp "$LINENO"; then :
  3216. else
  3217. # Broken: fails on valid input.
  3218. continue
  3219. fi
  3220. rm -f conftest.err conftest.i conftest.$ac_ext
  3221. # OK, works on sane cases. Now check whether nonexistent headers
  3222. # can be detected and how.
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. #include <ac_nonexistent.h>
  3226. _ACEOF
  3227. if ac_fn_c_try_cpp "$LINENO"; then :
  3228. # Broken: success on invalid input.
  3229. continue
  3230. else
  3231. # Passes both tests.
  3232. ac_preproc_ok=:
  3233. break
  3234. fi
  3235. rm -f conftest.err conftest.i conftest.$ac_ext
  3236. done
  3237. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3238. rm -f conftest.i conftest.err conftest.$ac_ext
  3239. if $ac_preproc_ok; then :
  3240. else
  3241. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3242. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3243. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3244. See \`config.log' for more details" "$LINENO" 5; }
  3245. fi
  3246. ac_ext=c
  3247. ac_cpp='$CPP $CPPFLAGS'
  3248. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3249. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3250. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3252. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3253. if ${ac_cv_path_GREP+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. if test -z "$GREP"; then
  3257. ac_path_GREP_found=false
  3258. # Loop through the user's path and test for each of PROGNAME-LIST
  3259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3260. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3261. do
  3262. IFS=$as_save_IFS
  3263. test -z "$as_dir" && as_dir=.
  3264. for ac_prog in grep ggrep; do
  3265. for ac_exec_ext in '' $ac_executable_extensions; do
  3266. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3267. as_fn_executable_p "$ac_path_GREP" || continue
  3268. # Check for GNU ac_path_GREP and select it if it is found.
  3269. # Check for GNU $ac_path_GREP
  3270. case `"$ac_path_GREP" --version 2>&1` in
  3271. *GNU*)
  3272. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3273. *)
  3274. ac_count=0
  3275. $as_echo_n 0123456789 >"conftest.in"
  3276. while :
  3277. do
  3278. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3279. mv "conftest.tmp" "conftest.in"
  3280. cp "conftest.in" "conftest.nl"
  3281. $as_echo 'GREP' >> "conftest.nl"
  3282. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3283. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3284. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3285. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3286. # Best one so far, save it but keep looking for a better one
  3287. ac_cv_path_GREP="$ac_path_GREP"
  3288. ac_path_GREP_max=$ac_count
  3289. fi
  3290. # 10*(2^10) chars as input seems more than enough
  3291. test $ac_count -gt 10 && break
  3292. done
  3293. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3294. esac
  3295. $ac_path_GREP_found && break 3
  3296. done
  3297. done
  3298. done
  3299. IFS=$as_save_IFS
  3300. if test -z "$ac_cv_path_GREP"; then
  3301. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3302. fi
  3303. else
  3304. ac_cv_path_GREP=$GREP
  3305. fi
  3306. fi
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3308. $as_echo "$ac_cv_path_GREP" >&6; }
  3309. GREP="$ac_cv_path_GREP"
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3311. $as_echo_n "checking for egrep... " >&6; }
  3312. if ${ac_cv_path_EGREP+:} false; then :
  3313. $as_echo_n "(cached) " >&6
  3314. else
  3315. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3316. then ac_cv_path_EGREP="$GREP -E"
  3317. else
  3318. if test -z "$EGREP"; then
  3319. ac_path_EGREP_found=false
  3320. # Loop through the user's path and test for each of PROGNAME-LIST
  3321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3322. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3323. do
  3324. IFS=$as_save_IFS
  3325. test -z "$as_dir" && as_dir=.
  3326. for ac_prog in egrep; do
  3327. for ac_exec_ext in '' $ac_executable_extensions; do
  3328. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3329. as_fn_executable_p "$ac_path_EGREP" || continue
  3330. # Check for GNU ac_path_EGREP and select it if it is found.
  3331. # Check for GNU $ac_path_EGREP
  3332. case `"$ac_path_EGREP" --version 2>&1` in
  3333. *GNU*)
  3334. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3335. *)
  3336. ac_count=0
  3337. $as_echo_n 0123456789 >"conftest.in"
  3338. while :
  3339. do
  3340. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3341. mv "conftest.tmp" "conftest.in"
  3342. cp "conftest.in" "conftest.nl"
  3343. $as_echo 'EGREP' >> "conftest.nl"
  3344. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3345. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3346. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3347. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3348. # Best one so far, save it but keep looking for a better one
  3349. ac_cv_path_EGREP="$ac_path_EGREP"
  3350. ac_path_EGREP_max=$ac_count
  3351. fi
  3352. # 10*(2^10) chars as input seems more than enough
  3353. test $ac_count -gt 10 && break
  3354. done
  3355. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3356. esac
  3357. $ac_path_EGREP_found && break 3
  3358. done
  3359. done
  3360. done
  3361. IFS=$as_save_IFS
  3362. if test -z "$ac_cv_path_EGREP"; then
  3363. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3364. fi
  3365. else
  3366. ac_cv_path_EGREP=$EGREP
  3367. fi
  3368. fi
  3369. fi
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3371. $as_echo "$ac_cv_path_EGREP" >&6; }
  3372. EGREP="$ac_cv_path_EGREP"
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3374. $as_echo_n "checking for ANSI C header files... " >&6; }
  3375. if ${ac_cv_header_stdc+:} false; then :
  3376. $as_echo_n "(cached) " >&6
  3377. else
  3378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3379. /* end confdefs.h. */
  3380. #include <stdlib.h>
  3381. #include <stdarg.h>
  3382. #include <string.h>
  3383. #include <float.h>
  3384. int
  3385. main ()
  3386. {
  3387. ;
  3388. return 0;
  3389. }
  3390. _ACEOF
  3391. if ac_fn_c_try_compile "$LINENO"; then :
  3392. ac_cv_header_stdc=yes
  3393. else
  3394. ac_cv_header_stdc=no
  3395. fi
  3396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3397. if test $ac_cv_header_stdc = yes; then
  3398. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3400. /* end confdefs.h. */
  3401. #include <string.h>
  3402. _ACEOF
  3403. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3404. $EGREP "memchr" >/dev/null 2>&1; then :
  3405. else
  3406. ac_cv_header_stdc=no
  3407. fi
  3408. rm -f conftest*
  3409. fi
  3410. if test $ac_cv_header_stdc = yes; then
  3411. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3413. /* end confdefs.h. */
  3414. #include <stdlib.h>
  3415. _ACEOF
  3416. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3417. $EGREP "free" >/dev/null 2>&1; then :
  3418. else
  3419. ac_cv_header_stdc=no
  3420. fi
  3421. rm -f conftest*
  3422. fi
  3423. if test $ac_cv_header_stdc = yes; then
  3424. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3425. if test "$cross_compiling" = yes; then :
  3426. :
  3427. else
  3428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3429. /* end confdefs.h. */
  3430. #include <ctype.h>
  3431. #include <stdlib.h>
  3432. #if ((' ' & 0x0FF) == 0x020)
  3433. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3434. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3435. #else
  3436. # define ISLOWER(c) \
  3437. (('a' <= (c) && (c) <= 'i') \
  3438. || ('j' <= (c) && (c) <= 'r') \
  3439. || ('s' <= (c) && (c) <= 'z'))
  3440. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3441. #endif
  3442. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3443. int
  3444. main ()
  3445. {
  3446. int i;
  3447. for (i = 0; i < 256; i++)
  3448. if (XOR (islower (i), ISLOWER (i))
  3449. || toupper (i) != TOUPPER (i))
  3450. return 2;
  3451. return 0;
  3452. }
  3453. _ACEOF
  3454. if ac_fn_c_try_run "$LINENO"; then :
  3455. else
  3456. ac_cv_header_stdc=no
  3457. fi
  3458. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3459. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3460. fi
  3461. fi
  3462. fi
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3464. $as_echo "$ac_cv_header_stdc" >&6; }
  3465. if test $ac_cv_header_stdc = yes; then
  3466. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3467. fi
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  3469. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  3470. if ${ac_cv_header_time+:} false; then :
  3471. $as_echo_n "(cached) " >&6
  3472. else
  3473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3474. /* end confdefs.h. */
  3475. #include <sys/types.h>
  3476. #include <sys/time.h>
  3477. #include <time.h>
  3478. int
  3479. main ()
  3480. {
  3481. if ((struct tm *) 0)
  3482. return 0;
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. if ac_fn_c_try_compile "$LINENO"; then :
  3488. ac_cv_header_time=yes
  3489. else
  3490. ac_cv_header_time=no
  3491. fi
  3492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3493. fi
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  3495. $as_echo "$ac_cv_header_time" >&6; }
  3496. if test $ac_cv_header_time = yes; then
  3497. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  3498. fi
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3500. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  3501. if ${ac_cv_header_sys_wait_h+:} false; then :
  3502. $as_echo_n "(cached) " >&6
  3503. else
  3504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3505. /* end confdefs.h. */
  3506. #include <sys/types.h>
  3507. #include <sys/wait.h>
  3508. #ifndef WEXITSTATUS
  3509. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  3510. #endif
  3511. #ifndef WIFEXITED
  3512. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3513. #endif
  3514. int
  3515. main ()
  3516. {
  3517. int s;
  3518. wait (&s);
  3519. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3520. ;
  3521. return 0;
  3522. }
  3523. _ACEOF
  3524. if ac_fn_c_try_compile "$LINENO"; then :
  3525. ac_cv_header_sys_wait_h=yes
  3526. else
  3527. ac_cv_header_sys_wait_h=no
  3528. fi
  3529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3530. fi
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  3532. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  3533. if test $ac_cv_header_sys_wait_h = yes; then
  3534. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  3535. fi
  3536. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3537. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3538. inttypes.h stdint.h unistd.h
  3539. do :
  3540. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3541. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3542. "
  3543. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3544. cat >>confdefs.h <<_ACEOF
  3545. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3546. _ACEOF
  3547. fi
  3548. done
  3549. for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h signal.h stdint.h strings.h string.h syslog.h tcpd.h unistd.h arpa/inet.h netinet/in.h socket.h sys/types.h sys/time.h sys/resource.h sys/wait.h sys/socket.h sys/stat.h
  3550. do :
  3551. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3552. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3553. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3554. cat >>confdefs.h <<_ACEOF
  3555. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3556. _ACEOF
  3557. fi
  3558. done
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3560. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3561. if ${ac_cv_c_const+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3565. /* end confdefs.h. */
  3566. int
  3567. main ()
  3568. {
  3569. #ifndef __cplusplus
  3570. /* Ultrix mips cc rejects this sort of thing. */
  3571. typedef int charset[2];
  3572. const charset cs = { 0, 0 };
  3573. /* SunOS 4.1.1 cc rejects this. */
  3574. char const *const *pcpcc;
  3575. char **ppc;
  3576. /* NEC SVR4.0.2 mips cc rejects this. */
  3577. struct point {int x, y;};
  3578. static struct point const zero = {0,0};
  3579. /* AIX XL C 1.02.0.0 rejects this.
  3580. It does not let you subtract one const X* pointer from another in
  3581. an arm of an if-expression whose if-part is not a constant
  3582. expression */
  3583. const char *g = "string";
  3584. pcpcc = &g + (g ? g-g : 0);
  3585. /* HPUX 7.0 cc rejects these. */
  3586. ++pcpcc;
  3587. ppc = (char**) pcpcc;
  3588. pcpcc = (char const *const *) ppc;
  3589. { /* SCO 3.2v4 cc rejects this sort of thing. */
  3590. char tx;
  3591. char *t = &tx;
  3592. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3593. *t++ = 0;
  3594. if (s) return 0;
  3595. }
  3596. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3597. int x[] = {25, 17};
  3598. const int *foo = &x[0];
  3599. ++foo;
  3600. }
  3601. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3602. typedef const int *iptr;
  3603. iptr p = 0;
  3604. ++p;
  3605. }
  3606. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  3607. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3608. struct s { int j; const int *ap[3]; } bx;
  3609. struct s *b = &bx; b->j = 5;
  3610. }
  3611. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3612. const int foo = 10;
  3613. if (!foo) return 0;
  3614. }
  3615. return !cs[0] && !zero.x;
  3616. #endif
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. if ac_fn_c_try_compile "$LINENO"; then :
  3622. ac_cv_c_const=yes
  3623. else
  3624. ac_cv_c_const=no
  3625. fi
  3626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3627. fi
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3629. $as_echo "$ac_cv_c_const" >&6; }
  3630. if test $ac_cv_c_const = no; then
  3631. $as_echo "#define const /**/" >>confdefs.h
  3632. fi
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  3634. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  3635. if ${ac_cv_struct_tm+:} false; then :
  3636. $as_echo_n "(cached) " >&6
  3637. else
  3638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3639. /* end confdefs.h. */
  3640. #include <sys/types.h>
  3641. #include <time.h>
  3642. int
  3643. main ()
  3644. {
  3645. struct tm tm;
  3646. int *p = &tm.tm_sec;
  3647. return !p;
  3648. ;
  3649. return 0;
  3650. }
  3651. _ACEOF
  3652. if ac_fn_c_try_compile "$LINENO"; then :
  3653. ac_cv_struct_tm=time.h
  3654. else
  3655. ac_cv_struct_tm=sys/time.h
  3656. fi
  3657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  3660. $as_echo "$ac_cv_struct_tm" >&6; }
  3661. if test $ac_cv_struct_tm = sys/time.h; then
  3662. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  3663. fi
  3664. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  3665. if test "x$ac_cv_type_mode_t" = xyes; then :
  3666. else
  3667. cat >>confdefs.h <<_ACEOF
  3668. #define mode_t int
  3669. _ACEOF
  3670. fi
  3671. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  3672. if test "x$ac_cv_type_pid_t" = xyes; then :
  3673. else
  3674. cat >>confdefs.h <<_ACEOF
  3675. #define pid_t int
  3676. _ACEOF
  3677. fi
  3678. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3679. if test "x$ac_cv_type_size_t" = xyes; then :
  3680. else
  3681. cat >>confdefs.h <<_ACEOF
  3682. #define size_t unsigned int
  3683. _ACEOF
  3684. fi
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  3686. $as_echo_n "checking return type of signal handlers... " >&6; }
  3687. if ${ac_cv_type_signal+:} false; then :
  3688. $as_echo_n "(cached) " >&6
  3689. else
  3690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3691. /* end confdefs.h. */
  3692. #include <sys/types.h>
  3693. #include <signal.h>
  3694. int
  3695. main ()
  3696. {
  3697. return *(signal (0, 0)) (0) == 1;
  3698. ;
  3699. return 0;
  3700. }
  3701. _ACEOF
  3702. if ac_fn_c_try_compile "$LINENO"; then :
  3703. ac_cv_type_signal=int
  3704. else
  3705. ac_cv_type_signal=void
  3706. fi
  3707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3708. fi
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  3710. $as_echo "$ac_cv_type_signal" >&6; }
  3711. cat >>confdefs.h <<_ACEOF
  3712. #define RETSIGTYPE $ac_cv_type_signal
  3713. _ACEOF
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  3715. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  3716. if ${ac_cv_type_uid_t+:} false; then :
  3717. $as_echo_n "(cached) " >&6
  3718. else
  3719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3720. /* end confdefs.h. */
  3721. #include <sys/types.h>
  3722. _ACEOF
  3723. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3724. $EGREP "uid_t" >/dev/null 2>&1; then :
  3725. ac_cv_type_uid_t=yes
  3726. else
  3727. ac_cv_type_uid_t=no
  3728. fi
  3729. rm -f conftest*
  3730. fi
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  3732. $as_echo "$ac_cv_type_uid_t" >&6; }
  3733. if test $ac_cv_type_uid_t = no; then
  3734. $as_echo "#define uid_t int" >>confdefs.h
  3735. $as_echo "#define gid_t int" >>confdefs.h
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
  3738. $as_echo_n "checking type of array argument to getgroups... " >&6; }
  3739. if ${ac_cv_type_getgroups+:} false; then :
  3740. $as_echo_n "(cached) " >&6
  3741. else
  3742. if test "$cross_compiling" = yes; then :
  3743. ac_cv_type_getgroups=cross
  3744. else
  3745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3746. /* end confdefs.h. */
  3747. /* Thanks to Mike Rendell for this test. */
  3748. $ac_includes_default
  3749. #define NGID 256
  3750. #undef MAX
  3751. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  3752. int
  3753. main ()
  3754. {
  3755. gid_t gidset[NGID];
  3756. int i, n;
  3757. union { gid_t gval; long int lval; } val;
  3758. val.lval = -1;
  3759. for (i = 0; i < NGID; i++)
  3760. gidset[i] = val.gval;
  3761. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  3762. gidset);
  3763. /* Exit non-zero if getgroups seems to require an array of ints. This
  3764. happens when gid_t is short int but getgroups modifies an array
  3765. of ints. */
  3766. return n > 0 && gidset[n] != val.gval;
  3767. }
  3768. _ACEOF
  3769. if ac_fn_c_try_run "$LINENO"; then :
  3770. ac_cv_type_getgroups=gid_t
  3771. else
  3772. ac_cv_type_getgroups=int
  3773. fi
  3774. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3775. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3776. fi
  3777. if test $ac_cv_type_getgroups = cross; then
  3778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3779. /* end confdefs.h. */
  3780. #include <unistd.h>
  3781. _ACEOF
  3782. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3783. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
  3784. ac_cv_type_getgroups=gid_t
  3785. else
  3786. ac_cv_type_getgroups=int
  3787. fi
  3788. rm -f conftest*
  3789. fi
  3790. fi
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
  3792. $as_echo "$ac_cv_type_getgroups" >&6; }
  3793. cat >>confdefs.h <<_ACEOF
  3794. #define GETGROUPS_T $ac_cv_type_getgroups
  3795. _ACEOF
  3796. # The cast to long int works around a bug in the HP C Compiler
  3797. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3798. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3799. # This bug is HP SR number 8606223364.
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3801. $as_echo_n "checking size of int... " >&6; }
  3802. if ${ac_cv_sizeof_int+:} false; then :
  3803. $as_echo_n "(cached) " >&6
  3804. else
  3805. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3806. else
  3807. if test "$ac_cv_type_int" = yes; then
  3808. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3809. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3810. as_fn_error 77 "cannot compute sizeof (int)
  3811. See \`config.log' for more details" "$LINENO" 5; }
  3812. else
  3813. ac_cv_sizeof_int=0
  3814. fi
  3815. fi
  3816. fi
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3818. $as_echo "$ac_cv_sizeof_int" >&6; }
  3819. cat >>confdefs.h <<_ACEOF
  3820. #define SIZEOF_INT $ac_cv_sizeof_int
  3821. _ACEOF
  3822. # The cast to long int works around a bug in the HP C Compiler
  3823. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3824. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3825. # This bug is HP SR number 8606223364.
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  3827. $as_echo_n "checking size of short... " >&6; }
  3828. if ${ac_cv_sizeof_short+:} false; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  3832. else
  3833. if test "$ac_cv_type_short" = yes; then
  3834. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3835. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3836. as_fn_error 77 "cannot compute sizeof (short)
  3837. See \`config.log' for more details" "$LINENO" 5; }
  3838. else
  3839. ac_cv_sizeof_short=0
  3840. fi
  3841. fi
  3842. fi
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  3844. $as_echo "$ac_cv_sizeof_short" >&6; }
  3845. cat >>confdefs.h <<_ACEOF
  3846. #define SIZEOF_SHORT $ac_cv_sizeof_short
  3847. _ACEOF
  3848. # The cast to long int works around a bug in the HP C Compiler
  3849. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3850. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3851. # This bug is HP SR number 8606223364.
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3853. $as_echo_n "checking size of long... " >&6; }
  3854. if ${ac_cv_sizeof_long+:} false; then :
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3858. else
  3859. if test "$ac_cv_type_long" = yes; then
  3860. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3861. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3862. as_fn_error 77 "cannot compute sizeof (long)
  3863. See \`config.log' for more details" "$LINENO" 5; }
  3864. else
  3865. ac_cv_sizeof_long=0
  3866. fi
  3867. fi
  3868. fi
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3870. $as_echo "$ac_cv_sizeof_long" >&6; }
  3871. cat >>confdefs.h <<_ACEOF
  3872. #define SIZEOF_LONG $ac_cv_sizeof_long
  3873. _ACEOF
  3874. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  3875. if test "x$ac_cv_type_uint32_t" = xyes; then :
  3876. else
  3877. cat >>confdefs.h <<_ACEOF
  3878. #define uint32_t unsigned int
  3879. _ACEOF
  3880. fi
  3881. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  3882. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  3883. else
  3884. cat >>confdefs.h <<_ACEOF
  3885. #define u_int32_t unsigned int
  3886. _ACEOF
  3887. fi
  3888. if test "$ac_cv_type_u_int32_t" = no ; then
  3889. if test "$ac_cv_type_u_int32_t" = yes ; then
  3890. $as_echo "#define U_INT32_T_IS_UINT32_T 1" >>confdefs.h
  3891. else
  3892. if test "$ac_cv_sizeof_int" = 4 ; then
  3893. $as_echo "#define U_INT32_T_IS_UINT 1" >>confdefs.h
  3894. else
  3895. if test "$ac_cv_sizeof_long" = 4 ; then
  3896. $as_echo "#define U_INT32_T_IS_ULONG 1" >>confdefs.h
  3897. else
  3898. if test "$ac_cv_sizeof_short" = 4 ; then
  3899. $as_echo "#define U_INT32_T_IS_USHORT 1" >>confdefs.h
  3900. fi
  3901. fi
  3902. fi
  3903. fi
  3904. fi
  3905. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  3906. if test "x$ac_cv_type_int32_t" = xyes; then :
  3907. else
  3908. cat >>confdefs.h <<_ACEOF
  3909. #define int32_t int
  3910. _ACEOF
  3911. fi
  3912. if test "$ac_cv_type_int32_t" = no ; then
  3913. if test "$ac_cv_sizeof_int" = 4 ; then
  3914. $as_echo "#define INT32_T_IS_UINT 1" >>confdefs.h
  3915. else
  3916. if test "$ac_cv_sizeof_long" = 4 ; then
  3917. $as_echo "#define INT32_T_IS_ULONG 1" >>confdefs.h
  3918. else
  3919. if test "$ac_cv_sizeof_short" = 4 ; then
  3920. $as_echo "#define INT32_T_IS_USHORT 1" >>confdefs.h
  3921. fi
  3922. fi
  3923. fi
  3924. fi
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  3926. $as_echo_n "checking for va_copy... " >&6; }
  3927. if ${ac_cv_HAVE_VA_COPY+:} false; then :
  3928. $as_echo_n "(cached) " >&6
  3929. else
  3930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3931. /* end confdefs.h. */
  3932. #include <stdarg.h>
  3933. va_list ap1,ap2;
  3934. int
  3935. main ()
  3936. {
  3937. va_copy(ap1,ap2);
  3938. ;
  3939. return 0;
  3940. }
  3941. _ACEOF
  3942. if ac_fn_c_try_link "$LINENO"; then :
  3943. ac_cv_HAVE_VA_COPY=yes
  3944. else
  3945. ac_cv_HAVE_VA_COPY=no
  3946. fi
  3947. rm -f core conftest.err conftest.$ac_objext \
  3948. conftest$ac_exeext conftest.$ac_ext
  3949. fi
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_VA_COPY" >&5
  3951. $as_echo "$ac_cv_HAVE_VA_COPY" >&6; }
  3952. if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then
  3953. $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
  3954. else
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
  3956. $as_echo_n "checking for __va_copy... " >&6; }
  3957. if ${ac_cv_HAVE___VA_COPY+:} false; then :
  3958. $as_echo_n "(cached) " >&6
  3959. else
  3960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3961. /* end confdefs.h. */
  3962. #include <stdarg.h>
  3963. va_list ap1,ap2;
  3964. int
  3965. main ()
  3966. {
  3967. __va_copy(ap1,ap2);
  3968. ;
  3969. return 0;
  3970. }
  3971. _ACEOF
  3972. if ac_fn_c_try_link "$LINENO"; then :
  3973. ac_cv_HAVE___VA_COPY=yes
  3974. else
  3975. ac_cv_HAVE___VA_COPY=no
  3976. fi
  3977. rm -f core conftest.err conftest.$ac_objext \
  3978. conftest$ac_exeext conftest.$ac_ext
  3979. fi
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE___VA_COPY" >&5
  3981. $as_echo "$ac_cv_HAVE___VA_COPY" >&6; }
  3982. if test x"$ac_cv_HAVE___VA_COPY" = x"yes"; then
  3983. $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
  3984. fi
  3985. fi
  3986. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  3987. if test "x$ac_cv_func_vsnprintf" = xyes; then :
  3988. else
  3989. SNPRINTF_O=./snprintf.o
  3990. fi
  3991. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  3992. if test "x$ac_cv_func_snprintf" = xyes; then :
  3993. else
  3994. SNPRINTF_O=./snprintf.o
  3995. fi
  3996. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  3997. if test "x$ac_cv_func_asprintf" = xyes; then :
  3998. else
  3999. SNPRINTF_O=./snprintf.o
  4000. fi
  4001. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  4002. if test "x$ac_cv_func_vasprintf" = xyes; then :
  4003. else
  4004. SNPRINTF_O=./snprintf.o
  4005. fi
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
  4007. $as_echo_n "checking for C99 vsnprintf... " >&6; }
  4008. if ${ac_cv_HAVE_C99_VSNPRINTF+:} false; then :
  4009. $as_echo_n "(cached) " >&6
  4010. else
  4011. if test "$cross_compiling" = yes; then :
  4012. ac_cv_HAVE_C99_VSNPRINTF=cross
  4013. else
  4014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4015. /* end confdefs.h. */
  4016. #include <sys/types.h>
  4017. #include <stdarg.h>
  4018. void foo(const char *format, ...) {
  4019. va_list ap;
  4020. int len;
  4021. char buf[5];
  4022. va_start(ap, format);
  4023. len = vsnprintf(buf, 0, format, ap);
  4024. va_end(ap);
  4025. if (len != 5) exit(1);
  4026. va_start(ap, format);
  4027. len = vsnprintf(0, 0, format, ap);
  4028. va_end(ap);
  4029. if (len != 5) exit(1);
  4030. if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
  4031. exit(0);
  4032. }
  4033. main() { foo("hello"); }
  4034. _ACEOF
  4035. if ac_fn_c_try_run "$LINENO"; then :
  4036. ac_cv_HAVE_C99_VSNPRINTF=yes
  4037. else
  4038. ac_cv_HAVE_C99_VSNPRINTF=no
  4039. fi
  4040. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4041. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4042. fi
  4043. fi
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_C99_VSNPRINTF" >&5
  4045. $as_echo "$ac_cv_HAVE_C99_VSNPRINTF" >&6; }
  4046. if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
  4047. $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
  4048. fi
  4049. for ac_func in getopt_long
  4050. do :
  4051. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  4052. if test "x$ac_cv_func_getopt_long" = xyes; then :
  4053. cat >>confdefs.h <<_ACEOF
  4054. #define HAVE_GETOPT_LONG 1
  4055. _ACEOF
  4056. else
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -liberty" >&5
  4058. $as_echo_n "checking for getopt_long in -liberty... " >&6; }
  4059. if ${ac_cv_lib_iberty_getopt_long+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. ac_check_lib_save_LIBS=$LIBS
  4063. LIBS="-liberty $LIBS"
  4064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4065. /* end confdefs.h. */
  4066. /* Override any GCC internal prototype to avoid an error.
  4067. Use char because int might match the return type of a GCC
  4068. builtin and then its argument prototype would still apply. */
  4069. #ifdef __cplusplus
  4070. extern "C"
  4071. #endif
  4072. char getopt_long ();
  4073. int
  4074. main ()
  4075. {
  4076. return getopt_long ();
  4077. ;
  4078. return 0;
  4079. }
  4080. _ACEOF
  4081. if ac_fn_c_try_link "$LINENO"; then :
  4082. ac_cv_lib_iberty_getopt_long=yes
  4083. else
  4084. ac_cv_lib_iberty_getopt_long=no
  4085. fi
  4086. rm -f core conftest.err conftest.$ac_objext \
  4087. conftest$ac_exeext conftest.$ac_ext
  4088. LIBS=$ac_check_lib_save_LIBS
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_getopt_long" >&5
  4091. $as_echo "$ac_cv_lib_iberty_getopt_long" >&6; }
  4092. if test "x$ac_cv_lib_iberty_getopt_long" = xyes; then :
  4093. OTHERLIBS="$OTHERLIBS -liberty"
  4094. fi
  4095. fi
  4096. done
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4098. $as_echo_n "checking for main in -lnsl... " >&6; }
  4099. if ${ac_cv_lib_nsl_main+:} false; then :
  4100. $as_echo_n "(cached) " >&6
  4101. else
  4102. ac_check_lib_save_LIBS=$LIBS
  4103. LIBS="-lnsl $LIBS"
  4104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4105. /* end confdefs.h. */
  4106. int
  4107. main ()
  4108. {
  4109. return main ();
  4110. ;
  4111. return 0;
  4112. }
  4113. _ACEOF
  4114. if ac_fn_c_try_link "$LINENO"; then :
  4115. ac_cv_lib_nsl_main=yes
  4116. else
  4117. ac_cv_lib_nsl_main=no
  4118. fi
  4119. rm -f core conftest.err conftest.$ac_objext \
  4120. conftest$ac_exeext conftest.$ac_ext
  4121. LIBS=$ac_check_lib_save_LIBS
  4122. fi
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4124. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4125. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4126. SOCKETLIBS="$SOCKETLIBS -lnsl"
  4127. fi
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4129. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4130. if ${ac_cv_lib_socket_socket+:} false; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. ac_check_lib_save_LIBS=$LIBS
  4134. LIBS="-lsocket $LIBS"
  4135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4136. /* end confdefs.h. */
  4137. /* Override any GCC internal prototype to avoid an error.
  4138. Use char because int might match the return type of a GCC
  4139. builtin and then its argument prototype would still apply. */
  4140. #ifdef __cplusplus
  4141. extern "C"
  4142. #endif
  4143. char socket ();
  4144. int
  4145. main ()
  4146. {
  4147. return socket ();
  4148. ;
  4149. return 0;
  4150. }
  4151. _ACEOF
  4152. if ac_fn_c_try_link "$LINENO"; then :
  4153. ac_cv_lib_socket_socket=yes
  4154. else
  4155. ac_cv_lib_socket_socket=no
  4156. fi
  4157. rm -f core conftest.err conftest.$ac_objext \
  4158. conftest$ac_exeext conftest.$ac_ext
  4159. LIBS=$ac_check_lib_save_LIBS
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4162. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4163. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4164. SOCKETLIBS="$SOCKETLIBS -lsocket"
  4165. fi
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwrap" >&5
  4167. $as_echo_n "checking for main in -lwrap... " >&6; }
  4168. if ${ac_cv_lib_wrap_main+:} false; then :
  4169. $as_echo_n "(cached) " >&6
  4170. else
  4171. ac_check_lib_save_LIBS=$LIBS
  4172. LIBS="-lwrap $LIBS"
  4173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4174. /* end confdefs.h. */
  4175. int
  4176. main ()
  4177. {
  4178. return main ();
  4179. ;
  4180. return 0;
  4181. }
  4182. _ACEOF
  4183. if ac_fn_c_try_link "$LINENO"; then :
  4184. ac_cv_lib_wrap_main=yes
  4185. else
  4186. ac_cv_lib_wrap_main=no
  4187. fi
  4188. rm -f core conftest.err conftest.$ac_objext \
  4189. conftest$ac_exeext conftest.$ac_ext
  4190. LIBS=$ac_check_lib_save_LIBS
  4191. fi
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_main" >&5
  4193. $as_echo "$ac_cv_lib_wrap_main" >&6; }
  4194. if test "x$ac_cv_lib_wrap_main" = xyes; then :
  4195. LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
  4196. $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
  4197. fi
  4198. for ac_func in strdup strstr strtoul initgroups closesocket sigaction
  4199. do :
  4200. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4201. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4202. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4203. cat >>confdefs.h <<_ACEOF
  4204. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4205. _ACEOF
  4206. fi
  4207. done
  4208. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  4209. #include <sys/socket.h>
  4210. "
  4211. if test "x$ac_cv_type_socklen_t" = xyes; then :
  4212. else
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  4214. $as_echo_n "checking for socklen_t equivalent... " >&6; }
  4215. if ${curl_cv_socklen_t_equiv+:} false; then :
  4216. $as_echo_n "(cached) " >&6
  4217. else
  4218. # Systems have either "struct sockaddr *" or
  4219. # "void *" as the second argument to getpeername
  4220. curl_cv_socklen_t_equiv=
  4221. for arg2 in "struct sockaddr" void; do
  4222. for t in int size_t unsigned long "unsigned long"; do
  4223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4224. /* end confdefs.h. */
  4225. #ifdef HAVE_SYS_TYPES_H
  4226. #include <sys/types.h>
  4227. #endif
  4228. #ifdef HAVE_SYS_SOCKET_H
  4229. #include <sys/socket.h>
  4230. #endif
  4231. int getpeername (int, $arg2 *, $t *);
  4232. int
  4233. main ()
  4234. {
  4235. $t len;
  4236. getpeername(0,0,&len);
  4237. ;
  4238. return 0;
  4239. }
  4240. _ACEOF
  4241. if ac_fn_c_try_compile "$LINENO"; then :
  4242. curl_cv_socklen_t_equiv="$t"
  4243. break
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4246. done
  4247. done
  4248. if test "x$curl_cv_socklen_t_equiv" = x; then
  4249. as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  4250. fi
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
  4253. $as_echo "$curl_cv_socklen_t_equiv" >&6; }
  4254. cat >>confdefs.h <<_ACEOF
  4255. #define socklen_t $curl_cv_socklen_t_equiv
  4256. _ACEOF
  4257. fi
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket size" >&5
  4259. $as_echo_n "checking for type of socket size... " >&6; }
  4260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4261. /* end confdefs.h. */
  4262. #include <stdlib.h>
  4263. #include <sys/types.h>
  4264. #include <sys/socket.h>
  4265. int
  4266. main ()
  4267. {
  4268. int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
  4269. ;
  4270. return 0;
  4271. }
  4272. _ACEOF
  4273. if ac_fn_c_try_compile "$LINENO"; then :
  4274. $as_echo "#define SOCKET_SIZE_TYPE size_t" >>confdefs.h
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
  4276. $as_echo "size_t" >&6; }
  4277. else
  4278. $as_echo "#define SOCKET_SIZE_TYPE int" >>confdefs.h
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
  4280. $as_echo "int" >&6; }
  4281. fi
  4282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4283. #AC_CHECK_TYPE(socklen_t,int,
  4284. # AC_DEFINE(socklen_t,int,
  4285. # Define to `int' if <sys/socket.h> does not define.),[
  4286. # #ifdef HAVE_SYS_TYPES_H
  4287. # #include <sys/types.h>
  4288. # #endif
  4289. # #ifdef HAVE_SYS_SOCKET_H
  4290. # #include <sys/socket.h>
  4291. # #endif
  4292. # ])
  4293. # Check whether --enable-ssl was given.
  4294. if test "${enable_ssl+set}" = set; then :
  4295. enableval=$enable_ssl;
  4296. if test x$enableval = xyes; then
  4297. check_for_ssl=yes
  4298. else
  4299. check_for_ssl=no
  4300. fi
  4301. else
  4302. check_for_ssl=yes
  4303. fi
  4304. ssl_dir=
  4305. ssl_inc_dir=
  4306. ssl_lib_dir=
  4307. # Check whether --with-ssl was given.
  4308. if test "${with_ssl+set}" = set; then :
  4309. withval=$with_ssl; ssl_dir=$withval
  4310. fi
  4311. # Check whether --with-ssl-inc was given.
  4312. if test "${with_ssl_inc+set}" = set; then :
  4313. withval=$with_ssl_inc; ssl_inc_dir=$withval
  4314. fi
  4315. # Check whether --with-ssl-lib was given.
  4316. if test "${with_ssl_lib+set}" = set; then :
  4317. withval=$with_ssl_lib; ssl_lib_dir=$withval
  4318. fi
  4319. # Check whether --with-kerberos-inc was given.
  4320. if test "${with_kerberos_inc+set}" = set; then :
  4321. withval=$with_kerberos_inc; kerberos_inc_dir=$withval
  4322. fi
  4323. if test x$check_for_ssl = xyes; then
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL headers" >&5
  4325. $as_echo_n "checking for SSL headers... " >&6; }
  4326. found_ssl=no
  4327. for dir in $ssl_inc_dir $ssl_dir /usr/local/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr /usr/freeware/lib/openssl /usr/sfw/include; do
  4328. ssldir="$dir"
  4329. if test -f "$dir/include/openssl/ssl.h"; then
  4330. found_ssl=yes
  4331. CFLAGS="$CFLAGS -I$dir/include/openssl -I$ssldir/include"
  4332. sslincdir="$dir/include/openssl"
  4333. break
  4334. fi
  4335. if test -f "$dir/include/ssl.h"; then
  4336. found_ssl=yes
  4337. CFLAGS="$CFLAGS -I$dir/include"
  4338. sslincdir="$dir/include"
  4339. break
  4340. fi
  4341. if test -f "$dir/ssl.h"; then
  4342. found_ssl=yes
  4343. CFLAGS="$CFLAGS -I$dir"
  4344. sslincdir="$dir"
  4345. ssldir="$dir/.."
  4346. break
  4347. fi
  4348. if test -f "$dir/openssl/ssl.h"; then
  4349. found_ssl=yes
  4350. CFLAGS="$CFLAGS -I$dir/openssl"
  4351. sslincdir="$dir/openssl"
  4352. ssldir="$dir/.."
  4353. break
  4354. fi
  4355. done
  4356. if test x_$found_ssl != x_yes; then
  4357. as_fn_error $? "Cannot find ssl headers" "$LINENO" 5
  4358. else
  4359. printf "SSL headers found in $ssldir\n";
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL libraries" >&5
  4361. $as_echo_n "checking for SSL libraries... " >&6; }
  4362. found_ssl=no
  4363. for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/lib/x86_64-linux-gnu \
  4364. /usr/lib/i386-linux-gnu /usr/local/lib /usr/lib/ssl /usr/ssl/lib \
  4365. /usr/openssl/lib /usr/pkg/lib /usr/freeware/lib/openssl \
  4366. /usr/sfw/lib /opt/freeware/lib; do
  4367. ssllibdir="$dir"
  4368. if test "`uname -s`" = "Darwin" ; then
  4369. soext="dylib"
  4370. elif test "`uname -s`" = "HP-UX" ; then
  4371. soext="sl"
  4372. elif test "`uname -s`" = "AIX" ; then
  4373. soext="a"
  4374. else
  4375. soext="so"
  4376. fi
  4377. if test -f "$dir/libssl.$soext"; then
  4378. found_ssl=yes
  4379. break
  4380. fi
  4381. done
  4382. if test x_$found_ssl != x_yes; then
  4383. as_fn_error $? "Cannot find ssl libraries" "$LINENO" 5
  4384. else
  4385. printf "SSL libraries found in $ssllibdir\n";
  4386. LDFLAGS="$LDFLAGS -L$ssllibdir";
  4387. LIBS="$LIBS -lssl -lcrypto";
  4388. cat >>confdefs.h <<_ACEOF
  4389. #define HAVE_SSL 1
  4390. _ACEOF
  4391. echo ""
  4392. echo "*** Generating DH Parameters for SSL/TLS ***"
  4393. if test -f "$ssldir/sbin/openssl"; then
  4394. sslbin=$ssldir/sbin/openssl
  4395. else
  4396. sslbin=$ssldir/bin/openssl
  4397. fi
  4398. # awk to strip off meta data at bottom of dhparam output
  4399. $sslbin dhparam -C 2048 | awk '/^-----/ {exit} {print}' > include/dh.h
  4400. fi
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos include files" >&5
  4403. $as_echo_n "checking for Kerberos include files... " >&6; }
  4404. found_kerberos=no
  4405. for dir in $kerberos_inc_dir /usr/kerberos/include; do
  4406. kerbdir="$dir"
  4407. if test -f "$dir/krb5.h"; then
  4408. found_kerberos=yes
  4409. CFLAGS="$CFLAGS -I$kerbdir"
  4410. cat >>confdefs.h <<_ACEOF
  4411. #define HAVE_KRB5_H 1
  4412. _ACEOF
  4413. break
  4414. fi
  4415. done
  4416. if test x_$found_kerberos != x_yes; then
  4417. printf "could not find include files\n";
  4418. else
  4419. printf "found Kerberos include files in $kerbdir\n";
  4420. fi
  4421. fi
  4422. # Check whether --with-log_facility was given.
  4423. if test "${with_log_facility+set}" = set; then :
  4424. withval=$with_log_facility; log_facility=$withval
  4425. else
  4426. log_facility=daemon
  4427. fi
  4428. cat >>confdefs.h <<_ACEOF
  4429. #define NRPE_LOG_FACILITY "$log_facility"
  4430. _ACEOF
  4431. # Check whether --with-nrpe_user was given.
  4432. if test "${with_nrpe_user+set}" = set; then :
  4433. withval=$with_nrpe_user; nrpe_user=$withval
  4434. else
  4435. nrpe_user=nagios
  4436. fi
  4437. # Check whether --with-nrpe_group was given.
  4438. if test "${with_nrpe_group+set}" = set; then :
  4439. withval=$with_nrpe_group; nrpe_group=$withval
  4440. else
  4441. nrpe_group=nagios
  4442. fi
  4443. # Check whether --with-nrpe_port was given.
  4444. if test "${with_nrpe_port+set}" = set; then :
  4445. withval=$with_nrpe_port; nrpe_port=$withval
  4446. else
  4447. nrpe_port=5666
  4448. fi
  4449. NRPE_INSTALL_OPTS="-o $nrpe_user -g $nrpe_group"
  4450. cat >>confdefs.h <<_ACEOF
  4451. #define DEFAULT_SERVER_PORT $nrpe_port
  4452. _ACEOF
  4453. # Check whether --with-nagios_user was given.
  4454. if test "${with_nagios_user+set}" = set; then :
  4455. withval=$with_nagios_user; nagios_user=$withval
  4456. else
  4457. nagios_user=nagios
  4458. fi
  4459. # Check whether --with-nagios_group was given.
  4460. if test "${with_nagios_group+set}" = set; then :
  4461. withval=$with_nagios_group; nagios_group=$withval
  4462. else
  4463. nagios_group=nagios
  4464. fi
  4465. NAGIOS_INSTALL_OPTS="-o $nagios_user -g $nagios_group"
  4466. # Determine target OS, version and architecture for package build macros
  4467. if test "x$target_ver" = "x" ; then
  4468. TARGET_VER=`uname -r`
  4469. else
  4470. TARGET_VER=$target_ver
  4471. fi
  4472. if test "x$target_os" = "x" ; then
  4473. TARGET_OS=`uname -s`
  4474. else
  4475. TARGET_OS=$target_os
  4476. fi
  4477. if test "x$target_cpu" = "x" ; then
  4478. TARGET_ARCH=`uname -p`
  4479. else
  4480. TARGET_ARCH=$target_cpu
  4481. fi
  4482. TARGET_PLATFORM=""
  4483. if test "x$TARGET_OS" = "xSunOS" ; then
  4484. if test "x$TARGET_VER" = "x5.10" ; then
  4485. TARGET_PLATFORM="sol10"
  4486. fi
  4487. fi
  4488. # Check whether --enable-command-args was given.
  4489. if test "${enable_command_args+set}" = set; then :
  4490. enableval=$enable_command_args;
  4491. cat >>confdefs.h <<_ACEOF
  4492. #define ENABLE_COMMAND_ARGUMENTS 1
  4493. _ACEOF
  4494. fi
  4495. # Check whether --enable-bash-command-substitution was given.
  4496. if test "${enable_bash_command_substitution+set}" = set; then :
  4497. enableval=$enable_bash_command_substitution;
  4498. cat >>confdefs.h <<_ACEOF
  4499. #define ENABLE_BASH_COMMAND_SUBSTITUTION 1
  4500. _ACEOF
  4501. fi
  4502. # Extract the first word of "perl", so it can be a program name with args.
  4503. set dummy perl; ac_word=$2
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4505. $as_echo_n "checking for $ac_word... " >&6; }
  4506. if ${ac_cv_path_PERL+:} false; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. case $PERL in
  4510. [\\/]* | ?:[\\/]*)
  4511. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4512. ;;
  4513. *)
  4514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4515. for as_dir in $PATH
  4516. do
  4517. IFS=$as_save_IFS
  4518. test -z "$as_dir" && as_dir=.
  4519. for ac_exec_ext in '' $ac_executable_extensions; do
  4520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4521. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4523. break 2
  4524. fi
  4525. done
  4526. done
  4527. IFS=$as_save_IFS
  4528. ;;
  4529. esac
  4530. fi
  4531. PERL=$ac_cv_path_PERL
  4532. if test -n "$PERL"; then
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4534. $as_echo "$PERL" >&6; }
  4535. else
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4537. $as_echo "no" >&6; }
  4538. fi
  4539. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4540. # Let make expand exec_prefix.
  4541. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4542. DEFS=-DHAVE_CONFIG_H
  4543. ac_libobjs=
  4544. ac_ltlibobjs=
  4545. U=
  4546. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4547. # 1. Remove the extension, and $U if already installed.
  4548. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4549. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4550. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4551. # will be set to the directory where LIBOBJS objects are built.
  4552. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4553. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4554. done
  4555. LIBOBJS=$ac_libobjs
  4556. LTLIBOBJS=$ac_ltlibobjs
  4557. : "${CONFIG_STATUS=./config.status}"
  4558. ac_write_fail=0
  4559. ac_clean_files_save=$ac_clean_files
  4560. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4562. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4563. as_write_fail=0
  4564. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4565. #! $SHELL
  4566. # Generated by $as_me.
  4567. # Run this file to recreate the current configuration.
  4568. # Compiler output produced by configure, useful for debugging
  4569. # configure, is in config.log if it exists.
  4570. debug=false
  4571. ac_cs_recheck=false
  4572. ac_cs_silent=false
  4573. SHELL=\${CONFIG_SHELL-$SHELL}
  4574. export SHELL
  4575. _ASEOF
  4576. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4577. ## -------------------- ##
  4578. ## M4sh Initialization. ##
  4579. ## -------------------- ##
  4580. # Be more Bourne compatible
  4581. DUALCASE=1; export DUALCASE # for MKS sh
  4582. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4583. emulate sh
  4584. NULLCMD=:
  4585. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4586. # is contrary to our usage. Disable this feature.
  4587. alias -g '${1+"$@"}'='"$@"'
  4588. setopt NO_GLOB_SUBST
  4589. else
  4590. case `(set -o) 2>/dev/null` in #(
  4591. *posix*) :
  4592. set -o posix ;; #(
  4593. *) :
  4594. ;;
  4595. esac
  4596. fi
  4597. as_nl='
  4598. '
  4599. export as_nl
  4600. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4601. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4602. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4603. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4604. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4605. # but without wasting forks for bash or zsh.
  4606. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4607. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4608. as_echo='print -r --'
  4609. as_echo_n='print -rn --'
  4610. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4611. as_echo='printf %s\n'
  4612. as_echo_n='printf %s'
  4613. else
  4614. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4615. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4616. as_echo_n='/usr/ucb/echo -n'
  4617. else
  4618. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4619. as_echo_n_body='eval
  4620. arg=$1;
  4621. case $arg in #(
  4622. *"$as_nl"*)
  4623. expr "X$arg" : "X\\(.*\\)$as_nl";
  4624. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4625. esac;
  4626. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4627. '
  4628. export as_echo_n_body
  4629. as_echo_n='sh -c $as_echo_n_body as_echo'
  4630. fi
  4631. export as_echo_body
  4632. as_echo='sh -c $as_echo_body as_echo'
  4633. fi
  4634. # The user is always right.
  4635. if test "${PATH_SEPARATOR+set}" != set; then
  4636. PATH_SEPARATOR=:
  4637. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4638. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4639. PATH_SEPARATOR=';'
  4640. }
  4641. fi
  4642. # IFS
  4643. # We need space, tab and new line, in precisely that order. Quoting is
  4644. # there to prevent editors from complaining about space-tab.
  4645. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4646. # splitting by setting IFS to empty value.)
  4647. IFS=" "" $as_nl"
  4648. # Find who we are. Look in the path if we contain no directory separator.
  4649. as_myself=
  4650. case $0 in #((
  4651. *[\\/]* ) as_myself=$0 ;;
  4652. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4653. for as_dir in $PATH
  4654. do
  4655. IFS=$as_save_IFS
  4656. test -z "$as_dir" && as_dir=.
  4657. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4658. done
  4659. IFS=$as_save_IFS
  4660. ;;
  4661. esac
  4662. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4663. # in which case we are not to be found in the path.
  4664. if test "x$as_myself" = x; then
  4665. as_myself=$0
  4666. fi
  4667. if test ! -f "$as_myself"; then
  4668. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4669. exit 1
  4670. fi
  4671. # Unset variables that we do not need and which cause bugs (e.g. in
  4672. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4673. # suppresses any "Segmentation fault" message there. '((' could
  4674. # trigger a bug in pdksh 5.2.14.
  4675. for as_var in BASH_ENV ENV MAIL MAILPATH
  4676. do eval test x\${$as_var+set} = xset \
  4677. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4678. done
  4679. PS1='$ '
  4680. PS2='> '
  4681. PS4='+ '
  4682. # NLS nuisances.
  4683. LC_ALL=C
  4684. export LC_ALL
  4685. LANGUAGE=C
  4686. export LANGUAGE
  4687. # CDPATH.
  4688. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4689. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4690. # ----------------------------------------
  4691. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4692. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4693. # script with STATUS, using 1 if that was 0.
  4694. as_fn_error ()
  4695. {
  4696. as_status=$1; test $as_status -eq 0 && as_status=1
  4697. if test "$4"; then
  4698. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4699. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4700. fi
  4701. $as_echo "$as_me: error: $2" >&2
  4702. as_fn_exit $as_status
  4703. } # as_fn_error
  4704. # as_fn_set_status STATUS
  4705. # -----------------------
  4706. # Set $? to STATUS, without forking.
  4707. as_fn_set_status ()
  4708. {
  4709. return $1
  4710. } # as_fn_set_status
  4711. # as_fn_exit STATUS
  4712. # -----------------
  4713. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4714. as_fn_exit ()
  4715. {
  4716. set +e
  4717. as_fn_set_status $1
  4718. exit $1
  4719. } # as_fn_exit
  4720. # as_fn_unset VAR
  4721. # ---------------
  4722. # Portably unset VAR.
  4723. as_fn_unset ()
  4724. {
  4725. { eval $1=; unset $1;}
  4726. }
  4727. as_unset=as_fn_unset
  4728. # as_fn_append VAR VALUE
  4729. # ----------------------
  4730. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4731. # advantage of any shell optimizations that allow amortized linear growth over
  4732. # repeated appends, instead of the typical quadratic growth present in naive
  4733. # implementations.
  4734. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4735. eval 'as_fn_append ()
  4736. {
  4737. eval $1+=\$2
  4738. }'
  4739. else
  4740. as_fn_append ()
  4741. {
  4742. eval $1=\$$1\$2
  4743. }
  4744. fi # as_fn_append
  4745. # as_fn_arith ARG...
  4746. # ------------------
  4747. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4748. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4749. # must be portable across $(()) and expr.
  4750. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4751. eval 'as_fn_arith ()
  4752. {
  4753. as_val=$(( $* ))
  4754. }'
  4755. else
  4756. as_fn_arith ()
  4757. {
  4758. as_val=`expr "$@" || test $? -eq 1`
  4759. }
  4760. fi # as_fn_arith
  4761. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4762. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4763. as_expr=expr
  4764. else
  4765. as_expr=false
  4766. fi
  4767. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4768. as_basename=basename
  4769. else
  4770. as_basename=false
  4771. fi
  4772. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4773. as_dirname=dirname
  4774. else
  4775. as_dirname=false
  4776. fi
  4777. as_me=`$as_basename -- "$0" ||
  4778. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4779. X"$0" : 'X\(//\)$' \| \
  4780. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4781. $as_echo X/"$0" |
  4782. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4783. s//\1/
  4784. q
  4785. }
  4786. /^X\/\(\/\/\)$/{
  4787. s//\1/
  4788. q
  4789. }
  4790. /^X\/\(\/\).*/{
  4791. s//\1/
  4792. q
  4793. }
  4794. s/.*/./; q'`
  4795. # Avoid depending upon Character Ranges.
  4796. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4797. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4798. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4799. as_cr_digits='0123456789'
  4800. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4801. ECHO_C= ECHO_N= ECHO_T=
  4802. case `echo -n x` in #(((((
  4803. -n*)
  4804. case `echo 'xy\c'` in
  4805. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4806. xy) ECHO_C='\c';;
  4807. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4808. ECHO_T=' ';;
  4809. esac;;
  4810. *)
  4811. ECHO_N='-n';;
  4812. esac
  4813. rm -f conf$$ conf$$.exe conf$$.file
  4814. if test -d conf$$.dir; then
  4815. rm -f conf$$.dir/conf$$.file
  4816. else
  4817. rm -f conf$$.dir
  4818. mkdir conf$$.dir 2>/dev/null
  4819. fi
  4820. if (echo >conf$$.file) 2>/dev/null; then
  4821. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4822. as_ln_s='ln -s'
  4823. # ... but there are two gotchas:
  4824. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4825. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4826. # In both cases, we have to default to `cp -pR'.
  4827. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4828. as_ln_s='cp -pR'
  4829. elif ln conf$$.file conf$$ 2>/dev/null; then
  4830. as_ln_s=ln
  4831. else
  4832. as_ln_s='cp -pR'
  4833. fi
  4834. else
  4835. as_ln_s='cp -pR'
  4836. fi
  4837. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4838. rmdir conf$$.dir 2>/dev/null
  4839. # as_fn_mkdir_p
  4840. # -------------
  4841. # Create "$as_dir" as a directory, including parents if necessary.
  4842. as_fn_mkdir_p ()
  4843. {
  4844. case $as_dir in #(
  4845. -*) as_dir=./$as_dir;;
  4846. esac
  4847. test -d "$as_dir" || eval $as_mkdir_p || {
  4848. as_dirs=
  4849. while :; do
  4850. case $as_dir in #(
  4851. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4852. *) as_qdir=$as_dir;;
  4853. esac
  4854. as_dirs="'$as_qdir' $as_dirs"
  4855. as_dir=`$as_dirname -- "$as_dir" ||
  4856. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4857. X"$as_dir" : 'X\(//\)[^/]' \| \
  4858. X"$as_dir" : 'X\(//\)$' \| \
  4859. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4860. $as_echo X"$as_dir" |
  4861. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4862. s//\1/
  4863. q
  4864. }
  4865. /^X\(\/\/\)[^/].*/{
  4866. s//\1/
  4867. q
  4868. }
  4869. /^X\(\/\/\)$/{
  4870. s//\1/
  4871. q
  4872. }
  4873. /^X\(\/\).*/{
  4874. s//\1/
  4875. q
  4876. }
  4877. s/.*/./; q'`
  4878. test -d "$as_dir" && break
  4879. done
  4880. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4881. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4882. } # as_fn_mkdir_p
  4883. if mkdir -p . 2>/dev/null; then
  4884. as_mkdir_p='mkdir -p "$as_dir"'
  4885. else
  4886. test -d ./-p && rmdir ./-p
  4887. as_mkdir_p=false
  4888. fi
  4889. # as_fn_executable_p FILE
  4890. # -----------------------
  4891. # Test if FILE is an executable regular file.
  4892. as_fn_executable_p ()
  4893. {
  4894. test -f "$1" && test -x "$1"
  4895. } # as_fn_executable_p
  4896. as_test_x='test -x'
  4897. as_executable_p=as_fn_executable_p
  4898. # Sed expression to map a string onto a valid CPP name.
  4899. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4900. # Sed expression to map a string onto a valid variable name.
  4901. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4902. exec 6>&1
  4903. ## ----------------------------------- ##
  4904. ## Main body of $CONFIG_STATUS script. ##
  4905. ## ----------------------------------- ##
  4906. _ASEOF
  4907. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4908. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4909. # Save the log message, to keep $0 and so on meaningful, and to
  4910. # report actual input values of CONFIG_FILES etc. instead of their
  4911. # values after options handling.
  4912. ac_log="
  4913. This file was extended by nrpe $as_me 2.16RC2, which was
  4914. generated by GNU Autoconf 2.69. Invocation command line was
  4915. CONFIG_FILES = $CONFIG_FILES
  4916. CONFIG_HEADERS = $CONFIG_HEADERS
  4917. CONFIG_LINKS = $CONFIG_LINKS
  4918. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4919. $ $0 $@
  4920. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4921. "
  4922. _ACEOF
  4923. case $ac_config_files in *"
  4924. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4925. esac
  4926. case $ac_config_headers in *"
  4927. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4928. esac
  4929. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4930. # Files that config.status was made for.
  4931. config_files="$ac_config_files"
  4932. config_headers="$ac_config_headers"
  4933. _ACEOF
  4934. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4935. ac_cs_usage="\
  4936. \`$as_me' instantiates files and other configuration actions
  4937. from templates according to the current configuration. Unless the files
  4938. and actions are specified as TAGs, all are instantiated by default.
  4939. Usage: $0 [OPTION]... [TAG]...
  4940. -h, --help print this help, then exit
  4941. -V, --version print version number and configuration settings, then exit
  4942. --config print configuration, then exit
  4943. -q, --quiet, --silent
  4944. do not print progress messages
  4945. -d, --debug don't remove temporary files
  4946. --recheck update $as_me by reconfiguring in the same conditions
  4947. --file=FILE[:TEMPLATE]
  4948. instantiate the configuration file FILE
  4949. --header=FILE[:TEMPLATE]
  4950. instantiate the configuration header FILE
  4951. Configuration files:
  4952. $config_files
  4953. Configuration headers:
  4954. $config_headers
  4955. Report bugs to <nagios-users@lists.sourceforge.net>.
  4956. nrpe home page: <http://www.nagios.org>."
  4957. _ACEOF
  4958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4959. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4960. ac_cs_version="\\
  4961. nrpe config.status 2.16RC2
  4962. configured by $0, generated by GNU Autoconf 2.69,
  4963. with options \\"\$ac_cs_config\\"
  4964. Copyright (C) 2012 Free Software Foundation, Inc.
  4965. This config.status script is free software; the Free Software Foundation
  4966. gives unlimited permission to copy, distribute and modify it."
  4967. ac_pwd='$ac_pwd'
  4968. srcdir='$srcdir'
  4969. INSTALL='$INSTALL'
  4970. test -n "\$AWK" || AWK=awk
  4971. _ACEOF
  4972. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4973. # The default lists apply if the user does not specify any file.
  4974. ac_need_defaults=:
  4975. while test $# != 0
  4976. do
  4977. case $1 in
  4978. --*=?*)
  4979. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4980. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4981. ac_shift=:
  4982. ;;
  4983. --*=)
  4984. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4985. ac_optarg=
  4986. ac_shift=:
  4987. ;;
  4988. *)
  4989. ac_option=$1
  4990. ac_optarg=$2
  4991. ac_shift=shift
  4992. ;;
  4993. esac
  4994. case $ac_option in
  4995. # Handling of the options.
  4996. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4997. ac_cs_recheck=: ;;
  4998. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4999. $as_echo "$ac_cs_version"; exit ;;
  5000. --config | --confi | --conf | --con | --co | --c )
  5001. $as_echo "$ac_cs_config"; exit ;;
  5002. --debug | --debu | --deb | --de | --d | -d )
  5003. debug=: ;;
  5004. --file | --fil | --fi | --f )
  5005. $ac_shift
  5006. case $ac_optarg in
  5007. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5008. '') as_fn_error $? "missing file argument" ;;
  5009. esac
  5010. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5011. ac_need_defaults=false;;
  5012. --header | --heade | --head | --hea )
  5013. $ac_shift
  5014. case $ac_optarg in
  5015. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5016. esac
  5017. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5018. ac_need_defaults=false;;
  5019. --he | --h)
  5020. # Conflict between --help and --header
  5021. as_fn_error $? "ambiguous option: \`$1'
  5022. Try \`$0 --help' for more information.";;
  5023. --help | --hel | -h )
  5024. $as_echo "$ac_cs_usage"; exit ;;
  5025. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5026. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5027. ac_cs_silent=: ;;
  5028. # This is an error.
  5029. -*) as_fn_error $? "unrecognized option: \`$1'
  5030. Try \`$0 --help' for more information." ;;
  5031. *) as_fn_append ac_config_targets " $1"
  5032. ac_need_defaults=false ;;
  5033. esac
  5034. shift
  5035. done
  5036. ac_configure_extra_args=
  5037. if $ac_cs_silent; then
  5038. exec 6>/dev/null
  5039. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5040. fi
  5041. _ACEOF
  5042. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5043. if \$ac_cs_recheck; then
  5044. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5045. shift
  5046. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5047. CONFIG_SHELL='$SHELL'
  5048. export CONFIG_SHELL
  5049. exec "\$@"
  5050. fi
  5051. _ACEOF
  5052. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5053. exec 5>>config.log
  5054. {
  5055. echo
  5056. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5057. ## Running $as_me. ##
  5058. _ASBOX
  5059. $as_echo "$ac_log"
  5060. } >&5
  5061. _ACEOF
  5062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5063. _ACEOF
  5064. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5065. # Handling of arguments.
  5066. for ac_config_target in $ac_config_targets
  5067. do
  5068. case $ac_config_target in
  5069. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  5070. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5071. "subst") CONFIG_FILES="$CONFIG_FILES subst" ;;
  5072. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  5073. "package/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES package/solaris/Makefile" ;;
  5074. "init-script") CONFIG_FILES="$CONFIG_FILES init-script" ;;
  5075. "init-script.debian") CONFIG_FILES="$CONFIG_FILES init-script.debian" ;;
  5076. "init-script.suse") CONFIG_FILES="$CONFIG_FILES init-script.suse" ;;
  5077. "nrpe.spec") CONFIG_FILES="$CONFIG_FILES nrpe.spec" ;;
  5078. "sample-config/nrpe.cfg") CONFIG_FILES="$CONFIG_FILES sample-config/nrpe.cfg" ;;
  5079. "sample-config/nrpe.xinetd") CONFIG_FILES="$CONFIG_FILES sample-config/nrpe.xinetd" ;;
  5080. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5081. esac
  5082. done
  5083. # If the user did not use the arguments to specify the items to instantiate,
  5084. # then the envvar interface is used. Set only those that are not.
  5085. # We use the long form for the default assignment because of an extremely
  5086. # bizarre bug on SunOS 4.1.3.
  5087. if $ac_need_defaults; then
  5088. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5089. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5090. fi
  5091. # Have a temporary directory for convenience. Make it in the build tree
  5092. # simply because there is no reason against having it here, and in addition,
  5093. # creating and moving files from /tmp can sometimes cause problems.
  5094. # Hook for its removal unless debugging.
  5095. # Note that there is a small window in which the directory will not be cleaned:
  5096. # after its creation but before its name has been assigned to `$tmp'.
  5097. $debug ||
  5098. {
  5099. tmp= ac_tmp=
  5100. trap 'exit_status=$?
  5101. : "${ac_tmp:=$tmp}"
  5102. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5103. ' 0
  5104. trap 'as_fn_exit 1' 1 2 13 15
  5105. }
  5106. # Create a (secure) tmp directory for tmp files.
  5107. {
  5108. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5109. test -d "$tmp"
  5110. } ||
  5111. {
  5112. tmp=./conf$$-$RANDOM
  5113. (umask 077 && mkdir "$tmp")
  5114. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5115. ac_tmp=$tmp
  5116. # Set up the scripts for CONFIG_FILES section.
  5117. # No need to generate them if there are no CONFIG_FILES.
  5118. # This happens for instance with `./config.status config.h'.
  5119. if test -n "$CONFIG_FILES"; then
  5120. ac_cr=`echo X | tr X '\015'`
  5121. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5122. # But we know of no other shell where ac_cr would be empty at this
  5123. # point, so we can use a bashism as a fallback.
  5124. if test "x$ac_cr" = x; then
  5125. eval ac_cr=\$\'\\r\'
  5126. fi
  5127. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5128. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5129. ac_cs_awk_cr='\\r'
  5130. else
  5131. ac_cs_awk_cr=$ac_cr
  5132. fi
  5133. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5134. _ACEOF
  5135. {
  5136. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5137. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5138. echo "_ACEOF"
  5139. } >conf$$subs.sh ||
  5140. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5141. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5142. ac_delim='%!_!# '
  5143. for ac_last_try in false false false false false :; do
  5144. . ./conf$$subs.sh ||
  5145. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5146. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5147. if test $ac_delim_n = $ac_delim_num; then
  5148. break
  5149. elif $ac_last_try; then
  5150. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5151. else
  5152. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5153. fi
  5154. done
  5155. rm -f conf$$subs.sh
  5156. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5157. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5158. _ACEOF
  5159. sed -n '
  5160. h
  5161. s/^/S["/; s/!.*/"]=/
  5162. p
  5163. g
  5164. s/^[^!]*!//
  5165. :repl
  5166. t repl
  5167. s/'"$ac_delim"'$//
  5168. t delim
  5169. :nl
  5170. h
  5171. s/\(.\{148\}\)..*/\1/
  5172. t more1
  5173. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5174. p
  5175. n
  5176. b repl
  5177. :more1
  5178. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5179. p
  5180. g
  5181. s/.\{148\}//
  5182. t nl
  5183. :delim
  5184. h
  5185. s/\(.\{148\}\)..*/\1/
  5186. t more2
  5187. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5188. p
  5189. b
  5190. :more2
  5191. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5192. p
  5193. g
  5194. s/.\{148\}//
  5195. t delim
  5196. ' <conf$$subs.awk | sed '
  5197. /^[^""]/{
  5198. N
  5199. s/\n//
  5200. }
  5201. ' >>$CONFIG_STATUS || ac_write_fail=1
  5202. rm -f conf$$subs.awk
  5203. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5204. _ACAWK
  5205. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5206. for (key in S) S_is_set[key] = 1
  5207. FS = ""
  5208. }
  5209. {
  5210. line = $ 0
  5211. nfields = split(line, field, "@")
  5212. substed = 0
  5213. len = length(field[1])
  5214. for (i = 2; i < nfields; i++) {
  5215. key = field[i]
  5216. keylen = length(key)
  5217. if (S_is_set[key]) {
  5218. value = S[key]
  5219. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5220. len += length(value) + length(field[++i])
  5221. substed = 1
  5222. } else
  5223. len += 1 + keylen
  5224. }
  5225. print line
  5226. }
  5227. _ACAWK
  5228. _ACEOF
  5229. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5230. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5231. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5232. else
  5233. cat
  5234. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5235. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5236. _ACEOF
  5237. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5238. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5239. # trailing colons and then remove the whole line if VPATH becomes empty
  5240. # (actually we leave an empty line to preserve line numbers).
  5241. if test "x$srcdir" = x.; then
  5242. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5243. h
  5244. s///
  5245. s/^/:/
  5246. s/[ ]*$/:/
  5247. s/:\$(srcdir):/:/g
  5248. s/:\${srcdir}:/:/g
  5249. s/:@srcdir@:/:/g
  5250. s/^:*//
  5251. s/:*$//
  5252. x
  5253. s/\(=[ ]*\).*/\1/
  5254. G
  5255. s/\n//
  5256. s/^[^=]*=[ ]*$//
  5257. }'
  5258. fi
  5259. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5260. fi # test -n "$CONFIG_FILES"
  5261. # Set up the scripts for CONFIG_HEADERS section.
  5262. # No need to generate them if there are no CONFIG_HEADERS.
  5263. # This happens for instance with `./config.status Makefile'.
  5264. if test -n "$CONFIG_HEADERS"; then
  5265. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5266. BEGIN {
  5267. _ACEOF
  5268. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5269. # here-document in config.status, that substitutes the proper values into
  5270. # config.h.in to produce config.h.
  5271. # Create a delimiter string that does not exist in confdefs.h, to ease
  5272. # handling of long lines.
  5273. ac_delim='%!_!# '
  5274. for ac_last_try in false false :; do
  5275. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5276. if test -z "$ac_tt"; then
  5277. break
  5278. elif $ac_last_try; then
  5279. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5280. else
  5281. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5282. fi
  5283. done
  5284. # For the awk script, D is an array of macro values keyed by name,
  5285. # likewise P contains macro parameters if any. Preserve backslash
  5286. # newline sequences.
  5287. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5288. sed -n '
  5289. s/.\{148\}/&'"$ac_delim"'/g
  5290. t rset
  5291. :rset
  5292. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5293. t def
  5294. d
  5295. :def
  5296. s/\\$//
  5297. t bsnl
  5298. s/["\\]/\\&/g
  5299. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5300. D["\1"]=" \3"/p
  5301. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5302. d
  5303. :bsnl
  5304. s/["\\]/\\&/g
  5305. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5306. D["\1"]=" \3\\\\\\n"\\/p
  5307. t cont
  5308. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5309. t cont
  5310. d
  5311. :cont
  5312. n
  5313. s/.\{148\}/&'"$ac_delim"'/g
  5314. t clear
  5315. :clear
  5316. s/\\$//
  5317. t bsnlc
  5318. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5319. d
  5320. :bsnlc
  5321. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5322. b cont
  5323. ' <confdefs.h | sed '
  5324. s/'"$ac_delim"'/"\\\
  5325. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5326. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5327. for (key in D) D_is_set[key] = 1
  5328. FS = ""
  5329. }
  5330. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5331. line = \$ 0
  5332. split(line, arg, " ")
  5333. if (arg[1] == "#") {
  5334. defundef = arg[2]
  5335. mac1 = arg[3]
  5336. } else {
  5337. defundef = substr(arg[1], 2)
  5338. mac1 = arg[2]
  5339. }
  5340. split(mac1, mac2, "(") #)
  5341. macro = mac2[1]
  5342. prefix = substr(line, 1, index(line, defundef) - 1)
  5343. if (D_is_set[macro]) {
  5344. # Preserve the white space surrounding the "#".
  5345. print prefix "define", macro P[macro] D[macro]
  5346. next
  5347. } else {
  5348. # Replace #undef with comments. This is necessary, for example,
  5349. # in the case of _POSIX_SOURCE, which is predefined and required
  5350. # on some systems where configure will not decide to define it.
  5351. if (defundef == "undef") {
  5352. print "/*", prefix defundef, macro, "*/"
  5353. next
  5354. }
  5355. }
  5356. }
  5357. { print }
  5358. _ACAWK
  5359. _ACEOF
  5360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5361. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5362. fi # test -n "$CONFIG_HEADERS"
  5363. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5364. shift
  5365. for ac_tag
  5366. do
  5367. case $ac_tag in
  5368. :[FHLC]) ac_mode=$ac_tag; continue;;
  5369. esac
  5370. case $ac_mode$ac_tag in
  5371. :[FHL]*:*);;
  5372. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5373. :[FH]-) ac_tag=-:-;;
  5374. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5375. esac
  5376. ac_save_IFS=$IFS
  5377. IFS=:
  5378. set x $ac_tag
  5379. IFS=$ac_save_IFS
  5380. shift
  5381. ac_file=$1
  5382. shift
  5383. case $ac_mode in
  5384. :L) ac_source=$1;;
  5385. :[FH])
  5386. ac_file_inputs=
  5387. for ac_f
  5388. do
  5389. case $ac_f in
  5390. -) ac_f="$ac_tmp/stdin";;
  5391. *) # Look for the file first in the build tree, then in the source tree
  5392. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5393. # because $ac_f cannot contain `:'.
  5394. test -f "$ac_f" ||
  5395. case $ac_f in
  5396. [\\/$]*) false;;
  5397. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5398. esac ||
  5399. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5400. esac
  5401. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5402. as_fn_append ac_file_inputs " '$ac_f'"
  5403. done
  5404. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5405. # use $as_me), people would be surprised to read:
  5406. # /* config.h. Generated by config.status. */
  5407. configure_input='Generated from '`
  5408. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5409. `' by configure.'
  5410. if test x"$ac_file" != x-; then
  5411. configure_input="$ac_file. $configure_input"
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5413. $as_echo "$as_me: creating $ac_file" >&6;}
  5414. fi
  5415. # Neutralize special characters interpreted by sed in replacement strings.
  5416. case $configure_input in #(
  5417. *\&* | *\|* | *\\* )
  5418. ac_sed_conf_input=`$as_echo "$configure_input" |
  5419. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5420. *) ac_sed_conf_input=$configure_input;;
  5421. esac
  5422. case $ac_tag in
  5423. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5424. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5425. esac
  5426. ;;
  5427. esac
  5428. ac_dir=`$as_dirname -- "$ac_file" ||
  5429. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5430. X"$ac_file" : 'X\(//\)[^/]' \| \
  5431. X"$ac_file" : 'X\(//\)$' \| \
  5432. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5433. $as_echo X"$ac_file" |
  5434. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5435. s//\1/
  5436. q
  5437. }
  5438. /^X\(\/\/\)[^/].*/{
  5439. s//\1/
  5440. q
  5441. }
  5442. /^X\(\/\/\)$/{
  5443. s//\1/
  5444. q
  5445. }
  5446. /^X\(\/\).*/{
  5447. s//\1/
  5448. q
  5449. }
  5450. s/.*/./; q'`
  5451. as_dir="$ac_dir"; as_fn_mkdir_p
  5452. ac_builddir=.
  5453. case "$ac_dir" in
  5454. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5455. *)
  5456. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5457. # A ".." for each directory in $ac_dir_suffix.
  5458. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5459. case $ac_top_builddir_sub in
  5460. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5461. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5462. esac ;;
  5463. esac
  5464. ac_abs_top_builddir=$ac_pwd
  5465. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5466. # for backward compatibility:
  5467. ac_top_builddir=$ac_top_build_prefix
  5468. case $srcdir in
  5469. .) # We are building in place.
  5470. ac_srcdir=.
  5471. ac_top_srcdir=$ac_top_builddir_sub
  5472. ac_abs_top_srcdir=$ac_pwd ;;
  5473. [\\/]* | ?:[\\/]* ) # Absolute name.
  5474. ac_srcdir=$srcdir$ac_dir_suffix;
  5475. ac_top_srcdir=$srcdir
  5476. ac_abs_top_srcdir=$srcdir ;;
  5477. *) # Relative name.
  5478. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5479. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5480. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5481. esac
  5482. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5483. case $ac_mode in
  5484. :F)
  5485. #
  5486. # CONFIG_FILE
  5487. #
  5488. case $INSTALL in
  5489. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5490. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5491. esac
  5492. _ACEOF
  5493. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5494. # If the template does not know about datarootdir, expand it.
  5495. # FIXME: This hack should be removed a few years after 2.60.
  5496. ac_datarootdir_hack=; ac_datarootdir_seen=
  5497. ac_sed_dataroot='
  5498. /datarootdir/ {
  5499. p
  5500. q
  5501. }
  5502. /@datadir@/p
  5503. /@docdir@/p
  5504. /@infodir@/p
  5505. /@localedir@/p
  5506. /@mandir@/p'
  5507. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5508. *datarootdir*) ac_datarootdir_seen=yes;;
  5509. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5511. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5512. _ACEOF
  5513. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5514. ac_datarootdir_hack='
  5515. s&@datadir@&$datadir&g
  5516. s&@docdir@&$docdir&g
  5517. s&@infodir@&$infodir&g
  5518. s&@localedir@&$localedir&g
  5519. s&@mandir@&$mandir&g
  5520. s&\\\${datarootdir}&$datarootdir&g' ;;
  5521. esac
  5522. _ACEOF
  5523. # Neutralize VPATH when `$srcdir' = `.'.
  5524. # Shell code in configure.ac might set extrasub.
  5525. # FIXME: do we really want to maintain this feature?
  5526. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5527. ac_sed_extra="$ac_vpsub
  5528. $extrasub
  5529. _ACEOF
  5530. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5531. :t
  5532. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5533. s|@configure_input@|$ac_sed_conf_input|;t t
  5534. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5535. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5536. s&@srcdir@&$ac_srcdir&;t t
  5537. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5538. s&@top_srcdir@&$ac_top_srcdir&;t t
  5539. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5540. s&@builddir@&$ac_builddir&;t t
  5541. s&@abs_builddir@&$ac_abs_builddir&;t t
  5542. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5543. s&@INSTALL@&$ac_INSTALL&;t t
  5544. $ac_datarootdir_hack
  5545. "
  5546. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5547. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5548. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5549. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5550. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5551. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5553. which seems to be undefined. Please make sure it is defined" >&5
  5554. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5555. which seems to be undefined. Please make sure it is defined" >&2;}
  5556. rm -f "$ac_tmp/stdin"
  5557. case $ac_file in
  5558. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5559. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5560. esac \
  5561. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5562. ;;
  5563. :H)
  5564. #
  5565. # CONFIG_HEADER
  5566. #
  5567. if test x"$ac_file" != x-; then
  5568. {
  5569. $as_echo "/* $configure_input */" \
  5570. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5571. } >"$ac_tmp/config.h" \
  5572. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5573. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5575. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5576. else
  5577. rm -f "$ac_file"
  5578. mv "$ac_tmp/config.h" "$ac_file" \
  5579. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5580. fi
  5581. else
  5582. $as_echo "/* $configure_input */" \
  5583. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5584. || as_fn_error $? "could not create -" "$LINENO" 5
  5585. fi
  5586. ;;
  5587. esac
  5588. done # for ac_tag
  5589. as_fn_exit 0
  5590. _ACEOF
  5591. ac_clean_files=$ac_clean_files_save
  5592. test $ac_write_fail = 0 ||
  5593. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5594. # configure is writing to config.log, and then calls config.status.
  5595. # config.status does its own redirection, appending to config.log.
  5596. # Unfortunately, on DOS this fails, as config.log is still kept open
  5597. # by configure, so config.status won't be able to write to it; its
  5598. # output is simply discarded. So we exec the FD to /dev/null,
  5599. # effectively closing config.log, so it can be properly (re)opened and
  5600. # appended to by config.status. When coming back to configure, we
  5601. # need to make the FD available again.
  5602. if test "$no_create" != yes; then
  5603. ac_cs_success=:
  5604. ac_config_status_args=
  5605. test "$silent" = yes &&
  5606. ac_config_status_args="$ac_config_status_args --quiet"
  5607. exec 5>/dev/null
  5608. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5609. exec 5>>config.log
  5610. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5611. # would make configure fail if this is the last instruction.
  5612. $ac_cs_success || as_fn_exit 1
  5613. fi
  5614. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5616. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5617. fi
  5618. perl subst init-script
  5619. perl subst init-script.debian
  5620. perl subst init-script.suse
  5621. perl subst sample-config/nrpe.cfg
  5622. perl subst sample-config/nrpe.xinetd
  5623. echo ""
  5624. echo ""
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&5
  5626. $as_echo "*** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&6; }
  5627. echo ""
  5628. echo " General Options:"
  5629. echo " -------------------------"
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE port: $nrpe_port" >&5
  5631. $as_echo " NRPE port: $nrpe_port" >&6; }
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE user: $nrpe_user" >&5
  5633. $as_echo " NRPE user: $nrpe_user" >&6; }
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRPE group: $nrpe_group" >&5
  5635. $as_echo " NRPE group: $nrpe_group" >&6; }
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Nagios user: $nagios_user" >&5
  5637. $as_echo " Nagios user: $nagios_user" >&6; }
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Nagios group: $nagios_group" >&5
  5639. $as_echo " Nagios group: $nagios_group" >&6; }
  5640. echo ""
  5641. echo ""
  5642. echo "Review the options above for accuracy. If they look okay,"
  5643. echo "type 'make all' to compile the NRPE daemon and client."
  5644. echo ""