configure 201 KB

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