configure 235 KB

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