configure 369 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.31 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. 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 egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE GCC3 CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER PACKNAME CFG WRAP MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  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. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-cfg=PATH full path to pack.cfg
  744. Some influential environment variables:
  745. CC C compiler command
  746. CFLAGS C compiler flags
  747. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  748. nonstandard directory <lib dir>
  749. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  750. headers in a nonstandard directory <include dir>
  751. CPP C preprocessor
  752. Use these variables to override the choices made by `configure' or to help
  753. it to find libraries and programs with nonstandard names/locations.
  754. _ACEOF
  755. fi
  756. if test "$ac_init_help" = "recursive"; then
  757. # If there are subdirs, report their specific --help.
  758. ac_popdir=`pwd`
  759. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  760. test -d $ac_dir || continue
  761. ac_builddir=.
  762. if test "$ac_dir" != .; then
  763. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  764. # A "../" for each directory in $ac_dir_suffix.
  765. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  766. else
  767. ac_dir_suffix= ac_top_builddir=
  768. fi
  769. case $srcdir in
  770. .) # No --srcdir option. We are building in place.
  771. ac_srcdir=.
  772. if test -z "$ac_top_builddir"; then
  773. ac_top_srcdir=.
  774. else
  775. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  776. fi ;;
  777. [\\/]* | ?:[\\/]* ) # Absolute path.
  778. ac_srcdir=$srcdir$ac_dir_suffix;
  779. ac_top_srcdir=$srcdir ;;
  780. *) # Relative path.
  781. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  782. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  783. esac
  784. # Do not use `cd foo && pwd` to compute absolute paths, because
  785. # the directories may not exist.
  786. case `pwd` in
  787. .) ac_abs_builddir="$ac_dir";;
  788. *)
  789. case "$ac_dir" in
  790. .) ac_abs_builddir=`pwd`;;
  791. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  792. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  793. esac;;
  794. esac
  795. case $ac_abs_builddir in
  796. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *)
  798. case ${ac_top_builddir}. in
  799. .) ac_abs_top_builddir=$ac_abs_builddir;;
  800. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  801. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  802. esac;;
  803. esac
  804. case $ac_abs_builddir in
  805. .) ac_abs_srcdir=$ac_srcdir;;
  806. *)
  807. case $ac_srcdir in
  808. .) ac_abs_srcdir=$ac_abs_builddir;;
  809. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  810. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  811. esac;;
  812. esac
  813. case $ac_abs_builddir in
  814. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *)
  816. case $ac_top_srcdir in
  817. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  818. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  819. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  820. esac;;
  821. esac
  822. cd $ac_dir
  823. # Check for guested configure; otherwise get Cygnus style configure.
  824. if test -f $ac_srcdir/configure.gnu; then
  825. echo
  826. $SHELL $ac_srcdir/configure.gnu --help=recursive
  827. elif test -f $ac_srcdir/configure; then
  828. echo
  829. $SHELL $ac_srcdir/configure --help=recursive
  830. elif test -f $ac_srcdir/configure.ac ||
  831. test -f $ac_srcdir/configure.in; then
  832. echo
  833. $ac_configure --help
  834. else
  835. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  836. fi
  837. cd "$ac_popdir"
  838. done
  839. fi
  840. test -n "$ac_init_help" && exit 0
  841. if $ac_init_version; then
  842. cat <<\_ACEOF
  843. Copyright (C) 2003 Free Software Foundation, Inc.
  844. This configure script is free software; the Free Software Foundation
  845. gives unlimited permission to copy, distribute and modify it.
  846. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  847. _ACEOF
  848. exit 0
  849. fi
  850. exec 5>config.log
  851. cat >&5 <<_ACEOF
  852. This file contains any messages produced by compilers while
  853. running configure, to aid debugging if configure makes a mistake.
  854. It was created by $as_me, which was
  855. generated by GNU Autoconf 2.59. Invocation command line was
  856. $ $0 $@
  857. _ACEOF
  858. {
  859. cat <<_ASUNAME
  860. ## --------- ##
  861. ## Platform. ##
  862. ## --------- ##
  863. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  864. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  865. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  866. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  867. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  868. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  869. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  870. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  871. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  872. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  873. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  874. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  875. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  876. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  877. _ASUNAME
  878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  879. for as_dir in $PATH
  880. do
  881. IFS=$as_save_IFS
  882. test -z "$as_dir" && as_dir=.
  883. echo "PATH: $as_dir"
  884. done
  885. } >&5
  886. cat >&5 <<_ACEOF
  887. ## ----------- ##
  888. ## Core tests. ##
  889. ## ----------- ##
  890. _ACEOF
  891. # Keep a trace of the command line.
  892. # Strip out --no-create and --no-recursion so they do not pile up.
  893. # Strip out --silent because we don't want to record it for future runs.
  894. # Also quote any args containing shell meta-characters.
  895. # Make two passes to allow for proper duplicate-argument suppression.
  896. ac_configure_args=
  897. ac_configure_args0=
  898. ac_configure_args1=
  899. ac_sep=
  900. ac_must_keep_next=false
  901. for ac_pass in 1 2
  902. do
  903. for ac_arg
  904. do
  905. case $ac_arg in
  906. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  908. | -silent | --silent | --silen | --sile | --sil)
  909. continue ;;
  910. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  911. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  912. esac
  913. case $ac_pass in
  914. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  915. 2)
  916. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  917. if test $ac_must_keep_next = true; then
  918. ac_must_keep_next=false # Got value, back to normal.
  919. else
  920. case $ac_arg in
  921. *=* | --config-cache | -C | -disable-* | --disable-* \
  922. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  923. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  924. | -with-* | --with-* | -without-* | --without-* | --x)
  925. case "$ac_configure_args0 " in
  926. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  927. esac
  928. ;;
  929. -* ) ac_must_keep_next=true ;;
  930. esac
  931. fi
  932. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  933. # Get rid of the leading space.
  934. ac_sep=" "
  935. ;;
  936. esac
  937. done
  938. done
  939. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  940. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  941. # When interrupted or exit'd, cleanup temporary files, and complete
  942. # config.log. We remove comments because anyway the quotes in there
  943. # would cause problems or look ugly.
  944. # WARNING: Be sure not to use single quotes in there, as some shells,
  945. # such as our DU 5.0 friend, will then `close' the trap.
  946. trap 'exit_status=$?
  947. # Save into config.log some information that might help in debugging.
  948. {
  949. echo
  950. cat <<\_ASBOX
  951. ## ---------------- ##
  952. ## Cache variables. ##
  953. ## ---------------- ##
  954. _ASBOX
  955. echo
  956. # The following way of writing the cache mishandles newlines in values,
  957. {
  958. (set) 2>&1 |
  959. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  960. *ac_space=\ *)
  961. sed -n \
  962. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  964. ;;
  965. *)
  966. sed -n \
  967. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  968. ;;
  969. esac;
  970. }
  971. echo
  972. cat <<\_ASBOX
  973. ## ----------------- ##
  974. ## Output variables. ##
  975. ## ----------------- ##
  976. _ASBOX
  977. echo
  978. for ac_var in $ac_subst_vars
  979. do
  980. eval ac_val=$`echo $ac_var`
  981. echo "$ac_var='"'"'$ac_val'"'"'"
  982. done | sort
  983. echo
  984. if test -n "$ac_subst_files"; then
  985. cat <<\_ASBOX
  986. ## ------------- ##
  987. ## Output files. ##
  988. ## ------------- ##
  989. _ASBOX
  990. echo
  991. for ac_var in $ac_subst_files
  992. do
  993. eval ac_val=$`echo $ac_var`
  994. echo "$ac_var='"'"'$ac_val'"'"'"
  995. done | sort
  996. echo
  997. fi
  998. if test -s confdefs.h; then
  999. cat <<\_ASBOX
  1000. ## ----------- ##
  1001. ## confdefs.h. ##
  1002. ## ----------- ##
  1003. _ASBOX
  1004. echo
  1005. sed "/^$/d" confdefs.h | sort
  1006. echo
  1007. fi
  1008. test "$ac_signal" != 0 &&
  1009. echo "$as_me: caught signal $ac_signal"
  1010. echo "$as_me: exit $exit_status"
  1011. } >&5
  1012. rm -f core *.core &&
  1013. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1014. exit $exit_status
  1015. ' 0
  1016. for ac_signal in 1 2 13 15; do
  1017. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1018. done
  1019. ac_signal=0
  1020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1021. rm -rf conftest* confdefs.h
  1022. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1023. echo >confdefs.h
  1024. # Predefined preprocessor variables.
  1025. cat >>confdefs.h <<_ACEOF
  1026. #define PACKAGE_NAME "$PACKAGE_NAME"
  1027. _ACEOF
  1028. cat >>confdefs.h <<_ACEOF
  1029. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1030. _ACEOF
  1031. cat >>confdefs.h <<_ACEOF
  1032. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1033. _ACEOF
  1034. cat >>confdefs.h <<_ACEOF
  1035. #define PACKAGE_STRING "$PACKAGE_STRING"
  1036. _ACEOF
  1037. cat >>confdefs.h <<_ACEOF
  1038. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1039. _ACEOF
  1040. # Let the site file select an alternate cache file if it wants to.
  1041. # Prefer explicitly selected file to automatically selected ones.
  1042. if test -z "$CONFIG_SITE"; then
  1043. if test "x$prefix" != xNONE; then
  1044. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1045. else
  1046. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1047. fi
  1048. fi
  1049. for ac_site_file in $CONFIG_SITE; do
  1050. if test -r "$ac_site_file"; then
  1051. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1052. echo "$as_me: loading site script $ac_site_file" >&6;}
  1053. sed 's/^/| /' "$ac_site_file" >&5
  1054. . "$ac_site_file"
  1055. fi
  1056. done
  1057. if test -r "$cache_file"; then
  1058. # Some versions of bash will fail to source /dev/null (special
  1059. # files actually), so we avoid doing that.
  1060. if test -f "$cache_file"; then
  1061. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1062. echo "$as_me: loading cache $cache_file" >&6;}
  1063. case $cache_file in
  1064. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1065. *) . ./$cache_file;;
  1066. esac
  1067. fi
  1068. else
  1069. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1070. echo "$as_me: creating cache $cache_file" >&6;}
  1071. >$cache_file
  1072. fi
  1073. # Check that the precious variables saved in the cache have kept the same
  1074. # value.
  1075. ac_cache_corrupted=false
  1076. for ac_var in `(set) 2>&1 |
  1077. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1078. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1079. eval ac_new_set=\$ac_env_${ac_var}_set
  1080. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1081. eval ac_new_val="\$ac_env_${ac_var}_value"
  1082. case $ac_old_set,$ac_new_set in
  1083. set,)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,set)
  1088. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1089. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1090. ac_cache_corrupted=: ;;
  1091. ,);;
  1092. *)
  1093. if test "x$ac_old_val" != "x$ac_new_val"; then
  1094. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1095. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1096. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1097. echo "$as_me: former value: $ac_old_val" >&2;}
  1098. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1099. echo "$as_me: current value: $ac_new_val" >&2;}
  1100. ac_cache_corrupted=:
  1101. fi;;
  1102. esac
  1103. # Pass precious variables to config.status.
  1104. if test "$ac_new_set" = set; then
  1105. case $ac_new_val in
  1106. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1107. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1108. *) ac_arg=$ac_var=$ac_new_val ;;
  1109. esac
  1110. case " $ac_configure_args " in
  1111. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1112. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1113. esac
  1114. fi
  1115. done
  1116. if $ac_cache_corrupted; then
  1117. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1118. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1119. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1120. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1121. { (exit 1); exit 1; }; }
  1122. fi
  1123. ac_ext=c
  1124. ac_cpp='$CPP $CPPFLAGS'
  1125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1128. ac_config_headers="$ac_config_headers config.h"
  1129. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1130. egg_ac_parameters=
  1131. ac_prev=
  1132. for ac_arg in $ac_configure_args; do
  1133. if test -n "$ac_prev"; then
  1134. ac_prev=
  1135. continue
  1136. fi
  1137. case $ac_arg in
  1138. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1139. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1140. ac_prev=cache_file ;;
  1141. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1142. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1143. | --c=*)
  1144. ;;
  1145. --config-cache | -C)
  1146. ;;
  1147. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1148. ac_prev=srcdir ;;
  1149. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1150. ;;
  1151. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1152. esac
  1153. done
  1154. cfg="pack/pack.cfg"
  1155. # Check whether --with-cfg or --without-cfg was given.
  1156. if test "${with_cfg+set}" = set; then
  1157. withval="$with_cfg"
  1158. cfg="$withval"
  1159. fi;
  1160. # Setup build environment
  1161. ac_ext=c
  1162. ac_cpp='$CPP $CPPFLAGS'
  1163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1166. if test -n "$ac_tool_prefix"; then
  1167. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1168. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1169. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1170. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1171. if test "${ac_cv_prog_CC+set}" = set; then
  1172. echo $ECHO_N "(cached) $ECHO_C" >&6
  1173. else
  1174. if test -n "$CC"; then
  1175. ac_cv_prog_CC="$CC" # Let the user override the test.
  1176. else
  1177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1178. for as_dir in $PATH
  1179. do
  1180. IFS=$as_save_IFS
  1181. test -z "$as_dir" && as_dir=.
  1182. for ac_exec_ext in '' $ac_executable_extensions; do
  1183. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1184. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1185. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1186. break 2
  1187. fi
  1188. done
  1189. done
  1190. fi
  1191. fi
  1192. CC=$ac_cv_prog_CC
  1193. if test -n "$CC"; then
  1194. echo "$as_me:$LINENO: result: $CC" >&5
  1195. echo "${ECHO_T}$CC" >&6
  1196. else
  1197. echo "$as_me:$LINENO: result: no" >&5
  1198. echo "${ECHO_T}no" >&6
  1199. fi
  1200. fi
  1201. if test -z "$ac_cv_prog_CC"; then
  1202. ac_ct_CC=$CC
  1203. # Extract the first word of "gcc", so it can be a program name with args.
  1204. set dummy gcc; ac_word=$2
  1205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1208. echo $ECHO_N "(cached) $ECHO_C" >&6
  1209. else
  1210. if test -n "$ac_ct_CC"; then
  1211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1212. else
  1213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1214. for as_dir in $PATH
  1215. do
  1216. IFS=$as_save_IFS
  1217. test -z "$as_dir" && as_dir=.
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1220. ac_cv_prog_ac_ct_CC="gcc"
  1221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1222. break 2
  1223. fi
  1224. done
  1225. done
  1226. fi
  1227. fi
  1228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1229. if test -n "$ac_ct_CC"; then
  1230. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1231. echo "${ECHO_T}$ac_ct_CC" >&6
  1232. else
  1233. echo "$as_me:$LINENO: result: no" >&5
  1234. echo "${ECHO_T}no" >&6
  1235. fi
  1236. CC=$ac_ct_CC
  1237. else
  1238. CC="$ac_cv_prog_CC"
  1239. fi
  1240. if test -z "$CC"; then
  1241. if test -n "$ac_tool_prefix"; then
  1242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1246. if test "${ac_cv_prog_CC+set}" = set; then
  1247. echo $ECHO_N "(cached) $ECHO_C" >&6
  1248. else
  1249. if test -n "$CC"; then
  1250. ac_cv_prog_CC="$CC" # Let the user override the test.
  1251. else
  1252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1253. for as_dir in $PATH
  1254. do
  1255. IFS=$as_save_IFS
  1256. test -z "$as_dir" && as_dir=.
  1257. for ac_exec_ext in '' $ac_executable_extensions; do
  1258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1259. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1261. break 2
  1262. fi
  1263. done
  1264. done
  1265. fi
  1266. fi
  1267. CC=$ac_cv_prog_CC
  1268. if test -n "$CC"; then
  1269. echo "$as_me:$LINENO: result: $CC" >&5
  1270. echo "${ECHO_T}$CC" >&6
  1271. else
  1272. echo "$as_me:$LINENO: result: no" >&5
  1273. echo "${ECHO_T}no" >&6
  1274. fi
  1275. fi
  1276. if test -z "$ac_cv_prog_CC"; then
  1277. ac_ct_CC=$CC
  1278. # Extract the first word of "cc", so it can be a program name with args.
  1279. set dummy cc; ac_word=$2
  1280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1282. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1283. echo $ECHO_N "(cached) $ECHO_C" >&6
  1284. else
  1285. if test -n "$ac_ct_CC"; then
  1286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1287. else
  1288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1289. for as_dir in $PATH
  1290. do
  1291. IFS=$as_save_IFS
  1292. test -z "$as_dir" && as_dir=.
  1293. for ac_exec_ext in '' $ac_executable_extensions; do
  1294. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1295. ac_cv_prog_ac_ct_CC="cc"
  1296. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1297. break 2
  1298. fi
  1299. done
  1300. done
  1301. fi
  1302. fi
  1303. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1304. if test -n "$ac_ct_CC"; then
  1305. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1306. echo "${ECHO_T}$ac_ct_CC" >&6
  1307. else
  1308. echo "$as_me:$LINENO: result: no" >&5
  1309. echo "${ECHO_T}no" >&6
  1310. fi
  1311. CC=$ac_ct_CC
  1312. else
  1313. CC="$ac_cv_prog_CC"
  1314. fi
  1315. fi
  1316. if test -z "$CC"; then
  1317. # Extract the first word of "cc", so it can be a program name with args.
  1318. set dummy cc; ac_word=$2
  1319. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1320. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1321. if test "${ac_cv_prog_CC+set}" = set; then
  1322. echo $ECHO_N "(cached) $ECHO_C" >&6
  1323. else
  1324. if test -n "$CC"; then
  1325. ac_cv_prog_CC="$CC" # Let the user override the test.
  1326. else
  1327. ac_prog_rejected=no
  1328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1329. for as_dir in $PATH
  1330. do
  1331. IFS=$as_save_IFS
  1332. test -z "$as_dir" && as_dir=.
  1333. for ac_exec_ext in '' $ac_executable_extensions; do
  1334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1335. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1336. ac_prog_rejected=yes
  1337. continue
  1338. fi
  1339. ac_cv_prog_CC="cc"
  1340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1341. break 2
  1342. fi
  1343. done
  1344. done
  1345. if test $ac_prog_rejected = yes; then
  1346. # We found a bogon in the path, so make sure we never use it.
  1347. set dummy $ac_cv_prog_CC
  1348. shift
  1349. if test $# != 0; then
  1350. # We chose a different compiler from the bogus one.
  1351. # However, it has the same basename, so the bogon will be chosen
  1352. # first if we set CC to just the basename; use the full file name.
  1353. shift
  1354. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1355. fi
  1356. fi
  1357. fi
  1358. fi
  1359. CC=$ac_cv_prog_CC
  1360. if test -n "$CC"; then
  1361. echo "$as_me:$LINENO: result: $CC" >&5
  1362. echo "${ECHO_T}$CC" >&6
  1363. else
  1364. echo "$as_me:$LINENO: result: no" >&5
  1365. echo "${ECHO_T}no" >&6
  1366. fi
  1367. fi
  1368. if test -z "$CC"; then
  1369. if test -n "$ac_tool_prefix"; then
  1370. for ac_prog in cl
  1371. do
  1372. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1373. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_CC+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$CC"; then
  1380. ac_cv_prog_CC="$CC" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. CC=$ac_cv_prog_CC
  1398. if test -n "$CC"; then
  1399. echo "$as_me:$LINENO: result: $CC" >&5
  1400. echo "${ECHO_T}$CC" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. test -n "$CC" && break
  1406. done
  1407. fi
  1408. if test -z "$CC"; then
  1409. ac_ct_CC=$CC
  1410. for ac_prog in cl
  1411. do
  1412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1413. set dummy $ac_prog; ac_word=$2
  1414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1416. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1417. echo $ECHO_N "(cached) $ECHO_C" >&6
  1418. else
  1419. if test -n "$ac_ct_CC"; then
  1420. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1421. else
  1422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425. IFS=$as_save_IFS
  1426. test -z "$as_dir" && as_dir=.
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1429. ac_cv_prog_ac_ct_CC="$ac_prog"
  1430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1431. break 2
  1432. fi
  1433. done
  1434. done
  1435. fi
  1436. fi
  1437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1438. if test -n "$ac_ct_CC"; then
  1439. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1440. echo "${ECHO_T}$ac_ct_CC" >&6
  1441. else
  1442. echo "$as_me:$LINENO: result: no" >&5
  1443. echo "${ECHO_T}no" >&6
  1444. fi
  1445. test -n "$ac_ct_CC" && break
  1446. done
  1447. CC=$ac_ct_CC
  1448. fi
  1449. fi
  1450. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1451. See \`config.log' for more details." >&5
  1452. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1453. See \`config.log' for more details." >&2;}
  1454. { (exit 1); exit 1; }; }
  1455. # Provide some information about the compiler.
  1456. echo "$as_me:$LINENO:" \
  1457. "checking for C compiler version" >&5
  1458. ac_compiler=`set X $ac_compile; echo $2`
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1460. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1470. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1471. ac_status=$?
  1472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1473. (exit $ac_status); }
  1474. cat >conftest.$ac_ext <<_ACEOF
  1475. /* confdefs.h. */
  1476. _ACEOF
  1477. cat confdefs.h >>conftest.$ac_ext
  1478. cat >>conftest.$ac_ext <<_ACEOF
  1479. /* end confdefs.h. */
  1480. int
  1481. main ()
  1482. {
  1483. ;
  1484. return 0;
  1485. }
  1486. _ACEOF
  1487. ac_clean_files_save=$ac_clean_files
  1488. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1489. # Try to create an executable without -o first, disregard a.out.
  1490. # It will help us diagnose broken compilers, and finding out an intuition
  1491. # of exeext.
  1492. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1493. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1494. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1495. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1496. (eval $ac_link_default) 2>&5
  1497. ac_status=$?
  1498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1499. (exit $ac_status); }; then
  1500. # Find the output, starting from the most likely. This scheme is
  1501. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1502. # resort.
  1503. # Be careful to initialize this variable, since it used to be cached.
  1504. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1505. ac_cv_exeext=
  1506. # b.out is created by i960 compilers.
  1507. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1508. do
  1509. test -f "$ac_file" || continue
  1510. case $ac_file in
  1511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1512. ;;
  1513. conftest.$ac_ext )
  1514. # This is the source file.
  1515. ;;
  1516. [ab].out )
  1517. # We found the default executable, but exeext='' is most
  1518. # certainly right.
  1519. break;;
  1520. *.* )
  1521. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1522. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1523. # but it would be cool to find out if it's true. Does anybody
  1524. # maintain Libtool? --akim.
  1525. export ac_cv_exeext
  1526. break;;
  1527. * )
  1528. break;;
  1529. esac
  1530. done
  1531. else
  1532. echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1535. See \`config.log' for more details." >&5
  1536. echo "$as_me: error: C compiler cannot create executables
  1537. See \`config.log' for more details." >&2;}
  1538. { (exit 77); exit 77; }; }
  1539. fi
  1540. ac_exeext=$ac_cv_exeext
  1541. echo "$as_me:$LINENO: result: $ac_file" >&5
  1542. echo "${ECHO_T}$ac_file" >&6
  1543. # Check the compiler produces executables we can run. If not, either
  1544. # the compiler is broken, or we cross compile.
  1545. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1546. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1547. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1548. # If not cross compiling, check that we can run a simple program.
  1549. if test "$cross_compiling" != yes; then
  1550. if { ac_try='./$ac_file'
  1551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1552. (eval $ac_try) 2>&5
  1553. ac_status=$?
  1554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1555. (exit $ac_status); }; }; then
  1556. cross_compiling=no
  1557. else
  1558. if test "$cross_compiling" = maybe; then
  1559. cross_compiling=yes
  1560. else
  1561. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1562. If you meant to cross compile, use \`--host'.
  1563. See \`config.log' for more details." >&5
  1564. echo "$as_me: error: cannot run C compiled programs.
  1565. If you meant to cross compile, use \`--host'.
  1566. See \`config.log' for more details." >&2;}
  1567. { (exit 1); exit 1; }; }
  1568. fi
  1569. fi
  1570. fi
  1571. echo "$as_me:$LINENO: result: yes" >&5
  1572. echo "${ECHO_T}yes" >&6
  1573. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1574. ac_clean_files=$ac_clean_files_save
  1575. # Check the compiler produces executables we can run. If not, either
  1576. # the compiler is broken, or we cross compile.
  1577. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1578. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1579. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1580. echo "${ECHO_T}$cross_compiling" >&6
  1581. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1582. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1584. (eval $ac_link) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1587. (exit $ac_status); }; then
  1588. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1589. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1590. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1591. # `rm'.
  1592. for ac_file in conftest.exe conftest conftest.*; do
  1593. test -f "$ac_file" || continue
  1594. case $ac_file in
  1595. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1596. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1597. export ac_cv_exeext
  1598. break;;
  1599. * ) break;;
  1600. esac
  1601. done
  1602. else
  1603. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1604. See \`config.log' for more details." >&5
  1605. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1606. See \`config.log' for more details." >&2;}
  1607. { (exit 1); exit 1; }; }
  1608. fi
  1609. rm -f conftest$ac_cv_exeext
  1610. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1611. echo "${ECHO_T}$ac_cv_exeext" >&6
  1612. rm -f conftest.$ac_ext
  1613. EXEEXT=$ac_cv_exeext
  1614. ac_exeext=$EXEEXT
  1615. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1616. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1617. if test "${ac_cv_objext+set}" = set; then
  1618. echo $ECHO_N "(cached) $ECHO_C" >&6
  1619. else
  1620. cat >conftest.$ac_ext <<_ACEOF
  1621. /* confdefs.h. */
  1622. _ACEOF
  1623. cat confdefs.h >>conftest.$ac_ext
  1624. cat >>conftest.$ac_ext <<_ACEOF
  1625. /* end confdefs.h. */
  1626. int
  1627. main ()
  1628. {
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. rm -f conftest.o conftest.obj
  1634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1635. (eval $ac_compile) 2>&5
  1636. ac_status=$?
  1637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1638. (exit $ac_status); }; then
  1639. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1640. case $ac_file in
  1641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1643. break;;
  1644. esac
  1645. done
  1646. else
  1647. echo "$as_me: failed program was:" >&5
  1648. sed 's/^/| /' conftest.$ac_ext >&5
  1649. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1650. See \`config.log' for more details." >&5
  1651. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1652. See \`config.log' for more details." >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. fi
  1655. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1656. fi
  1657. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1658. echo "${ECHO_T}$ac_cv_objext" >&6
  1659. OBJEXT=$ac_cv_objext
  1660. ac_objext=$OBJEXT
  1661. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1662. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1663. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1664. echo $ECHO_N "(cached) $ECHO_C" >&6
  1665. else
  1666. cat >conftest.$ac_ext <<_ACEOF
  1667. /* confdefs.h. */
  1668. _ACEOF
  1669. cat confdefs.h >>conftest.$ac_ext
  1670. cat >>conftest.$ac_ext <<_ACEOF
  1671. /* end confdefs.h. */
  1672. int
  1673. main ()
  1674. {
  1675. #ifndef __GNUC__
  1676. choke me
  1677. #endif
  1678. ;
  1679. return 0;
  1680. }
  1681. _ACEOF
  1682. rm -f conftest.$ac_objext
  1683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1684. (eval $ac_compile) 2>conftest.er1
  1685. ac_status=$?
  1686. grep -v '^ *+' conftest.er1 >conftest.err
  1687. rm -f conftest.er1
  1688. cat conftest.err >&5
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); } &&
  1691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1693. (eval $ac_try) 2>&5
  1694. ac_status=$?
  1695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1696. (exit $ac_status); }; } &&
  1697. { ac_try='test -s conftest.$ac_objext'
  1698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1699. (eval $ac_try) 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; }; then
  1703. ac_compiler_gnu=yes
  1704. else
  1705. echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_compiler_gnu=no
  1708. fi
  1709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1710. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1711. fi
  1712. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1713. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1714. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1715. ac_test_CFLAGS=${CFLAGS+set}
  1716. ac_save_CFLAGS=$CFLAGS
  1717. CFLAGS="-g"
  1718. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1719. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1720. if test "${ac_cv_prog_cc_g+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. cat >conftest.$ac_ext <<_ACEOF
  1724. /* confdefs.h. */
  1725. _ACEOF
  1726. cat confdefs.h >>conftest.$ac_ext
  1727. cat >>conftest.$ac_ext <<_ACEOF
  1728. /* end confdefs.h. */
  1729. int
  1730. main ()
  1731. {
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. rm -f conftest.$ac_objext
  1737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1738. (eval $ac_compile) 2>conftest.er1
  1739. ac_status=$?
  1740. grep -v '^ *+' conftest.er1 >conftest.err
  1741. rm -f conftest.er1
  1742. cat conftest.err >&5
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); } &&
  1745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1747. (eval $ac_try) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; } &&
  1751. { ac_try='test -s conftest.$ac_objext'
  1752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1753. (eval $ac_try) 2>&5
  1754. ac_status=$?
  1755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1756. (exit $ac_status); }; }; then
  1757. ac_cv_prog_cc_g=yes
  1758. else
  1759. echo "$as_me: failed program was:" >&5
  1760. sed 's/^/| /' conftest.$ac_ext >&5
  1761. ac_cv_prog_cc_g=no
  1762. fi
  1763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1766. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1767. if test "$ac_test_CFLAGS" = set; then
  1768. CFLAGS=$ac_save_CFLAGS
  1769. elif test $ac_cv_prog_cc_g = yes; then
  1770. if test "$GCC" = yes; then
  1771. CFLAGS="-g -O2"
  1772. else
  1773. CFLAGS="-g"
  1774. fi
  1775. else
  1776. if test "$GCC" = yes; then
  1777. CFLAGS="-O2"
  1778. else
  1779. CFLAGS=
  1780. fi
  1781. fi
  1782. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1783. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1784. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. ac_cv_prog_cc_stdc=no
  1788. ac_save_CC=$CC
  1789. cat >conftest.$ac_ext <<_ACEOF
  1790. /* confdefs.h. */
  1791. _ACEOF
  1792. cat confdefs.h >>conftest.$ac_ext
  1793. cat >>conftest.$ac_ext <<_ACEOF
  1794. /* end confdefs.h. */
  1795. #include <stdarg.h>
  1796. #include <stdio.h>
  1797. #include <sys/types.h>
  1798. #include <sys/stat.h>
  1799. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1800. struct buf { int x; };
  1801. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1802. static char *e (p, i)
  1803. char **p;
  1804. int i;
  1805. {
  1806. return p[i];
  1807. }
  1808. static char *f (char * (*g) (char **, int), char **p, ...)
  1809. {
  1810. char *s;
  1811. va_list v;
  1812. va_start (v,p);
  1813. s = g (p, va_arg (v,int));
  1814. va_end (v);
  1815. return s;
  1816. }
  1817. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1818. function prototypes and stuff, but not '\xHH' hex character constants.
  1819. These don't provoke an error unfortunately, instead are silently treated
  1820. as 'x'. The following induces an error, until -std1 is added to get
  1821. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1822. array size at least. It's necessary to write '\x00'==0 to get something
  1823. that's true only with -std1. */
  1824. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1825. int test (int i, double x);
  1826. struct s1 {int (*f) (int a);};
  1827. struct s2 {int (*f) (double a);};
  1828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1829. int argc;
  1830. char **argv;
  1831. int
  1832. main ()
  1833. {
  1834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1835. ;
  1836. return 0;
  1837. }
  1838. _ACEOF
  1839. # Don't try gcc -ansi; that turns off useful extensions and
  1840. # breaks some systems' header files.
  1841. # AIX -qlanglvl=ansi
  1842. # Ultrix and OSF/1 -std1
  1843. # HP-UX 10.20 and later -Ae
  1844. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1845. # SVR4 -Xc -D__EXTENSIONS__
  1846. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1847. do
  1848. CC="$ac_save_CC $ac_arg"
  1849. rm -f conftest.$ac_objext
  1850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1851. (eval $ac_compile) 2>conftest.er1
  1852. ac_status=$?
  1853. grep -v '^ *+' conftest.er1 >conftest.err
  1854. rm -f conftest.er1
  1855. cat conftest.err >&5
  1856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1857. (exit $ac_status); } &&
  1858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  1864. { ac_try='test -s conftest.$ac_objext'
  1865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1866. (eval $ac_try) 2>&5
  1867. ac_status=$?
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); }; }; then
  1870. ac_cv_prog_cc_stdc=$ac_arg
  1871. break
  1872. else
  1873. echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. fi
  1876. rm -f conftest.err conftest.$ac_objext
  1877. done
  1878. rm -f conftest.$ac_ext conftest.$ac_objext
  1879. CC=$ac_save_CC
  1880. fi
  1881. case "x$ac_cv_prog_cc_stdc" in
  1882. x|xno)
  1883. echo "$as_me:$LINENO: result: none needed" >&5
  1884. echo "${ECHO_T}none needed" >&6 ;;
  1885. *)
  1886. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1887. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1888. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1889. esac
  1890. # Some people use a C++ compiler to compile C. Since we use `exit',
  1891. # in C++ we need to declare it. In case someone uses the same compiler
  1892. # for both compiling C and C++ we need to have the C++ compiler decide
  1893. # the declaration of exit, since it's the most demanding environment.
  1894. cat >conftest.$ac_ext <<_ACEOF
  1895. #ifndef __cplusplus
  1896. choke me
  1897. #endif
  1898. _ACEOF
  1899. rm -f conftest.$ac_objext
  1900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1901. (eval $ac_compile) 2>conftest.er1
  1902. ac_status=$?
  1903. grep -v '^ *+' conftest.er1 >conftest.err
  1904. rm -f conftest.er1
  1905. cat conftest.err >&5
  1906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1907. (exit $ac_status); } &&
  1908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1910. (eval $ac_try) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); }; } &&
  1914. { ac_try='test -s conftest.$ac_objext'
  1915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1916. (eval $ac_try) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }; }; then
  1920. for ac_declaration in \
  1921. '' \
  1922. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1923. 'extern "C" void std::exit (int); using std::exit;' \
  1924. 'extern "C" void exit (int) throw ();' \
  1925. 'extern "C" void exit (int);' \
  1926. 'void exit (int);'
  1927. do
  1928. cat >conftest.$ac_ext <<_ACEOF
  1929. /* confdefs.h. */
  1930. _ACEOF
  1931. cat confdefs.h >>conftest.$ac_ext
  1932. cat >>conftest.$ac_ext <<_ACEOF
  1933. /* end confdefs.h. */
  1934. $ac_declaration
  1935. #include <stdlib.h>
  1936. int
  1937. main ()
  1938. {
  1939. exit (42);
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. rm -f conftest.$ac_objext
  1945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1946. (eval $ac_compile) 2>conftest.er1
  1947. ac_status=$?
  1948. grep -v '^ *+' conftest.er1 >conftest.err
  1949. rm -f conftest.er1
  1950. cat conftest.err >&5
  1951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1952. (exit $ac_status); } &&
  1953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1955. (eval $ac_try) 2>&5
  1956. ac_status=$?
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); }; } &&
  1959. { ac_try='test -s conftest.$ac_objext'
  1960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1961. (eval $ac_try) 2>&5
  1962. ac_status=$?
  1963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1964. (exit $ac_status); }; }; then
  1965. :
  1966. else
  1967. echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. continue
  1970. fi
  1971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. cat >conftest.$ac_ext <<_ACEOF
  1973. /* confdefs.h. */
  1974. _ACEOF
  1975. cat confdefs.h >>conftest.$ac_ext
  1976. cat >>conftest.$ac_ext <<_ACEOF
  1977. /* end confdefs.h. */
  1978. $ac_declaration
  1979. int
  1980. main ()
  1981. {
  1982. exit (42);
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. rm -f conftest.$ac_objext
  1988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1989. (eval $ac_compile) 2>conftest.er1
  1990. ac_status=$?
  1991. grep -v '^ *+' conftest.er1 >conftest.err
  1992. rm -f conftest.er1
  1993. cat conftest.err >&5
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); } &&
  1996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1998. (eval $ac_try) 2>&5
  1999. ac_status=$?
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); }; } &&
  2002. { ac_try='test -s conftest.$ac_objext'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. break
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. fi
  2013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. done
  2015. rm -f conftest*
  2016. if test -n "$ac_declaration"; then
  2017. echo '#ifdef __cplusplus' >>confdefs.h
  2018. echo $ac_declaration >>confdefs.h
  2019. echo '#endif' >>confdefs.h
  2020. fi
  2021. else
  2022. echo "$as_me: failed program was:" >&5
  2023. sed 's/^/| /' conftest.$ac_ext >&5
  2024. fi
  2025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. ac_ext=c
  2027. ac_cpp='$CPP $CPPFLAGS'
  2028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2031. if test "${cross_compiling-x}" = "x"
  2032. then
  2033. cat << 'EOF' >&2
  2034. configure: error:
  2035. This system does not appear to have a working C compiler.
  2036. A working C compiler is required to compile Eggdrop.
  2037. EOF
  2038. exit 1
  2039. fi
  2040. # Crazy machines
  2041. ac_ext=c
  2042. ac_cpp='$CPP $CPPFLAGS'
  2043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2046. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2047. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2048. # On Suns, sometimes $CPP names a directory.
  2049. if test -n "$CPP" && test -d "$CPP"; then
  2050. CPP=
  2051. fi
  2052. if test -z "$CPP"; then
  2053. if test "${ac_cv_prog_CPP+set}" = set; then
  2054. echo $ECHO_N "(cached) $ECHO_C" >&6
  2055. else
  2056. # Double quotes because CPP needs to be expanded
  2057. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2058. do
  2059. ac_preproc_ok=false
  2060. for ac_c_preproc_warn_flag in '' yes
  2061. do
  2062. # Use a header file that comes with gcc, so configuring glibc
  2063. # with a fresh cross-compiler works.
  2064. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2065. # <limits.h> exists even on freestanding compilers.
  2066. # On the NeXT, cc -E runs the code through the compiler's parser,
  2067. # not just through cpp. "Syntax error" is here to catch this case.
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. #ifdef __STDC__
  2075. # include <limits.h>
  2076. #else
  2077. # include <assert.h>
  2078. #endif
  2079. Syntax error
  2080. _ACEOF
  2081. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2082. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2083. ac_status=$?
  2084. grep -v '^ *+' conftest.er1 >conftest.err
  2085. rm -f conftest.er1
  2086. cat conftest.err >&5
  2087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088. (exit $ac_status); } >/dev/null; then
  2089. if test -s conftest.err; then
  2090. ac_cpp_err=$ac_c_preproc_warn_flag
  2091. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2092. else
  2093. ac_cpp_err=
  2094. fi
  2095. else
  2096. ac_cpp_err=yes
  2097. fi
  2098. if test -z "$ac_cpp_err"; then
  2099. :
  2100. else
  2101. echo "$as_me: failed program was:" >&5
  2102. sed 's/^/| /' conftest.$ac_ext >&5
  2103. # Broken: fails on valid input.
  2104. continue
  2105. fi
  2106. rm -f conftest.err conftest.$ac_ext
  2107. # OK, works on sane cases. Now check whether non-existent headers
  2108. # can be detected and how.
  2109. cat >conftest.$ac_ext <<_ACEOF
  2110. /* confdefs.h. */
  2111. _ACEOF
  2112. cat confdefs.h >>conftest.$ac_ext
  2113. cat >>conftest.$ac_ext <<_ACEOF
  2114. /* end confdefs.h. */
  2115. #include <ac_nonexistent.h>
  2116. _ACEOF
  2117. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2118. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } >/dev/null; then
  2125. if test -s conftest.err; then
  2126. ac_cpp_err=$ac_c_preproc_warn_flag
  2127. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2128. else
  2129. ac_cpp_err=
  2130. fi
  2131. else
  2132. ac_cpp_err=yes
  2133. fi
  2134. if test -z "$ac_cpp_err"; then
  2135. # Broken: success on invalid input.
  2136. continue
  2137. else
  2138. echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. # Passes both tests.
  2141. ac_preproc_ok=:
  2142. break
  2143. fi
  2144. rm -f conftest.err conftest.$ac_ext
  2145. done
  2146. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2147. rm -f conftest.err conftest.$ac_ext
  2148. if $ac_preproc_ok; then
  2149. break
  2150. fi
  2151. done
  2152. ac_cv_prog_CPP=$CPP
  2153. fi
  2154. CPP=$ac_cv_prog_CPP
  2155. else
  2156. ac_cv_prog_CPP=$CPP
  2157. fi
  2158. echo "$as_me:$LINENO: result: $CPP" >&5
  2159. echo "${ECHO_T}$CPP" >&6
  2160. ac_preproc_ok=false
  2161. for ac_c_preproc_warn_flag in '' yes
  2162. do
  2163. # Use a header file that comes with gcc, so configuring glibc
  2164. # with a fresh cross-compiler works.
  2165. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2166. # <limits.h> exists even on freestanding compilers.
  2167. # On the NeXT, cc -E runs the code through the compiler's parser,
  2168. # not just through cpp. "Syntax error" is here to catch this case.
  2169. cat >conftest.$ac_ext <<_ACEOF
  2170. /* confdefs.h. */
  2171. _ACEOF
  2172. cat confdefs.h >>conftest.$ac_ext
  2173. cat >>conftest.$ac_ext <<_ACEOF
  2174. /* end confdefs.h. */
  2175. #ifdef __STDC__
  2176. # include <limits.h>
  2177. #else
  2178. # include <assert.h>
  2179. #endif
  2180. Syntax error
  2181. _ACEOF
  2182. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2183. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2184. ac_status=$?
  2185. grep -v '^ *+' conftest.er1 >conftest.err
  2186. rm -f conftest.er1
  2187. cat conftest.err >&5
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); } >/dev/null; then
  2190. if test -s conftest.err; then
  2191. ac_cpp_err=$ac_c_preproc_warn_flag
  2192. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2193. else
  2194. ac_cpp_err=
  2195. fi
  2196. else
  2197. ac_cpp_err=yes
  2198. fi
  2199. if test -z "$ac_cpp_err"; then
  2200. :
  2201. else
  2202. echo "$as_me: failed program was:" >&5
  2203. sed 's/^/| /' conftest.$ac_ext >&5
  2204. # Broken: fails on valid input.
  2205. continue
  2206. fi
  2207. rm -f conftest.err conftest.$ac_ext
  2208. # OK, works on sane cases. Now check whether non-existent headers
  2209. # can be detected and how.
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #include <ac_nonexistent.h>
  2217. _ACEOF
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2219. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2220. ac_status=$?
  2221. grep -v '^ *+' conftest.er1 >conftest.err
  2222. rm -f conftest.er1
  2223. cat conftest.err >&5
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); } >/dev/null; then
  2226. if test -s conftest.err; then
  2227. ac_cpp_err=$ac_c_preproc_warn_flag
  2228. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2229. else
  2230. ac_cpp_err=
  2231. fi
  2232. else
  2233. ac_cpp_err=yes
  2234. fi
  2235. if test -z "$ac_cpp_err"; then
  2236. # Broken: success on invalid input.
  2237. continue
  2238. else
  2239. echo "$as_me: failed program was:" >&5
  2240. sed 's/^/| /' conftest.$ac_ext >&5
  2241. # Passes both tests.
  2242. ac_preproc_ok=:
  2243. break
  2244. fi
  2245. rm -f conftest.err conftest.$ac_ext
  2246. done
  2247. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2248. rm -f conftest.err conftest.$ac_ext
  2249. if $ac_preproc_ok; then
  2250. :
  2251. else
  2252. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2253. See \`config.log' for more details." >&5
  2254. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2255. See \`config.log' for more details." >&2;}
  2256. { (exit 1); exit 1; }; }
  2257. fi
  2258. ac_ext=c
  2259. ac_cpp='$CPP $CPPFLAGS'
  2260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2263. echo "$as_me:$LINENO: checking for egrep" >&5
  2264. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2265. if test "${ac_cv_prog_egrep+set}" = set; then
  2266. echo $ECHO_N "(cached) $ECHO_C" >&6
  2267. else
  2268. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2269. then ac_cv_prog_egrep='grep -E'
  2270. else ac_cv_prog_egrep='egrep'
  2271. fi
  2272. fi
  2273. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2274. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2275. EGREP=$ac_cv_prog_egrep
  2276. echo "$as_me:$LINENO: checking for AIX" >&5
  2277. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2278. cat >conftest.$ac_ext <<_ACEOF
  2279. /* confdefs.h. */
  2280. _ACEOF
  2281. cat confdefs.h >>conftest.$ac_ext
  2282. cat >>conftest.$ac_ext <<_ACEOF
  2283. /* end confdefs.h. */
  2284. #ifdef _AIX
  2285. yes
  2286. #endif
  2287. _ACEOF
  2288. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2289. $EGREP "yes" >/dev/null 2>&1; then
  2290. echo "$as_me:$LINENO: result: yes" >&5
  2291. echo "${ECHO_T}yes" >&6
  2292. cat >>confdefs.h <<\_ACEOF
  2293. #define _ALL_SOURCE 1
  2294. _ACEOF
  2295. else
  2296. echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6
  2298. fi
  2299. rm -f conftest*
  2300. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2301. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2302. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. ac_check_lib_save_LIBS=$LIBS
  2306. LIBS="-lcposix $LIBS"
  2307. cat >conftest.$ac_ext <<_ACEOF
  2308. /* confdefs.h. */
  2309. _ACEOF
  2310. cat confdefs.h >>conftest.$ac_ext
  2311. cat >>conftest.$ac_ext <<_ACEOF
  2312. /* end confdefs.h. */
  2313. /* Override any gcc2 internal prototype to avoid an error. */
  2314. #ifdef __cplusplus
  2315. extern "C"
  2316. #endif
  2317. /* We use char because int might match the return type of a gcc2
  2318. builtin and then its argument prototype would still apply. */
  2319. char strerror ();
  2320. int
  2321. main ()
  2322. {
  2323. strerror ();
  2324. ;
  2325. return 0;
  2326. }
  2327. _ACEOF
  2328. rm -f conftest.$ac_objext conftest$ac_exeext
  2329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2330. (eval $ac_link) 2>conftest.er1
  2331. ac_status=$?
  2332. grep -v '^ *+' conftest.er1 >conftest.err
  2333. rm -f conftest.er1
  2334. cat conftest.err >&5
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); } &&
  2337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2339. (eval $ac_try) 2>&5
  2340. ac_status=$?
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); }; } &&
  2343. { ac_try='test -s conftest$ac_exeext'
  2344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2345. (eval $ac_try) 2>&5
  2346. ac_status=$?
  2347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2348. (exit $ac_status); }; }; then
  2349. ac_cv_lib_cposix_strerror=yes
  2350. else
  2351. echo "$as_me: failed program was:" >&5
  2352. sed 's/^/| /' conftest.$ac_ext >&5
  2353. ac_cv_lib_cposix_strerror=no
  2354. fi
  2355. rm -f conftest.err conftest.$ac_objext \
  2356. conftest$ac_exeext conftest.$ac_ext
  2357. LIBS=$ac_check_lib_save_LIBS
  2358. fi
  2359. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2360. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2361. if test $ac_cv_lib_cposix_strerror = yes; then
  2362. LIBS="$LIBS -lcposix"
  2363. fi
  2364. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2365. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2366. if test "${ac_cv_header_stdc+set}" = set; then
  2367. echo $ECHO_N "(cached) $ECHO_C" >&6
  2368. else
  2369. cat >conftest.$ac_ext <<_ACEOF
  2370. /* confdefs.h. */
  2371. _ACEOF
  2372. cat confdefs.h >>conftest.$ac_ext
  2373. cat >>conftest.$ac_ext <<_ACEOF
  2374. /* end confdefs.h. */
  2375. #include <stdlib.h>
  2376. #include <stdarg.h>
  2377. #include <string.h>
  2378. #include <float.h>
  2379. int
  2380. main ()
  2381. {
  2382. ;
  2383. return 0;
  2384. }
  2385. _ACEOF
  2386. rm -f conftest.$ac_objext
  2387. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2388. (eval $ac_compile) 2>conftest.er1
  2389. ac_status=$?
  2390. grep -v '^ *+' conftest.er1 >conftest.err
  2391. rm -f conftest.er1
  2392. cat conftest.err >&5
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); } &&
  2395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2397. (eval $ac_try) 2>&5
  2398. ac_status=$?
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); }; } &&
  2401. { ac_try='test -s conftest.$ac_objext'
  2402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2403. (eval $ac_try) 2>&5
  2404. ac_status=$?
  2405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2406. (exit $ac_status); }; }; then
  2407. ac_cv_header_stdc=yes
  2408. else
  2409. echo "$as_me: failed program was:" >&5
  2410. sed 's/^/| /' conftest.$ac_ext >&5
  2411. ac_cv_header_stdc=no
  2412. fi
  2413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2414. if test $ac_cv_header_stdc = yes; then
  2415. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2416. cat >conftest.$ac_ext <<_ACEOF
  2417. /* confdefs.h. */
  2418. _ACEOF
  2419. cat confdefs.h >>conftest.$ac_ext
  2420. cat >>conftest.$ac_ext <<_ACEOF
  2421. /* end confdefs.h. */
  2422. #include <string.h>
  2423. _ACEOF
  2424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2425. $EGREP "memchr" >/dev/null 2>&1; then
  2426. :
  2427. else
  2428. ac_cv_header_stdc=no
  2429. fi
  2430. rm -f conftest*
  2431. fi
  2432. if test $ac_cv_header_stdc = yes; then
  2433. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2434. cat >conftest.$ac_ext <<_ACEOF
  2435. /* confdefs.h. */
  2436. _ACEOF
  2437. cat confdefs.h >>conftest.$ac_ext
  2438. cat >>conftest.$ac_ext <<_ACEOF
  2439. /* end confdefs.h. */
  2440. #include <stdlib.h>
  2441. _ACEOF
  2442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2443. $EGREP "free" >/dev/null 2>&1; then
  2444. :
  2445. else
  2446. ac_cv_header_stdc=no
  2447. fi
  2448. rm -f conftest*
  2449. fi
  2450. if test $ac_cv_header_stdc = yes; then
  2451. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2452. if test "$cross_compiling" = yes; then
  2453. :
  2454. else
  2455. cat >conftest.$ac_ext <<_ACEOF
  2456. /* confdefs.h. */
  2457. _ACEOF
  2458. cat confdefs.h >>conftest.$ac_ext
  2459. cat >>conftest.$ac_ext <<_ACEOF
  2460. /* end confdefs.h. */
  2461. #include <ctype.h>
  2462. #if ((' ' & 0x0FF) == 0x020)
  2463. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2464. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2465. #else
  2466. # define ISLOWER(c) \
  2467. (('a' <= (c) && (c) <= 'i') \
  2468. || ('j' <= (c) && (c) <= 'r') \
  2469. || ('s' <= (c) && (c) <= 'z'))
  2470. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2471. #endif
  2472. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2473. int
  2474. main ()
  2475. {
  2476. int i;
  2477. for (i = 0; i < 256; i++)
  2478. if (XOR (islower (i), ISLOWER (i))
  2479. || toupper (i) != TOUPPER (i))
  2480. exit(2);
  2481. exit (0);
  2482. }
  2483. _ACEOF
  2484. rm -f conftest$ac_exeext
  2485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2486. (eval $ac_link) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2491. (eval $ac_try) 2>&5
  2492. ac_status=$?
  2493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2494. (exit $ac_status); }; }; then
  2495. :
  2496. else
  2497. echo "$as_me: program exited with status $ac_status" >&5
  2498. echo "$as_me: failed program was:" >&5
  2499. sed 's/^/| /' conftest.$ac_ext >&5
  2500. ( exit $ac_status )
  2501. ac_cv_header_stdc=no
  2502. fi
  2503. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2504. fi
  2505. fi
  2506. fi
  2507. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2508. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2509. if test $ac_cv_header_stdc = yes; then
  2510. cat >>confdefs.h <<\_ACEOF
  2511. #define STDC_HEADERS 1
  2512. _ACEOF
  2513. fi
  2514. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2515. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2516. inttypes.h stdint.h unistd.h
  2517. do
  2518. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2522. echo $ECHO_N "(cached) $ECHO_C" >&6
  2523. else
  2524. cat >conftest.$ac_ext <<_ACEOF
  2525. /* confdefs.h. */
  2526. _ACEOF
  2527. cat confdefs.h >>conftest.$ac_ext
  2528. cat >>conftest.$ac_ext <<_ACEOF
  2529. /* end confdefs.h. */
  2530. $ac_includes_default
  2531. #include <$ac_header>
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. eval "$as_ac_Header=yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. eval "$as_ac_Header=no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. fi
  2562. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2563. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2564. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2565. cat >>confdefs.h <<_ACEOF
  2566. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2567. _ACEOF
  2568. fi
  2569. done
  2570. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2571. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2572. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2573. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. fi
  2576. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2577. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2578. else
  2579. # Is the header compilable?
  2580. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2581. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2582. cat >conftest.$ac_ext <<_ACEOF
  2583. /* confdefs.h. */
  2584. _ACEOF
  2585. cat confdefs.h >>conftest.$ac_ext
  2586. cat >>conftest.$ac_ext <<_ACEOF
  2587. /* end confdefs.h. */
  2588. $ac_includes_default
  2589. #include <minix/config.h>
  2590. _ACEOF
  2591. rm -f conftest.$ac_objext
  2592. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2593. (eval $ac_compile) 2>conftest.er1
  2594. ac_status=$?
  2595. grep -v '^ *+' conftest.er1 >conftest.err
  2596. rm -f conftest.er1
  2597. cat conftest.err >&5
  2598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2599. (exit $ac_status); } &&
  2600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2602. (eval $ac_try) 2>&5
  2603. ac_status=$?
  2604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2605. (exit $ac_status); }; } &&
  2606. { ac_try='test -s conftest.$ac_objext'
  2607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2608. (eval $ac_try) 2>&5
  2609. ac_status=$?
  2610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2611. (exit $ac_status); }; }; then
  2612. ac_header_compiler=yes
  2613. else
  2614. echo "$as_me: failed program was:" >&5
  2615. sed 's/^/| /' conftest.$ac_ext >&5
  2616. ac_header_compiler=no
  2617. fi
  2618. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2619. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2620. echo "${ECHO_T}$ac_header_compiler" >&6
  2621. # Is the header present?
  2622. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2623. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2624. cat >conftest.$ac_ext <<_ACEOF
  2625. /* confdefs.h. */
  2626. _ACEOF
  2627. cat confdefs.h >>conftest.$ac_ext
  2628. cat >>conftest.$ac_ext <<_ACEOF
  2629. /* end confdefs.h. */
  2630. #include <minix/config.h>
  2631. _ACEOF
  2632. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2633. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2634. ac_status=$?
  2635. grep -v '^ *+' conftest.er1 >conftest.err
  2636. rm -f conftest.er1
  2637. cat conftest.err >&5
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); } >/dev/null; then
  2640. if test -s conftest.err; then
  2641. ac_cpp_err=$ac_c_preproc_warn_flag
  2642. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2643. else
  2644. ac_cpp_err=
  2645. fi
  2646. else
  2647. ac_cpp_err=yes
  2648. fi
  2649. if test -z "$ac_cpp_err"; then
  2650. ac_header_preproc=yes
  2651. else
  2652. echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654. ac_header_preproc=no
  2655. fi
  2656. rm -f conftest.err conftest.$ac_ext
  2657. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2658. echo "${ECHO_T}$ac_header_preproc" >&6
  2659. # So? What about this header?
  2660. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2661. yes:no: )
  2662. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2663. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2665. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2666. ac_header_preproc=yes
  2667. ;;
  2668. no:yes:* )
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2670. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2671. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2672. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2673. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2674. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2675. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2676. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2677. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2678. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2679. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2680. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2681. (
  2682. cat <<\_ASBOX
  2683. ## ------------------------------------------ ##
  2684. ## Report this to the AC_PACKAGE_NAME lists. ##
  2685. ## ------------------------------------------ ##
  2686. _ASBOX
  2687. ) |
  2688. sed "s/^/$as_me: WARNING: /" >&2
  2689. ;;
  2690. esac
  2691. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2692. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2693. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2694. echo $ECHO_N "(cached) $ECHO_C" >&6
  2695. else
  2696. ac_cv_header_minix_config_h=$ac_header_preproc
  2697. fi
  2698. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2699. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2700. fi
  2701. if test $ac_cv_header_minix_config_h = yes; then
  2702. MINIX=yes
  2703. else
  2704. MINIX=
  2705. fi
  2706. if test "$MINIX" = yes; then
  2707. cat >>confdefs.h <<\_ACEOF
  2708. #define _POSIX_SOURCE 1
  2709. _ACEOF
  2710. cat >>confdefs.h <<\_ACEOF
  2711. #define _POSIX_1_SOURCE 2
  2712. _ACEOF
  2713. cat >>confdefs.h <<\_ACEOF
  2714. #define _MINIX 1
  2715. _ACEOF
  2716. fi
  2717. #checkpoint
  2718. cat >confcache <<\_ACEOF
  2719. # This file is a shell script that caches the results of configure
  2720. # tests run on this system so they can be shared between configure
  2721. # scripts and configure runs, see configure's option --config-cache.
  2722. # It is not useful on other systems. If it contains results you don't
  2723. # want to keep, you may remove or edit it.
  2724. #
  2725. # config.status only pays attention to the cache file if you give it
  2726. # the --recheck option to rerun configure.
  2727. #
  2728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2730. # following values.
  2731. _ACEOF
  2732. # The following way of writing the cache mishandles newlines in values,
  2733. # but we know of no workaround that is simple, portable, and efficient.
  2734. # So, don't put newlines in cache variables' values.
  2735. # Ultrix sh set writes to stderr and can't be redirected directly,
  2736. # and sets the high bit in the cache file unless we assign to the vars.
  2737. {
  2738. (set) 2>&1 |
  2739. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2740. *ac_space=\ *)
  2741. # `set' does not quote correctly, so add quotes (double-quote
  2742. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2743. sed -n \
  2744. "s/'/'\\\\''/g;
  2745. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2746. ;;
  2747. *)
  2748. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2749. sed -n \
  2750. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2751. ;;
  2752. esac;
  2753. } |
  2754. sed '
  2755. t clear
  2756. : clear
  2757. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2758. t end
  2759. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2760. : end' >>confcache
  2761. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2762. if test -w $cache_file; then
  2763. test "x$cache_file" != "x/dev/null"
  2764. cat confcache >$cache_file
  2765. else
  2766. echo "not updating unwritable cache $cache_file"
  2767. fi
  2768. fi
  2769. rm -f confcache
  2770. # Speedup compile
  2771. if test -z "$no_pipe"
  2772. then
  2773. if test -n "$GCC"
  2774. then
  2775. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2776. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2777. if test "${egg_cv_var_ccpipe+set}" = set; then
  2778. echo $ECHO_N "(cached) $ECHO_C" >&6
  2779. else
  2780. ac_old_CC="$CC"
  2781. CC="$CC -pipe"
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. ;
  2792. return 0;
  2793. }
  2794. _ACEOF
  2795. rm -f conftest.$ac_objext
  2796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2797. (eval $ac_compile) 2>conftest.er1
  2798. ac_status=$?
  2799. grep -v '^ *+' conftest.er1 >conftest.err
  2800. rm -f conftest.er1
  2801. cat conftest.err >&5
  2802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803. (exit $ac_status); } &&
  2804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2806. (eval $ac_try) 2>&5
  2807. ac_status=$?
  2808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2809. (exit $ac_status); }; } &&
  2810. { ac_try='test -s conftest.$ac_objext'
  2811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2812. (eval $ac_try) 2>&5
  2813. ac_status=$?
  2814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); }; }; then
  2816. egg_cv_var_ccpipe="yes"
  2817. else
  2818. echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. egg_cv_var_ccpipe="no"
  2821. fi
  2822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2823. CC="$ac_old_CC"
  2824. fi
  2825. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2826. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2827. if test "$egg_cv_var_ccpipe" = "yes"
  2828. then
  2829. CC="$CC -pipe"
  2830. fi
  2831. fi
  2832. fi
  2833. CCDEPMODE=gcc
  2834. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2835. if test $num = "3"; then
  2836. CCDEPMODE=gcc3
  2837. GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2838. fi
  2839. # Create static binaries
  2840. if test -z "$no_static"
  2841. then
  2842. if test -n "$GCC"
  2843. then
  2844. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2845. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2846. if test "${egg_cv_var_ccstatic+set}" = set; then
  2847. echo $ECHO_N "(cached) $ECHO_C" >&6
  2848. else
  2849. ac_old_CC="$CC"
  2850. CC="$CC -static"
  2851. cat >conftest.$ac_ext <<_ACEOF
  2852. /* confdefs.h. */
  2853. _ACEOF
  2854. cat confdefs.h >>conftest.$ac_ext
  2855. cat >>conftest.$ac_ext <<_ACEOF
  2856. /* end confdefs.h. */
  2857. int
  2858. main ()
  2859. {
  2860. ;
  2861. return 0;
  2862. }
  2863. _ACEOF
  2864. rm -f conftest.$ac_objext
  2865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2866. (eval $ac_compile) 2>conftest.er1
  2867. ac_status=$?
  2868. grep -v '^ *+' conftest.er1 >conftest.err
  2869. rm -f conftest.er1
  2870. cat conftest.err >&5
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); } &&
  2873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2875. (eval $ac_try) 2>&5
  2876. ac_status=$?
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); }; } &&
  2879. { ac_try='test -s conftest.$ac_objext'
  2880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2881. (eval $ac_try) 2>&5
  2882. ac_status=$?
  2883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2884. (exit $ac_status); }; }; then
  2885. egg_cv_var_ccstatic="yes"
  2886. else
  2887. echo "$as_me: failed program was:" >&5
  2888. sed 's/^/| /' conftest.$ac_ext >&5
  2889. egg_cv_var_ccstatic="no"
  2890. fi
  2891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2892. CC="$ac_old_CC"
  2893. fi
  2894. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2895. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2896. if test "$egg_cv_var_ccstatic" = "yes"
  2897. then
  2898. CCDEBUG="$CC"
  2899. CC="$CC -static"
  2900. else
  2901. cat << 'EOF' >&2
  2902. configure: error:
  2903. Your C compiler does not support -static.
  2904. This compile flag is required for the botpack.
  2905. EOF
  2906. exit 1
  2907. fi
  2908. fi
  2909. fi
  2910. # Checks for programs
  2911. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2912. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2913. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2914. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2915. echo $ECHO_N "(cached) $ECHO_C" >&6
  2916. else
  2917. cat >conftest.make <<\_ACEOF
  2918. all:
  2919. @echo 'ac_maketemp="$(MAKE)"'
  2920. _ACEOF
  2921. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2922. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2923. if test -n "$ac_maketemp"; then
  2924. eval ac_cv_prog_make_${ac_make}_set=yes
  2925. else
  2926. eval ac_cv_prog_make_${ac_make}_set=no
  2927. fi
  2928. rm -f conftest.make
  2929. fi
  2930. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2931. echo "$as_me:$LINENO: result: yes" >&5
  2932. echo "${ECHO_T}yes" >&6
  2933. SET_MAKE=
  2934. else
  2935. echo "$as_me:$LINENO: result: no" >&5
  2936. echo "${ECHO_T}no" >&6
  2937. SET_MAKE="MAKE=${MAKE-make}"
  2938. fi
  2939. cat << 'EOF' > conftest.head
  2940. a
  2941. b
  2942. c
  2943. EOF
  2944. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2945. do
  2946. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2947. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2948. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2949. echo $ECHO_N "(cached) $ECHO_C" >&6
  2950. else
  2951. if test -n "$HEAD_1"
  2952. then
  2953. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2954. else
  2955. if test "`cat conftest.head | $ac_prog`" = "a";
  2956. then
  2957. echo "$as_me:$LINENO: result: yes" >&5
  2958. echo "${ECHO_T}yes" >&6
  2959. ac_cv_prog_HEAD_1=$ac_prog
  2960. else
  2961. echo "$as_me:$LINENO: result: no" >&5
  2962. echo "${ECHO_T}no" >&6
  2963. fi
  2964. fi
  2965. fi
  2966. test -n "$ac_cv_prog_HEAD_1" && break
  2967. done
  2968. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2969. then
  2970. cat << 'EOF' >&2
  2971. configure: error:
  2972. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2973. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2974. EOF
  2975. exit 1
  2976. fi
  2977. rm -f conftest.head
  2978. HEAD_1=$ac_cv_prog_HEAD_1
  2979. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2980. for ac_prog in gawk mawk nawk awk
  2981. do
  2982. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2983. set dummy $ac_prog; ac_word=$2
  2984. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2985. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2986. if test "${ac_cv_prog_AWK+set}" = set; then
  2987. echo $ECHO_N "(cached) $ECHO_C" >&6
  2988. else
  2989. if test -n "$AWK"; then
  2990. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2991. else
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. test -z "$as_dir" && as_dir=.
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2999. ac_cv_prog_AWK="$ac_prog"
  3000. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3001. break 2
  3002. fi
  3003. done
  3004. done
  3005. fi
  3006. fi
  3007. AWK=$ac_cv_prog_AWK
  3008. if test -n "$AWK"; then
  3009. echo "$as_me:$LINENO: result: $AWK" >&5
  3010. echo "${ECHO_T}$AWK" >&6
  3011. else
  3012. echo "$as_me:$LINENO: result: no" >&5
  3013. echo "${ECHO_T}no" >&6
  3014. fi
  3015. test -n "$AWK" && break
  3016. done
  3017. if test "${AWK-x}" = "x"
  3018. then
  3019. cat << 'EOF' >&2
  3020. configure: error:
  3021. This system seems to lack a working 'awk' command.
  3022. A working 'awk' command is required to compile Eggdrop.
  3023. EOF
  3024. exit 1
  3025. fi
  3026. # basename is needed for Tcl library and header checks
  3027. # Extract the first word of "basename", so it can be a program name with args.
  3028. set dummy basename; ac_word=$2
  3029. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3030. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3031. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3032. echo $ECHO_N "(cached) $ECHO_C" >&6
  3033. else
  3034. if test -n "$BASENAME"; then
  3035. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3036. else
  3037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3038. for as_dir in $PATH
  3039. do
  3040. IFS=$as_save_IFS
  3041. test -z "$as_dir" && as_dir=.
  3042. for ac_exec_ext in '' $ac_executable_extensions; do
  3043. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3044. ac_cv_prog_BASENAME="basename"
  3045. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3046. break 2
  3047. fi
  3048. done
  3049. done
  3050. fi
  3051. fi
  3052. BASENAME=$ac_cv_prog_BASENAME
  3053. if test -n "$BASENAME"; then
  3054. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3055. echo "${ECHO_T}$BASENAME" >&6
  3056. else
  3057. echo "$as_me:$LINENO: result: no" >&5
  3058. echo "${ECHO_T}no" >&6
  3059. fi
  3060. if test "${BASENAME-x}" = "x"
  3061. then
  3062. cat << 'EOF' >&2
  3063. configure: error:
  3064. This system seems to lack a working 'basename' command.
  3065. A working 'basename' command is required to compile Eggdrop.
  3066. EOF
  3067. exit 1
  3068. fi
  3069. # Extract the first word of "objcopy", so it can be a program name with args.
  3070. set dummy objcopy; ac_word=$2
  3071. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3072. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3073. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3074. echo $ECHO_N "(cached) $ECHO_C" >&6
  3075. else
  3076. if test -n "$OBJCOPY"; then
  3077. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3078. else
  3079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3080. for as_dir in $PATH
  3081. do
  3082. IFS=$as_save_IFS
  3083. test -z "$as_dir" && as_dir=.
  3084. for ac_exec_ext in '' $ac_executable_extensions; do
  3085. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3086. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3087. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3088. break 2
  3089. fi
  3090. done
  3091. done
  3092. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3093. fi
  3094. fi
  3095. OBJCOPY=$ac_cv_prog_OBJCOPY
  3096. if test -n "$OBJCOPY"; then
  3097. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3098. echo "${ECHO_T}$OBJCOPY" >&6
  3099. else
  3100. echo "$as_me:$LINENO: result: no" >&5
  3101. echo "${ECHO_T}no" >&6
  3102. fi
  3103. # Extract the first word of "strip", so it can be a program name with args.
  3104. set dummy strip; ac_word=$2
  3105. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3106. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3107. if test "${ac_cv_prog_STRIP+set}" = set; then
  3108. echo $ECHO_N "(cached) $ECHO_C" >&6
  3109. else
  3110. if test -n "$STRIP"; then
  3111. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3112. else
  3113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3114. for as_dir in $PATH
  3115. do
  3116. IFS=$as_save_IFS
  3117. test -z "$as_dir" && as_dir=.
  3118. for ac_exec_ext in '' $ac_executable_extensions; do
  3119. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3120. ac_cv_prog_STRIP="strip"
  3121. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3122. break 2
  3123. fi
  3124. done
  3125. done
  3126. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3127. fi
  3128. fi
  3129. STRIP=$ac_cv_prog_STRIP
  3130. if test -n "$STRIP"; then
  3131. echo "$as_me:$LINENO: result: $STRIP" >&5
  3132. echo "${ECHO_T}$STRIP" >&6
  3133. else
  3134. echo "$as_me:$LINENO: result: no" >&5
  3135. echo "${ECHO_T}no" >&6
  3136. fi
  3137. # Extract the first word of "uname", so it can be a program name with args.
  3138. set dummy uname; ac_word=$2
  3139. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3140. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3141. if test "${ac_cv_prog_UNAME+set}" = set; then
  3142. echo $ECHO_N "(cached) $ECHO_C" >&6
  3143. else
  3144. if test -n "$UNAME"; then
  3145. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3146. else
  3147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3148. for as_dir in $PATH
  3149. do
  3150. IFS=$as_save_IFS
  3151. test -z "$as_dir" && as_dir=.
  3152. for ac_exec_ext in '' $ac_executable_extensions; do
  3153. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3154. ac_cv_prog_UNAME="uname"
  3155. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3156. break 2
  3157. fi
  3158. done
  3159. done
  3160. fi
  3161. fi
  3162. UNAME=$ac_cv_prog_UNAME
  3163. if test -n "$UNAME"; then
  3164. echo "$as_me:$LINENO: result: $UNAME" >&5
  3165. echo "${ECHO_T}$UNAME" >&6
  3166. else
  3167. echo "$as_me:$LINENO: result: no" >&5
  3168. echo "${ECHO_T}no" >&6
  3169. fi
  3170. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3171. # Extract the first word of "distcc", so it can be a program name with args.
  3172. set dummy distcc; ac_word=$2
  3173. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3174. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3175. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3176. echo $ECHO_N "(cached) $ECHO_C" >&6
  3177. else
  3178. if test -n "$DISTCC"; then
  3179. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3180. else
  3181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3182. for as_dir in $PATH
  3183. do
  3184. IFS=$as_save_IFS
  3185. test -z "$as_dir" && as_dir=.
  3186. for ac_exec_ext in '' $ac_executable_extensions; do
  3187. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3188. ac_cv_prog_DISTCC="distcc"
  3189. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3190. break 2
  3191. fi
  3192. done
  3193. done
  3194. fi
  3195. fi
  3196. DISTCC=$ac_cv_prog_DISTCC
  3197. if test -n "$DISTCC"; then
  3198. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3199. echo "${ECHO_T}$DISTCC" >&6
  3200. else
  3201. echo "$as_me:$LINENO: result: no" >&5
  3202. echo "${ECHO_T}no" >&6
  3203. fi
  3204. # Test the os and set the module linking settings
  3205. LINUX=no
  3206. IRIX=no
  3207. SUNOS=no
  3208. EGG_CYGWIN=no
  3209. echo "$as_me:$LINENO: checking system type" >&5
  3210. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3211. if test "${egg_cv_var_system_type+set}" = set; then
  3212. echo $ECHO_N "(cached) $ECHO_C" >&6
  3213. else
  3214. egg_cv_var_system_type=`$UNAME -s`
  3215. fi
  3216. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3217. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3218. echo "$as_me:$LINENO: checking system release" >&5
  3219. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3220. if test "${egg_cv_var_system_release+set}" = set; then
  3221. echo $ECHO_N "(cached) $ECHO_C" >&6
  3222. else
  3223. egg_cv_var_system_release=`$UNAME -r`
  3224. fi
  3225. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3226. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3227. case "$egg_cv_var_system_type" in
  3228. BSD/OS)
  3229. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3230. 2)
  3231. ;;
  3232. *)
  3233. CFLAGS="$CFLAGS -Wall"
  3234. ;;
  3235. esac
  3236. ;;
  3237. CYGWI*)
  3238. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3239. 1.*)
  3240. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3241. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3242. WIN32FLAGS=
  3243. cat >conftest.$ac_ext <<_ACEOF
  3244. /* confdefs.h. */
  3245. _ACEOF
  3246. cat confdefs.h >>conftest.$ac_ext
  3247. cat >>conftest.$ac_ext <<_ACEOF
  3248. /* end confdefs.h. */
  3249. int
  3250. main ()
  3251. {
  3252. #ifndef WIN32
  3253. # ifndef _WIN32
  3254. # error WIN32 or _WIN32 not defined
  3255. # endif
  3256. #endif
  3257. ;
  3258. return 0;
  3259. }
  3260. _ACEOF
  3261. rm -f conftest.$ac_objext
  3262. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3263. (eval $ac_compile) 2>conftest.er1
  3264. ac_status=$?
  3265. grep -v '^ *+' conftest.er1 >conftest.err
  3266. rm -f conftest.er1
  3267. cat conftest.err >&5
  3268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3269. (exit $ac_status); } &&
  3270. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3272. (eval $ac_try) 2>&5
  3273. ac_status=$?
  3274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3275. (exit $ac_status); }; } &&
  3276. { ac_try='test -s conftest.$ac_objext'
  3277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3278. (eval $ac_try) 2>&5
  3279. ac_status=$?
  3280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3281. (exit $ac_status); }; }; then
  3282. echo "$as_me:$LINENO: result: present by default" >&5
  3283. echo "${ECHO_T}present by default" >&6
  3284. else
  3285. echo "$as_me: failed program was:" >&5
  3286. sed 's/^/| /' conftest.$ac_ext >&5
  3287. ac_compile_save="$ac_compile"
  3288. save_CC="$CC"
  3289. ac_compile="$ac_compile -mwin32"
  3290. CC="$CC -mwin32"
  3291. cat >conftest.$ac_ext <<_ACEOF
  3292. /* confdefs.h. */
  3293. _ACEOF
  3294. cat confdefs.h >>conftest.$ac_ext
  3295. cat >>conftest.$ac_ext <<_ACEOF
  3296. /* end confdefs.h. */
  3297. int
  3298. main ()
  3299. {
  3300. #ifndef WIN32
  3301. # ifndef _WIN32
  3302. # error WIN32 or _WIN32 not defined
  3303. # endif
  3304. #endif
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. rm -f conftest.$ac_objext
  3310. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3311. (eval $ac_compile) 2>conftest.er1
  3312. ac_status=$?
  3313. grep -v '^ *+' conftest.er1 >conftest.err
  3314. rm -f conftest.er1
  3315. cat conftest.err >&5
  3316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3317. (exit $ac_status); } &&
  3318. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3320. (eval $ac_try) 2>&5
  3321. ac_status=$?
  3322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3323. (exit $ac_status); }; } &&
  3324. { ac_try='test -s conftest.$ac_objext'
  3325. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3326. (eval $ac_try) 2>&5
  3327. ac_status=$?
  3328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); }; }; then
  3330. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3331. echo "${ECHO_T}found via -mwin32" >&6
  3332. ac_compile="$ac_compile_save"
  3333. CC="$save_CC"
  3334. WIN32FLAGS="-mwin32"
  3335. else
  3336. echo "$as_me: failed program was:" >&5
  3337. sed 's/^/| /' conftest.$ac_ext >&5
  3338. ac_compile="$ac_compile_save"
  3339. CC="$save_CC"
  3340. echo "$as_me:$LINENO: result: not found" >&5
  3341. echo "${ECHO_T}not found" >&6
  3342. fi
  3343. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3344. fi
  3345. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3346. CC="$CC $WIN32FLAGS"
  3347. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3348. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3349. if test -r /usr/lib/binmode.o
  3350. then
  3351. echo "$as_me:$LINENO: result: yes" >&5
  3352. echo "${ECHO_T}yes" >&6
  3353. LIBS="$LIBS /usr/lib/binmode.o"
  3354. else
  3355. echo "$as_me:$LINENO: result: no" >&5
  3356. echo "${ECHO_T}no" >&6
  3357. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3358. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3359. fi
  3360. ;;
  3361. *)
  3362. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3363. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3364. ;;
  3365. esac
  3366. EGG_CYGWIN=yes
  3367. cat >>confdefs.h <<\_ACEOF
  3368. #define CYGWIN_HACKS 1
  3369. _ACEOF
  3370. cat >>confdefs.h <<\_ACEOF
  3371. #define WIN32_LEAN_AND_MEAN 1
  3372. _ACEOF
  3373. ;;
  3374. IRIX)
  3375. IRIX=yes
  3376. ;;
  3377. Ultrix)
  3378. SHELL=/bin/sh5
  3379. ;;
  3380. SINIX*)
  3381. ;;
  3382. BeOS)
  3383. ;;
  3384. Linux)
  3385. LINUX=yes
  3386. CFLAGS="$CFLAGS -Wall"
  3387. ;;
  3388. Lynx)
  3389. ;;
  3390. QNX)
  3391. ;;
  3392. OSF1)
  3393. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3394. V*)
  3395. if test "$AWK" = "gawk"
  3396. then
  3397. AWK=awk
  3398. fi
  3399. ;;
  3400. 1.0|1.1|1.2)
  3401. cat >>confdefs.h <<\_ACEOF
  3402. #define OSF1_HACKS 1
  3403. _ACEOF
  3404. ;;
  3405. 1.*)
  3406. cat >>confdefs.h <<\_ACEOF
  3407. #define OSF1_HACKS 1
  3408. _ACEOF
  3409. ;;
  3410. *)
  3411. ;;
  3412. esac
  3413. cat >>confdefs.h <<\_ACEOF
  3414. #define STOP_UAC 1
  3415. _ACEOF
  3416. cat >>confdefs.h <<\_ACEOF
  3417. #define BROKEN_SNPRINTF 1
  3418. _ACEOF
  3419. ;;
  3420. SunOS)
  3421. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3422. then
  3423. # SunOS 4
  3424. SUNOS=yes
  3425. fi
  3426. ;;
  3427. *BSD)
  3428. # FreeBSD/OpenBSD/NetBSD
  3429. ;;
  3430. *)
  3431. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3432. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3433. if test -r /mach
  3434. then
  3435. echo "$as_me:$LINENO: result: yes" >&5
  3436. echo "${ECHO_T}yes" >&6
  3437. cat >>confdefs.h <<\_ACEOF
  3438. #define BORGCUBES 1
  3439. _ACEOF
  3440. else
  3441. echo "$as_me:$LINENO: result: no" >&5
  3442. echo "${ECHO_T}no" >&6
  3443. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3444. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3445. if test -r /cmds
  3446. then
  3447. echo "$as_me:$LINENO: result: yes" >&5
  3448. echo "${ECHO_T}yes" >&6
  3449. else
  3450. echo "$as_me:$LINENO: result: no" >&5
  3451. echo "${ECHO_T}no" >&6
  3452. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3453. echo "${ECHO_T}Something unknown!" >&6
  3454. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3455. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3456. fi
  3457. fi
  3458. ;;
  3459. esac
  3460. dns_reslib_avail="true"
  3461. echo "$as_me:$LINENO: checking for res_init" >&5
  3462. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3463. if test "${ac_cv_func_res_init+set}" = set; then
  3464. echo $ECHO_N "(cached) $ECHO_C" >&6
  3465. else
  3466. cat >conftest.$ac_ext <<_ACEOF
  3467. /* confdefs.h. */
  3468. _ACEOF
  3469. cat confdefs.h >>conftest.$ac_ext
  3470. cat >>conftest.$ac_ext <<_ACEOF
  3471. /* end confdefs.h. */
  3472. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3473. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3474. #define res_init innocuous_res_init
  3475. /* System header to define __stub macros and hopefully few prototypes,
  3476. which can conflict with char res_init (); below.
  3477. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3478. <limits.h> exists even on freestanding compilers. */
  3479. #ifdef __STDC__
  3480. # include <limits.h>
  3481. #else
  3482. # include <assert.h>
  3483. #endif
  3484. #undef res_init
  3485. /* Override any gcc2 internal prototype to avoid an error. */
  3486. #ifdef __cplusplus
  3487. extern "C"
  3488. {
  3489. #endif
  3490. /* We use char because int might match the return type of a gcc2
  3491. builtin and then its argument prototype would still apply. */
  3492. char res_init ();
  3493. /* The GNU C library defines this for functions which it implements
  3494. to always fail with ENOSYS. Some functions are actually named
  3495. something starting with __ and the normal name is an alias. */
  3496. #if defined (__stub_res_init) || defined (__stub___res_init)
  3497. choke me
  3498. #else
  3499. char (*f) () = res_init;
  3500. #endif
  3501. #ifdef __cplusplus
  3502. }
  3503. #endif
  3504. int
  3505. main ()
  3506. {
  3507. return f != res_init;
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. rm -f conftest.$ac_objext conftest$ac_exeext
  3513. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3514. (eval $ac_link) 2>conftest.er1
  3515. ac_status=$?
  3516. grep -v '^ *+' conftest.er1 >conftest.err
  3517. rm -f conftest.er1
  3518. cat conftest.err >&5
  3519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3520. (exit $ac_status); } &&
  3521. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3523. (eval $ac_try) 2>&5
  3524. ac_status=$?
  3525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3526. (exit $ac_status); }; } &&
  3527. { ac_try='test -s conftest$ac_exeext'
  3528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3529. (eval $ac_try) 2>&5
  3530. ac_status=$?
  3531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3532. (exit $ac_status); }; }; then
  3533. ac_cv_func_res_init=yes
  3534. else
  3535. echo "$as_me: failed program was:" >&5
  3536. sed 's/^/| /' conftest.$ac_ext >&5
  3537. ac_cv_func_res_init=no
  3538. fi
  3539. rm -f conftest.err conftest.$ac_objext \
  3540. conftest$ac_exeext conftest.$ac_ext
  3541. fi
  3542. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3543. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3544. if test $ac_cv_func_res_init = yes; then
  3545. :
  3546. else
  3547. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3548. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3549. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3550. echo $ECHO_N "(cached) $ECHO_C" >&6
  3551. else
  3552. ac_check_lib_save_LIBS=$LIBS
  3553. LIBS="-lresolv $LIBS"
  3554. cat >conftest.$ac_ext <<_ACEOF
  3555. /* confdefs.h. */
  3556. _ACEOF
  3557. cat confdefs.h >>conftest.$ac_ext
  3558. cat >>conftest.$ac_ext <<_ACEOF
  3559. /* end confdefs.h. */
  3560. /* Override any gcc2 internal prototype to avoid an error. */
  3561. #ifdef __cplusplus
  3562. extern "C"
  3563. #endif
  3564. /* We use char because int might match the return type of a gcc2
  3565. builtin and then its argument prototype would still apply. */
  3566. char res_init ();
  3567. int
  3568. main ()
  3569. {
  3570. res_init ();
  3571. ;
  3572. return 0;
  3573. }
  3574. _ACEOF
  3575. rm -f conftest.$ac_objext conftest$ac_exeext
  3576. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3577. (eval $ac_link) 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" || test ! -s conftest.err'
  3585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3586. (eval $ac_try) 2>&5
  3587. ac_status=$?
  3588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3589. (exit $ac_status); }; } &&
  3590. { ac_try='test -s conftest$ac_exeext'
  3591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3592. (eval $ac_try) 2>&5
  3593. ac_status=$?
  3594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3595. (exit $ac_status); }; }; then
  3596. ac_cv_lib_resolv_res_init=yes
  3597. else
  3598. echo "$as_me: failed program was:" >&5
  3599. sed 's/^/| /' conftest.$ac_ext >&5
  3600. ac_cv_lib_resolv_res_init=no
  3601. fi
  3602. rm -f conftest.err conftest.$ac_objext \
  3603. conftest$ac_exeext conftest.$ac_ext
  3604. LIBS=$ac_check_lib_save_LIBS
  3605. fi
  3606. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3607. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3608. if test $ac_cv_lib_resolv_res_init = yes; then
  3609. RESLIB="-lresolv"
  3610. else
  3611. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3612. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3613. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3614. echo $ECHO_N "(cached) $ECHO_C" >&6
  3615. else
  3616. ac_check_lib_save_LIBS=$LIBS
  3617. LIBS="-lbind $LIBS"
  3618. cat >conftest.$ac_ext <<_ACEOF
  3619. /* confdefs.h. */
  3620. _ACEOF
  3621. cat confdefs.h >>conftest.$ac_ext
  3622. cat >>conftest.$ac_ext <<_ACEOF
  3623. /* end confdefs.h. */
  3624. /* Override any gcc2 internal prototype to avoid an error. */
  3625. #ifdef __cplusplus
  3626. extern "C"
  3627. #endif
  3628. /* We use char because int might match the return type of a gcc2
  3629. builtin and then its argument prototype would still apply. */
  3630. char res_init ();
  3631. int
  3632. main ()
  3633. {
  3634. res_init ();
  3635. ;
  3636. return 0;
  3637. }
  3638. _ACEOF
  3639. rm -f conftest.$ac_objext conftest$ac_exeext
  3640. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3641. (eval $ac_link) 2>conftest.er1
  3642. ac_status=$?
  3643. grep -v '^ *+' conftest.er1 >conftest.err
  3644. rm -f conftest.er1
  3645. cat conftest.err >&5
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); } &&
  3648. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3649. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3650. (eval $ac_try) 2>&5
  3651. ac_status=$?
  3652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3653. (exit $ac_status); }; } &&
  3654. { ac_try='test -s conftest$ac_exeext'
  3655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3656. (eval $ac_try) 2>&5
  3657. ac_status=$?
  3658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3659. (exit $ac_status); }; }; then
  3660. ac_cv_lib_bind_res_init=yes
  3661. else
  3662. echo "$as_me: failed program was:" >&5
  3663. sed 's/^/| /' conftest.$ac_ext >&5
  3664. ac_cv_lib_bind_res_init=no
  3665. fi
  3666. rm -f conftest.err conftest.$ac_objext \
  3667. conftest$ac_exeext conftest.$ac_ext
  3668. LIBS=$ac_check_lib_save_LIBS
  3669. fi
  3670. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3671. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3672. if test $ac_cv_lib_bind_res_init = yes; then
  3673. RESLIB="-lbind"
  3674. else
  3675. dns_reslib_avail="false";
  3676. fi
  3677. fi
  3678. fi
  3679. if test "${dns_reslib_avail}" = false; then
  3680. dns_reslib_avail="true"
  3681. echo "$as_me:$LINENO: checking for __res_init" >&5
  3682. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3683. if test "${ac_cv_func___res_init+set}" = set; then
  3684. echo $ECHO_N "(cached) $ECHO_C" >&6
  3685. else
  3686. cat >conftest.$ac_ext <<_ACEOF
  3687. /* confdefs.h. */
  3688. _ACEOF
  3689. cat confdefs.h >>conftest.$ac_ext
  3690. cat >>conftest.$ac_ext <<_ACEOF
  3691. /* end confdefs.h. */
  3692. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3693. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3694. #define __res_init innocuous___res_init
  3695. /* System header to define __stub macros and hopefully few prototypes,
  3696. which can conflict with char __res_init (); below.
  3697. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3698. <limits.h> exists even on freestanding compilers. */
  3699. #ifdef __STDC__
  3700. # include <limits.h>
  3701. #else
  3702. # include <assert.h>
  3703. #endif
  3704. #undef __res_init
  3705. /* Override any gcc2 internal prototype to avoid an error. */
  3706. #ifdef __cplusplus
  3707. extern "C"
  3708. {
  3709. #endif
  3710. /* We use char because int might match the return type of a gcc2
  3711. builtin and then its argument prototype would still apply. */
  3712. char __res_init ();
  3713. /* The GNU C library defines this for functions which it implements
  3714. to always fail with ENOSYS. Some functions are actually named
  3715. something starting with __ and the normal name is an alias. */
  3716. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3717. choke me
  3718. #else
  3719. char (*f) () = __res_init;
  3720. #endif
  3721. #ifdef __cplusplus
  3722. }
  3723. #endif
  3724. int
  3725. main ()
  3726. {
  3727. return f != __res_init;
  3728. ;
  3729. return 0;
  3730. }
  3731. _ACEOF
  3732. rm -f conftest.$ac_objext conftest$ac_exeext
  3733. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3734. (eval $ac_link) 2>conftest.er1
  3735. ac_status=$?
  3736. grep -v '^ *+' conftest.er1 >conftest.err
  3737. rm -f conftest.er1
  3738. cat conftest.err >&5
  3739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3740. (exit $ac_status); } &&
  3741. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3743. (eval $ac_try) 2>&5
  3744. ac_status=$?
  3745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3746. (exit $ac_status); }; } &&
  3747. { ac_try='test -s conftest$ac_exeext'
  3748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3749. (eval $ac_try) 2>&5
  3750. ac_status=$?
  3751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3752. (exit $ac_status); }; }; then
  3753. ac_cv_func___res_init=yes
  3754. else
  3755. echo "$as_me: failed program was:" >&5
  3756. sed 's/^/| /' conftest.$ac_ext >&5
  3757. ac_cv_func___res_init=no
  3758. fi
  3759. rm -f conftest.err conftest.$ac_objext \
  3760. conftest$ac_exeext conftest.$ac_ext
  3761. fi
  3762. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3763. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3764. if test $ac_cv_func___res_init = yes; then
  3765. :
  3766. else
  3767. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3768. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3769. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3770. echo $ECHO_N "(cached) $ECHO_C" >&6
  3771. else
  3772. ac_check_lib_save_LIBS=$LIBS
  3773. LIBS="-lresolv $LIBS"
  3774. cat >conftest.$ac_ext <<_ACEOF
  3775. /* confdefs.h. */
  3776. _ACEOF
  3777. cat confdefs.h >>conftest.$ac_ext
  3778. cat >>conftest.$ac_ext <<_ACEOF
  3779. /* end confdefs.h. */
  3780. /* Override any gcc2 internal prototype to avoid an error. */
  3781. #ifdef __cplusplus
  3782. extern "C"
  3783. #endif
  3784. /* We use char because int might match the return type of a gcc2
  3785. builtin and then its argument prototype would still apply. */
  3786. char __res_init ();
  3787. int
  3788. main ()
  3789. {
  3790. __res_init ();
  3791. ;
  3792. return 0;
  3793. }
  3794. _ACEOF
  3795. rm -f conftest.$ac_objext conftest$ac_exeext
  3796. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3797. (eval $ac_link) 2>conftest.er1
  3798. ac_status=$?
  3799. grep -v '^ *+' conftest.er1 >conftest.err
  3800. rm -f conftest.er1
  3801. cat conftest.err >&5
  3802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3803. (exit $ac_status); } &&
  3804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3806. (eval $ac_try) 2>&5
  3807. ac_status=$?
  3808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3809. (exit $ac_status); }; } &&
  3810. { ac_try='test -s conftest$ac_exeext'
  3811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3812. (eval $ac_try) 2>&5
  3813. ac_status=$?
  3814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3815. (exit $ac_status); }; }; then
  3816. ac_cv_lib_resolv___res_init=yes
  3817. else
  3818. echo "$as_me: failed program was:" >&5
  3819. sed 's/^/| /' conftest.$ac_ext >&5
  3820. ac_cv_lib_resolv___res_init=no
  3821. fi
  3822. rm -f conftest.err conftest.$ac_objext \
  3823. conftest$ac_exeext conftest.$ac_ext
  3824. LIBS=$ac_check_lib_save_LIBS
  3825. fi
  3826. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3827. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3828. if test $ac_cv_lib_resolv___res_init = yes; then
  3829. RESLIB="-lresolv"
  3830. else
  3831. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3832. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3833. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3834. echo $ECHO_N "(cached) $ECHO_C" >&6
  3835. else
  3836. ac_check_lib_save_LIBS=$LIBS
  3837. LIBS="-lbind $LIBS"
  3838. cat >conftest.$ac_ext <<_ACEOF
  3839. /* confdefs.h. */
  3840. _ACEOF
  3841. cat confdefs.h >>conftest.$ac_ext
  3842. cat >>conftest.$ac_ext <<_ACEOF
  3843. /* end confdefs.h. */
  3844. /* Override any gcc2 internal prototype to avoid an error. */
  3845. #ifdef __cplusplus
  3846. extern "C"
  3847. #endif
  3848. /* We use char because int might match the return type of a gcc2
  3849. builtin and then its argument prototype would still apply. */
  3850. char __res_init ();
  3851. int
  3852. main ()
  3853. {
  3854. __res_init ();
  3855. ;
  3856. return 0;
  3857. }
  3858. _ACEOF
  3859. rm -f conftest.$ac_objext conftest$ac_exeext
  3860. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3861. (eval $ac_link) 2>conftest.er1
  3862. ac_status=$?
  3863. grep -v '^ *+' conftest.er1 >conftest.err
  3864. rm -f conftest.er1
  3865. cat conftest.err >&5
  3866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3867. (exit $ac_status); } &&
  3868. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3870. (eval $ac_try) 2>&5
  3871. ac_status=$?
  3872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3873. (exit $ac_status); }; } &&
  3874. { ac_try='test -s conftest$ac_exeext'
  3875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3876. (eval $ac_try) 2>&5
  3877. ac_status=$?
  3878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3879. (exit $ac_status); }; }; then
  3880. ac_cv_lib_bind___res_init=yes
  3881. else
  3882. echo "$as_me: failed program was:" >&5
  3883. sed 's/^/| /' conftest.$ac_ext >&5
  3884. ac_cv_lib_bind___res_init=no
  3885. fi
  3886. rm -f conftest.err conftest.$ac_objext \
  3887. conftest$ac_exeext conftest.$ac_ext
  3888. LIBS=$ac_check_lib_save_LIBS
  3889. fi
  3890. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3891. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3892. if test $ac_cv_lib_bind___res_init = yes; then
  3893. RESLIB="-lbind"
  3894. else
  3895. dns_reslib_avail="false";
  3896. fi
  3897. fi
  3898. fi
  3899. fi
  3900. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3901. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3902. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3903. echo $ECHO_N "(cached) $ECHO_C" >&6
  3904. else
  3905. cat >conftest.$ac_ext <<_ACEOF
  3906. /* confdefs.h. */
  3907. _ACEOF
  3908. cat confdefs.h >>conftest.$ac_ext
  3909. cat >>conftest.$ac_ext <<_ACEOF
  3910. /* end confdefs.h. */
  3911. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3912. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3913. #define res_mkquery innocuous_res_mkquery
  3914. /* System header to define __stub macros and hopefully few prototypes,
  3915. which can conflict with char res_mkquery (); below.
  3916. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3917. <limits.h> exists even on freestanding compilers. */
  3918. #ifdef __STDC__
  3919. # include <limits.h>
  3920. #else
  3921. # include <assert.h>
  3922. #endif
  3923. #undef res_mkquery
  3924. /* Override any gcc2 internal prototype to avoid an error. */
  3925. #ifdef __cplusplus
  3926. extern "C"
  3927. {
  3928. #endif
  3929. /* We use char because int might match the return type of a gcc2
  3930. builtin and then its argument prototype would still apply. */
  3931. char res_mkquery ();
  3932. /* The GNU C library defines this for functions which it implements
  3933. to always fail with ENOSYS. Some functions are actually named
  3934. something starting with __ and the normal name is an alias. */
  3935. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3936. choke me
  3937. #else
  3938. char (*f) () = res_mkquery;
  3939. #endif
  3940. #ifdef __cplusplus
  3941. }
  3942. #endif
  3943. int
  3944. main ()
  3945. {
  3946. return f != res_mkquery;
  3947. ;
  3948. return 0;
  3949. }
  3950. _ACEOF
  3951. rm -f conftest.$ac_objext conftest$ac_exeext
  3952. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3953. (eval $ac_link) 2>conftest.er1
  3954. ac_status=$?
  3955. grep -v '^ *+' conftest.er1 >conftest.err
  3956. rm -f conftest.er1
  3957. cat conftest.err >&5
  3958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3959. (exit $ac_status); } &&
  3960. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3962. (eval $ac_try) 2>&5
  3963. ac_status=$?
  3964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3965. (exit $ac_status); }; } &&
  3966. { ac_try='test -s conftest$ac_exeext'
  3967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3968. (eval $ac_try) 2>&5
  3969. ac_status=$?
  3970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3971. (exit $ac_status); }; }; then
  3972. ac_cv_func_res_mkquery=yes
  3973. else
  3974. echo "$as_me: failed program was:" >&5
  3975. sed 's/^/| /' conftest.$ac_ext >&5
  3976. ac_cv_func_res_mkquery=no
  3977. fi
  3978. rm -f conftest.err conftest.$ac_objext \
  3979. conftest$ac_exeext conftest.$ac_ext
  3980. fi
  3981. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3982. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3983. if test $ac_cv_func_res_mkquery = yes; then
  3984. :
  3985. else
  3986. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3987. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3988. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3989. echo $ECHO_N "(cached) $ECHO_C" >&6
  3990. else
  3991. ac_check_lib_save_LIBS=$LIBS
  3992. LIBS="-lresolv $LIBS"
  3993. cat >conftest.$ac_ext <<_ACEOF
  3994. /* confdefs.h. */
  3995. _ACEOF
  3996. cat confdefs.h >>conftest.$ac_ext
  3997. cat >>conftest.$ac_ext <<_ACEOF
  3998. /* end confdefs.h. */
  3999. /* Override any gcc2 internal prototype to avoid an error. */
  4000. #ifdef __cplusplus
  4001. extern "C"
  4002. #endif
  4003. /* We use char because int might match the return type of a gcc2
  4004. builtin and then its argument prototype would still apply. */
  4005. char res_mkquery ();
  4006. int
  4007. main ()
  4008. {
  4009. res_mkquery ();
  4010. ;
  4011. return 0;
  4012. }
  4013. _ACEOF
  4014. rm -f conftest.$ac_objext conftest$ac_exeext
  4015. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4016. (eval $ac_link) 2>conftest.er1
  4017. ac_status=$?
  4018. grep -v '^ *+' conftest.er1 >conftest.err
  4019. rm -f conftest.er1
  4020. cat conftest.err >&5
  4021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4022. (exit $ac_status); } &&
  4023. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4025. (eval $ac_try) 2>&5
  4026. ac_status=$?
  4027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4028. (exit $ac_status); }; } &&
  4029. { ac_try='test -s conftest$ac_exeext'
  4030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4031. (eval $ac_try) 2>&5
  4032. ac_status=$?
  4033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4034. (exit $ac_status); }; }; then
  4035. ac_cv_lib_resolv_res_mkquery=yes
  4036. else
  4037. echo "$as_me: failed program was:" >&5
  4038. sed 's/^/| /' conftest.$ac_ext >&5
  4039. ac_cv_lib_resolv_res_mkquery=no
  4040. fi
  4041. rm -f conftest.err conftest.$ac_objext \
  4042. conftest$ac_exeext conftest.$ac_ext
  4043. LIBS=$ac_check_lib_save_LIBS
  4044. fi
  4045. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4046. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4047. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4048. if test "x${RESLIB}" != "x-lresolv"; then
  4049. RESLIB="${RESLIB} -lresolv"
  4050. fi
  4051. else
  4052. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4053. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4054. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4055. echo $ECHO_N "(cached) $ECHO_C" >&6
  4056. else
  4057. ac_check_lib_save_LIBS=$LIBS
  4058. LIBS="-lbind $LIBS"
  4059. cat >conftest.$ac_ext <<_ACEOF
  4060. /* confdefs.h. */
  4061. _ACEOF
  4062. cat confdefs.h >>conftest.$ac_ext
  4063. cat >>conftest.$ac_ext <<_ACEOF
  4064. /* end confdefs.h. */
  4065. /* Override any gcc2 internal prototype to avoid an error. */
  4066. #ifdef __cplusplus
  4067. extern "C"
  4068. #endif
  4069. /* We use char because int might match the return type of a gcc2
  4070. builtin and then its argument prototype would still apply. */
  4071. char res_mkquery ();
  4072. int
  4073. main ()
  4074. {
  4075. res_mkquery ();
  4076. ;
  4077. return 0;
  4078. }
  4079. _ACEOF
  4080. rm -f conftest.$ac_objext conftest$ac_exeext
  4081. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4082. (eval $ac_link) 2>conftest.er1
  4083. ac_status=$?
  4084. grep -v '^ *+' conftest.er1 >conftest.err
  4085. rm -f conftest.er1
  4086. cat conftest.err >&5
  4087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4088. (exit $ac_status); } &&
  4089. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4091. (eval $ac_try) 2>&5
  4092. ac_status=$?
  4093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4094. (exit $ac_status); }; } &&
  4095. { ac_try='test -s conftest$ac_exeext'
  4096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4097. (eval $ac_try) 2>&5
  4098. ac_status=$?
  4099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100. (exit $ac_status); }; }; then
  4101. ac_cv_lib_bind_res_mkquery=yes
  4102. else
  4103. echo "$as_me: failed program was:" >&5
  4104. sed 's/^/| /' conftest.$ac_ext >&5
  4105. ac_cv_lib_bind_res_mkquery=no
  4106. fi
  4107. rm -f conftest.err conftest.$ac_objext \
  4108. conftest$ac_exeext conftest.$ac_ext
  4109. LIBS=$ac_check_lib_save_LIBS
  4110. fi
  4111. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4112. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4113. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4114. if test "x${RESLIB}" != "x-lbind"; then
  4115. RESLIB="${RESLIB} -lbind"
  4116. fi
  4117. else
  4118. dns_reslib_avail="false";
  4119. fi
  4120. fi
  4121. fi
  4122. if test "${dns_reslib_avail}" = false; then
  4123. dns_reslib_avail="true"
  4124. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4125. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4126. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4127. echo $ECHO_N "(cached) $ECHO_C" >&6
  4128. else
  4129. cat >conftest.$ac_ext <<_ACEOF
  4130. /* confdefs.h. */
  4131. _ACEOF
  4132. cat confdefs.h >>conftest.$ac_ext
  4133. cat >>conftest.$ac_ext <<_ACEOF
  4134. /* end confdefs.h. */
  4135. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4136. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4137. #define __res_mkquery innocuous___res_mkquery
  4138. /* System header to define __stub macros and hopefully few prototypes,
  4139. which can conflict with char __res_mkquery (); below.
  4140. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4141. <limits.h> exists even on freestanding compilers. */
  4142. #ifdef __STDC__
  4143. # include <limits.h>
  4144. #else
  4145. # include <assert.h>
  4146. #endif
  4147. #undef __res_mkquery
  4148. /* Override any gcc2 internal prototype to avoid an error. */
  4149. #ifdef __cplusplus
  4150. extern "C"
  4151. {
  4152. #endif
  4153. /* We use char because int might match the return type of a gcc2
  4154. builtin and then its argument prototype would still apply. */
  4155. char __res_mkquery ();
  4156. /* The GNU C library defines this for functions which it implements
  4157. to always fail with ENOSYS. Some functions are actually named
  4158. something starting with __ and the normal name is an alias. */
  4159. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4160. choke me
  4161. #else
  4162. char (*f) () = __res_mkquery;
  4163. #endif
  4164. #ifdef __cplusplus
  4165. }
  4166. #endif
  4167. int
  4168. main ()
  4169. {
  4170. return f != __res_mkquery;
  4171. ;
  4172. return 0;
  4173. }
  4174. _ACEOF
  4175. rm -f conftest.$ac_objext conftest$ac_exeext
  4176. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4177. (eval $ac_link) 2>conftest.er1
  4178. ac_status=$?
  4179. grep -v '^ *+' conftest.er1 >conftest.err
  4180. rm -f conftest.er1
  4181. cat conftest.err >&5
  4182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4183. (exit $ac_status); } &&
  4184. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4186. (eval $ac_try) 2>&5
  4187. ac_status=$?
  4188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4189. (exit $ac_status); }; } &&
  4190. { ac_try='test -s conftest$ac_exeext'
  4191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4192. (eval $ac_try) 2>&5
  4193. ac_status=$?
  4194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4195. (exit $ac_status); }; }; then
  4196. ac_cv_func___res_mkquery=yes
  4197. else
  4198. echo "$as_me: failed program was:" >&5
  4199. sed 's/^/| /' conftest.$ac_ext >&5
  4200. ac_cv_func___res_mkquery=no
  4201. fi
  4202. rm -f conftest.err conftest.$ac_objext \
  4203. conftest$ac_exeext conftest.$ac_ext
  4204. fi
  4205. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4206. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4207. if test $ac_cv_func___res_mkquery = yes; then
  4208. :
  4209. else
  4210. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4211. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4212. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4213. echo $ECHO_N "(cached) $ECHO_C" >&6
  4214. else
  4215. ac_check_lib_save_LIBS=$LIBS
  4216. LIBS="-lresolv $LIBS"
  4217. cat >conftest.$ac_ext <<_ACEOF
  4218. /* confdefs.h. */
  4219. _ACEOF
  4220. cat confdefs.h >>conftest.$ac_ext
  4221. cat >>conftest.$ac_ext <<_ACEOF
  4222. /* end confdefs.h. */
  4223. /* Override any gcc2 internal prototype to avoid an error. */
  4224. #ifdef __cplusplus
  4225. extern "C"
  4226. #endif
  4227. /* We use char because int might match the return type of a gcc2
  4228. builtin and then its argument prototype would still apply. */
  4229. char __res_mkquery ();
  4230. int
  4231. main ()
  4232. {
  4233. __res_mkquery ();
  4234. ;
  4235. return 0;
  4236. }
  4237. _ACEOF
  4238. rm -f conftest.$ac_objext conftest$ac_exeext
  4239. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4240. (eval $ac_link) 2>conftest.er1
  4241. ac_status=$?
  4242. grep -v '^ *+' conftest.er1 >conftest.err
  4243. rm -f conftest.er1
  4244. cat conftest.err >&5
  4245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4246. (exit $ac_status); } &&
  4247. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4249. (eval $ac_try) 2>&5
  4250. ac_status=$?
  4251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4252. (exit $ac_status); }; } &&
  4253. { ac_try='test -s conftest$ac_exeext'
  4254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4255. (eval $ac_try) 2>&5
  4256. ac_status=$?
  4257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4258. (exit $ac_status); }; }; then
  4259. ac_cv_lib_resolv___res_mkquery=yes
  4260. else
  4261. echo "$as_me: failed program was:" >&5
  4262. sed 's/^/| /' conftest.$ac_ext >&5
  4263. ac_cv_lib_resolv___res_mkquery=no
  4264. fi
  4265. rm -f conftest.err conftest.$ac_objext \
  4266. conftest$ac_exeext conftest.$ac_ext
  4267. LIBS=$ac_check_lib_save_LIBS
  4268. fi
  4269. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4270. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4271. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4272. if test "x${RESLIB}" != "x-lresolv"; then
  4273. RESLIB="${RESLIB} -lresolv"
  4274. fi
  4275. else
  4276. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4277. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4278. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4279. echo $ECHO_N "(cached) $ECHO_C" >&6
  4280. else
  4281. ac_check_lib_save_LIBS=$LIBS
  4282. LIBS="-lbind $LIBS"
  4283. cat >conftest.$ac_ext <<_ACEOF
  4284. /* confdefs.h. */
  4285. _ACEOF
  4286. cat confdefs.h >>conftest.$ac_ext
  4287. cat >>conftest.$ac_ext <<_ACEOF
  4288. /* end confdefs.h. */
  4289. /* Override any gcc2 internal prototype to avoid an error. */
  4290. #ifdef __cplusplus
  4291. extern "C"
  4292. #endif
  4293. /* We use char because int might match the return type of a gcc2
  4294. builtin and then its argument prototype would still apply. */
  4295. char __res_mkquery ();
  4296. int
  4297. main ()
  4298. {
  4299. __res_mkquery ();
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. rm -f conftest.$ac_objext conftest$ac_exeext
  4305. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4306. (eval $ac_link) 2>conftest.er1
  4307. ac_status=$?
  4308. grep -v '^ *+' conftest.er1 >conftest.err
  4309. rm -f conftest.er1
  4310. cat conftest.err >&5
  4311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4312. (exit $ac_status); } &&
  4313. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4315. (eval $ac_try) 2>&5
  4316. ac_status=$?
  4317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4318. (exit $ac_status); }; } &&
  4319. { ac_try='test -s conftest$ac_exeext'
  4320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4321. (eval $ac_try) 2>&5
  4322. ac_status=$?
  4323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4324. (exit $ac_status); }; }; then
  4325. ac_cv_lib_bind___res_mkquery=yes
  4326. else
  4327. echo "$as_me: failed program was:" >&5
  4328. sed 's/^/| /' conftest.$ac_ext >&5
  4329. ac_cv_lib_bind___res_mkquery=no
  4330. fi
  4331. rm -f conftest.err conftest.$ac_objext \
  4332. conftest$ac_exeext conftest.$ac_ext
  4333. LIBS=$ac_check_lib_save_LIBS
  4334. fi
  4335. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4336. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4337. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4338. if test "x${RESLIB}" != "x-lbind"; then
  4339. RESLIB="${RESLIB} -lbind"
  4340. fi
  4341. else
  4342. dns_reslib_avail="false";
  4343. fi
  4344. fi
  4345. fi
  4346. fi
  4347. if test "${dns_reslib_avail}" = false; then
  4348. if test "$ac_cv_cygwin" = "yes"; then
  4349. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4350. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4351. if test -r /usr/local/bind/lib/libbind.a; then
  4352. echo "$as_me:$LINENO: result: yes" >&5
  4353. echo "${ECHO_T}yes" >&6
  4354. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4355. RESINCLUDE="-I/usr/local/bind/include"
  4356. dns_reslib_avail="true"
  4357. else
  4358. echo "$as_me:$LINENO: result: no" >&5
  4359. echo "${ECHO_T}no" >&6
  4360. fi
  4361. fi
  4362. fi
  4363. if test "${dns_reslib_avail}" = false; then
  4364. cat >&2 <<EOF
  4365. configure: warning:
  4366. Your system provides no functional resolver library.
  4367. One is required for buld.
  4368. EOF
  4369. exit 1
  4370. fi
  4371. # Check for IPv6 support
  4372. #EGG_IPV6_SUPPORTED
  4373. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4374. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4375. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4376. if test "${enable_ipv6+set}" = set; then
  4377. enableval="$enable_ipv6"
  4378. ac_cv_dipv6="yes"
  4379. echo "$as_me:$LINENO: result: yes" >&5
  4380. echo "${ECHO_T}yes" >&6
  4381. else
  4382. ac_cv_dipv6="no"
  4383. if test "$egg_cv_ipv6_supported" = "no"; then
  4384. ac_cv_dipv6="no"
  4385. fi
  4386. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4387. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4388. fi;
  4389. if ! test "$EGG_CYGWIN" = "yes"; then
  4390. if test "$ac_cv_dipv6" = "no"; then
  4391. cat >>confdefs.h <<\_ACEOF
  4392. #define USE_IPV6 1
  4393. _ACEOF
  4394. fi
  4395. fi
  4396. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4397. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4398. if test "${egg_cv_socklen_t+set}" = set; then
  4399. echo $ECHO_N "(cached) $ECHO_C" >&6
  4400. else
  4401. if test "$cross_compiling" = yes; then
  4402. egg_cv_socklen_t=no
  4403. else
  4404. cat >conftest.$ac_ext <<_ACEOF
  4405. /* confdefs.h. */
  4406. _ACEOF
  4407. cat confdefs.h >>conftest.$ac_ext
  4408. cat >>conftest.$ac_ext <<_ACEOF
  4409. /* end confdefs.h. */
  4410. #include <unistd.h>
  4411. #include <sys/types.h>
  4412. #include <sys/socket.h>
  4413. #include <netinet/in.h>
  4414. #include <arpa/inet.h>
  4415. int main()
  4416. {
  4417. socklen_t test = sizeof(int);
  4418. return 0;
  4419. }
  4420. _ACEOF
  4421. rm -f conftest$ac_exeext
  4422. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4423. (eval $ac_link) 2>&5
  4424. ac_status=$?
  4425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4426. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4427. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4428. (eval $ac_try) 2>&5
  4429. ac_status=$?
  4430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4431. (exit $ac_status); }; }; then
  4432. egg_cv_socklen_t=yes
  4433. else
  4434. echo "$as_me: program exited with status $ac_status" >&5
  4435. echo "$as_me: failed program was:" >&5
  4436. sed 's/^/| /' conftest.$ac_ext >&5
  4437. ( exit $ac_status )
  4438. egg_cv_socklen_t=no
  4439. fi
  4440. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4441. fi
  4442. fi
  4443. if test "$egg_cv_socklen_t" = "yes"; then
  4444. cat >>confdefs.h <<\_ACEOF
  4445. #define HAVE_SOCKLEN_T 1
  4446. _ACEOF
  4447. echo "$as_me:$LINENO: result: yes" >&5
  4448. echo "${ECHO_T}yes" >&6
  4449. else
  4450. echo "$as_me:$LINENO: result: no" >&5
  4451. echo "${ECHO_T}no" >&6
  4452. fi
  4453. #checkpoint
  4454. cat >confcache <<\_ACEOF
  4455. # This file is a shell script that caches the results of configure
  4456. # tests run on this system so they can be shared between configure
  4457. # scripts and configure runs, see configure's option --config-cache.
  4458. # It is not useful on other systems. If it contains results you don't
  4459. # want to keep, you may remove or edit it.
  4460. #
  4461. # config.status only pays attention to the cache file if you give it
  4462. # the --recheck option to rerun configure.
  4463. #
  4464. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4465. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4466. # following values.
  4467. _ACEOF
  4468. # The following way of writing the cache mishandles newlines in values,
  4469. # but we know of no workaround that is simple, portable, and efficient.
  4470. # So, don't put newlines in cache variables' values.
  4471. # Ultrix sh set writes to stderr and can't be redirected directly,
  4472. # and sets the high bit in the cache file unless we assign to the vars.
  4473. {
  4474. (set) 2>&1 |
  4475. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4476. *ac_space=\ *)
  4477. # `set' does not quote correctly, so add quotes (double-quote
  4478. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4479. sed -n \
  4480. "s/'/'\\\\''/g;
  4481. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4482. ;;
  4483. *)
  4484. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4485. sed -n \
  4486. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4487. ;;
  4488. esac;
  4489. } |
  4490. sed '
  4491. t clear
  4492. : clear
  4493. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4494. t end
  4495. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4496. : end' >>confcache
  4497. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4498. if test -w $cache_file; then
  4499. test "x$cache_file" != "x/dev/null"
  4500. cat confcache >$cache_file
  4501. else
  4502. echo "not updating unwritable cache $cache_file"
  4503. fi
  4504. fi
  4505. rm -f confcache
  4506. # Checks for system libraries
  4507. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4508. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4509. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4510. echo $ECHO_N "(cached) $ECHO_C" >&6
  4511. else
  4512. ac_check_lib_save_LIBS=$LIBS
  4513. LIBS="-lsocket $LIBS"
  4514. cat >conftest.$ac_ext <<_ACEOF
  4515. /* confdefs.h. */
  4516. _ACEOF
  4517. cat confdefs.h >>conftest.$ac_ext
  4518. cat >>conftest.$ac_ext <<_ACEOF
  4519. /* end confdefs.h. */
  4520. /* Override any gcc2 internal prototype to avoid an error. */
  4521. #ifdef __cplusplus
  4522. extern "C"
  4523. #endif
  4524. /* We use char because int might match the return type of a gcc2
  4525. builtin and then its argument prototype would still apply. */
  4526. char socket ();
  4527. int
  4528. main ()
  4529. {
  4530. socket ();
  4531. ;
  4532. return 0;
  4533. }
  4534. _ACEOF
  4535. rm -f conftest.$ac_objext conftest$ac_exeext
  4536. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4537. (eval $ac_link) 2>conftest.er1
  4538. ac_status=$?
  4539. grep -v '^ *+' conftest.er1 >conftest.err
  4540. rm -f conftest.er1
  4541. cat conftest.err >&5
  4542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4543. (exit $ac_status); } &&
  4544. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4546. (eval $ac_try) 2>&5
  4547. ac_status=$?
  4548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4549. (exit $ac_status); }; } &&
  4550. { ac_try='test -s conftest$ac_exeext'
  4551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4552. (eval $ac_try) 2>&5
  4553. ac_status=$?
  4554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4555. (exit $ac_status); }; }; then
  4556. ac_cv_lib_socket_socket=yes
  4557. else
  4558. echo "$as_me: failed program was:" >&5
  4559. sed 's/^/| /' conftest.$ac_ext >&5
  4560. ac_cv_lib_socket_socket=no
  4561. fi
  4562. rm -f conftest.err conftest.$ac_objext \
  4563. conftest$ac_exeext conftest.$ac_ext
  4564. LIBS=$ac_check_lib_save_LIBS
  4565. fi
  4566. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4567. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4568. if test $ac_cv_lib_socket_socket = yes; then
  4569. cat >>confdefs.h <<_ACEOF
  4570. #define HAVE_LIBSOCKET 1
  4571. _ACEOF
  4572. LIBS="-lsocket $LIBS"
  4573. fi
  4574. # AC_CHECK_LIB(nsl, connect)
  4575. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4576. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4577. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4578. echo $ECHO_N "(cached) $ECHO_C" >&6
  4579. else
  4580. ac_check_lib_save_LIBS=$LIBS
  4581. LIBS="-ldns $LIBS"
  4582. cat >conftest.$ac_ext <<_ACEOF
  4583. /* confdefs.h. */
  4584. _ACEOF
  4585. cat confdefs.h >>conftest.$ac_ext
  4586. cat >>conftest.$ac_ext <<_ACEOF
  4587. /* end confdefs.h. */
  4588. /* Override any gcc2 internal prototype to avoid an error. */
  4589. #ifdef __cplusplus
  4590. extern "C"
  4591. #endif
  4592. /* We use char because int might match the return type of a gcc2
  4593. builtin and then its argument prototype would still apply. */
  4594. char gethostbyname ();
  4595. int
  4596. main ()
  4597. {
  4598. gethostbyname ();
  4599. ;
  4600. return 0;
  4601. }
  4602. _ACEOF
  4603. rm -f conftest.$ac_objext conftest$ac_exeext
  4604. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4605. (eval $ac_link) 2>conftest.er1
  4606. ac_status=$?
  4607. grep -v '^ *+' conftest.er1 >conftest.err
  4608. rm -f conftest.er1
  4609. cat conftest.err >&5
  4610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4611. (exit $ac_status); } &&
  4612. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4614. (eval $ac_try) 2>&5
  4615. ac_status=$?
  4616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4617. (exit $ac_status); }; } &&
  4618. { ac_try='test -s conftest$ac_exeext'
  4619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4620. (eval $ac_try) 2>&5
  4621. ac_status=$?
  4622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4623. (exit $ac_status); }; }; then
  4624. ac_cv_lib_dns_gethostbyname=yes
  4625. else
  4626. echo "$as_me: failed program was:" >&5
  4627. sed 's/^/| /' conftest.$ac_ext >&5
  4628. ac_cv_lib_dns_gethostbyname=no
  4629. fi
  4630. rm -f conftest.err conftest.$ac_objext \
  4631. conftest$ac_exeext conftest.$ac_ext
  4632. LIBS=$ac_check_lib_save_LIBS
  4633. fi
  4634. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4635. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4636. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4637. cat >>confdefs.h <<_ACEOF
  4638. #define HAVE_LIBDNS 1
  4639. _ACEOF
  4640. LIBS="-ldns $LIBS"
  4641. fi
  4642. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4643. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4644. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4645. # This is needed for Tcl libraries compiled with thread support
  4646. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4647. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4648. # ac_cv_lib_pthread="-lpthread"], [dnl
  4649. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4650. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4651. # ac_cv_lib_pthread="-lpthread"], [dnl
  4652. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4653. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4654. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4655. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4656. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4657. # ac_cv_lib_pthread=""],
  4658. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4659. # Checks for header files
  4660. ac_header_dirent=no
  4661. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4662. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4663. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4664. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4665. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4666. echo $ECHO_N "(cached) $ECHO_C" >&6
  4667. else
  4668. cat >conftest.$ac_ext <<_ACEOF
  4669. /* confdefs.h. */
  4670. _ACEOF
  4671. cat confdefs.h >>conftest.$ac_ext
  4672. cat >>conftest.$ac_ext <<_ACEOF
  4673. /* end confdefs.h. */
  4674. #include <sys/types.h>
  4675. #include <$ac_hdr>
  4676. int
  4677. main ()
  4678. {
  4679. if ((DIR *) 0)
  4680. return 0;
  4681. ;
  4682. return 0;
  4683. }
  4684. _ACEOF
  4685. rm -f conftest.$ac_objext
  4686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4687. (eval $ac_compile) 2>conftest.er1
  4688. ac_status=$?
  4689. grep -v '^ *+' conftest.er1 >conftest.err
  4690. rm -f conftest.er1
  4691. cat conftest.err >&5
  4692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4693. (exit $ac_status); } &&
  4694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4696. (eval $ac_try) 2>&5
  4697. ac_status=$?
  4698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4699. (exit $ac_status); }; } &&
  4700. { ac_try='test -s conftest.$ac_objext'
  4701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4702. (eval $ac_try) 2>&5
  4703. ac_status=$?
  4704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4705. (exit $ac_status); }; }; then
  4706. eval "$as_ac_Header=yes"
  4707. else
  4708. echo "$as_me: failed program was:" >&5
  4709. sed 's/^/| /' conftest.$ac_ext >&5
  4710. eval "$as_ac_Header=no"
  4711. fi
  4712. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4713. fi
  4714. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4715. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4716. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4717. cat >>confdefs.h <<_ACEOF
  4718. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4719. _ACEOF
  4720. ac_header_dirent=$ac_hdr; break
  4721. fi
  4722. done
  4723. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4724. if test $ac_header_dirent = dirent.h; then
  4725. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4726. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4727. if test "${ac_cv_search_opendir+set}" = set; then
  4728. echo $ECHO_N "(cached) $ECHO_C" >&6
  4729. else
  4730. ac_func_search_save_LIBS=$LIBS
  4731. ac_cv_search_opendir=no
  4732. cat >conftest.$ac_ext <<_ACEOF
  4733. /* confdefs.h. */
  4734. _ACEOF
  4735. cat confdefs.h >>conftest.$ac_ext
  4736. cat >>conftest.$ac_ext <<_ACEOF
  4737. /* end confdefs.h. */
  4738. /* Override any gcc2 internal prototype to avoid an error. */
  4739. #ifdef __cplusplus
  4740. extern "C"
  4741. #endif
  4742. /* We use char because int might match the return type of a gcc2
  4743. builtin and then its argument prototype would still apply. */
  4744. char opendir ();
  4745. int
  4746. main ()
  4747. {
  4748. opendir ();
  4749. ;
  4750. return 0;
  4751. }
  4752. _ACEOF
  4753. rm -f conftest.$ac_objext conftest$ac_exeext
  4754. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4755. (eval $ac_link) 2>conftest.er1
  4756. ac_status=$?
  4757. grep -v '^ *+' conftest.er1 >conftest.err
  4758. rm -f conftest.er1
  4759. cat conftest.err >&5
  4760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4761. (exit $ac_status); } &&
  4762. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4764. (eval $ac_try) 2>&5
  4765. ac_status=$?
  4766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4767. (exit $ac_status); }; } &&
  4768. { ac_try='test -s conftest$ac_exeext'
  4769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4770. (eval $ac_try) 2>&5
  4771. ac_status=$?
  4772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4773. (exit $ac_status); }; }; then
  4774. ac_cv_search_opendir="none required"
  4775. else
  4776. echo "$as_me: failed program was:" >&5
  4777. sed 's/^/| /' conftest.$ac_ext >&5
  4778. fi
  4779. rm -f conftest.err conftest.$ac_objext \
  4780. conftest$ac_exeext conftest.$ac_ext
  4781. if test "$ac_cv_search_opendir" = no; then
  4782. for ac_lib in dir; do
  4783. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4784. cat >conftest.$ac_ext <<_ACEOF
  4785. /* confdefs.h. */
  4786. _ACEOF
  4787. cat confdefs.h >>conftest.$ac_ext
  4788. cat >>conftest.$ac_ext <<_ACEOF
  4789. /* end confdefs.h. */
  4790. /* Override any gcc2 internal prototype to avoid an error. */
  4791. #ifdef __cplusplus
  4792. extern "C"
  4793. #endif
  4794. /* We use char because int might match the return type of a gcc2
  4795. builtin and then its argument prototype would still apply. */
  4796. char opendir ();
  4797. int
  4798. main ()
  4799. {
  4800. opendir ();
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. rm -f conftest.$ac_objext conftest$ac_exeext
  4806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4807. (eval $ac_link) 2>conftest.er1
  4808. ac_status=$?
  4809. grep -v '^ *+' conftest.er1 >conftest.err
  4810. rm -f conftest.er1
  4811. cat conftest.err >&5
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); } &&
  4814. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4816. (eval $ac_try) 2>&5
  4817. ac_status=$?
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); }; } &&
  4820. { ac_try='test -s conftest$ac_exeext'
  4821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4822. (eval $ac_try) 2>&5
  4823. ac_status=$?
  4824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4825. (exit $ac_status); }; }; then
  4826. ac_cv_search_opendir="-l$ac_lib"
  4827. break
  4828. else
  4829. echo "$as_me: failed program was:" >&5
  4830. sed 's/^/| /' conftest.$ac_ext >&5
  4831. fi
  4832. rm -f conftest.err conftest.$ac_objext \
  4833. conftest$ac_exeext conftest.$ac_ext
  4834. done
  4835. fi
  4836. LIBS=$ac_func_search_save_LIBS
  4837. fi
  4838. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4839. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4840. if test "$ac_cv_search_opendir" != no; then
  4841. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4842. fi
  4843. else
  4844. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4845. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4846. if test "${ac_cv_search_opendir+set}" = set; then
  4847. echo $ECHO_N "(cached) $ECHO_C" >&6
  4848. else
  4849. ac_func_search_save_LIBS=$LIBS
  4850. ac_cv_search_opendir=no
  4851. cat >conftest.$ac_ext <<_ACEOF
  4852. /* confdefs.h. */
  4853. _ACEOF
  4854. cat confdefs.h >>conftest.$ac_ext
  4855. cat >>conftest.$ac_ext <<_ACEOF
  4856. /* end confdefs.h. */
  4857. /* Override any gcc2 internal prototype to avoid an error. */
  4858. #ifdef __cplusplus
  4859. extern "C"
  4860. #endif
  4861. /* We use char because int might match the return type of a gcc2
  4862. builtin and then its argument prototype would still apply. */
  4863. char opendir ();
  4864. int
  4865. main ()
  4866. {
  4867. opendir ();
  4868. ;
  4869. return 0;
  4870. }
  4871. _ACEOF
  4872. rm -f conftest.$ac_objext conftest$ac_exeext
  4873. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4874. (eval $ac_link) 2>conftest.er1
  4875. ac_status=$?
  4876. grep -v '^ *+' conftest.er1 >conftest.err
  4877. rm -f conftest.er1
  4878. cat conftest.err >&5
  4879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4880. (exit $ac_status); } &&
  4881. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4883. (eval $ac_try) 2>&5
  4884. ac_status=$?
  4885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4886. (exit $ac_status); }; } &&
  4887. { ac_try='test -s conftest$ac_exeext'
  4888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4889. (eval $ac_try) 2>&5
  4890. ac_status=$?
  4891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4892. (exit $ac_status); }; }; then
  4893. ac_cv_search_opendir="none required"
  4894. else
  4895. echo "$as_me: failed program was:" >&5
  4896. sed 's/^/| /' conftest.$ac_ext >&5
  4897. fi
  4898. rm -f conftest.err conftest.$ac_objext \
  4899. conftest$ac_exeext conftest.$ac_ext
  4900. if test "$ac_cv_search_opendir" = no; then
  4901. for ac_lib in x; do
  4902. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4903. cat >conftest.$ac_ext <<_ACEOF
  4904. /* confdefs.h. */
  4905. _ACEOF
  4906. cat confdefs.h >>conftest.$ac_ext
  4907. cat >>conftest.$ac_ext <<_ACEOF
  4908. /* end confdefs.h. */
  4909. /* Override any gcc2 internal prototype to avoid an error. */
  4910. #ifdef __cplusplus
  4911. extern "C"
  4912. #endif
  4913. /* We use char because int might match the return type of a gcc2
  4914. builtin and then its argument prototype would still apply. */
  4915. char opendir ();
  4916. int
  4917. main ()
  4918. {
  4919. opendir ();
  4920. ;
  4921. return 0;
  4922. }
  4923. _ACEOF
  4924. rm -f conftest.$ac_objext conftest$ac_exeext
  4925. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4926. (eval $ac_link) 2>conftest.er1
  4927. ac_status=$?
  4928. grep -v '^ *+' conftest.er1 >conftest.err
  4929. rm -f conftest.er1
  4930. cat conftest.err >&5
  4931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4932. (exit $ac_status); } &&
  4933. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4935. (eval $ac_try) 2>&5
  4936. ac_status=$?
  4937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4938. (exit $ac_status); }; } &&
  4939. { ac_try='test -s conftest$ac_exeext'
  4940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4941. (eval $ac_try) 2>&5
  4942. ac_status=$?
  4943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4944. (exit $ac_status); }; }; then
  4945. ac_cv_search_opendir="-l$ac_lib"
  4946. break
  4947. else
  4948. echo "$as_me: failed program was:" >&5
  4949. sed 's/^/| /' conftest.$ac_ext >&5
  4950. fi
  4951. rm -f conftest.err conftest.$ac_objext \
  4952. conftest$ac_exeext conftest.$ac_ext
  4953. done
  4954. fi
  4955. LIBS=$ac_func_search_save_LIBS
  4956. fi
  4957. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4958. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4959. if test "$ac_cv_search_opendir" != no; then
  4960. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4961. fi
  4962. fi
  4963. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4964. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4965. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4966. echo $ECHO_N "(cached) $ECHO_C" >&6
  4967. else
  4968. cat >conftest.$ac_ext <<_ACEOF
  4969. /* confdefs.h. */
  4970. _ACEOF
  4971. cat confdefs.h >>conftest.$ac_ext
  4972. cat >>conftest.$ac_ext <<_ACEOF
  4973. /* end confdefs.h. */
  4974. #include <sys/types.h>
  4975. #include <sys/wait.h>
  4976. #ifndef WEXITSTATUS
  4977. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4978. #endif
  4979. #ifndef WIFEXITED
  4980. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4981. #endif
  4982. int
  4983. main ()
  4984. {
  4985. int s;
  4986. wait (&s);
  4987. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4988. ;
  4989. return 0;
  4990. }
  4991. _ACEOF
  4992. rm -f conftest.$ac_objext
  4993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4994. (eval $ac_compile) 2>conftest.er1
  4995. ac_status=$?
  4996. grep -v '^ *+' conftest.er1 >conftest.err
  4997. rm -f conftest.er1
  4998. cat conftest.err >&5
  4999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5000. (exit $ac_status); } &&
  5001. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5003. (eval $ac_try) 2>&5
  5004. ac_status=$?
  5005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5006. (exit $ac_status); }; } &&
  5007. { ac_try='test -s conftest.$ac_objext'
  5008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5009. (eval $ac_try) 2>&5
  5010. ac_status=$?
  5011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5012. (exit $ac_status); }; }; then
  5013. ac_cv_header_sys_wait_h=yes
  5014. else
  5015. echo "$as_me: failed program was:" >&5
  5016. sed 's/^/| /' conftest.$ac_ext >&5
  5017. ac_cv_header_sys_wait_h=no
  5018. fi
  5019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5020. fi
  5021. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5022. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5023. if test $ac_cv_header_sys_wait_h = yes; then
  5024. cat >>confdefs.h <<\_ACEOF
  5025. #define HAVE_SYS_WAIT_H 1
  5026. _ACEOF
  5027. fi
  5028. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5029. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5030. if test "${ac_cv_header_time+set}" = set; then
  5031. echo $ECHO_N "(cached) $ECHO_C" >&6
  5032. else
  5033. cat >conftest.$ac_ext <<_ACEOF
  5034. /* confdefs.h. */
  5035. _ACEOF
  5036. cat confdefs.h >>conftest.$ac_ext
  5037. cat >>conftest.$ac_ext <<_ACEOF
  5038. /* end confdefs.h. */
  5039. #include <sys/types.h>
  5040. #include <sys/time.h>
  5041. #include <time.h>
  5042. int
  5043. main ()
  5044. {
  5045. if ((struct tm *) 0)
  5046. return 0;
  5047. ;
  5048. return 0;
  5049. }
  5050. _ACEOF
  5051. rm -f conftest.$ac_objext
  5052. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5053. (eval $ac_compile) 2>conftest.er1
  5054. ac_status=$?
  5055. grep -v '^ *+' conftest.er1 >conftest.err
  5056. rm -f conftest.er1
  5057. cat conftest.err >&5
  5058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5059. (exit $ac_status); } &&
  5060. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5062. (eval $ac_try) 2>&5
  5063. ac_status=$?
  5064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5065. (exit $ac_status); }; } &&
  5066. { ac_try='test -s conftest.$ac_objext'
  5067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5068. (eval $ac_try) 2>&5
  5069. ac_status=$?
  5070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5071. (exit $ac_status); }; }; then
  5072. ac_cv_header_time=yes
  5073. else
  5074. echo "$as_me: failed program was:" >&5
  5075. sed 's/^/| /' conftest.$ac_ext >&5
  5076. ac_cv_header_time=no
  5077. fi
  5078. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5079. fi
  5080. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5081. echo "${ECHO_T}$ac_cv_header_time" >&6
  5082. if test $ac_cv_header_time = yes; then
  5083. cat >>confdefs.h <<\_ACEOF
  5084. #define TIME_WITH_SYS_TIME 1
  5085. _ACEOF
  5086. fi
  5087. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5088. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5089. if test "${ac_cv_header_stat_broken+set}" = set; then
  5090. echo $ECHO_N "(cached) $ECHO_C" >&6
  5091. else
  5092. cat >conftest.$ac_ext <<_ACEOF
  5093. /* confdefs.h. */
  5094. _ACEOF
  5095. cat confdefs.h >>conftest.$ac_ext
  5096. cat >>conftest.$ac_ext <<_ACEOF
  5097. /* end confdefs.h. */
  5098. #include <sys/types.h>
  5099. #include <sys/stat.h>
  5100. #if defined(S_ISBLK) && defined(S_IFDIR)
  5101. # if S_ISBLK (S_IFDIR)
  5102. You lose.
  5103. # endif
  5104. #endif
  5105. #if defined(S_ISBLK) && defined(S_IFCHR)
  5106. # if S_ISBLK (S_IFCHR)
  5107. You lose.
  5108. # endif
  5109. #endif
  5110. #if defined(S_ISLNK) && defined(S_IFREG)
  5111. # if S_ISLNK (S_IFREG)
  5112. You lose.
  5113. # endif
  5114. #endif
  5115. #if defined(S_ISSOCK) && defined(S_IFREG)
  5116. # if S_ISSOCK (S_IFREG)
  5117. You lose.
  5118. # endif
  5119. #endif
  5120. _ACEOF
  5121. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5122. $EGREP "You lose" >/dev/null 2>&1; then
  5123. ac_cv_header_stat_broken=yes
  5124. else
  5125. ac_cv_header_stat_broken=no
  5126. fi
  5127. rm -f conftest*
  5128. fi
  5129. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5130. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5131. if test $ac_cv_header_stat_broken = yes; then
  5132. cat >>confdefs.h <<\_ACEOF
  5133. #define STAT_MACROS_BROKEN 1
  5134. _ACEOF
  5135. fi
  5136. #checkpoint
  5137. cat >confcache <<\_ACEOF
  5138. # This file is a shell script that caches the results of configure
  5139. # tests run on this system so they can be shared between configure
  5140. # scripts and configure runs, see configure's option --config-cache.
  5141. # It is not useful on other systems. If it contains results you don't
  5142. # want to keep, you may remove or edit it.
  5143. #
  5144. # config.status only pays attention to the cache file if you give it
  5145. # the --recheck option to rerun configure.
  5146. #
  5147. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5148. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5149. # following values.
  5150. _ACEOF
  5151. # The following way of writing the cache mishandles newlines in values,
  5152. # but we know of no workaround that is simple, portable, and efficient.
  5153. # So, don't put newlines in cache variables' values.
  5154. # Ultrix sh set writes to stderr and can't be redirected directly,
  5155. # and sets the high bit in the cache file unless we assign to the vars.
  5156. {
  5157. (set) 2>&1 |
  5158. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5159. *ac_space=\ *)
  5160. # `set' does not quote correctly, so add quotes (double-quote
  5161. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5162. sed -n \
  5163. "s/'/'\\\\''/g;
  5164. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5165. ;;
  5166. *)
  5167. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5168. sed -n \
  5169. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5170. ;;
  5171. esac;
  5172. } |
  5173. sed '
  5174. t clear
  5175. : clear
  5176. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5177. t end
  5178. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5179. : end' >>confcache
  5180. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5181. if test -w $cache_file; then
  5182. test "x$cache_file" != "x/dev/null"
  5183. cat confcache >$cache_file
  5184. else
  5185. echo "not updating unwritable cache $cache_file"
  5186. fi
  5187. fi
  5188. rm -f confcache
  5189. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5190. do
  5191. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5192. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5193. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5194. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5196. echo $ECHO_N "(cached) $ECHO_C" >&6
  5197. fi
  5198. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5199. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5200. else
  5201. # Is the header compilable?
  5202. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5203. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5204. cat >conftest.$ac_ext <<_ACEOF
  5205. /* confdefs.h. */
  5206. _ACEOF
  5207. cat confdefs.h >>conftest.$ac_ext
  5208. cat >>conftest.$ac_ext <<_ACEOF
  5209. /* end confdefs.h. */
  5210. $ac_includes_default
  5211. #include <$ac_header>
  5212. _ACEOF
  5213. rm -f conftest.$ac_objext
  5214. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5215. (eval $ac_compile) 2>conftest.er1
  5216. ac_status=$?
  5217. grep -v '^ *+' conftest.er1 >conftest.err
  5218. rm -f conftest.er1
  5219. cat conftest.err >&5
  5220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5221. (exit $ac_status); } &&
  5222. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5224. (eval $ac_try) 2>&5
  5225. ac_status=$?
  5226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5227. (exit $ac_status); }; } &&
  5228. { ac_try='test -s conftest.$ac_objext'
  5229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5230. (eval $ac_try) 2>&5
  5231. ac_status=$?
  5232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5233. (exit $ac_status); }; }; then
  5234. ac_header_compiler=yes
  5235. else
  5236. echo "$as_me: failed program was:" >&5
  5237. sed 's/^/| /' conftest.$ac_ext >&5
  5238. ac_header_compiler=no
  5239. fi
  5240. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5241. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5242. echo "${ECHO_T}$ac_header_compiler" >&6
  5243. # Is the header present?
  5244. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5245. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5246. cat >conftest.$ac_ext <<_ACEOF
  5247. /* confdefs.h. */
  5248. _ACEOF
  5249. cat confdefs.h >>conftest.$ac_ext
  5250. cat >>conftest.$ac_ext <<_ACEOF
  5251. /* end confdefs.h. */
  5252. #include <$ac_header>
  5253. _ACEOF
  5254. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5255. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5256. ac_status=$?
  5257. grep -v '^ *+' conftest.er1 >conftest.err
  5258. rm -f conftest.er1
  5259. cat conftest.err >&5
  5260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5261. (exit $ac_status); } >/dev/null; then
  5262. if test -s conftest.err; then
  5263. ac_cpp_err=$ac_c_preproc_warn_flag
  5264. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5265. else
  5266. ac_cpp_err=
  5267. fi
  5268. else
  5269. ac_cpp_err=yes
  5270. fi
  5271. if test -z "$ac_cpp_err"; then
  5272. ac_header_preproc=yes
  5273. else
  5274. echo "$as_me: failed program was:" >&5
  5275. sed 's/^/| /' conftest.$ac_ext >&5
  5276. ac_header_preproc=no
  5277. fi
  5278. rm -f conftest.err conftest.$ac_ext
  5279. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5280. echo "${ECHO_T}$ac_header_preproc" >&6
  5281. # So? What about this header?
  5282. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5283. yes:no: )
  5284. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5285. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5286. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5287. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5288. ac_header_preproc=yes
  5289. ;;
  5290. no:yes:* )
  5291. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5292. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5293. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5294. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5295. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5296. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5297. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5298. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5299. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5300. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5301. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5302. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5303. (
  5304. cat <<\_ASBOX
  5305. ## ------------------------------------------ ##
  5306. ## Report this to the AC_PACKAGE_NAME lists. ##
  5307. ## ------------------------------------------ ##
  5308. _ASBOX
  5309. ) |
  5310. sed "s/^/$as_me: WARNING: /" >&2
  5311. ;;
  5312. esac
  5313. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5314. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5315. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5316. echo $ECHO_N "(cached) $ECHO_C" >&6
  5317. else
  5318. eval "$as_ac_Header=\$ac_header_preproc"
  5319. fi
  5320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5321. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5322. fi
  5323. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5324. cat >>confdefs.h <<_ACEOF
  5325. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5326. _ACEOF
  5327. fi
  5328. done
  5329. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5330. do
  5331. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5332. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5333. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5334. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5335. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5336. echo $ECHO_N "(cached) $ECHO_C" >&6
  5337. fi
  5338. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5339. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5340. else
  5341. # Is the header compilable?
  5342. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5343. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5344. cat >conftest.$ac_ext <<_ACEOF
  5345. /* confdefs.h. */
  5346. _ACEOF
  5347. cat confdefs.h >>conftest.$ac_ext
  5348. cat >>conftest.$ac_ext <<_ACEOF
  5349. /* end confdefs.h. */
  5350. $ac_includes_default
  5351. #include <$ac_header>
  5352. _ACEOF
  5353. rm -f conftest.$ac_objext
  5354. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5355. (eval $ac_compile) 2>conftest.er1
  5356. ac_status=$?
  5357. grep -v '^ *+' conftest.er1 >conftest.err
  5358. rm -f conftest.er1
  5359. cat conftest.err >&5
  5360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5361. (exit $ac_status); } &&
  5362. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  5368. { ac_try='test -s conftest.$ac_objext'
  5369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5370. (eval $ac_try) 2>&5
  5371. ac_status=$?
  5372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5373. (exit $ac_status); }; }; then
  5374. ac_header_compiler=yes
  5375. else
  5376. echo "$as_me: failed program was:" >&5
  5377. sed 's/^/| /' conftest.$ac_ext >&5
  5378. ac_header_compiler=no
  5379. fi
  5380. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5381. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5382. echo "${ECHO_T}$ac_header_compiler" >&6
  5383. # Is the header present?
  5384. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5385. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5386. cat >conftest.$ac_ext <<_ACEOF
  5387. /* confdefs.h. */
  5388. _ACEOF
  5389. cat confdefs.h >>conftest.$ac_ext
  5390. cat >>conftest.$ac_ext <<_ACEOF
  5391. /* end confdefs.h. */
  5392. #include <$ac_header>
  5393. _ACEOF
  5394. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5395. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5396. ac_status=$?
  5397. grep -v '^ *+' conftest.er1 >conftest.err
  5398. rm -f conftest.er1
  5399. cat conftest.err >&5
  5400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5401. (exit $ac_status); } >/dev/null; then
  5402. if test -s conftest.err; then
  5403. ac_cpp_err=$ac_c_preproc_warn_flag
  5404. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5405. else
  5406. ac_cpp_err=
  5407. fi
  5408. else
  5409. ac_cpp_err=yes
  5410. fi
  5411. if test -z "$ac_cpp_err"; then
  5412. ac_header_preproc=yes
  5413. else
  5414. echo "$as_me: failed program was:" >&5
  5415. sed 's/^/| /' conftest.$ac_ext >&5
  5416. ac_header_preproc=no
  5417. fi
  5418. rm -f conftest.err conftest.$ac_ext
  5419. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5420. echo "${ECHO_T}$ac_header_preproc" >&6
  5421. # So? What about this header?
  5422. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5423. yes:no: )
  5424. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5425. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5426. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5427. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5428. ac_header_preproc=yes
  5429. ;;
  5430. no:yes:* )
  5431. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5432. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5433. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5434. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5435. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5436. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5437. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5438. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5439. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5440. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5441. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5442. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5443. (
  5444. cat <<\_ASBOX
  5445. ## ------------------------------------------ ##
  5446. ## Report this to the AC_PACKAGE_NAME lists. ##
  5447. ## ------------------------------------------ ##
  5448. _ASBOX
  5449. ) |
  5450. sed "s/^/$as_me: WARNING: /" >&2
  5451. ;;
  5452. esac
  5453. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5454. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5455. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5456. echo $ECHO_N "(cached) $ECHO_C" >&6
  5457. else
  5458. eval "$as_ac_Header=\$ac_header_preproc"
  5459. fi
  5460. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5461. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5462. fi
  5463. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5464. cat >>confdefs.h <<_ACEOF
  5465. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5466. _ACEOF
  5467. fi
  5468. done
  5469. #checkpoint
  5470. cat >confcache <<\_ACEOF
  5471. # This file is a shell script that caches the results of configure
  5472. # tests run on this system so they can be shared between configure
  5473. # scripts and configure runs, see configure's option --config-cache.
  5474. # It is not useful on other systems. If it contains results you don't
  5475. # want to keep, you may remove or edit it.
  5476. #
  5477. # config.status only pays attention to the cache file if you give it
  5478. # the --recheck option to rerun configure.
  5479. #
  5480. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5481. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5482. # following values.
  5483. _ACEOF
  5484. # The following way of writing the cache mishandles newlines in values,
  5485. # but we know of no workaround that is simple, portable, and efficient.
  5486. # So, don't put newlines in cache variables' values.
  5487. # Ultrix sh set writes to stderr and can't be redirected directly,
  5488. # and sets the high bit in the cache file unless we assign to the vars.
  5489. {
  5490. (set) 2>&1 |
  5491. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5492. *ac_space=\ *)
  5493. # `set' does not quote correctly, so add quotes (double-quote
  5494. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5495. sed -n \
  5496. "s/'/'\\\\''/g;
  5497. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5498. ;;
  5499. *)
  5500. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5501. sed -n \
  5502. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5503. ;;
  5504. esac;
  5505. } |
  5506. sed '
  5507. t clear
  5508. : clear
  5509. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5510. t end
  5511. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5512. : end' >>confcache
  5513. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5514. if test -w $cache_file; then
  5515. test "x$cache_file" != "x/dev/null"
  5516. cat confcache >$cache_file
  5517. else
  5518. echo "not updating unwritable cache $cache_file"
  5519. fi
  5520. fi
  5521. rm -f confcache
  5522. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5523. #AC_CHECK_HEADERS(zlib.h)
  5524. #EGG_CHECK_ZLIB
  5525. #EGG_CHECK_SSL
  5526. #AC_SUBST(SSL)dnl
  5527. # Checks for typedefs, structures, and compiler characteristics
  5528. echo "$as_me:$LINENO: checking for pid_t" >&5
  5529. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5530. if test "${ac_cv_type_pid_t+set}" = set; then
  5531. echo $ECHO_N "(cached) $ECHO_C" >&6
  5532. else
  5533. cat >conftest.$ac_ext <<_ACEOF
  5534. /* confdefs.h. */
  5535. _ACEOF
  5536. cat confdefs.h >>conftest.$ac_ext
  5537. cat >>conftest.$ac_ext <<_ACEOF
  5538. /* end confdefs.h. */
  5539. $ac_includes_default
  5540. int
  5541. main ()
  5542. {
  5543. if ((pid_t *) 0)
  5544. return 0;
  5545. if (sizeof (pid_t))
  5546. return 0;
  5547. ;
  5548. return 0;
  5549. }
  5550. _ACEOF
  5551. rm -f conftest.$ac_objext
  5552. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5553. (eval $ac_compile) 2>conftest.er1
  5554. ac_status=$?
  5555. grep -v '^ *+' conftest.er1 >conftest.err
  5556. rm -f conftest.er1
  5557. cat conftest.err >&5
  5558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5559. (exit $ac_status); } &&
  5560. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5562. (eval $ac_try) 2>&5
  5563. ac_status=$?
  5564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5565. (exit $ac_status); }; } &&
  5566. { ac_try='test -s conftest.$ac_objext'
  5567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5568. (eval $ac_try) 2>&5
  5569. ac_status=$?
  5570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5571. (exit $ac_status); }; }; then
  5572. ac_cv_type_pid_t=yes
  5573. else
  5574. echo "$as_me: failed program was:" >&5
  5575. sed 's/^/| /' conftest.$ac_ext >&5
  5576. ac_cv_type_pid_t=no
  5577. fi
  5578. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5579. fi
  5580. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5581. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5582. if test $ac_cv_type_pid_t = yes; then
  5583. :
  5584. else
  5585. cat >>confdefs.h <<_ACEOF
  5586. #define pid_t int
  5587. _ACEOF
  5588. fi
  5589. echo "$as_me:$LINENO: checking for size_t" >&5
  5590. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5591. if test "${ac_cv_type_size_t+set}" = set; then
  5592. echo $ECHO_N "(cached) $ECHO_C" >&6
  5593. else
  5594. cat >conftest.$ac_ext <<_ACEOF
  5595. /* confdefs.h. */
  5596. _ACEOF
  5597. cat confdefs.h >>conftest.$ac_ext
  5598. cat >>conftest.$ac_ext <<_ACEOF
  5599. /* end confdefs.h. */
  5600. $ac_includes_default
  5601. int
  5602. main ()
  5603. {
  5604. if ((size_t *) 0)
  5605. return 0;
  5606. if (sizeof (size_t))
  5607. return 0;
  5608. ;
  5609. return 0;
  5610. }
  5611. _ACEOF
  5612. rm -f conftest.$ac_objext
  5613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5614. (eval $ac_compile) 2>conftest.er1
  5615. ac_status=$?
  5616. grep -v '^ *+' conftest.er1 >conftest.err
  5617. rm -f conftest.er1
  5618. cat conftest.err >&5
  5619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5620. (exit $ac_status); } &&
  5621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5623. (eval $ac_try) 2>&5
  5624. ac_status=$?
  5625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5626. (exit $ac_status); }; } &&
  5627. { ac_try='test -s conftest.$ac_objext'
  5628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5629. (eval $ac_try) 2>&5
  5630. ac_status=$?
  5631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5632. (exit $ac_status); }; }; then
  5633. ac_cv_type_size_t=yes
  5634. else
  5635. echo "$as_me: failed program was:" >&5
  5636. sed 's/^/| /' conftest.$ac_ext >&5
  5637. ac_cv_type_size_t=no
  5638. fi
  5639. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5640. fi
  5641. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5642. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5643. if test $ac_cv_type_size_t = yes; then
  5644. :
  5645. else
  5646. cat >>confdefs.h <<_ACEOF
  5647. #define size_t unsigned
  5648. _ACEOF
  5649. fi
  5650. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5651. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5652. if test "${ac_cv_type_uid_t+set}" = set; then
  5653. echo $ECHO_N "(cached) $ECHO_C" >&6
  5654. else
  5655. cat >conftest.$ac_ext <<_ACEOF
  5656. /* confdefs.h. */
  5657. _ACEOF
  5658. cat confdefs.h >>conftest.$ac_ext
  5659. cat >>conftest.$ac_ext <<_ACEOF
  5660. /* end confdefs.h. */
  5661. #include <sys/types.h>
  5662. _ACEOF
  5663. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5664. $EGREP "uid_t" >/dev/null 2>&1; then
  5665. ac_cv_type_uid_t=yes
  5666. else
  5667. ac_cv_type_uid_t=no
  5668. fi
  5669. rm -f conftest*
  5670. fi
  5671. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5672. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5673. if test $ac_cv_type_uid_t = no; then
  5674. cat >>confdefs.h <<\_ACEOF
  5675. #define uid_t int
  5676. _ACEOF
  5677. cat >>confdefs.h <<\_ACEOF
  5678. #define gid_t int
  5679. _ACEOF
  5680. fi
  5681. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5682. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5683. if test "${ac_cv_c_const+set}" = set; then
  5684. echo $ECHO_N "(cached) $ECHO_C" >&6
  5685. else
  5686. cat >conftest.$ac_ext <<_ACEOF
  5687. /* confdefs.h. */
  5688. _ACEOF
  5689. cat confdefs.h >>conftest.$ac_ext
  5690. cat >>conftest.$ac_ext <<_ACEOF
  5691. /* end confdefs.h. */
  5692. int
  5693. main ()
  5694. {
  5695. /* FIXME: Include the comments suggested by Paul. */
  5696. #ifndef __cplusplus
  5697. /* Ultrix mips cc rejects this. */
  5698. typedef int charset[2];
  5699. const charset x;
  5700. /* SunOS 4.1.1 cc rejects this. */
  5701. char const *const *ccp;
  5702. char **p;
  5703. /* NEC SVR4.0.2 mips cc rejects this. */
  5704. struct point {int x, y;};
  5705. static struct point const zero = {0,0};
  5706. /* AIX XL C 1.02.0.0 rejects this.
  5707. It does not let you subtract one const X* pointer from another in
  5708. an arm of an if-expression whose if-part is not a constant
  5709. expression */
  5710. const char *g = "string";
  5711. ccp = &g + (g ? g-g : 0);
  5712. /* HPUX 7.0 cc rejects these. */
  5713. ++ccp;
  5714. p = (char**) ccp;
  5715. ccp = (char const *const *) p;
  5716. { /* SCO 3.2v4 cc rejects this. */
  5717. char *t;
  5718. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5719. *t++ = 0;
  5720. }
  5721. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5722. int x[] = {25, 17};
  5723. const int *foo = &x[0];
  5724. ++foo;
  5725. }
  5726. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5727. typedef const int *iptr;
  5728. iptr p = 0;
  5729. ++p;
  5730. }
  5731. { /* AIX XL C 1.02.0.0 rejects this saying
  5732. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5733. struct s { int j; const int *ap[3]; };
  5734. struct s *b; b->j = 5;
  5735. }
  5736. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5737. const int foo = 10;
  5738. }
  5739. #endif
  5740. ;
  5741. return 0;
  5742. }
  5743. _ACEOF
  5744. rm -f conftest.$ac_objext
  5745. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5746. (eval $ac_compile) 2>conftest.er1
  5747. ac_status=$?
  5748. grep -v '^ *+' conftest.er1 >conftest.err
  5749. rm -f conftest.er1
  5750. cat conftest.err >&5
  5751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5752. (exit $ac_status); } &&
  5753. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5755. (eval $ac_try) 2>&5
  5756. ac_status=$?
  5757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5758. (exit $ac_status); }; } &&
  5759. { ac_try='test -s conftest.$ac_objext'
  5760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5761. (eval $ac_try) 2>&5
  5762. ac_status=$?
  5763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5764. (exit $ac_status); }; }; then
  5765. ac_cv_c_const=yes
  5766. else
  5767. echo "$as_me: failed program was:" >&5
  5768. sed 's/^/| /' conftest.$ac_ext >&5
  5769. ac_cv_c_const=no
  5770. fi
  5771. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5772. fi
  5773. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5774. echo "${ECHO_T}$ac_cv_c_const" >&6
  5775. if test $ac_cv_c_const = no; then
  5776. cat >>confdefs.h <<\_ACEOF
  5777. #define const
  5778. _ACEOF
  5779. fi
  5780. echo "$as_me:$LINENO: checking for working volatile" >&5
  5781. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5782. if test "${ac_cv_c_volatile+set}" = set; then
  5783. echo $ECHO_N "(cached) $ECHO_C" >&6
  5784. else
  5785. cat >conftest.$ac_ext <<_ACEOF
  5786. /* confdefs.h. */
  5787. _ACEOF
  5788. cat confdefs.h >>conftest.$ac_ext
  5789. cat >>conftest.$ac_ext <<_ACEOF
  5790. /* end confdefs.h. */
  5791. int
  5792. main ()
  5793. {
  5794. volatile int x;
  5795. int * volatile y;
  5796. ;
  5797. return 0;
  5798. }
  5799. _ACEOF
  5800. rm -f conftest.$ac_objext
  5801. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5802. (eval $ac_compile) 2>conftest.er1
  5803. ac_status=$?
  5804. grep -v '^ *+' conftest.er1 >conftest.err
  5805. rm -f conftest.er1
  5806. cat conftest.err >&5
  5807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5808. (exit $ac_status); } &&
  5809. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5811. (eval $ac_try) 2>&5
  5812. ac_status=$?
  5813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5814. (exit $ac_status); }; } &&
  5815. { ac_try='test -s conftest.$ac_objext'
  5816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5817. (eval $ac_try) 2>&5
  5818. ac_status=$?
  5819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. (exit $ac_status); }; }; then
  5821. ac_cv_c_volatile=yes
  5822. else
  5823. echo "$as_me: failed program was:" >&5
  5824. sed 's/^/| /' conftest.$ac_ext >&5
  5825. ac_cv_c_volatile=no
  5826. fi
  5827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5828. fi
  5829. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5830. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5831. if test $ac_cv_c_volatile = no; then
  5832. cat >>confdefs.h <<\_ACEOF
  5833. #define volatile
  5834. _ACEOF
  5835. fi
  5836. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5837. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5838. if test "${ac_cv_c_bigendian+set}" = set; then
  5839. echo $ECHO_N "(cached) $ECHO_C" >&6
  5840. else
  5841. # See if sys/param.h defines the BYTE_ORDER macro.
  5842. cat >conftest.$ac_ext <<_ACEOF
  5843. /* confdefs.h. */
  5844. _ACEOF
  5845. cat confdefs.h >>conftest.$ac_ext
  5846. cat >>conftest.$ac_ext <<_ACEOF
  5847. /* end confdefs.h. */
  5848. #include <sys/types.h>
  5849. #include <sys/param.h>
  5850. int
  5851. main ()
  5852. {
  5853. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5854. bogus endian macros
  5855. #endif
  5856. ;
  5857. return 0;
  5858. }
  5859. _ACEOF
  5860. rm -f conftest.$ac_objext
  5861. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5862. (eval $ac_compile) 2>conftest.er1
  5863. ac_status=$?
  5864. grep -v '^ *+' conftest.er1 >conftest.err
  5865. rm -f conftest.er1
  5866. cat conftest.err >&5
  5867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5868. (exit $ac_status); } &&
  5869. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5871. (eval $ac_try) 2>&5
  5872. ac_status=$?
  5873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5874. (exit $ac_status); }; } &&
  5875. { ac_try='test -s conftest.$ac_objext'
  5876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5877. (eval $ac_try) 2>&5
  5878. ac_status=$?
  5879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5880. (exit $ac_status); }; }; then
  5881. # It does; now see whether it defined to BIG_ENDIAN or not.
  5882. cat >conftest.$ac_ext <<_ACEOF
  5883. /* confdefs.h. */
  5884. _ACEOF
  5885. cat confdefs.h >>conftest.$ac_ext
  5886. cat >>conftest.$ac_ext <<_ACEOF
  5887. /* end confdefs.h. */
  5888. #include <sys/types.h>
  5889. #include <sys/param.h>
  5890. int
  5891. main ()
  5892. {
  5893. #if BYTE_ORDER != BIG_ENDIAN
  5894. not big endian
  5895. #endif
  5896. ;
  5897. return 0;
  5898. }
  5899. _ACEOF
  5900. rm -f conftest.$ac_objext
  5901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5902. (eval $ac_compile) 2>conftest.er1
  5903. ac_status=$?
  5904. grep -v '^ *+' conftest.er1 >conftest.err
  5905. rm -f conftest.er1
  5906. cat conftest.err >&5
  5907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5908. (exit $ac_status); } &&
  5909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5911. (eval $ac_try) 2>&5
  5912. ac_status=$?
  5913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5914. (exit $ac_status); }; } &&
  5915. { ac_try='test -s conftest.$ac_objext'
  5916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5917. (eval $ac_try) 2>&5
  5918. ac_status=$?
  5919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5920. (exit $ac_status); }; }; then
  5921. ac_cv_c_bigendian=yes
  5922. else
  5923. echo "$as_me: failed program was:" >&5
  5924. sed 's/^/| /' conftest.$ac_ext >&5
  5925. ac_cv_c_bigendian=no
  5926. fi
  5927. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5928. else
  5929. echo "$as_me: failed program was:" >&5
  5930. sed 's/^/| /' conftest.$ac_ext >&5
  5931. # It does not; compile a test program.
  5932. if test "$cross_compiling" = yes; then
  5933. # try to guess the endianness by grepping values into an object file
  5934. ac_cv_c_bigendian=unknown
  5935. cat >conftest.$ac_ext <<_ACEOF
  5936. /* confdefs.h. */
  5937. _ACEOF
  5938. cat confdefs.h >>conftest.$ac_ext
  5939. cat >>conftest.$ac_ext <<_ACEOF
  5940. /* end confdefs.h. */
  5941. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5942. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5943. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5944. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5945. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5946. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5947. int
  5948. main ()
  5949. {
  5950. _ascii (); _ebcdic ();
  5951. ;
  5952. return 0;
  5953. }
  5954. _ACEOF
  5955. rm -f conftest.$ac_objext
  5956. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5957. (eval $ac_compile) 2>conftest.er1
  5958. ac_status=$?
  5959. grep -v '^ *+' conftest.er1 >conftest.err
  5960. rm -f conftest.er1
  5961. cat conftest.err >&5
  5962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5963. (exit $ac_status); } &&
  5964. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5966. (eval $ac_try) 2>&5
  5967. ac_status=$?
  5968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5969. (exit $ac_status); }; } &&
  5970. { ac_try='test -s conftest.$ac_objext'
  5971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5972. (eval $ac_try) 2>&5
  5973. ac_status=$?
  5974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5975. (exit $ac_status); }; }; then
  5976. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5977. ac_cv_c_bigendian=yes
  5978. fi
  5979. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5980. if test "$ac_cv_c_bigendian" = unknown; then
  5981. ac_cv_c_bigendian=no
  5982. else
  5983. # finding both strings is unlikely to happen, but who knows?
  5984. ac_cv_c_bigendian=unknown
  5985. fi
  5986. fi
  5987. else
  5988. echo "$as_me: failed program was:" >&5
  5989. sed 's/^/| /' conftest.$ac_ext >&5
  5990. fi
  5991. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5992. else
  5993. cat >conftest.$ac_ext <<_ACEOF
  5994. /* confdefs.h. */
  5995. _ACEOF
  5996. cat confdefs.h >>conftest.$ac_ext
  5997. cat >>conftest.$ac_ext <<_ACEOF
  5998. /* end confdefs.h. */
  5999. int
  6000. main ()
  6001. {
  6002. /* Are we little or big endian? From Harbison&Steele. */
  6003. union
  6004. {
  6005. long l;
  6006. char c[sizeof (long)];
  6007. } u;
  6008. u.l = 1;
  6009. exit (u.c[sizeof (long) - 1] == 1);
  6010. }
  6011. _ACEOF
  6012. rm -f conftest$ac_exeext
  6013. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6014. (eval $ac_link) 2>&5
  6015. ac_status=$?
  6016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6017. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6019. (eval $ac_try) 2>&5
  6020. ac_status=$?
  6021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6022. (exit $ac_status); }; }; then
  6023. ac_cv_c_bigendian=no
  6024. else
  6025. echo "$as_me: program exited with status $ac_status" >&5
  6026. echo "$as_me: failed program was:" >&5
  6027. sed 's/^/| /' conftest.$ac_ext >&5
  6028. ( exit $ac_status )
  6029. ac_cv_c_bigendian=yes
  6030. fi
  6031. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6032. fi
  6033. fi
  6034. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6035. fi
  6036. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6037. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6038. case $ac_cv_c_bigendian in
  6039. yes)
  6040. cat >>confdefs.h <<\_ACEOF
  6041. #define WORDS_BIGENDIAN 1
  6042. _ACEOF
  6043. ;;
  6044. no)
  6045. ;;
  6046. *)
  6047. { { echo "$as_me:$LINENO: error: unknown endianness
  6048. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6049. echo "$as_me: error: unknown endianness
  6050. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6051. { (exit 1); exit 1; }; } ;;
  6052. esac
  6053. echo "$as_me:$LINENO: checking for inline" >&5
  6054. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6055. if test "${ac_cv_c_inline+set}" = set; then
  6056. echo $ECHO_N "(cached) $ECHO_C" >&6
  6057. else
  6058. ac_cv_c_inline=no
  6059. for ac_kw in inline __inline__ __inline; do
  6060. cat >conftest.$ac_ext <<_ACEOF
  6061. /* confdefs.h. */
  6062. _ACEOF
  6063. cat confdefs.h >>conftest.$ac_ext
  6064. cat >>conftest.$ac_ext <<_ACEOF
  6065. /* end confdefs.h. */
  6066. #ifndef __cplusplus
  6067. typedef int foo_t;
  6068. static $ac_kw foo_t static_foo () {return 0; }
  6069. $ac_kw foo_t foo () {return 0; }
  6070. #endif
  6071. _ACEOF
  6072. rm -f conftest.$ac_objext
  6073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6074. (eval $ac_compile) 2>conftest.er1
  6075. ac_status=$?
  6076. grep -v '^ *+' conftest.er1 >conftest.err
  6077. rm -f conftest.er1
  6078. cat conftest.err >&5
  6079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6080. (exit $ac_status); } &&
  6081. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6083. (eval $ac_try) 2>&5
  6084. ac_status=$?
  6085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6086. (exit $ac_status); }; } &&
  6087. { ac_try='test -s conftest.$ac_objext'
  6088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6089. (eval $ac_try) 2>&5
  6090. ac_status=$?
  6091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6092. (exit $ac_status); }; }; then
  6093. ac_cv_c_inline=$ac_kw; break
  6094. else
  6095. echo "$as_me: failed program was:" >&5
  6096. sed 's/^/| /' conftest.$ac_ext >&5
  6097. fi
  6098. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6099. done
  6100. fi
  6101. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6102. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6103. case $ac_cv_c_inline in
  6104. inline | yes) ;;
  6105. *)
  6106. case $ac_cv_c_inline in
  6107. no) ac_val=;;
  6108. *) ac_val=$ac_cv_c_inline;;
  6109. esac
  6110. cat >>confdefs.h <<_ACEOF
  6111. #ifndef __cplusplus
  6112. #define inline $ac_val
  6113. #endif
  6114. _ACEOF
  6115. ;;
  6116. esac
  6117. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6118. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  6119. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6120. echo $ECHO_N "(cached) $ECHO_C" >&6
  6121. else
  6122. cat >conftest.$ac_ext <<_ACEOF
  6123. /* confdefs.h. */
  6124. _ACEOF
  6125. cat confdefs.h >>conftest.$ac_ext
  6126. cat >>conftest.$ac_ext <<_ACEOF
  6127. /* end confdefs.h. */
  6128. $ac_includes_default
  6129. int
  6130. main ()
  6131. {
  6132. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6133. test_array [0] = 0
  6134. ;
  6135. return 0;
  6136. }
  6137. _ACEOF
  6138. rm -f conftest.$ac_objext
  6139. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6140. (eval $ac_compile) 2>conftest.er1
  6141. ac_status=$?
  6142. grep -v '^ *+' conftest.er1 >conftest.err
  6143. rm -f conftest.er1
  6144. cat conftest.err >&5
  6145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6146. (exit $ac_status); } &&
  6147. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6149. (eval $ac_try) 2>&5
  6150. ac_status=$?
  6151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6152. (exit $ac_status); }; } &&
  6153. { ac_try='test -s conftest.$ac_objext'
  6154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6155. (eval $ac_try) 2>&5
  6156. ac_status=$?
  6157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6158. (exit $ac_status); }; }; then
  6159. ac_cv_c_char_unsigned=no
  6160. else
  6161. echo "$as_me: failed program was:" >&5
  6162. sed 's/^/| /' conftest.$ac_ext >&5
  6163. ac_cv_c_char_unsigned=yes
  6164. fi
  6165. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6166. fi
  6167. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6168. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  6169. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6170. cat >>confdefs.h <<\_ACEOF
  6171. #define __CHAR_UNSIGNED__ 1
  6172. _ACEOF
  6173. fi
  6174. echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  6175. echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
  6176. if test "${ac_cv_c_stringize+set}" = set; then
  6177. echo $ECHO_N "(cached) $ECHO_C" >&6
  6178. else
  6179. cat >conftest.$ac_ext <<_ACEOF
  6180. /* confdefs.h. */
  6181. _ACEOF
  6182. cat confdefs.h >>conftest.$ac_ext
  6183. cat >>conftest.$ac_ext <<_ACEOF
  6184. /* end confdefs.h. */
  6185. #define x(y) #y
  6186. char *s = x(teststring);
  6187. _ACEOF
  6188. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6189. $EGREP "#teststring" >/dev/null 2>&1; then
  6190. ac_cv_c_stringize=no
  6191. else
  6192. ac_cv_c_stringize=yes
  6193. fi
  6194. rm -f conftest*
  6195. fi
  6196. echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  6197. echo "${ECHO_T}$ac_cv_c_stringize" >&6
  6198. if test $ac_cv_c_stringize = yes; then
  6199. cat >>confdefs.h <<\_ACEOF
  6200. #define HAVE_STRINGIZE 1
  6201. _ACEOF
  6202. fi
  6203. echo "$as_me:$LINENO: checking for function prototypes" >&5
  6204. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  6205. if test "$ac_cv_prog_cc_stdc" != no; then
  6206. echo "$as_me:$LINENO: result: yes" >&5
  6207. echo "${ECHO_T}yes" >&6
  6208. cat >>confdefs.h <<\_ACEOF
  6209. #define PROTOTYPES 1
  6210. _ACEOF
  6211. cat >>confdefs.h <<\_ACEOF
  6212. #define __PROTOTYPES 1
  6213. _ACEOF
  6214. else
  6215. echo "$as_me:$LINENO: result: no" >&5
  6216. echo "${ECHO_T}no" >&6
  6217. fi
  6218. #checkpoint
  6219. cat >confcache <<\_ACEOF
  6220. # This file is a shell script that caches the results of configure
  6221. # tests run on this system so they can be shared between configure
  6222. # scripts and configure runs, see configure's option --config-cache.
  6223. # It is not useful on other systems. If it contains results you don't
  6224. # want to keep, you may remove or edit it.
  6225. #
  6226. # config.status only pays attention to the cache file if you give it
  6227. # the --recheck option to rerun configure.
  6228. #
  6229. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6230. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6231. # following values.
  6232. _ACEOF
  6233. # The following way of writing the cache mishandles newlines in values,
  6234. # but we know of no workaround that is simple, portable, and efficient.
  6235. # So, don't put newlines in cache variables' values.
  6236. # Ultrix sh set writes to stderr and can't be redirected directly,
  6237. # and sets the high bit in the cache file unless we assign to the vars.
  6238. {
  6239. (set) 2>&1 |
  6240. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6241. *ac_space=\ *)
  6242. # `set' does not quote correctly, so add quotes (double-quote
  6243. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6244. sed -n \
  6245. "s/'/'\\\\''/g;
  6246. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6247. ;;
  6248. *)
  6249. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6250. sed -n \
  6251. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6252. ;;
  6253. esac;
  6254. } |
  6255. sed '
  6256. t clear
  6257. : clear
  6258. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6259. t end
  6260. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6261. : end' >>confcache
  6262. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6263. if test -w $cache_file; then
  6264. test "x$cache_file" != "x/dev/null"
  6265. cat confcache >$cache_file
  6266. else
  6267. echo "not updating unwritable cache $cache_file"
  6268. fi
  6269. fi
  6270. rm -f confcache
  6271. echo "$as_me:$LINENO: checking for int" >&5
  6272. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6273. if test "${ac_cv_type_int+set}" = set; then
  6274. echo $ECHO_N "(cached) $ECHO_C" >&6
  6275. else
  6276. cat >conftest.$ac_ext <<_ACEOF
  6277. /* confdefs.h. */
  6278. _ACEOF
  6279. cat confdefs.h >>conftest.$ac_ext
  6280. cat >>conftest.$ac_ext <<_ACEOF
  6281. /* end confdefs.h. */
  6282. $ac_includes_default
  6283. int
  6284. main ()
  6285. {
  6286. if ((int *) 0)
  6287. return 0;
  6288. if (sizeof (int))
  6289. return 0;
  6290. ;
  6291. return 0;
  6292. }
  6293. _ACEOF
  6294. rm -f conftest.$ac_objext
  6295. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6296. (eval $ac_compile) 2>conftest.er1
  6297. ac_status=$?
  6298. grep -v '^ *+' conftest.er1 >conftest.err
  6299. rm -f conftest.er1
  6300. cat conftest.err >&5
  6301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6302. (exit $ac_status); } &&
  6303. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6305. (eval $ac_try) 2>&5
  6306. ac_status=$?
  6307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6308. (exit $ac_status); }; } &&
  6309. { ac_try='test -s conftest.$ac_objext'
  6310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6311. (eval $ac_try) 2>&5
  6312. ac_status=$?
  6313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6314. (exit $ac_status); }; }; then
  6315. ac_cv_type_int=yes
  6316. else
  6317. echo "$as_me: failed program was:" >&5
  6318. sed 's/^/| /' conftest.$ac_ext >&5
  6319. ac_cv_type_int=no
  6320. fi
  6321. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6322. fi
  6323. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6324. echo "${ECHO_T}$ac_cv_type_int" >&6
  6325. echo "$as_me:$LINENO: checking size of int" >&5
  6326. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6327. if test "${ac_cv_sizeof_int+set}" = set; then
  6328. echo $ECHO_N "(cached) $ECHO_C" >&6
  6329. else
  6330. if test "$ac_cv_type_int" = yes; then
  6331. # The cast to unsigned long works around a bug in the HP C Compiler
  6332. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6333. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6334. # This bug is HP SR number 8606223364.
  6335. if test "$cross_compiling" = yes; then
  6336. # Depending upon the size, compute the lo and hi bounds.
  6337. cat >conftest.$ac_ext <<_ACEOF
  6338. /* confdefs.h. */
  6339. _ACEOF
  6340. cat confdefs.h >>conftest.$ac_ext
  6341. cat >>conftest.$ac_ext <<_ACEOF
  6342. /* end confdefs.h. */
  6343. $ac_includes_default
  6344. int
  6345. main ()
  6346. {
  6347. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6348. test_array [0] = 0
  6349. ;
  6350. return 0;
  6351. }
  6352. _ACEOF
  6353. rm -f conftest.$ac_objext
  6354. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6355. (eval $ac_compile) 2>conftest.er1
  6356. ac_status=$?
  6357. grep -v '^ *+' conftest.er1 >conftest.err
  6358. rm -f conftest.er1
  6359. cat conftest.err >&5
  6360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6361. (exit $ac_status); } &&
  6362. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6364. (eval $ac_try) 2>&5
  6365. ac_status=$?
  6366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6367. (exit $ac_status); }; } &&
  6368. { ac_try='test -s conftest.$ac_objext'
  6369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6370. (eval $ac_try) 2>&5
  6371. ac_status=$?
  6372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6373. (exit $ac_status); }; }; then
  6374. ac_lo=0 ac_mid=0
  6375. while :; do
  6376. cat >conftest.$ac_ext <<_ACEOF
  6377. /* confdefs.h. */
  6378. _ACEOF
  6379. cat confdefs.h >>conftest.$ac_ext
  6380. cat >>conftest.$ac_ext <<_ACEOF
  6381. /* end confdefs.h. */
  6382. $ac_includes_default
  6383. int
  6384. main ()
  6385. {
  6386. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6387. test_array [0] = 0
  6388. ;
  6389. return 0;
  6390. }
  6391. _ACEOF
  6392. rm -f conftest.$ac_objext
  6393. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6394. (eval $ac_compile) 2>conftest.er1
  6395. ac_status=$?
  6396. grep -v '^ *+' conftest.er1 >conftest.err
  6397. rm -f conftest.er1
  6398. cat conftest.err >&5
  6399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6400. (exit $ac_status); } &&
  6401. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6403. (eval $ac_try) 2>&5
  6404. ac_status=$?
  6405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6406. (exit $ac_status); }; } &&
  6407. { ac_try='test -s conftest.$ac_objext'
  6408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6409. (eval $ac_try) 2>&5
  6410. ac_status=$?
  6411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6412. (exit $ac_status); }; }; then
  6413. ac_hi=$ac_mid; break
  6414. else
  6415. echo "$as_me: failed program was:" >&5
  6416. sed 's/^/| /' conftest.$ac_ext >&5
  6417. ac_lo=`expr $ac_mid + 1`
  6418. if test $ac_lo -le $ac_mid; then
  6419. ac_lo= ac_hi=
  6420. break
  6421. fi
  6422. ac_mid=`expr 2 '*' $ac_mid + 1`
  6423. fi
  6424. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6425. done
  6426. else
  6427. echo "$as_me: failed program was:" >&5
  6428. sed 's/^/| /' conftest.$ac_ext >&5
  6429. cat >conftest.$ac_ext <<_ACEOF
  6430. /* confdefs.h. */
  6431. _ACEOF
  6432. cat confdefs.h >>conftest.$ac_ext
  6433. cat >>conftest.$ac_ext <<_ACEOF
  6434. /* end confdefs.h. */
  6435. $ac_includes_default
  6436. int
  6437. main ()
  6438. {
  6439. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6440. test_array [0] = 0
  6441. ;
  6442. return 0;
  6443. }
  6444. _ACEOF
  6445. rm -f conftest.$ac_objext
  6446. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6447. (eval $ac_compile) 2>conftest.er1
  6448. ac_status=$?
  6449. grep -v '^ *+' conftest.er1 >conftest.err
  6450. rm -f conftest.er1
  6451. cat conftest.err >&5
  6452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6453. (exit $ac_status); } &&
  6454. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6456. (eval $ac_try) 2>&5
  6457. ac_status=$?
  6458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6459. (exit $ac_status); }; } &&
  6460. { ac_try='test -s conftest.$ac_objext'
  6461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6462. (eval $ac_try) 2>&5
  6463. ac_status=$?
  6464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6465. (exit $ac_status); }; }; then
  6466. ac_hi=-1 ac_mid=-1
  6467. while :; do
  6468. cat >conftest.$ac_ext <<_ACEOF
  6469. /* confdefs.h. */
  6470. _ACEOF
  6471. cat confdefs.h >>conftest.$ac_ext
  6472. cat >>conftest.$ac_ext <<_ACEOF
  6473. /* end confdefs.h. */
  6474. $ac_includes_default
  6475. int
  6476. main ()
  6477. {
  6478. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6479. test_array [0] = 0
  6480. ;
  6481. return 0;
  6482. }
  6483. _ACEOF
  6484. rm -f conftest.$ac_objext
  6485. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6486. (eval $ac_compile) 2>conftest.er1
  6487. ac_status=$?
  6488. grep -v '^ *+' conftest.er1 >conftest.err
  6489. rm -f conftest.er1
  6490. cat conftest.err >&5
  6491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6492. (exit $ac_status); } &&
  6493. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6495. (eval $ac_try) 2>&5
  6496. ac_status=$?
  6497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6498. (exit $ac_status); }; } &&
  6499. { ac_try='test -s conftest.$ac_objext'
  6500. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6501. (eval $ac_try) 2>&5
  6502. ac_status=$?
  6503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6504. (exit $ac_status); }; }; then
  6505. ac_lo=$ac_mid; break
  6506. else
  6507. echo "$as_me: failed program was:" >&5
  6508. sed 's/^/| /' conftest.$ac_ext >&5
  6509. ac_hi=`expr '(' $ac_mid ')' - 1`
  6510. if test $ac_mid -le $ac_hi; then
  6511. ac_lo= ac_hi=
  6512. break
  6513. fi
  6514. ac_mid=`expr 2 '*' $ac_mid`
  6515. fi
  6516. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6517. done
  6518. else
  6519. echo "$as_me: failed program was:" >&5
  6520. sed 's/^/| /' conftest.$ac_ext >&5
  6521. ac_lo= ac_hi=
  6522. fi
  6523. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6524. fi
  6525. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6526. # Binary search between lo and hi bounds.
  6527. while test "x$ac_lo" != "x$ac_hi"; do
  6528. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6529. cat >conftest.$ac_ext <<_ACEOF
  6530. /* confdefs.h. */
  6531. _ACEOF
  6532. cat confdefs.h >>conftest.$ac_ext
  6533. cat >>conftest.$ac_ext <<_ACEOF
  6534. /* end confdefs.h. */
  6535. $ac_includes_default
  6536. int
  6537. main ()
  6538. {
  6539. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6540. test_array [0] = 0
  6541. ;
  6542. return 0;
  6543. }
  6544. _ACEOF
  6545. rm -f conftest.$ac_objext
  6546. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6547. (eval $ac_compile) 2>conftest.er1
  6548. ac_status=$?
  6549. grep -v '^ *+' conftest.er1 >conftest.err
  6550. rm -f conftest.er1
  6551. cat conftest.err >&5
  6552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6553. (exit $ac_status); } &&
  6554. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6556. (eval $ac_try) 2>&5
  6557. ac_status=$?
  6558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6559. (exit $ac_status); }; } &&
  6560. { ac_try='test -s conftest.$ac_objext'
  6561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6562. (eval $ac_try) 2>&5
  6563. ac_status=$?
  6564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6565. (exit $ac_status); }; }; then
  6566. ac_hi=$ac_mid
  6567. else
  6568. echo "$as_me: failed program was:" >&5
  6569. sed 's/^/| /' conftest.$ac_ext >&5
  6570. ac_lo=`expr '(' $ac_mid ')' + 1`
  6571. fi
  6572. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6573. done
  6574. case $ac_lo in
  6575. ?*) ac_cv_sizeof_int=$ac_lo;;
  6576. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6577. See \`config.log' for more details." >&5
  6578. echo "$as_me: error: cannot compute sizeof (int), 77
  6579. See \`config.log' for more details." >&2;}
  6580. { (exit 1); exit 1; }; } ;;
  6581. esac
  6582. else
  6583. if test "$cross_compiling" = yes; then
  6584. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6585. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6586. { (exit 1); exit 1; }; }
  6587. else
  6588. cat >conftest.$ac_ext <<_ACEOF
  6589. /* confdefs.h. */
  6590. _ACEOF
  6591. cat confdefs.h >>conftest.$ac_ext
  6592. cat >>conftest.$ac_ext <<_ACEOF
  6593. /* end confdefs.h. */
  6594. $ac_includes_default
  6595. long longval () { return (long) (sizeof (int)); }
  6596. unsigned long ulongval () { return (long) (sizeof (int)); }
  6597. #include <stdio.h>
  6598. #include <stdlib.h>
  6599. int
  6600. main ()
  6601. {
  6602. FILE *f = fopen ("conftest.val", "w");
  6603. if (! f)
  6604. exit (1);
  6605. if (((long) (sizeof (int))) < 0)
  6606. {
  6607. long i = longval ();
  6608. if (i != ((long) (sizeof (int))))
  6609. exit (1);
  6610. fprintf (f, "%ld\n", i);
  6611. }
  6612. else
  6613. {
  6614. unsigned long i = ulongval ();
  6615. if (i != ((long) (sizeof (int))))
  6616. exit (1);
  6617. fprintf (f, "%lu\n", i);
  6618. }
  6619. exit (ferror (f) || fclose (f) != 0);
  6620. ;
  6621. return 0;
  6622. }
  6623. _ACEOF
  6624. rm -f conftest$ac_exeext
  6625. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6626. (eval $ac_link) 2>&5
  6627. ac_status=$?
  6628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6629. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6631. (eval $ac_try) 2>&5
  6632. ac_status=$?
  6633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6634. (exit $ac_status); }; }; then
  6635. ac_cv_sizeof_int=`cat conftest.val`
  6636. else
  6637. echo "$as_me: program exited with status $ac_status" >&5
  6638. echo "$as_me: failed program was:" >&5
  6639. sed 's/^/| /' conftest.$ac_ext >&5
  6640. ( exit $ac_status )
  6641. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6642. See \`config.log' for more details." >&5
  6643. echo "$as_me: error: cannot compute sizeof (int), 77
  6644. See \`config.log' for more details." >&2;}
  6645. { (exit 1); exit 1; }; }
  6646. fi
  6647. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6648. fi
  6649. fi
  6650. rm -f conftest.val
  6651. else
  6652. ac_cv_sizeof_int=0
  6653. fi
  6654. fi
  6655. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6656. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6657. cat >>confdefs.h <<_ACEOF
  6658. #define SIZEOF_INT $ac_cv_sizeof_int
  6659. _ACEOF
  6660. echo "$as_me:$LINENO: checking for short" >&5
  6661. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6662. if test "${ac_cv_type_short+set}" = set; then
  6663. echo $ECHO_N "(cached) $ECHO_C" >&6
  6664. else
  6665. cat >conftest.$ac_ext <<_ACEOF
  6666. /* confdefs.h. */
  6667. _ACEOF
  6668. cat confdefs.h >>conftest.$ac_ext
  6669. cat >>conftest.$ac_ext <<_ACEOF
  6670. /* end confdefs.h. */
  6671. $ac_includes_default
  6672. int
  6673. main ()
  6674. {
  6675. if ((short *) 0)
  6676. return 0;
  6677. if (sizeof (short))
  6678. return 0;
  6679. ;
  6680. return 0;
  6681. }
  6682. _ACEOF
  6683. rm -f conftest.$ac_objext
  6684. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6685. (eval $ac_compile) 2>conftest.er1
  6686. ac_status=$?
  6687. grep -v '^ *+' conftest.er1 >conftest.err
  6688. rm -f conftest.er1
  6689. cat conftest.err >&5
  6690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6691. (exit $ac_status); } &&
  6692. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6694. (eval $ac_try) 2>&5
  6695. ac_status=$?
  6696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6697. (exit $ac_status); }; } &&
  6698. { ac_try='test -s conftest.$ac_objext'
  6699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6700. (eval $ac_try) 2>&5
  6701. ac_status=$?
  6702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6703. (exit $ac_status); }; }; then
  6704. ac_cv_type_short=yes
  6705. else
  6706. echo "$as_me: failed program was:" >&5
  6707. sed 's/^/| /' conftest.$ac_ext >&5
  6708. ac_cv_type_short=no
  6709. fi
  6710. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6711. fi
  6712. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6713. echo "${ECHO_T}$ac_cv_type_short" >&6
  6714. echo "$as_me:$LINENO: checking size of short" >&5
  6715. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6716. if test "${ac_cv_sizeof_short+set}" = set; then
  6717. echo $ECHO_N "(cached) $ECHO_C" >&6
  6718. else
  6719. if test "$ac_cv_type_short" = yes; then
  6720. # The cast to unsigned long works around a bug in the HP C Compiler
  6721. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6722. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6723. # This bug is HP SR number 8606223364.
  6724. if test "$cross_compiling" = yes; then
  6725. # Depending upon the size, compute the lo and hi bounds.
  6726. cat >conftest.$ac_ext <<_ACEOF
  6727. /* confdefs.h. */
  6728. _ACEOF
  6729. cat confdefs.h >>conftest.$ac_ext
  6730. cat >>conftest.$ac_ext <<_ACEOF
  6731. /* end confdefs.h. */
  6732. $ac_includes_default
  6733. int
  6734. main ()
  6735. {
  6736. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6737. test_array [0] = 0
  6738. ;
  6739. return 0;
  6740. }
  6741. _ACEOF
  6742. rm -f conftest.$ac_objext
  6743. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6744. (eval $ac_compile) 2>conftest.er1
  6745. ac_status=$?
  6746. grep -v '^ *+' conftest.er1 >conftest.err
  6747. rm -f conftest.er1
  6748. cat conftest.err >&5
  6749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6750. (exit $ac_status); } &&
  6751. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6753. (eval $ac_try) 2>&5
  6754. ac_status=$?
  6755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6756. (exit $ac_status); }; } &&
  6757. { ac_try='test -s conftest.$ac_objext'
  6758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6759. (eval $ac_try) 2>&5
  6760. ac_status=$?
  6761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6762. (exit $ac_status); }; }; then
  6763. ac_lo=0 ac_mid=0
  6764. while :; do
  6765. cat >conftest.$ac_ext <<_ACEOF
  6766. /* confdefs.h. */
  6767. _ACEOF
  6768. cat confdefs.h >>conftest.$ac_ext
  6769. cat >>conftest.$ac_ext <<_ACEOF
  6770. /* end confdefs.h. */
  6771. $ac_includes_default
  6772. int
  6773. main ()
  6774. {
  6775. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6776. test_array [0] = 0
  6777. ;
  6778. return 0;
  6779. }
  6780. _ACEOF
  6781. rm -f conftest.$ac_objext
  6782. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6783. (eval $ac_compile) 2>conftest.er1
  6784. ac_status=$?
  6785. grep -v '^ *+' conftest.er1 >conftest.err
  6786. rm -f conftest.er1
  6787. cat conftest.err >&5
  6788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6789. (exit $ac_status); } &&
  6790. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6792. (eval $ac_try) 2>&5
  6793. ac_status=$?
  6794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6795. (exit $ac_status); }; } &&
  6796. { ac_try='test -s conftest.$ac_objext'
  6797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6798. (eval $ac_try) 2>&5
  6799. ac_status=$?
  6800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6801. (exit $ac_status); }; }; then
  6802. ac_hi=$ac_mid; break
  6803. else
  6804. echo "$as_me: failed program was:" >&5
  6805. sed 's/^/| /' conftest.$ac_ext >&5
  6806. ac_lo=`expr $ac_mid + 1`
  6807. if test $ac_lo -le $ac_mid; then
  6808. ac_lo= ac_hi=
  6809. break
  6810. fi
  6811. ac_mid=`expr 2 '*' $ac_mid + 1`
  6812. fi
  6813. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6814. done
  6815. else
  6816. echo "$as_me: failed program was:" >&5
  6817. sed 's/^/| /' conftest.$ac_ext >&5
  6818. cat >conftest.$ac_ext <<_ACEOF
  6819. /* confdefs.h. */
  6820. _ACEOF
  6821. cat confdefs.h >>conftest.$ac_ext
  6822. cat >>conftest.$ac_ext <<_ACEOF
  6823. /* end confdefs.h. */
  6824. $ac_includes_default
  6825. int
  6826. main ()
  6827. {
  6828. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6829. test_array [0] = 0
  6830. ;
  6831. return 0;
  6832. }
  6833. _ACEOF
  6834. rm -f conftest.$ac_objext
  6835. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6836. (eval $ac_compile) 2>conftest.er1
  6837. ac_status=$?
  6838. grep -v '^ *+' conftest.er1 >conftest.err
  6839. rm -f conftest.er1
  6840. cat conftest.err >&5
  6841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6842. (exit $ac_status); } &&
  6843. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6845. (eval $ac_try) 2>&5
  6846. ac_status=$?
  6847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6848. (exit $ac_status); }; } &&
  6849. { ac_try='test -s conftest.$ac_objext'
  6850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6851. (eval $ac_try) 2>&5
  6852. ac_status=$?
  6853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6854. (exit $ac_status); }; }; then
  6855. ac_hi=-1 ac_mid=-1
  6856. while :; do
  6857. cat >conftest.$ac_ext <<_ACEOF
  6858. /* confdefs.h. */
  6859. _ACEOF
  6860. cat confdefs.h >>conftest.$ac_ext
  6861. cat >>conftest.$ac_ext <<_ACEOF
  6862. /* end confdefs.h. */
  6863. $ac_includes_default
  6864. int
  6865. main ()
  6866. {
  6867. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6868. test_array [0] = 0
  6869. ;
  6870. return 0;
  6871. }
  6872. _ACEOF
  6873. rm -f conftest.$ac_objext
  6874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6875. (eval $ac_compile) 2>conftest.er1
  6876. ac_status=$?
  6877. grep -v '^ *+' conftest.er1 >conftest.err
  6878. rm -f conftest.er1
  6879. cat conftest.err >&5
  6880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6881. (exit $ac_status); } &&
  6882. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6884. (eval $ac_try) 2>&5
  6885. ac_status=$?
  6886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6887. (exit $ac_status); }; } &&
  6888. { ac_try='test -s conftest.$ac_objext'
  6889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6890. (eval $ac_try) 2>&5
  6891. ac_status=$?
  6892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6893. (exit $ac_status); }; }; then
  6894. ac_lo=$ac_mid; break
  6895. else
  6896. echo "$as_me: failed program was:" >&5
  6897. sed 's/^/| /' conftest.$ac_ext >&5
  6898. ac_hi=`expr '(' $ac_mid ')' - 1`
  6899. if test $ac_mid -le $ac_hi; then
  6900. ac_lo= ac_hi=
  6901. break
  6902. fi
  6903. ac_mid=`expr 2 '*' $ac_mid`
  6904. fi
  6905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6906. done
  6907. else
  6908. echo "$as_me: failed program was:" >&5
  6909. sed 's/^/| /' conftest.$ac_ext >&5
  6910. ac_lo= ac_hi=
  6911. fi
  6912. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6913. fi
  6914. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6915. # Binary search between lo and hi bounds.
  6916. while test "x$ac_lo" != "x$ac_hi"; do
  6917. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6918. cat >conftest.$ac_ext <<_ACEOF
  6919. /* confdefs.h. */
  6920. _ACEOF
  6921. cat confdefs.h >>conftest.$ac_ext
  6922. cat >>conftest.$ac_ext <<_ACEOF
  6923. /* end confdefs.h. */
  6924. $ac_includes_default
  6925. int
  6926. main ()
  6927. {
  6928. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6929. test_array [0] = 0
  6930. ;
  6931. return 0;
  6932. }
  6933. _ACEOF
  6934. rm -f conftest.$ac_objext
  6935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6936. (eval $ac_compile) 2>conftest.er1
  6937. ac_status=$?
  6938. grep -v '^ *+' conftest.er1 >conftest.err
  6939. rm -f conftest.er1
  6940. cat conftest.err >&5
  6941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6942. (exit $ac_status); } &&
  6943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6945. (eval $ac_try) 2>&5
  6946. ac_status=$?
  6947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6948. (exit $ac_status); }; } &&
  6949. { ac_try='test -s conftest.$ac_objext'
  6950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6951. (eval $ac_try) 2>&5
  6952. ac_status=$?
  6953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6954. (exit $ac_status); }; }; then
  6955. ac_hi=$ac_mid
  6956. else
  6957. echo "$as_me: failed program was:" >&5
  6958. sed 's/^/| /' conftest.$ac_ext >&5
  6959. ac_lo=`expr '(' $ac_mid ')' + 1`
  6960. fi
  6961. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6962. done
  6963. case $ac_lo in
  6964. ?*) ac_cv_sizeof_short=$ac_lo;;
  6965. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6966. See \`config.log' for more details." >&5
  6967. echo "$as_me: error: cannot compute sizeof (short), 77
  6968. See \`config.log' for more details." >&2;}
  6969. { (exit 1); exit 1; }; } ;;
  6970. esac
  6971. else
  6972. if test "$cross_compiling" = yes; then
  6973. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6974. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6975. { (exit 1); exit 1; }; }
  6976. else
  6977. cat >conftest.$ac_ext <<_ACEOF
  6978. /* confdefs.h. */
  6979. _ACEOF
  6980. cat confdefs.h >>conftest.$ac_ext
  6981. cat >>conftest.$ac_ext <<_ACEOF
  6982. /* end confdefs.h. */
  6983. $ac_includes_default
  6984. long longval () { return (long) (sizeof (short)); }
  6985. unsigned long ulongval () { return (long) (sizeof (short)); }
  6986. #include <stdio.h>
  6987. #include <stdlib.h>
  6988. int
  6989. main ()
  6990. {
  6991. FILE *f = fopen ("conftest.val", "w");
  6992. if (! f)
  6993. exit (1);
  6994. if (((long) (sizeof (short))) < 0)
  6995. {
  6996. long i = longval ();
  6997. if (i != ((long) (sizeof (short))))
  6998. exit (1);
  6999. fprintf (f, "%ld\n", i);
  7000. }
  7001. else
  7002. {
  7003. unsigned long i = ulongval ();
  7004. if (i != ((long) (sizeof (short))))
  7005. exit (1);
  7006. fprintf (f, "%lu\n", i);
  7007. }
  7008. exit (ferror (f) || fclose (f) != 0);
  7009. ;
  7010. return 0;
  7011. }
  7012. _ACEOF
  7013. rm -f conftest$ac_exeext
  7014. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7015. (eval $ac_link) 2>&5
  7016. ac_status=$?
  7017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7018. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7020. (eval $ac_try) 2>&5
  7021. ac_status=$?
  7022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7023. (exit $ac_status); }; }; then
  7024. ac_cv_sizeof_short=`cat conftest.val`
  7025. else
  7026. echo "$as_me: program exited with status $ac_status" >&5
  7027. echo "$as_me: failed program was:" >&5
  7028. sed 's/^/| /' conftest.$ac_ext >&5
  7029. ( exit $ac_status )
  7030. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7031. See \`config.log' for more details." >&5
  7032. echo "$as_me: error: cannot compute sizeof (short), 77
  7033. See \`config.log' for more details." >&2;}
  7034. { (exit 1); exit 1; }; }
  7035. fi
  7036. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7037. fi
  7038. fi
  7039. rm -f conftest.val
  7040. else
  7041. ac_cv_sizeof_short=0
  7042. fi
  7043. fi
  7044. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7045. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7046. cat >>confdefs.h <<_ACEOF
  7047. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7048. _ACEOF
  7049. echo "$as_me:$LINENO: checking for long" >&5
  7050. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7051. if test "${ac_cv_type_long+set}" = set; then
  7052. echo $ECHO_N "(cached) $ECHO_C" >&6
  7053. else
  7054. cat >conftest.$ac_ext <<_ACEOF
  7055. /* confdefs.h. */
  7056. _ACEOF
  7057. cat confdefs.h >>conftest.$ac_ext
  7058. cat >>conftest.$ac_ext <<_ACEOF
  7059. /* end confdefs.h. */
  7060. $ac_includes_default
  7061. int
  7062. main ()
  7063. {
  7064. if ((long *) 0)
  7065. return 0;
  7066. if (sizeof (long))
  7067. return 0;
  7068. ;
  7069. return 0;
  7070. }
  7071. _ACEOF
  7072. rm -f conftest.$ac_objext
  7073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7074. (eval $ac_compile) 2>conftest.er1
  7075. ac_status=$?
  7076. grep -v '^ *+' conftest.er1 >conftest.err
  7077. rm -f conftest.er1
  7078. cat conftest.err >&5
  7079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7080. (exit $ac_status); } &&
  7081. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7083. (eval $ac_try) 2>&5
  7084. ac_status=$?
  7085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7086. (exit $ac_status); }; } &&
  7087. { ac_try='test -s conftest.$ac_objext'
  7088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7089. (eval $ac_try) 2>&5
  7090. ac_status=$?
  7091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7092. (exit $ac_status); }; }; then
  7093. ac_cv_type_long=yes
  7094. else
  7095. echo "$as_me: failed program was:" >&5
  7096. sed 's/^/| /' conftest.$ac_ext >&5
  7097. ac_cv_type_long=no
  7098. fi
  7099. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7100. fi
  7101. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7102. echo "${ECHO_T}$ac_cv_type_long" >&6
  7103. echo "$as_me:$LINENO: checking size of long" >&5
  7104. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7105. if test "${ac_cv_sizeof_long+set}" = set; then
  7106. echo $ECHO_N "(cached) $ECHO_C" >&6
  7107. else
  7108. if test "$ac_cv_type_long" = yes; then
  7109. # The cast to unsigned long works around a bug in the HP C Compiler
  7110. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7111. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7112. # This bug is HP SR number 8606223364.
  7113. if test "$cross_compiling" = yes; then
  7114. # Depending upon the size, compute the lo and hi bounds.
  7115. cat >conftest.$ac_ext <<_ACEOF
  7116. /* confdefs.h. */
  7117. _ACEOF
  7118. cat confdefs.h >>conftest.$ac_ext
  7119. cat >>conftest.$ac_ext <<_ACEOF
  7120. /* end confdefs.h. */
  7121. $ac_includes_default
  7122. int
  7123. main ()
  7124. {
  7125. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7126. test_array [0] = 0
  7127. ;
  7128. return 0;
  7129. }
  7130. _ACEOF
  7131. rm -f conftest.$ac_objext
  7132. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7133. (eval $ac_compile) 2>conftest.er1
  7134. ac_status=$?
  7135. grep -v '^ *+' conftest.er1 >conftest.err
  7136. rm -f conftest.er1
  7137. cat conftest.err >&5
  7138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7139. (exit $ac_status); } &&
  7140. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7142. (eval $ac_try) 2>&5
  7143. ac_status=$?
  7144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7145. (exit $ac_status); }; } &&
  7146. { ac_try='test -s conftest.$ac_objext'
  7147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7148. (eval $ac_try) 2>&5
  7149. ac_status=$?
  7150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7151. (exit $ac_status); }; }; then
  7152. ac_lo=0 ac_mid=0
  7153. while :; do
  7154. cat >conftest.$ac_ext <<_ACEOF
  7155. /* confdefs.h. */
  7156. _ACEOF
  7157. cat confdefs.h >>conftest.$ac_ext
  7158. cat >>conftest.$ac_ext <<_ACEOF
  7159. /* end confdefs.h. */
  7160. $ac_includes_default
  7161. int
  7162. main ()
  7163. {
  7164. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7165. test_array [0] = 0
  7166. ;
  7167. return 0;
  7168. }
  7169. _ACEOF
  7170. rm -f conftest.$ac_objext
  7171. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7172. (eval $ac_compile) 2>conftest.er1
  7173. ac_status=$?
  7174. grep -v '^ *+' conftest.er1 >conftest.err
  7175. rm -f conftest.er1
  7176. cat conftest.err >&5
  7177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7178. (exit $ac_status); } &&
  7179. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7181. (eval $ac_try) 2>&5
  7182. ac_status=$?
  7183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7184. (exit $ac_status); }; } &&
  7185. { ac_try='test -s conftest.$ac_objext'
  7186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7187. (eval $ac_try) 2>&5
  7188. ac_status=$?
  7189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7190. (exit $ac_status); }; }; then
  7191. ac_hi=$ac_mid; break
  7192. else
  7193. echo "$as_me: failed program was:" >&5
  7194. sed 's/^/| /' conftest.$ac_ext >&5
  7195. ac_lo=`expr $ac_mid + 1`
  7196. if test $ac_lo -le $ac_mid; then
  7197. ac_lo= ac_hi=
  7198. break
  7199. fi
  7200. ac_mid=`expr 2 '*' $ac_mid + 1`
  7201. fi
  7202. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7203. done
  7204. else
  7205. echo "$as_me: failed program was:" >&5
  7206. sed 's/^/| /' conftest.$ac_ext >&5
  7207. cat >conftest.$ac_ext <<_ACEOF
  7208. /* confdefs.h. */
  7209. _ACEOF
  7210. cat confdefs.h >>conftest.$ac_ext
  7211. cat >>conftest.$ac_ext <<_ACEOF
  7212. /* end confdefs.h. */
  7213. $ac_includes_default
  7214. int
  7215. main ()
  7216. {
  7217. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7218. test_array [0] = 0
  7219. ;
  7220. return 0;
  7221. }
  7222. _ACEOF
  7223. rm -f conftest.$ac_objext
  7224. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7225. (eval $ac_compile) 2>conftest.er1
  7226. ac_status=$?
  7227. grep -v '^ *+' conftest.er1 >conftest.err
  7228. rm -f conftest.er1
  7229. cat conftest.err >&5
  7230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7231. (exit $ac_status); } &&
  7232. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7234. (eval $ac_try) 2>&5
  7235. ac_status=$?
  7236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7237. (exit $ac_status); }; } &&
  7238. { ac_try='test -s conftest.$ac_objext'
  7239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7240. (eval $ac_try) 2>&5
  7241. ac_status=$?
  7242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7243. (exit $ac_status); }; }; then
  7244. ac_hi=-1 ac_mid=-1
  7245. while :; do
  7246. cat >conftest.$ac_ext <<_ACEOF
  7247. /* confdefs.h. */
  7248. _ACEOF
  7249. cat confdefs.h >>conftest.$ac_ext
  7250. cat >>conftest.$ac_ext <<_ACEOF
  7251. /* end confdefs.h. */
  7252. $ac_includes_default
  7253. int
  7254. main ()
  7255. {
  7256. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7257. test_array [0] = 0
  7258. ;
  7259. return 0;
  7260. }
  7261. _ACEOF
  7262. rm -f conftest.$ac_objext
  7263. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7264. (eval $ac_compile) 2>conftest.er1
  7265. ac_status=$?
  7266. grep -v '^ *+' conftest.er1 >conftest.err
  7267. rm -f conftest.er1
  7268. cat conftest.err >&5
  7269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7270. (exit $ac_status); } &&
  7271. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7273. (eval $ac_try) 2>&5
  7274. ac_status=$?
  7275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7276. (exit $ac_status); }; } &&
  7277. { ac_try='test -s conftest.$ac_objext'
  7278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7279. (eval $ac_try) 2>&5
  7280. ac_status=$?
  7281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7282. (exit $ac_status); }; }; then
  7283. ac_lo=$ac_mid; break
  7284. else
  7285. echo "$as_me: failed program was:" >&5
  7286. sed 's/^/| /' conftest.$ac_ext >&5
  7287. ac_hi=`expr '(' $ac_mid ')' - 1`
  7288. if test $ac_mid -le $ac_hi; then
  7289. ac_lo= ac_hi=
  7290. break
  7291. fi
  7292. ac_mid=`expr 2 '*' $ac_mid`
  7293. fi
  7294. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7295. done
  7296. else
  7297. echo "$as_me: failed program was:" >&5
  7298. sed 's/^/| /' conftest.$ac_ext >&5
  7299. ac_lo= ac_hi=
  7300. fi
  7301. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7302. fi
  7303. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7304. # Binary search between lo and hi bounds.
  7305. while test "x$ac_lo" != "x$ac_hi"; do
  7306. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7307. cat >conftest.$ac_ext <<_ACEOF
  7308. /* confdefs.h. */
  7309. _ACEOF
  7310. cat confdefs.h >>conftest.$ac_ext
  7311. cat >>conftest.$ac_ext <<_ACEOF
  7312. /* end confdefs.h. */
  7313. $ac_includes_default
  7314. int
  7315. main ()
  7316. {
  7317. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7318. test_array [0] = 0
  7319. ;
  7320. return 0;
  7321. }
  7322. _ACEOF
  7323. rm -f conftest.$ac_objext
  7324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7325. (eval $ac_compile) 2>conftest.er1
  7326. ac_status=$?
  7327. grep -v '^ *+' conftest.er1 >conftest.err
  7328. rm -f conftest.er1
  7329. cat conftest.err >&5
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. (exit $ac_status); } &&
  7332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7334. (eval $ac_try) 2>&5
  7335. ac_status=$?
  7336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); }; } &&
  7338. { ac_try='test -s conftest.$ac_objext'
  7339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7340. (eval $ac_try) 2>&5
  7341. ac_status=$?
  7342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7343. (exit $ac_status); }; }; then
  7344. ac_hi=$ac_mid
  7345. else
  7346. echo "$as_me: failed program was:" >&5
  7347. sed 's/^/| /' conftest.$ac_ext >&5
  7348. ac_lo=`expr '(' $ac_mid ')' + 1`
  7349. fi
  7350. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7351. done
  7352. case $ac_lo in
  7353. ?*) ac_cv_sizeof_long=$ac_lo;;
  7354. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7355. See \`config.log' for more details." >&5
  7356. echo "$as_me: error: cannot compute sizeof (long), 77
  7357. See \`config.log' for more details." >&2;}
  7358. { (exit 1); exit 1; }; } ;;
  7359. esac
  7360. else
  7361. if test "$cross_compiling" = yes; then
  7362. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7363. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7364. { (exit 1); exit 1; }; }
  7365. else
  7366. cat >conftest.$ac_ext <<_ACEOF
  7367. /* confdefs.h. */
  7368. _ACEOF
  7369. cat confdefs.h >>conftest.$ac_ext
  7370. cat >>conftest.$ac_ext <<_ACEOF
  7371. /* end confdefs.h. */
  7372. $ac_includes_default
  7373. long longval () { return (long) (sizeof (long)); }
  7374. unsigned long ulongval () { return (long) (sizeof (long)); }
  7375. #include <stdio.h>
  7376. #include <stdlib.h>
  7377. int
  7378. main ()
  7379. {
  7380. FILE *f = fopen ("conftest.val", "w");
  7381. if (! f)
  7382. exit (1);
  7383. if (((long) (sizeof (long))) < 0)
  7384. {
  7385. long i = longval ();
  7386. if (i != ((long) (sizeof (long))))
  7387. exit (1);
  7388. fprintf (f, "%ld\n", i);
  7389. }
  7390. else
  7391. {
  7392. unsigned long i = ulongval ();
  7393. if (i != ((long) (sizeof (long))))
  7394. exit (1);
  7395. fprintf (f, "%lu\n", i);
  7396. }
  7397. exit (ferror (f) || fclose (f) != 0);
  7398. ;
  7399. return 0;
  7400. }
  7401. _ACEOF
  7402. rm -f conftest$ac_exeext
  7403. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7404. (eval $ac_link) 2>&5
  7405. ac_status=$?
  7406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7407. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7409. (eval $ac_try) 2>&5
  7410. ac_status=$?
  7411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7412. (exit $ac_status); }; }; then
  7413. ac_cv_sizeof_long=`cat conftest.val`
  7414. else
  7415. echo "$as_me: program exited with status $ac_status" >&5
  7416. echo "$as_me: failed program was:" >&5
  7417. sed 's/^/| /' conftest.$ac_ext >&5
  7418. ( exit $ac_status )
  7419. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7420. See \`config.log' for more details." >&5
  7421. echo "$as_me: error: cannot compute sizeof (long), 77
  7422. See \`config.log' for more details." >&2;}
  7423. { (exit 1); exit 1; }; }
  7424. fi
  7425. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7426. fi
  7427. fi
  7428. rm -f conftest.val
  7429. else
  7430. ac_cv_sizeof_long=0
  7431. fi
  7432. fi
  7433. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7434. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7435. cat >>confdefs.h <<_ACEOF
  7436. #define SIZEOF_LONG $ac_cv_sizeof_long
  7437. _ACEOF
  7438. echo "$as_me:$LINENO: checking for long long" >&5
  7439. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7440. if test "${ac_cv_type_long_long+set}" = set; then
  7441. echo $ECHO_N "(cached) $ECHO_C" >&6
  7442. else
  7443. cat >conftest.$ac_ext <<_ACEOF
  7444. /* confdefs.h. */
  7445. _ACEOF
  7446. cat confdefs.h >>conftest.$ac_ext
  7447. cat >>conftest.$ac_ext <<_ACEOF
  7448. /* end confdefs.h. */
  7449. $ac_includes_default
  7450. int
  7451. main ()
  7452. {
  7453. if ((long long *) 0)
  7454. return 0;
  7455. if (sizeof (long long))
  7456. return 0;
  7457. ;
  7458. return 0;
  7459. }
  7460. _ACEOF
  7461. rm -f conftest.$ac_objext
  7462. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7463. (eval $ac_compile) 2>conftest.er1
  7464. ac_status=$?
  7465. grep -v '^ *+' conftest.er1 >conftest.err
  7466. rm -f conftest.er1
  7467. cat conftest.err >&5
  7468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7469. (exit $ac_status); } &&
  7470. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7472. (eval $ac_try) 2>&5
  7473. ac_status=$?
  7474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7475. (exit $ac_status); }; } &&
  7476. { ac_try='test -s conftest.$ac_objext'
  7477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7478. (eval $ac_try) 2>&5
  7479. ac_status=$?
  7480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481. (exit $ac_status); }; }; then
  7482. ac_cv_type_long_long=yes
  7483. else
  7484. echo "$as_me: failed program was:" >&5
  7485. sed 's/^/| /' conftest.$ac_ext >&5
  7486. ac_cv_type_long_long=no
  7487. fi
  7488. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7489. fi
  7490. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7491. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7492. echo "$as_me:$LINENO: checking size of long long" >&5
  7493. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7494. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7495. echo $ECHO_N "(cached) $ECHO_C" >&6
  7496. else
  7497. if test "$ac_cv_type_long_long" = yes; then
  7498. # The cast to unsigned long works around a bug in the HP C Compiler
  7499. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7500. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7501. # This bug is HP SR number 8606223364.
  7502. if test "$cross_compiling" = yes; then
  7503. # Depending upon the size, compute the lo and hi bounds.
  7504. cat >conftest.$ac_ext <<_ACEOF
  7505. /* confdefs.h. */
  7506. _ACEOF
  7507. cat confdefs.h >>conftest.$ac_ext
  7508. cat >>conftest.$ac_ext <<_ACEOF
  7509. /* end confdefs.h. */
  7510. $ac_includes_default
  7511. int
  7512. main ()
  7513. {
  7514. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7515. test_array [0] = 0
  7516. ;
  7517. return 0;
  7518. }
  7519. _ACEOF
  7520. rm -f conftest.$ac_objext
  7521. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7522. (eval $ac_compile) 2>conftest.er1
  7523. ac_status=$?
  7524. grep -v '^ *+' conftest.er1 >conftest.err
  7525. rm -f conftest.er1
  7526. cat conftest.err >&5
  7527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7528. (exit $ac_status); } &&
  7529. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7531. (eval $ac_try) 2>&5
  7532. ac_status=$?
  7533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7534. (exit $ac_status); }; } &&
  7535. { ac_try='test -s conftest.$ac_objext'
  7536. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7537. (eval $ac_try) 2>&5
  7538. ac_status=$?
  7539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7540. (exit $ac_status); }; }; then
  7541. ac_lo=0 ac_mid=0
  7542. while :; do
  7543. cat >conftest.$ac_ext <<_ACEOF
  7544. /* confdefs.h. */
  7545. _ACEOF
  7546. cat confdefs.h >>conftest.$ac_ext
  7547. cat >>conftest.$ac_ext <<_ACEOF
  7548. /* end confdefs.h. */
  7549. $ac_includes_default
  7550. int
  7551. main ()
  7552. {
  7553. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7554. test_array [0] = 0
  7555. ;
  7556. return 0;
  7557. }
  7558. _ACEOF
  7559. rm -f conftest.$ac_objext
  7560. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7561. (eval $ac_compile) 2>conftest.er1
  7562. ac_status=$?
  7563. grep -v '^ *+' conftest.er1 >conftest.err
  7564. rm -f conftest.er1
  7565. cat conftest.err >&5
  7566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7567. (exit $ac_status); } &&
  7568. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7570. (eval $ac_try) 2>&5
  7571. ac_status=$?
  7572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7573. (exit $ac_status); }; } &&
  7574. { ac_try='test -s conftest.$ac_objext'
  7575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7576. (eval $ac_try) 2>&5
  7577. ac_status=$?
  7578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7579. (exit $ac_status); }; }; then
  7580. ac_hi=$ac_mid; break
  7581. else
  7582. echo "$as_me: failed program was:" >&5
  7583. sed 's/^/| /' conftest.$ac_ext >&5
  7584. ac_lo=`expr $ac_mid + 1`
  7585. if test $ac_lo -le $ac_mid; then
  7586. ac_lo= ac_hi=
  7587. break
  7588. fi
  7589. ac_mid=`expr 2 '*' $ac_mid + 1`
  7590. fi
  7591. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7592. done
  7593. else
  7594. echo "$as_me: failed program was:" >&5
  7595. sed 's/^/| /' conftest.$ac_ext >&5
  7596. cat >conftest.$ac_ext <<_ACEOF
  7597. /* confdefs.h. */
  7598. _ACEOF
  7599. cat confdefs.h >>conftest.$ac_ext
  7600. cat >>conftest.$ac_ext <<_ACEOF
  7601. /* end confdefs.h. */
  7602. $ac_includes_default
  7603. int
  7604. main ()
  7605. {
  7606. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7607. test_array [0] = 0
  7608. ;
  7609. return 0;
  7610. }
  7611. _ACEOF
  7612. rm -f conftest.$ac_objext
  7613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7614. (eval $ac_compile) 2>conftest.er1
  7615. ac_status=$?
  7616. grep -v '^ *+' conftest.er1 >conftest.err
  7617. rm -f conftest.er1
  7618. cat conftest.err >&5
  7619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7620. (exit $ac_status); } &&
  7621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7623. (eval $ac_try) 2>&5
  7624. ac_status=$?
  7625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7626. (exit $ac_status); }; } &&
  7627. { ac_try='test -s conftest.$ac_objext'
  7628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7629. (eval $ac_try) 2>&5
  7630. ac_status=$?
  7631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7632. (exit $ac_status); }; }; then
  7633. ac_hi=-1 ac_mid=-1
  7634. while :; do
  7635. cat >conftest.$ac_ext <<_ACEOF
  7636. /* confdefs.h. */
  7637. _ACEOF
  7638. cat confdefs.h >>conftest.$ac_ext
  7639. cat >>conftest.$ac_ext <<_ACEOF
  7640. /* end confdefs.h. */
  7641. $ac_includes_default
  7642. int
  7643. main ()
  7644. {
  7645. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7646. test_array [0] = 0
  7647. ;
  7648. return 0;
  7649. }
  7650. _ACEOF
  7651. rm -f conftest.$ac_objext
  7652. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7653. (eval $ac_compile) 2>conftest.er1
  7654. ac_status=$?
  7655. grep -v '^ *+' conftest.er1 >conftest.err
  7656. rm -f conftest.er1
  7657. cat conftest.err >&5
  7658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7659. (exit $ac_status); } &&
  7660. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7662. (eval $ac_try) 2>&5
  7663. ac_status=$?
  7664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7665. (exit $ac_status); }; } &&
  7666. { ac_try='test -s conftest.$ac_objext'
  7667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7668. (eval $ac_try) 2>&5
  7669. ac_status=$?
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); }; }; then
  7672. ac_lo=$ac_mid; break
  7673. else
  7674. echo "$as_me: failed program was:" >&5
  7675. sed 's/^/| /' conftest.$ac_ext >&5
  7676. ac_hi=`expr '(' $ac_mid ')' - 1`
  7677. if test $ac_mid -le $ac_hi; then
  7678. ac_lo= ac_hi=
  7679. break
  7680. fi
  7681. ac_mid=`expr 2 '*' $ac_mid`
  7682. fi
  7683. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7684. done
  7685. else
  7686. echo "$as_me: failed program was:" >&5
  7687. sed 's/^/| /' conftest.$ac_ext >&5
  7688. ac_lo= ac_hi=
  7689. fi
  7690. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7691. fi
  7692. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7693. # Binary search between lo and hi bounds.
  7694. while test "x$ac_lo" != "x$ac_hi"; do
  7695. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7696. cat >conftest.$ac_ext <<_ACEOF
  7697. /* confdefs.h. */
  7698. _ACEOF
  7699. cat confdefs.h >>conftest.$ac_ext
  7700. cat >>conftest.$ac_ext <<_ACEOF
  7701. /* end confdefs.h. */
  7702. $ac_includes_default
  7703. int
  7704. main ()
  7705. {
  7706. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7707. test_array [0] = 0
  7708. ;
  7709. return 0;
  7710. }
  7711. _ACEOF
  7712. rm -f conftest.$ac_objext
  7713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7714. (eval $ac_compile) 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } &&
  7721. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7723. (eval $ac_try) 2>&5
  7724. ac_status=$?
  7725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7726. (exit $ac_status); }; } &&
  7727. { ac_try='test -s conftest.$ac_objext'
  7728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7729. (eval $ac_try) 2>&5
  7730. ac_status=$?
  7731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7732. (exit $ac_status); }; }; then
  7733. ac_hi=$ac_mid
  7734. else
  7735. echo "$as_me: failed program was:" >&5
  7736. sed 's/^/| /' conftest.$ac_ext >&5
  7737. ac_lo=`expr '(' $ac_mid ')' + 1`
  7738. fi
  7739. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7740. done
  7741. case $ac_lo in
  7742. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7743. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7744. See \`config.log' for more details." >&5
  7745. echo "$as_me: error: cannot compute sizeof (long long), 77
  7746. See \`config.log' for more details." >&2;}
  7747. { (exit 1); exit 1; }; } ;;
  7748. esac
  7749. else
  7750. if test "$cross_compiling" = yes; then
  7751. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7752. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7753. { (exit 1); exit 1; }; }
  7754. else
  7755. cat >conftest.$ac_ext <<_ACEOF
  7756. /* confdefs.h. */
  7757. _ACEOF
  7758. cat confdefs.h >>conftest.$ac_ext
  7759. cat >>conftest.$ac_ext <<_ACEOF
  7760. /* end confdefs.h. */
  7761. $ac_includes_default
  7762. long longval () { return (long) (sizeof (long long)); }
  7763. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7764. #include <stdio.h>
  7765. #include <stdlib.h>
  7766. int
  7767. main ()
  7768. {
  7769. FILE *f = fopen ("conftest.val", "w");
  7770. if (! f)
  7771. exit (1);
  7772. if (((long) (sizeof (long long))) < 0)
  7773. {
  7774. long i = longval ();
  7775. if (i != ((long) (sizeof (long long))))
  7776. exit (1);
  7777. fprintf (f, "%ld\n", i);
  7778. }
  7779. else
  7780. {
  7781. unsigned long i = ulongval ();
  7782. if (i != ((long) (sizeof (long long))))
  7783. exit (1);
  7784. fprintf (f, "%lu\n", i);
  7785. }
  7786. exit (ferror (f) || fclose (f) != 0);
  7787. ;
  7788. return 0;
  7789. }
  7790. _ACEOF
  7791. rm -f conftest$ac_exeext
  7792. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7793. (eval $ac_link) 2>&5
  7794. ac_status=$?
  7795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7796. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7798. (eval $ac_try) 2>&5
  7799. ac_status=$?
  7800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7801. (exit $ac_status); }; }; then
  7802. ac_cv_sizeof_long_long=`cat conftest.val`
  7803. else
  7804. echo "$as_me: program exited with status $ac_status" >&5
  7805. echo "$as_me: failed program was:" >&5
  7806. sed 's/^/| /' conftest.$ac_ext >&5
  7807. ( exit $ac_status )
  7808. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7809. See \`config.log' for more details." >&5
  7810. echo "$as_me: error: cannot compute sizeof (long long), 77
  7811. See \`config.log' for more details." >&2;}
  7812. { (exit 1); exit 1; }; }
  7813. fi
  7814. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7815. fi
  7816. fi
  7817. rm -f conftest.val
  7818. else
  7819. ac_cv_sizeof_long_long=0
  7820. fi
  7821. fi
  7822. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7823. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7824. cat >>confdefs.h <<_ACEOF
  7825. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7826. _ACEOF
  7827. if test $ac_cv_c_compiler_gnu = yes; then
  7828. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7829. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7830. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7831. echo $ECHO_N "(cached) $ECHO_C" >&6
  7832. else
  7833. ac_pattern="Autoconf.*'x'"
  7834. cat >conftest.$ac_ext <<_ACEOF
  7835. /* confdefs.h. */
  7836. _ACEOF
  7837. cat confdefs.h >>conftest.$ac_ext
  7838. cat >>conftest.$ac_ext <<_ACEOF
  7839. /* end confdefs.h. */
  7840. #include <sgtty.h>
  7841. Autoconf TIOCGETP
  7842. _ACEOF
  7843. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7844. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7845. ac_cv_prog_gcc_traditional=yes
  7846. else
  7847. ac_cv_prog_gcc_traditional=no
  7848. fi
  7849. rm -f conftest*
  7850. if test $ac_cv_prog_gcc_traditional = no; then
  7851. cat >conftest.$ac_ext <<_ACEOF
  7852. /* confdefs.h. */
  7853. _ACEOF
  7854. cat confdefs.h >>conftest.$ac_ext
  7855. cat >>conftest.$ac_ext <<_ACEOF
  7856. /* end confdefs.h. */
  7857. #include <termio.h>
  7858. Autoconf TCGETA
  7859. _ACEOF
  7860. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7861. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7862. ac_cv_prog_gcc_traditional=yes
  7863. fi
  7864. rm -f conftest*
  7865. fi
  7866. fi
  7867. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7868. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7869. if test $ac_cv_prog_gcc_traditional = yes; then
  7870. CC="$CC -traditional"
  7871. fi
  7872. fi
  7873. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7874. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7875. if test "${ac_cv_struct_tm+set}" = set; then
  7876. echo $ECHO_N "(cached) $ECHO_C" >&6
  7877. else
  7878. cat >conftest.$ac_ext <<_ACEOF
  7879. /* confdefs.h. */
  7880. _ACEOF
  7881. cat confdefs.h >>conftest.$ac_ext
  7882. cat >>conftest.$ac_ext <<_ACEOF
  7883. /* end confdefs.h. */
  7884. #include <sys/types.h>
  7885. #include <time.h>
  7886. int
  7887. main ()
  7888. {
  7889. struct tm *tp; tp->tm_sec;
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. rm -f conftest.$ac_objext
  7895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7896. (eval $ac_compile) 2>conftest.er1
  7897. ac_status=$?
  7898. grep -v '^ *+' conftest.er1 >conftest.err
  7899. rm -f conftest.er1
  7900. cat conftest.err >&5
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); } &&
  7903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7905. (eval $ac_try) 2>&5
  7906. ac_status=$?
  7907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7908. (exit $ac_status); }; } &&
  7909. { ac_try='test -s conftest.$ac_objext'
  7910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7911. (eval $ac_try) 2>&5
  7912. ac_status=$?
  7913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7914. (exit $ac_status); }; }; then
  7915. ac_cv_struct_tm=time.h
  7916. else
  7917. echo "$as_me: failed program was:" >&5
  7918. sed 's/^/| /' conftest.$ac_ext >&5
  7919. ac_cv_struct_tm=sys/time.h
  7920. fi
  7921. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7922. fi
  7923. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7924. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7925. if test $ac_cv_struct_tm = sys/time.h; then
  7926. cat >>confdefs.h <<\_ACEOF
  7927. #define TM_IN_SYS_TIME 1
  7928. _ACEOF
  7929. fi
  7930. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7931. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7932. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7933. echo $ECHO_N "(cached) $ECHO_C" >&6
  7934. else
  7935. cat >conftest.$ac_ext <<_ACEOF
  7936. /* confdefs.h. */
  7937. _ACEOF
  7938. cat confdefs.h >>conftest.$ac_ext
  7939. cat >>conftest.$ac_ext <<_ACEOF
  7940. /* end confdefs.h. */
  7941. #include <sys/types.h>
  7942. #include <$ac_cv_struct_tm>
  7943. int
  7944. main ()
  7945. {
  7946. static struct tm ac_aggr;
  7947. if (ac_aggr.tm_zone)
  7948. return 0;
  7949. ;
  7950. return 0;
  7951. }
  7952. _ACEOF
  7953. rm -f conftest.$ac_objext
  7954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7955. (eval $ac_compile) 2>conftest.er1
  7956. ac_status=$?
  7957. grep -v '^ *+' conftest.er1 >conftest.err
  7958. rm -f conftest.er1
  7959. cat conftest.err >&5
  7960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7961. (exit $ac_status); } &&
  7962. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7964. (eval $ac_try) 2>&5
  7965. ac_status=$?
  7966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7967. (exit $ac_status); }; } &&
  7968. { ac_try='test -s conftest.$ac_objext'
  7969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7970. (eval $ac_try) 2>&5
  7971. ac_status=$?
  7972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7973. (exit $ac_status); }; }; then
  7974. ac_cv_member_struct_tm_tm_zone=yes
  7975. else
  7976. echo "$as_me: failed program was:" >&5
  7977. sed 's/^/| /' conftest.$ac_ext >&5
  7978. cat >conftest.$ac_ext <<_ACEOF
  7979. /* confdefs.h. */
  7980. _ACEOF
  7981. cat confdefs.h >>conftest.$ac_ext
  7982. cat >>conftest.$ac_ext <<_ACEOF
  7983. /* end confdefs.h. */
  7984. #include <sys/types.h>
  7985. #include <$ac_cv_struct_tm>
  7986. int
  7987. main ()
  7988. {
  7989. static struct tm ac_aggr;
  7990. if (sizeof ac_aggr.tm_zone)
  7991. return 0;
  7992. ;
  7993. return 0;
  7994. }
  7995. _ACEOF
  7996. rm -f conftest.$ac_objext
  7997. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7998. (eval $ac_compile) 2>conftest.er1
  7999. ac_status=$?
  8000. grep -v '^ *+' conftest.er1 >conftest.err
  8001. rm -f conftest.er1
  8002. cat conftest.err >&5
  8003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004. (exit $ac_status); } &&
  8005. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8007. (eval $ac_try) 2>&5
  8008. ac_status=$?
  8009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010. (exit $ac_status); }; } &&
  8011. { ac_try='test -s conftest.$ac_objext'
  8012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8013. (eval $ac_try) 2>&5
  8014. ac_status=$?
  8015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8016. (exit $ac_status); }; }; then
  8017. ac_cv_member_struct_tm_tm_zone=yes
  8018. else
  8019. echo "$as_me: failed program was:" >&5
  8020. sed 's/^/| /' conftest.$ac_ext >&5
  8021. ac_cv_member_struct_tm_tm_zone=no
  8022. fi
  8023. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8024. fi
  8025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8026. fi
  8027. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8028. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8029. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8030. cat >>confdefs.h <<_ACEOF
  8031. #define HAVE_STRUCT_TM_TM_ZONE 1
  8032. _ACEOF
  8033. fi
  8034. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8035. cat >>confdefs.h <<\_ACEOF
  8036. #define HAVE_TM_ZONE 1
  8037. _ACEOF
  8038. else
  8039. echo "$as_me:$LINENO: checking for tzname" >&5
  8040. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8041. if test "${ac_cv_var_tzname+set}" = set; then
  8042. echo $ECHO_N "(cached) $ECHO_C" >&6
  8043. else
  8044. cat >conftest.$ac_ext <<_ACEOF
  8045. /* confdefs.h. */
  8046. _ACEOF
  8047. cat confdefs.h >>conftest.$ac_ext
  8048. cat >>conftest.$ac_ext <<_ACEOF
  8049. /* end confdefs.h. */
  8050. #include <time.h>
  8051. #ifndef tzname /* For SGI. */
  8052. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8053. #endif
  8054. int
  8055. main ()
  8056. {
  8057. atoi(*tzname);
  8058. ;
  8059. return 0;
  8060. }
  8061. _ACEOF
  8062. rm -f conftest.$ac_objext conftest$ac_exeext
  8063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8064. (eval $ac_link) 2>conftest.er1
  8065. ac_status=$?
  8066. grep -v '^ *+' conftest.er1 >conftest.err
  8067. rm -f conftest.er1
  8068. cat conftest.err >&5
  8069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8070. (exit $ac_status); } &&
  8071. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8073. (eval $ac_try) 2>&5
  8074. ac_status=$?
  8075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8076. (exit $ac_status); }; } &&
  8077. { ac_try='test -s conftest$ac_exeext'
  8078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8079. (eval $ac_try) 2>&5
  8080. ac_status=$?
  8081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8082. (exit $ac_status); }; }; then
  8083. ac_cv_var_tzname=yes
  8084. else
  8085. echo "$as_me: failed program was:" >&5
  8086. sed 's/^/| /' conftest.$ac_ext >&5
  8087. ac_cv_var_tzname=no
  8088. fi
  8089. rm -f conftest.err conftest.$ac_objext \
  8090. conftest$ac_exeext conftest.$ac_ext
  8091. fi
  8092. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8093. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8094. if test $ac_cv_var_tzname = yes; then
  8095. cat >>confdefs.h <<\_ACEOF
  8096. #define HAVE_TZNAME 1
  8097. _ACEOF
  8098. fi
  8099. fi
  8100. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8101. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8102. if test "${ac_cv_struct_tm+set}" = set; then
  8103. echo $ECHO_N "(cached) $ECHO_C" >&6
  8104. else
  8105. cat >conftest.$ac_ext <<_ACEOF
  8106. /* confdefs.h. */
  8107. _ACEOF
  8108. cat confdefs.h >>conftest.$ac_ext
  8109. cat >>conftest.$ac_ext <<_ACEOF
  8110. /* end confdefs.h. */
  8111. #include <sys/types.h>
  8112. #include <time.h>
  8113. int
  8114. main ()
  8115. {
  8116. struct tm *tp; tp->tm_sec;
  8117. ;
  8118. return 0;
  8119. }
  8120. _ACEOF
  8121. rm -f conftest.$ac_objext
  8122. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8123. (eval $ac_compile) 2>conftest.er1
  8124. ac_status=$?
  8125. grep -v '^ *+' conftest.er1 >conftest.err
  8126. rm -f conftest.er1
  8127. cat conftest.err >&5
  8128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8129. (exit $ac_status); } &&
  8130. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8132. (eval $ac_try) 2>&5
  8133. ac_status=$?
  8134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8135. (exit $ac_status); }; } &&
  8136. { ac_try='test -s conftest.$ac_objext'
  8137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8138. (eval $ac_try) 2>&5
  8139. ac_status=$?
  8140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8141. (exit $ac_status); }; }; then
  8142. ac_cv_struct_tm=time.h
  8143. else
  8144. echo "$as_me: failed program was:" >&5
  8145. sed 's/^/| /' conftest.$ac_ext >&5
  8146. ac_cv_struct_tm=sys/time.h
  8147. fi
  8148. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8149. fi
  8150. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8151. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8152. if test $ac_cv_struct_tm = sys/time.h; then
  8153. cat >>confdefs.h <<\_ACEOF
  8154. #define TM_IN_SYS_TIME 1
  8155. _ACEOF
  8156. fi
  8157. #checkpoint
  8158. cat >confcache <<\_ACEOF
  8159. # This file is a shell script that caches the results of configure
  8160. # tests run on this system so they can be shared between configure
  8161. # scripts and configure runs, see configure's option --config-cache.
  8162. # It is not useful on other systems. If it contains results you don't
  8163. # want to keep, you may remove or edit it.
  8164. #
  8165. # config.status only pays attention to the cache file if you give it
  8166. # the --recheck option to rerun configure.
  8167. #
  8168. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8169. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8170. # following values.
  8171. _ACEOF
  8172. # The following way of writing the cache mishandles newlines in values,
  8173. # but we know of no workaround that is simple, portable, and efficient.
  8174. # So, don't put newlines in cache variables' values.
  8175. # Ultrix sh set writes to stderr and can't be redirected directly,
  8176. # and sets the high bit in the cache file unless we assign to the vars.
  8177. {
  8178. (set) 2>&1 |
  8179. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8180. *ac_space=\ *)
  8181. # `set' does not quote correctly, so add quotes (double-quote
  8182. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8183. sed -n \
  8184. "s/'/'\\\\''/g;
  8185. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8186. ;;
  8187. *)
  8188. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8189. sed -n \
  8190. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8191. ;;
  8192. esac;
  8193. } |
  8194. sed '
  8195. t clear
  8196. : clear
  8197. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8198. t end
  8199. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8200. : end' >>confcache
  8201. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8202. if test -w $cache_file; then
  8203. test "x$cache_file" != "x/dev/null"
  8204. cat confcache >$cache_file
  8205. else
  8206. echo "not updating unwritable cache $cache_file"
  8207. fi
  8208. fi
  8209. rm -f confcache
  8210. # Checks for library functions
  8211. for ac_header in unistd.h vfork.h
  8212. do
  8213. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8214. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8215. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8216. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8217. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8218. echo $ECHO_N "(cached) $ECHO_C" >&6
  8219. fi
  8220. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8221. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8222. else
  8223. # Is the header compilable?
  8224. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8225. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8226. cat >conftest.$ac_ext <<_ACEOF
  8227. /* confdefs.h. */
  8228. _ACEOF
  8229. cat confdefs.h >>conftest.$ac_ext
  8230. cat >>conftest.$ac_ext <<_ACEOF
  8231. /* end confdefs.h. */
  8232. $ac_includes_default
  8233. #include <$ac_header>
  8234. _ACEOF
  8235. rm -f conftest.$ac_objext
  8236. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8237. (eval $ac_compile) 2>conftest.er1
  8238. ac_status=$?
  8239. grep -v '^ *+' conftest.er1 >conftest.err
  8240. rm -f conftest.er1
  8241. cat conftest.err >&5
  8242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8243. (exit $ac_status); } &&
  8244. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8246. (eval $ac_try) 2>&5
  8247. ac_status=$?
  8248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8249. (exit $ac_status); }; } &&
  8250. { ac_try='test -s conftest.$ac_objext'
  8251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8252. (eval $ac_try) 2>&5
  8253. ac_status=$?
  8254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8255. (exit $ac_status); }; }; then
  8256. ac_header_compiler=yes
  8257. else
  8258. echo "$as_me: failed program was:" >&5
  8259. sed 's/^/| /' conftest.$ac_ext >&5
  8260. ac_header_compiler=no
  8261. fi
  8262. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8263. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8264. echo "${ECHO_T}$ac_header_compiler" >&6
  8265. # Is the header present?
  8266. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8267. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8268. cat >conftest.$ac_ext <<_ACEOF
  8269. /* confdefs.h. */
  8270. _ACEOF
  8271. cat confdefs.h >>conftest.$ac_ext
  8272. cat >>conftest.$ac_ext <<_ACEOF
  8273. /* end confdefs.h. */
  8274. #include <$ac_header>
  8275. _ACEOF
  8276. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8277. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8278. ac_status=$?
  8279. grep -v '^ *+' conftest.er1 >conftest.err
  8280. rm -f conftest.er1
  8281. cat conftest.err >&5
  8282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8283. (exit $ac_status); } >/dev/null; then
  8284. if test -s conftest.err; then
  8285. ac_cpp_err=$ac_c_preproc_warn_flag
  8286. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8287. else
  8288. ac_cpp_err=
  8289. fi
  8290. else
  8291. ac_cpp_err=yes
  8292. fi
  8293. if test -z "$ac_cpp_err"; then
  8294. ac_header_preproc=yes
  8295. else
  8296. echo "$as_me: failed program was:" >&5
  8297. sed 's/^/| /' conftest.$ac_ext >&5
  8298. ac_header_preproc=no
  8299. fi
  8300. rm -f conftest.err conftest.$ac_ext
  8301. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8302. echo "${ECHO_T}$ac_header_preproc" >&6
  8303. # So? What about this header?
  8304. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8305. yes:no: )
  8306. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8307. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8308. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8309. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8310. ac_header_preproc=yes
  8311. ;;
  8312. no:yes:* )
  8313. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8314. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8315. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8316. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8317. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8318. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8319. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8320. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8321. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8322. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8323. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8324. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8325. (
  8326. cat <<\_ASBOX
  8327. ## ------------------------------------------ ##
  8328. ## Report this to the AC_PACKAGE_NAME lists. ##
  8329. ## ------------------------------------------ ##
  8330. _ASBOX
  8331. ) |
  8332. sed "s/^/$as_me: WARNING: /" >&2
  8333. ;;
  8334. esac
  8335. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8336. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8337. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8338. echo $ECHO_N "(cached) $ECHO_C" >&6
  8339. else
  8340. eval "$as_ac_Header=\$ac_header_preproc"
  8341. fi
  8342. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8343. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8344. fi
  8345. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8346. cat >>confdefs.h <<_ACEOF
  8347. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8348. _ACEOF
  8349. fi
  8350. done
  8351. for ac_func in fork vfork
  8352. do
  8353. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8354. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8355. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8356. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8357. echo $ECHO_N "(cached) $ECHO_C" >&6
  8358. else
  8359. cat >conftest.$ac_ext <<_ACEOF
  8360. /* confdefs.h. */
  8361. _ACEOF
  8362. cat confdefs.h >>conftest.$ac_ext
  8363. cat >>conftest.$ac_ext <<_ACEOF
  8364. /* end confdefs.h. */
  8365. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8366. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8367. #define $ac_func innocuous_$ac_func
  8368. /* System header to define __stub macros and hopefully few prototypes,
  8369. which can conflict with char $ac_func (); below.
  8370. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8371. <limits.h> exists even on freestanding compilers. */
  8372. #ifdef __STDC__
  8373. # include <limits.h>
  8374. #else
  8375. # include <assert.h>
  8376. #endif
  8377. #undef $ac_func
  8378. /* Override any gcc2 internal prototype to avoid an error. */
  8379. #ifdef __cplusplus
  8380. extern "C"
  8381. {
  8382. #endif
  8383. /* We use char because int might match the return type of a gcc2
  8384. builtin and then its argument prototype would still apply. */
  8385. char $ac_func ();
  8386. /* The GNU C library defines this for functions which it implements
  8387. to always fail with ENOSYS. Some functions are actually named
  8388. something starting with __ and the normal name is an alias. */
  8389. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8390. choke me
  8391. #else
  8392. char (*f) () = $ac_func;
  8393. #endif
  8394. #ifdef __cplusplus
  8395. }
  8396. #endif
  8397. int
  8398. main ()
  8399. {
  8400. return f != $ac_func;
  8401. ;
  8402. return 0;
  8403. }
  8404. _ACEOF
  8405. rm -f conftest.$ac_objext conftest$ac_exeext
  8406. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8407. (eval $ac_link) 2>conftest.er1
  8408. ac_status=$?
  8409. grep -v '^ *+' conftest.er1 >conftest.err
  8410. rm -f conftest.er1
  8411. cat conftest.err >&5
  8412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8413. (exit $ac_status); } &&
  8414. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8415. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8416. (eval $ac_try) 2>&5
  8417. ac_status=$?
  8418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8419. (exit $ac_status); }; } &&
  8420. { ac_try='test -s conftest$ac_exeext'
  8421. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8422. (eval $ac_try) 2>&5
  8423. ac_status=$?
  8424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8425. (exit $ac_status); }; }; then
  8426. eval "$as_ac_var=yes"
  8427. else
  8428. echo "$as_me: failed program was:" >&5
  8429. sed 's/^/| /' conftest.$ac_ext >&5
  8430. eval "$as_ac_var=no"
  8431. fi
  8432. rm -f conftest.err conftest.$ac_objext \
  8433. conftest$ac_exeext conftest.$ac_ext
  8434. fi
  8435. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8436. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8437. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8438. cat >>confdefs.h <<_ACEOF
  8439. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8440. _ACEOF
  8441. fi
  8442. done
  8443. if test "x$ac_cv_func_fork" = xyes; then
  8444. echo "$as_me:$LINENO: checking for working fork" >&5
  8445. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8446. if test "${ac_cv_func_fork_works+set}" = set; then
  8447. echo $ECHO_N "(cached) $ECHO_C" >&6
  8448. else
  8449. if test "$cross_compiling" = yes; then
  8450. ac_cv_func_fork_works=cross
  8451. else
  8452. cat >conftest.$ac_ext <<_ACEOF
  8453. /* By Ruediger Kuhlmann. */
  8454. #include <sys/types.h>
  8455. #if HAVE_UNISTD_H
  8456. # include <unistd.h>
  8457. #endif
  8458. /* Some systems only have a dummy stub for fork() */
  8459. int main ()
  8460. {
  8461. if (fork() < 0)
  8462. exit (1);
  8463. exit (0);
  8464. }
  8465. _ACEOF
  8466. rm -f conftest$ac_exeext
  8467. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8468. (eval $ac_link) 2>&5
  8469. ac_status=$?
  8470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8471. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8473. (eval $ac_try) 2>&5
  8474. ac_status=$?
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. (exit $ac_status); }; }; then
  8477. ac_cv_func_fork_works=yes
  8478. else
  8479. echo "$as_me: program exited with status $ac_status" >&5
  8480. echo "$as_me: failed program was:" >&5
  8481. sed 's/^/| /' conftest.$ac_ext >&5
  8482. ( exit $ac_status )
  8483. ac_cv_func_fork_works=no
  8484. fi
  8485. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8486. fi
  8487. fi
  8488. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8489. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8490. else
  8491. ac_cv_func_fork_works=$ac_cv_func_fork
  8492. fi
  8493. if test "x$ac_cv_func_fork_works" = xcross; then
  8494. case $host in
  8495. *-*-amigaos* | *-*-msdosdjgpp*)
  8496. # Override, as these systems have only a dummy fork() stub
  8497. ac_cv_func_fork_works=no
  8498. ;;
  8499. *)
  8500. ac_cv_func_fork_works=yes
  8501. ;;
  8502. esac
  8503. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8504. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8505. fi
  8506. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8507. if test "x$ac_cv_func_vfork" = xyes; then
  8508. echo "$as_me:$LINENO: checking for working vfork" >&5
  8509. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8510. if test "${ac_cv_func_vfork_works+set}" = set; then
  8511. echo $ECHO_N "(cached) $ECHO_C" >&6
  8512. else
  8513. if test "$cross_compiling" = yes; then
  8514. ac_cv_func_vfork_works=cross
  8515. else
  8516. cat >conftest.$ac_ext <<_ACEOF
  8517. /* confdefs.h. */
  8518. _ACEOF
  8519. cat confdefs.h >>conftest.$ac_ext
  8520. cat >>conftest.$ac_ext <<_ACEOF
  8521. /* end confdefs.h. */
  8522. /* Thanks to Paul Eggert for this test. */
  8523. #include <stdio.h>
  8524. #include <stdlib.h>
  8525. #include <sys/types.h>
  8526. #include <sys/stat.h>
  8527. #include <sys/wait.h>
  8528. #if HAVE_UNISTD_H
  8529. # include <unistd.h>
  8530. #endif
  8531. #if HAVE_VFORK_H
  8532. # include <vfork.h>
  8533. #endif
  8534. /* On some sparc systems, changes by the child to local and incoming
  8535. argument registers are propagated back to the parent. The compiler
  8536. is told about this with #include <vfork.h>, but some compilers
  8537. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8538. static variable whose address is put into a register that is
  8539. clobbered by the vfork. */
  8540. static void
  8541. #ifdef __cplusplus
  8542. sparc_address_test (int arg)
  8543. # else
  8544. sparc_address_test (arg) int arg;
  8545. #endif
  8546. {
  8547. static pid_t child;
  8548. if (!child) {
  8549. child = vfork ();
  8550. if (child < 0) {
  8551. perror ("vfork");
  8552. _exit(2);
  8553. }
  8554. if (!child) {
  8555. arg = getpid();
  8556. write(-1, "", 0);
  8557. _exit (arg);
  8558. }
  8559. }
  8560. }
  8561. int
  8562. main ()
  8563. {
  8564. pid_t parent = getpid ();
  8565. pid_t child;
  8566. sparc_address_test (0);
  8567. child = vfork ();
  8568. if (child == 0) {
  8569. /* Here is another test for sparc vfork register problems. This
  8570. test uses lots of local variables, at least as many local
  8571. variables as main has allocated so far including compiler
  8572. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8573. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8574. reuse the register of parent for one of the local variables,
  8575. since it will think that parent can't possibly be used any more
  8576. in this routine. Assigning to the local variable will thus
  8577. munge parent in the parent process. */
  8578. pid_t
  8579. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8580. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8581. /* Convince the compiler that p..p7 are live; otherwise, it might
  8582. use the same hardware register for all 8 local variables. */
  8583. if (p != p1 || p != p2 || p != p3 || p != p4
  8584. || p != p5 || p != p6 || p != p7)
  8585. _exit(1);
  8586. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8587. from child file descriptors. If the child closes a descriptor
  8588. before it execs or exits, this munges the parent's descriptor
  8589. as well. Test for this by closing stdout in the child. */
  8590. _exit(close(fileno(stdout)) != 0);
  8591. } else {
  8592. int status;
  8593. struct stat st;
  8594. while (wait(&status) != child)
  8595. ;
  8596. exit(
  8597. /* Was there some problem with vforking? */
  8598. child < 0
  8599. /* Did the child fail? (This shouldn't happen.) */
  8600. || status
  8601. /* Did the vfork/compiler bug occur? */
  8602. || parent != getpid()
  8603. /* Did the file descriptor bug occur? */
  8604. || fstat(fileno(stdout), &st) != 0
  8605. );
  8606. }
  8607. }
  8608. _ACEOF
  8609. rm -f conftest$ac_exeext
  8610. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8611. (eval $ac_link) 2>&5
  8612. ac_status=$?
  8613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8614. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8616. (eval $ac_try) 2>&5
  8617. ac_status=$?
  8618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8619. (exit $ac_status); }; }; then
  8620. ac_cv_func_vfork_works=yes
  8621. else
  8622. echo "$as_me: program exited with status $ac_status" >&5
  8623. echo "$as_me: failed program was:" >&5
  8624. sed 's/^/| /' conftest.$ac_ext >&5
  8625. ( exit $ac_status )
  8626. ac_cv_func_vfork_works=no
  8627. fi
  8628. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8629. fi
  8630. fi
  8631. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8632. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8633. fi;
  8634. if test "x$ac_cv_func_fork_works" = xcross; then
  8635. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8636. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8637. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8638. fi
  8639. if test "x$ac_cv_func_vfork_works" = xyes; then
  8640. cat >>confdefs.h <<\_ACEOF
  8641. #define HAVE_WORKING_VFORK 1
  8642. _ACEOF
  8643. else
  8644. cat >>confdefs.h <<\_ACEOF
  8645. #define vfork fork
  8646. _ACEOF
  8647. fi
  8648. if test "x$ac_cv_func_fork_works" = xyes; then
  8649. cat >>confdefs.h <<\_ACEOF
  8650. #define HAVE_WORKING_FORK 1
  8651. _ACEOF
  8652. fi
  8653. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8654. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8655. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8656. echo $ECHO_N "(cached) $ECHO_C" >&6
  8657. else
  8658. rm -f conftest.sym conftest.file
  8659. echo >conftest.file
  8660. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8661. if test "$cross_compiling" = yes; then
  8662. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8663. else
  8664. cat >conftest.$ac_ext <<_ACEOF
  8665. /* confdefs.h. */
  8666. _ACEOF
  8667. cat confdefs.h >>conftest.$ac_ext
  8668. cat >>conftest.$ac_ext <<_ACEOF
  8669. /* end confdefs.h. */
  8670. $ac_includes_default
  8671. int
  8672. main ()
  8673. {
  8674. struct stat sbuf;
  8675. /* Linux will dereference the symlink and fail.
  8676. That is better in the sense that it means we will not
  8677. have to compile and use the lstat wrapper. */
  8678. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8679. ;
  8680. return 0;
  8681. }
  8682. _ACEOF
  8683. rm -f conftest$ac_exeext
  8684. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8685. (eval $ac_link) 2>&5
  8686. ac_status=$?
  8687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8688. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8690. (eval $ac_try) 2>&5
  8691. ac_status=$?
  8692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8693. (exit $ac_status); }; }; then
  8694. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8695. else
  8696. echo "$as_me: program exited with status $ac_status" >&5
  8697. echo "$as_me: failed program was:" >&5
  8698. sed 's/^/| /' conftest.$ac_ext >&5
  8699. ( exit $ac_status )
  8700. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8701. fi
  8702. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8703. fi
  8704. else
  8705. # If the `ln -s' command failed, then we probably don't even
  8706. # have an lstat function.
  8707. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8708. fi
  8709. rm -f conftest.sym conftest.file
  8710. fi
  8711. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8712. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8713. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8714. cat >>confdefs.h <<_ACEOF
  8715. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8716. _ACEOF
  8717. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8718. case $LIBOBJS in
  8719. "lstat.$ac_objext" | \
  8720. *" lstat.$ac_objext" | \
  8721. "lstat.$ac_objext "* | \
  8722. *" lstat.$ac_objext "* ) ;;
  8723. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8724. esac
  8725. fi
  8726. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8727. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8728. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8729. echo $ECHO_N "(cached) $ECHO_C" >&6
  8730. else
  8731. if test "$cross_compiling" = yes; then
  8732. ac_cv_func_lstat_empty_string_bug=yes
  8733. else
  8734. cat >conftest.$ac_ext <<_ACEOF
  8735. /* confdefs.h. */
  8736. _ACEOF
  8737. cat confdefs.h >>conftest.$ac_ext
  8738. cat >>conftest.$ac_ext <<_ACEOF
  8739. /* end confdefs.h. */
  8740. $ac_includes_default
  8741. int
  8742. main ()
  8743. {
  8744. struct stat sbuf;
  8745. exit (lstat ("", &sbuf) ? 1 : 0);
  8746. ;
  8747. return 0;
  8748. }
  8749. _ACEOF
  8750. rm -f conftest$ac_exeext
  8751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8752. (eval $ac_link) 2>&5
  8753. ac_status=$?
  8754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8755. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8757. (eval $ac_try) 2>&5
  8758. ac_status=$?
  8759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8760. (exit $ac_status); }; }; then
  8761. ac_cv_func_lstat_empty_string_bug=yes
  8762. else
  8763. echo "$as_me: program exited with status $ac_status" >&5
  8764. echo "$as_me: failed program was:" >&5
  8765. sed 's/^/| /' conftest.$ac_ext >&5
  8766. ( exit $ac_status )
  8767. ac_cv_func_lstat_empty_string_bug=no
  8768. fi
  8769. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8770. fi
  8771. fi
  8772. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8773. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8774. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8775. case $LIBOBJS in
  8776. "lstat.$ac_objext" | \
  8777. *" lstat.$ac_objext" | \
  8778. "lstat.$ac_objext "* | \
  8779. *" lstat.$ac_objext "* ) ;;
  8780. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8781. esac
  8782. cat >>confdefs.h <<_ACEOF
  8783. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8784. _ACEOF
  8785. fi
  8786. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8787. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8788. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8789. echo $ECHO_N "(cached) $ECHO_C" >&6
  8790. else
  8791. rm -f conftest.sym conftest.file
  8792. echo >conftest.file
  8793. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8794. if test "$cross_compiling" = yes; then
  8795. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8796. else
  8797. cat >conftest.$ac_ext <<_ACEOF
  8798. /* confdefs.h. */
  8799. _ACEOF
  8800. cat confdefs.h >>conftest.$ac_ext
  8801. cat >>conftest.$ac_ext <<_ACEOF
  8802. /* end confdefs.h. */
  8803. $ac_includes_default
  8804. int
  8805. main ()
  8806. {
  8807. struct stat sbuf;
  8808. /* Linux will dereference the symlink and fail.
  8809. That is better in the sense that it means we will not
  8810. have to compile and use the lstat wrapper. */
  8811. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8812. ;
  8813. return 0;
  8814. }
  8815. _ACEOF
  8816. rm -f conftest$ac_exeext
  8817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8818. (eval $ac_link) 2>&5
  8819. ac_status=$?
  8820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8821. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8823. (eval $ac_try) 2>&5
  8824. ac_status=$?
  8825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8826. (exit $ac_status); }; }; then
  8827. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8828. else
  8829. echo "$as_me: program exited with status $ac_status" >&5
  8830. echo "$as_me: failed program was:" >&5
  8831. sed 's/^/| /' conftest.$ac_ext >&5
  8832. ( exit $ac_status )
  8833. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8834. fi
  8835. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8836. fi
  8837. else
  8838. # If the `ln -s' command failed, then we probably don't even
  8839. # have an lstat function.
  8840. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8841. fi
  8842. rm -f conftest.sym conftest.file
  8843. fi
  8844. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8845. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8846. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8847. cat >>confdefs.h <<_ACEOF
  8848. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8849. _ACEOF
  8850. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8851. case $LIBOBJS in
  8852. "lstat.$ac_objext" | \
  8853. *" lstat.$ac_objext" | \
  8854. "lstat.$ac_objext "* | \
  8855. *" lstat.$ac_objext "* ) ;;
  8856. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8857. esac
  8858. fi
  8859. for ac_header in stdlib.h
  8860. do
  8861. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8862. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8863. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8864. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8865. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8866. echo $ECHO_N "(cached) $ECHO_C" >&6
  8867. fi
  8868. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8869. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8870. else
  8871. # Is the header compilable?
  8872. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8873. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8874. cat >conftest.$ac_ext <<_ACEOF
  8875. /* confdefs.h. */
  8876. _ACEOF
  8877. cat confdefs.h >>conftest.$ac_ext
  8878. cat >>conftest.$ac_ext <<_ACEOF
  8879. /* end confdefs.h. */
  8880. $ac_includes_default
  8881. #include <$ac_header>
  8882. _ACEOF
  8883. rm -f conftest.$ac_objext
  8884. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8885. (eval $ac_compile) 2>conftest.er1
  8886. ac_status=$?
  8887. grep -v '^ *+' conftest.er1 >conftest.err
  8888. rm -f conftest.er1
  8889. cat conftest.err >&5
  8890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8891. (exit $ac_status); } &&
  8892. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8894. (eval $ac_try) 2>&5
  8895. ac_status=$?
  8896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8897. (exit $ac_status); }; } &&
  8898. { ac_try='test -s conftest.$ac_objext'
  8899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8900. (eval $ac_try) 2>&5
  8901. ac_status=$?
  8902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8903. (exit $ac_status); }; }; then
  8904. ac_header_compiler=yes
  8905. else
  8906. echo "$as_me: failed program was:" >&5
  8907. sed 's/^/| /' conftest.$ac_ext >&5
  8908. ac_header_compiler=no
  8909. fi
  8910. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8911. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8912. echo "${ECHO_T}$ac_header_compiler" >&6
  8913. # Is the header present?
  8914. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8915. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8916. cat >conftest.$ac_ext <<_ACEOF
  8917. /* confdefs.h. */
  8918. _ACEOF
  8919. cat confdefs.h >>conftest.$ac_ext
  8920. cat >>conftest.$ac_ext <<_ACEOF
  8921. /* end confdefs.h. */
  8922. #include <$ac_header>
  8923. _ACEOF
  8924. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8925. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8926. ac_status=$?
  8927. grep -v '^ *+' conftest.er1 >conftest.err
  8928. rm -f conftest.er1
  8929. cat conftest.err >&5
  8930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8931. (exit $ac_status); } >/dev/null; then
  8932. if test -s conftest.err; then
  8933. ac_cpp_err=$ac_c_preproc_warn_flag
  8934. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8935. else
  8936. ac_cpp_err=
  8937. fi
  8938. else
  8939. ac_cpp_err=yes
  8940. fi
  8941. if test -z "$ac_cpp_err"; then
  8942. ac_header_preproc=yes
  8943. else
  8944. echo "$as_me: failed program was:" >&5
  8945. sed 's/^/| /' conftest.$ac_ext >&5
  8946. ac_header_preproc=no
  8947. fi
  8948. rm -f conftest.err conftest.$ac_ext
  8949. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8950. echo "${ECHO_T}$ac_header_preproc" >&6
  8951. # So? What about this header?
  8952. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8953. yes:no: )
  8954. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8955. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8956. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8957. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8958. ac_header_preproc=yes
  8959. ;;
  8960. no:yes:* )
  8961. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8962. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8963. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8964. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8965. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8966. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8967. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8968. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8969. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8970. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8971. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8972. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8973. (
  8974. cat <<\_ASBOX
  8975. ## ------------------------------------------ ##
  8976. ## Report this to the AC_PACKAGE_NAME lists. ##
  8977. ## ------------------------------------------ ##
  8978. _ASBOX
  8979. ) |
  8980. sed "s/^/$as_me: WARNING: /" >&2
  8981. ;;
  8982. esac
  8983. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8984. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8985. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8986. echo $ECHO_N "(cached) $ECHO_C" >&6
  8987. else
  8988. eval "$as_ac_Header=\$ac_header_preproc"
  8989. fi
  8990. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8991. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8992. fi
  8993. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8994. cat >>confdefs.h <<_ACEOF
  8995. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8996. _ACEOF
  8997. fi
  8998. done
  8999. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9000. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9001. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9002. echo $ECHO_N "(cached) $ECHO_C" >&6
  9003. else
  9004. if test "$cross_compiling" = yes; then
  9005. ac_cv_func_malloc_0_nonnull=no
  9006. else
  9007. cat >conftest.$ac_ext <<_ACEOF
  9008. /* confdefs.h. */
  9009. _ACEOF
  9010. cat confdefs.h >>conftest.$ac_ext
  9011. cat >>conftest.$ac_ext <<_ACEOF
  9012. /* end confdefs.h. */
  9013. #if STDC_HEADERS || HAVE_STDLIB_H
  9014. # include <stdlib.h>
  9015. #else
  9016. char *malloc ();
  9017. #endif
  9018. int
  9019. main ()
  9020. {
  9021. exit (malloc (0) ? 0 : 1);
  9022. ;
  9023. return 0;
  9024. }
  9025. _ACEOF
  9026. rm -f conftest$ac_exeext
  9027. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9028. (eval $ac_link) 2>&5
  9029. ac_status=$?
  9030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9031. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9033. (eval $ac_try) 2>&5
  9034. ac_status=$?
  9035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9036. (exit $ac_status); }; }; then
  9037. ac_cv_func_malloc_0_nonnull=yes
  9038. else
  9039. echo "$as_me: program exited with status $ac_status" >&5
  9040. echo "$as_me: failed program was:" >&5
  9041. sed 's/^/| /' conftest.$ac_ext >&5
  9042. ( exit $ac_status )
  9043. ac_cv_func_malloc_0_nonnull=no
  9044. fi
  9045. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9046. fi
  9047. fi
  9048. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9049. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9050. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9051. cat >>confdefs.h <<\_ACEOF
  9052. #define HAVE_MALLOC 1
  9053. _ACEOF
  9054. else
  9055. cat >>confdefs.h <<\_ACEOF
  9056. #define HAVE_MALLOC 0
  9057. _ACEOF
  9058. case $LIBOBJS in
  9059. "malloc.$ac_objext" | \
  9060. *" malloc.$ac_objext" | \
  9061. "malloc.$ac_objext "* | \
  9062. *" malloc.$ac_objext "* ) ;;
  9063. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9064. esac
  9065. cat >>confdefs.h <<\_ACEOF
  9066. #define malloc rpl_malloc
  9067. _ACEOF
  9068. fi
  9069. for ac_header in stdlib.h sys/time.h unistd.h
  9070. do
  9071. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9072. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9073. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9074. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9075. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9076. echo $ECHO_N "(cached) $ECHO_C" >&6
  9077. fi
  9078. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9079. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9080. else
  9081. # Is the header compilable?
  9082. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9083. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9084. cat >conftest.$ac_ext <<_ACEOF
  9085. /* confdefs.h. */
  9086. _ACEOF
  9087. cat confdefs.h >>conftest.$ac_ext
  9088. cat >>conftest.$ac_ext <<_ACEOF
  9089. /* end confdefs.h. */
  9090. $ac_includes_default
  9091. #include <$ac_header>
  9092. _ACEOF
  9093. rm -f conftest.$ac_objext
  9094. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9095. (eval $ac_compile) 2>conftest.er1
  9096. ac_status=$?
  9097. grep -v '^ *+' conftest.er1 >conftest.err
  9098. rm -f conftest.er1
  9099. cat conftest.err >&5
  9100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9101. (exit $ac_status); } &&
  9102. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9104. (eval $ac_try) 2>&5
  9105. ac_status=$?
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); }; } &&
  9108. { ac_try='test -s conftest.$ac_objext'
  9109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9110. (eval $ac_try) 2>&5
  9111. ac_status=$?
  9112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9113. (exit $ac_status); }; }; then
  9114. ac_header_compiler=yes
  9115. else
  9116. echo "$as_me: failed program was:" >&5
  9117. sed 's/^/| /' conftest.$ac_ext >&5
  9118. ac_header_compiler=no
  9119. fi
  9120. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9121. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9122. echo "${ECHO_T}$ac_header_compiler" >&6
  9123. # Is the header present?
  9124. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9125. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9126. cat >conftest.$ac_ext <<_ACEOF
  9127. /* confdefs.h. */
  9128. _ACEOF
  9129. cat confdefs.h >>conftest.$ac_ext
  9130. cat >>conftest.$ac_ext <<_ACEOF
  9131. /* end confdefs.h. */
  9132. #include <$ac_header>
  9133. _ACEOF
  9134. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9135. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9136. ac_status=$?
  9137. grep -v '^ *+' conftest.er1 >conftest.err
  9138. rm -f conftest.er1
  9139. cat conftest.err >&5
  9140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9141. (exit $ac_status); } >/dev/null; then
  9142. if test -s conftest.err; then
  9143. ac_cpp_err=$ac_c_preproc_warn_flag
  9144. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9145. else
  9146. ac_cpp_err=
  9147. fi
  9148. else
  9149. ac_cpp_err=yes
  9150. fi
  9151. if test -z "$ac_cpp_err"; then
  9152. ac_header_preproc=yes
  9153. else
  9154. echo "$as_me: failed program was:" >&5
  9155. sed 's/^/| /' conftest.$ac_ext >&5
  9156. ac_header_preproc=no
  9157. fi
  9158. rm -f conftest.err conftest.$ac_ext
  9159. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9160. echo "${ECHO_T}$ac_header_preproc" >&6
  9161. # So? What about this header?
  9162. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9163. yes:no: )
  9164. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9165. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9166. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9167. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9168. ac_header_preproc=yes
  9169. ;;
  9170. no:yes:* )
  9171. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9172. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9173. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9174. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9175. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9176. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9177. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9178. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9179. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9180. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9181. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9182. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9183. (
  9184. cat <<\_ASBOX
  9185. ## ------------------------------------------ ##
  9186. ## Report this to the AC_PACKAGE_NAME lists. ##
  9187. ## ------------------------------------------ ##
  9188. _ASBOX
  9189. ) |
  9190. sed "s/^/$as_me: WARNING: /" >&2
  9191. ;;
  9192. esac
  9193. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9194. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9196. echo $ECHO_N "(cached) $ECHO_C" >&6
  9197. else
  9198. eval "$as_ac_Header=\$ac_header_preproc"
  9199. fi
  9200. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9201. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9202. fi
  9203. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9204. cat >>confdefs.h <<_ACEOF
  9205. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9206. _ACEOF
  9207. fi
  9208. done
  9209. for ac_func in alarm
  9210. do
  9211. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9212. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9213. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9214. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9215. echo $ECHO_N "(cached) $ECHO_C" >&6
  9216. else
  9217. cat >conftest.$ac_ext <<_ACEOF
  9218. /* confdefs.h. */
  9219. _ACEOF
  9220. cat confdefs.h >>conftest.$ac_ext
  9221. cat >>conftest.$ac_ext <<_ACEOF
  9222. /* end confdefs.h. */
  9223. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9224. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9225. #define $ac_func innocuous_$ac_func
  9226. /* System header to define __stub macros and hopefully few prototypes,
  9227. which can conflict with char $ac_func (); below.
  9228. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9229. <limits.h> exists even on freestanding compilers. */
  9230. #ifdef __STDC__
  9231. # include <limits.h>
  9232. #else
  9233. # include <assert.h>
  9234. #endif
  9235. #undef $ac_func
  9236. /* Override any gcc2 internal prototype to avoid an error. */
  9237. #ifdef __cplusplus
  9238. extern "C"
  9239. {
  9240. #endif
  9241. /* We use char because int might match the return type of a gcc2
  9242. builtin and then its argument prototype would still apply. */
  9243. char $ac_func ();
  9244. /* The GNU C library defines this for functions which it implements
  9245. to always fail with ENOSYS. Some functions are actually named
  9246. something starting with __ and the normal name is an alias. */
  9247. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9248. choke me
  9249. #else
  9250. char (*f) () = $ac_func;
  9251. #endif
  9252. #ifdef __cplusplus
  9253. }
  9254. #endif
  9255. int
  9256. main ()
  9257. {
  9258. return f != $ac_func;
  9259. ;
  9260. return 0;
  9261. }
  9262. _ACEOF
  9263. rm -f conftest.$ac_objext conftest$ac_exeext
  9264. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9265. (eval $ac_link) 2>conftest.er1
  9266. ac_status=$?
  9267. grep -v '^ *+' conftest.er1 >conftest.err
  9268. rm -f conftest.er1
  9269. cat conftest.err >&5
  9270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9271. (exit $ac_status); } &&
  9272. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9274. (eval $ac_try) 2>&5
  9275. ac_status=$?
  9276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9277. (exit $ac_status); }; } &&
  9278. { ac_try='test -s conftest$ac_exeext'
  9279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9280. (eval $ac_try) 2>&5
  9281. ac_status=$?
  9282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9283. (exit $ac_status); }; }; then
  9284. eval "$as_ac_var=yes"
  9285. else
  9286. echo "$as_me: failed program was:" >&5
  9287. sed 's/^/| /' conftest.$ac_ext >&5
  9288. eval "$as_ac_var=no"
  9289. fi
  9290. rm -f conftest.err conftest.$ac_objext \
  9291. conftest$ac_exeext conftest.$ac_ext
  9292. fi
  9293. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9294. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9295. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9296. cat >>confdefs.h <<_ACEOF
  9297. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9298. _ACEOF
  9299. fi
  9300. done
  9301. echo "$as_me:$LINENO: checking for working mktime" >&5
  9302. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9303. if test "${ac_cv_func_working_mktime+set}" = set; then
  9304. echo $ECHO_N "(cached) $ECHO_C" >&6
  9305. else
  9306. if test "$cross_compiling" = yes; then
  9307. ac_cv_func_working_mktime=no
  9308. else
  9309. cat >conftest.$ac_ext <<_ACEOF
  9310. /* confdefs.h. */
  9311. _ACEOF
  9312. cat confdefs.h >>conftest.$ac_ext
  9313. cat >>conftest.$ac_ext <<_ACEOF
  9314. /* end confdefs.h. */
  9315. /* Test program from Paul Eggert and Tony Leneis. */
  9316. #if TIME_WITH_SYS_TIME
  9317. # include <sys/time.h>
  9318. # include <time.h>
  9319. #else
  9320. # if HAVE_SYS_TIME_H
  9321. # include <sys/time.h>
  9322. # else
  9323. # include <time.h>
  9324. # endif
  9325. #endif
  9326. #if HAVE_STDLIB_H
  9327. # include <stdlib.h>
  9328. #endif
  9329. #if HAVE_UNISTD_H
  9330. # include <unistd.h>
  9331. #endif
  9332. #if !HAVE_ALARM
  9333. # define alarm(X) /* empty */
  9334. #endif
  9335. /* Work around redefinition to rpl_putenv by other config tests. */
  9336. #undef putenv
  9337. static time_t time_t_max;
  9338. static time_t time_t_min;
  9339. /* Values we'll use to set the TZ environment variable. */
  9340. static char *tz_strings[] = {
  9341. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9342. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9343. };
  9344. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9345. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9346. Based on a problem report from Andreas Jaeger. */
  9347. static void
  9348. spring_forward_gap ()
  9349. {
  9350. /* glibc (up to about 1998-10-07) failed this test. */
  9351. struct tm tm;
  9352. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9353. instead of "TZ=America/Vancouver" in order to detect the bug even
  9354. on systems that don't support the Olson extension, or don't have the
  9355. full zoneinfo tables installed. */
  9356. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9357. tm.tm_year = 98;
  9358. tm.tm_mon = 3;
  9359. tm.tm_mday = 5;
  9360. tm.tm_hour = 2;
  9361. tm.tm_min = 0;
  9362. tm.tm_sec = 0;
  9363. tm.tm_isdst = -1;
  9364. if (mktime (&tm) == (time_t)-1)
  9365. exit (1);
  9366. }
  9367. static void
  9368. mktime_test1 (now)
  9369. time_t now;
  9370. {
  9371. struct tm *lt;
  9372. if ((lt = localtime (&now)) && mktime (lt) != now)
  9373. exit (1);
  9374. }
  9375. static void
  9376. mktime_test (now)
  9377. time_t now;
  9378. {
  9379. mktime_test1 (now);
  9380. mktime_test1 ((time_t) (time_t_max - now));
  9381. mktime_test1 ((time_t) (time_t_min + now));
  9382. }
  9383. static void
  9384. irix_6_4_bug ()
  9385. {
  9386. /* Based on code from Ariel Faigon. */
  9387. struct tm tm;
  9388. tm.tm_year = 96;
  9389. tm.tm_mon = 3;
  9390. tm.tm_mday = 0;
  9391. tm.tm_hour = 0;
  9392. tm.tm_min = 0;
  9393. tm.tm_sec = 0;
  9394. tm.tm_isdst = -1;
  9395. mktime (&tm);
  9396. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9397. exit (1);
  9398. }
  9399. static void
  9400. bigtime_test (j)
  9401. int j;
  9402. {
  9403. struct tm tm;
  9404. time_t now;
  9405. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9406. now = mktime (&tm);
  9407. if (now != (time_t) -1)
  9408. {
  9409. struct tm *lt = localtime (&now);
  9410. if (! (lt
  9411. && lt->tm_year == tm.tm_year
  9412. && lt->tm_mon == tm.tm_mon
  9413. && lt->tm_mday == tm.tm_mday
  9414. && lt->tm_hour == tm.tm_hour
  9415. && lt->tm_min == tm.tm_min
  9416. && lt->tm_sec == tm.tm_sec
  9417. && lt->tm_yday == tm.tm_yday
  9418. && lt->tm_wday == tm.tm_wday
  9419. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9420. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9421. exit (1);
  9422. }
  9423. }
  9424. int
  9425. main ()
  9426. {
  9427. time_t t, delta;
  9428. int i, j;
  9429. /* This test makes some buggy mktime implementations loop.
  9430. Give up after 60 seconds; a mktime slower than that
  9431. isn't worth using anyway. */
  9432. alarm (60);
  9433. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9434. continue;
  9435. time_t_max--;
  9436. if ((time_t) -1 < 0)
  9437. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9438. continue;
  9439. delta = time_t_max / 997; /* a suitable prime number */
  9440. for (i = 0; i < N_STRINGS; i++)
  9441. {
  9442. if (tz_strings[i])
  9443. putenv (tz_strings[i]);
  9444. for (t = 0; t <= time_t_max - delta; t += delta)
  9445. mktime_test (t);
  9446. mktime_test ((time_t) 1);
  9447. mktime_test ((time_t) (60 * 60));
  9448. mktime_test ((time_t) (60 * 60 * 24));
  9449. for (j = 1; 0 < j; j *= 2)
  9450. bigtime_test (j);
  9451. bigtime_test (j - 1);
  9452. }
  9453. irix_6_4_bug ();
  9454. spring_forward_gap ();
  9455. exit (0);
  9456. }
  9457. _ACEOF
  9458. rm -f conftest$ac_exeext
  9459. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9460. (eval $ac_link) 2>&5
  9461. ac_status=$?
  9462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9463. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9465. (eval $ac_try) 2>&5
  9466. ac_status=$?
  9467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9468. (exit $ac_status); }; }; then
  9469. ac_cv_func_working_mktime=yes
  9470. else
  9471. echo "$as_me: program exited with status $ac_status" >&5
  9472. echo "$as_me: failed program was:" >&5
  9473. sed 's/^/| /' conftest.$ac_ext >&5
  9474. ( exit $ac_status )
  9475. ac_cv_func_working_mktime=no
  9476. fi
  9477. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9478. fi
  9479. fi
  9480. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9481. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9482. if test $ac_cv_func_working_mktime = no; then
  9483. case $LIBOBJS in
  9484. "mktime.$ac_objext" | \
  9485. *" mktime.$ac_objext" | \
  9486. "mktime.$ac_objext "* | \
  9487. *" mktime.$ac_objext "* ) ;;
  9488. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9489. esac
  9490. fi
  9491. for ac_header in stdlib.h unistd.h
  9492. do
  9493. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9494. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9495. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9496. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9497. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9498. echo $ECHO_N "(cached) $ECHO_C" >&6
  9499. fi
  9500. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9501. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9502. else
  9503. # Is the header compilable?
  9504. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9505. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9506. cat >conftest.$ac_ext <<_ACEOF
  9507. /* confdefs.h. */
  9508. _ACEOF
  9509. cat confdefs.h >>conftest.$ac_ext
  9510. cat >>conftest.$ac_ext <<_ACEOF
  9511. /* end confdefs.h. */
  9512. $ac_includes_default
  9513. #include <$ac_header>
  9514. _ACEOF
  9515. rm -f conftest.$ac_objext
  9516. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9517. (eval $ac_compile) 2>conftest.er1
  9518. ac_status=$?
  9519. grep -v '^ *+' conftest.er1 >conftest.err
  9520. rm -f conftest.er1
  9521. cat conftest.err >&5
  9522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9523. (exit $ac_status); } &&
  9524. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9526. (eval $ac_try) 2>&5
  9527. ac_status=$?
  9528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9529. (exit $ac_status); }; } &&
  9530. { ac_try='test -s conftest.$ac_objext'
  9531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9532. (eval $ac_try) 2>&5
  9533. ac_status=$?
  9534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9535. (exit $ac_status); }; }; then
  9536. ac_header_compiler=yes
  9537. else
  9538. echo "$as_me: failed program was:" >&5
  9539. sed 's/^/| /' conftest.$ac_ext >&5
  9540. ac_header_compiler=no
  9541. fi
  9542. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9543. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9544. echo "${ECHO_T}$ac_header_compiler" >&6
  9545. # Is the header present?
  9546. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9547. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9548. cat >conftest.$ac_ext <<_ACEOF
  9549. /* confdefs.h. */
  9550. _ACEOF
  9551. cat confdefs.h >>conftest.$ac_ext
  9552. cat >>conftest.$ac_ext <<_ACEOF
  9553. /* end confdefs.h. */
  9554. #include <$ac_header>
  9555. _ACEOF
  9556. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9557. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9558. ac_status=$?
  9559. grep -v '^ *+' conftest.er1 >conftest.err
  9560. rm -f conftest.er1
  9561. cat conftest.err >&5
  9562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9563. (exit $ac_status); } >/dev/null; then
  9564. if test -s conftest.err; then
  9565. ac_cpp_err=$ac_c_preproc_warn_flag
  9566. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9567. else
  9568. ac_cpp_err=
  9569. fi
  9570. else
  9571. ac_cpp_err=yes
  9572. fi
  9573. if test -z "$ac_cpp_err"; then
  9574. ac_header_preproc=yes
  9575. else
  9576. echo "$as_me: failed program was:" >&5
  9577. sed 's/^/| /' conftest.$ac_ext >&5
  9578. ac_header_preproc=no
  9579. fi
  9580. rm -f conftest.err conftest.$ac_ext
  9581. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9582. echo "${ECHO_T}$ac_header_preproc" >&6
  9583. # So? What about this header?
  9584. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9585. yes:no: )
  9586. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9587. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9588. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9589. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9590. ac_header_preproc=yes
  9591. ;;
  9592. no:yes:* )
  9593. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9594. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9595. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9596. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9597. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9598. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9599. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9600. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9601. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9602. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9603. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9604. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9605. (
  9606. cat <<\_ASBOX
  9607. ## ------------------------------------------ ##
  9608. ## Report this to the AC_PACKAGE_NAME lists. ##
  9609. ## ------------------------------------------ ##
  9610. _ASBOX
  9611. ) |
  9612. sed "s/^/$as_me: WARNING: /" >&2
  9613. ;;
  9614. esac
  9615. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9616. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9617. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9618. echo $ECHO_N "(cached) $ECHO_C" >&6
  9619. else
  9620. eval "$as_ac_Header=\$ac_header_preproc"
  9621. fi
  9622. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9623. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9624. fi
  9625. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9626. cat >>confdefs.h <<_ACEOF
  9627. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9628. _ACEOF
  9629. fi
  9630. done
  9631. for ac_func in getpagesize
  9632. do
  9633. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9634. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9635. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9636. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9637. echo $ECHO_N "(cached) $ECHO_C" >&6
  9638. else
  9639. cat >conftest.$ac_ext <<_ACEOF
  9640. /* confdefs.h. */
  9641. _ACEOF
  9642. cat confdefs.h >>conftest.$ac_ext
  9643. cat >>conftest.$ac_ext <<_ACEOF
  9644. /* end confdefs.h. */
  9645. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9646. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9647. #define $ac_func innocuous_$ac_func
  9648. /* System header to define __stub macros and hopefully few prototypes,
  9649. which can conflict with char $ac_func (); below.
  9650. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9651. <limits.h> exists even on freestanding compilers. */
  9652. #ifdef __STDC__
  9653. # include <limits.h>
  9654. #else
  9655. # include <assert.h>
  9656. #endif
  9657. #undef $ac_func
  9658. /* Override any gcc2 internal prototype to avoid an error. */
  9659. #ifdef __cplusplus
  9660. extern "C"
  9661. {
  9662. #endif
  9663. /* We use char because int might match the return type of a gcc2
  9664. builtin and then its argument prototype would still apply. */
  9665. char $ac_func ();
  9666. /* The GNU C library defines this for functions which it implements
  9667. to always fail with ENOSYS. Some functions are actually named
  9668. something starting with __ and the normal name is an alias. */
  9669. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9670. choke me
  9671. #else
  9672. char (*f) () = $ac_func;
  9673. #endif
  9674. #ifdef __cplusplus
  9675. }
  9676. #endif
  9677. int
  9678. main ()
  9679. {
  9680. return f != $ac_func;
  9681. ;
  9682. return 0;
  9683. }
  9684. _ACEOF
  9685. rm -f conftest.$ac_objext conftest$ac_exeext
  9686. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9687. (eval $ac_link) 2>conftest.er1
  9688. ac_status=$?
  9689. grep -v '^ *+' conftest.er1 >conftest.err
  9690. rm -f conftest.er1
  9691. cat conftest.err >&5
  9692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9693. (exit $ac_status); } &&
  9694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9696. (eval $ac_try) 2>&5
  9697. ac_status=$?
  9698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9699. (exit $ac_status); }; } &&
  9700. { ac_try='test -s conftest$ac_exeext'
  9701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9702. (eval $ac_try) 2>&5
  9703. ac_status=$?
  9704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9705. (exit $ac_status); }; }; then
  9706. eval "$as_ac_var=yes"
  9707. else
  9708. echo "$as_me: failed program was:" >&5
  9709. sed 's/^/| /' conftest.$ac_ext >&5
  9710. eval "$as_ac_var=no"
  9711. fi
  9712. rm -f conftest.err conftest.$ac_objext \
  9713. conftest$ac_exeext conftest.$ac_ext
  9714. fi
  9715. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9716. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9717. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9718. cat >>confdefs.h <<_ACEOF
  9719. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9720. _ACEOF
  9721. fi
  9722. done
  9723. echo "$as_me:$LINENO: checking for working mmap" >&5
  9724. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9725. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9726. echo $ECHO_N "(cached) $ECHO_C" >&6
  9727. else
  9728. if test "$cross_compiling" = yes; then
  9729. ac_cv_func_mmap_fixed_mapped=no
  9730. else
  9731. cat >conftest.$ac_ext <<_ACEOF
  9732. /* confdefs.h. */
  9733. _ACEOF
  9734. cat confdefs.h >>conftest.$ac_ext
  9735. cat >>conftest.$ac_ext <<_ACEOF
  9736. /* end confdefs.h. */
  9737. $ac_includes_default
  9738. /* malloc might have been renamed as rpl_malloc. */
  9739. #undef malloc
  9740. /* Thanks to Mike Haertel and Jim Avera for this test.
  9741. Here is a matrix of mmap possibilities:
  9742. mmap private not fixed
  9743. mmap private fixed at somewhere currently unmapped
  9744. mmap private fixed at somewhere already mapped
  9745. mmap shared not fixed
  9746. mmap shared fixed at somewhere currently unmapped
  9747. mmap shared fixed at somewhere already mapped
  9748. For private mappings, we should verify that changes cannot be read()
  9749. back from the file, nor mmap's back from the file at a different
  9750. address. (There have been systems where private was not correctly
  9751. implemented like the infamous i386 svr4.0, and systems where the
  9752. VM page cache was not coherent with the file system buffer cache
  9753. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9754. For shared mappings, we should conversely verify that changes get
  9755. propagated back to all the places they're supposed to be.
  9756. Grep wants private fixed already mapped.
  9757. The main things grep needs to know about mmap are:
  9758. * does it exist and is it safe to write into the mmap'd area
  9759. * how to use it (BSD variants) */
  9760. #include <fcntl.h>
  9761. #include <sys/mman.h>
  9762. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9763. char *malloc ();
  9764. #endif
  9765. /* This mess was copied from the GNU getpagesize.h. */
  9766. #if !HAVE_GETPAGESIZE
  9767. /* Assume that all systems that can run configure have sys/param.h. */
  9768. # if !HAVE_SYS_PARAM_H
  9769. # define HAVE_SYS_PARAM_H 1
  9770. # endif
  9771. # ifdef _SC_PAGESIZE
  9772. # define getpagesize() sysconf(_SC_PAGESIZE)
  9773. # else /* no _SC_PAGESIZE */
  9774. # if HAVE_SYS_PARAM_H
  9775. # include <sys/param.h>
  9776. # ifdef EXEC_PAGESIZE
  9777. # define getpagesize() EXEC_PAGESIZE
  9778. # else /* no EXEC_PAGESIZE */
  9779. # ifdef NBPG
  9780. # define getpagesize() NBPG * CLSIZE
  9781. # ifndef CLSIZE
  9782. # define CLSIZE 1
  9783. # endif /* no CLSIZE */
  9784. # else /* no NBPG */
  9785. # ifdef NBPC
  9786. # define getpagesize() NBPC
  9787. # else /* no NBPC */
  9788. # ifdef PAGESIZE
  9789. # define getpagesize() PAGESIZE
  9790. # endif /* PAGESIZE */
  9791. # endif /* no NBPC */
  9792. # endif /* no NBPG */
  9793. # endif /* no EXEC_PAGESIZE */
  9794. # else /* no HAVE_SYS_PARAM_H */
  9795. # define getpagesize() 8192 /* punt totally */
  9796. # endif /* no HAVE_SYS_PARAM_H */
  9797. # endif /* no _SC_PAGESIZE */
  9798. #endif /* no HAVE_GETPAGESIZE */
  9799. int
  9800. main ()
  9801. {
  9802. char *data, *data2, *data3;
  9803. int i, pagesize;
  9804. int fd;
  9805. pagesize = getpagesize ();
  9806. /* First, make a file with some known garbage in it. */
  9807. data = (char *) malloc (pagesize);
  9808. if (!data)
  9809. exit (1);
  9810. for (i = 0; i < pagesize; ++i)
  9811. *(data + i) = rand ();
  9812. umask (0);
  9813. fd = creat ("conftest.mmap", 0600);
  9814. if (fd < 0)
  9815. exit (1);
  9816. if (write (fd, data, pagesize) != pagesize)
  9817. exit (1);
  9818. close (fd);
  9819. /* Next, try to mmap the file at a fixed address which already has
  9820. something else allocated at it. If we can, also make sure that
  9821. we see the same garbage. */
  9822. fd = open ("conftest.mmap", O_RDWR);
  9823. if (fd < 0)
  9824. exit (1);
  9825. data2 = (char *) malloc (2 * pagesize);
  9826. if (!data2)
  9827. exit (1);
  9828. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9829. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9830. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9831. exit (1);
  9832. for (i = 0; i < pagesize; ++i)
  9833. if (*(data + i) != *(data2 + i))
  9834. exit (1);
  9835. /* Finally, make sure that changes to the mapped area do not
  9836. percolate back to the file as seen by read(). (This is a bug on
  9837. some variants of i386 svr4.0.) */
  9838. for (i = 0; i < pagesize; ++i)
  9839. *(data2 + i) = *(data2 + i) + 1;
  9840. data3 = (char *) malloc (pagesize);
  9841. if (!data3)
  9842. exit (1);
  9843. if (read (fd, data3, pagesize) != pagesize)
  9844. exit (1);
  9845. for (i = 0; i < pagesize; ++i)
  9846. if (*(data + i) != *(data3 + i))
  9847. exit (1);
  9848. close (fd);
  9849. exit (0);
  9850. }
  9851. _ACEOF
  9852. rm -f conftest$ac_exeext
  9853. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9854. (eval $ac_link) 2>&5
  9855. ac_status=$?
  9856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9857. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9859. (eval $ac_try) 2>&5
  9860. ac_status=$?
  9861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9862. (exit $ac_status); }; }; then
  9863. ac_cv_func_mmap_fixed_mapped=yes
  9864. else
  9865. echo "$as_me: program exited with status $ac_status" >&5
  9866. echo "$as_me: failed program was:" >&5
  9867. sed 's/^/| /' conftest.$ac_ext >&5
  9868. ( exit $ac_status )
  9869. ac_cv_func_mmap_fixed_mapped=no
  9870. fi
  9871. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9872. fi
  9873. fi
  9874. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9875. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9876. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9877. cat >>confdefs.h <<\_ACEOF
  9878. #define HAVE_MMAP 1
  9879. _ACEOF
  9880. fi
  9881. rm -f conftest.mmap
  9882. for ac_header in stdlib.h
  9883. do
  9884. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9885. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9886. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9887. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9888. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9889. echo $ECHO_N "(cached) $ECHO_C" >&6
  9890. fi
  9891. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9892. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9893. else
  9894. # Is the header compilable?
  9895. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9896. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9897. cat >conftest.$ac_ext <<_ACEOF
  9898. /* confdefs.h. */
  9899. _ACEOF
  9900. cat confdefs.h >>conftest.$ac_ext
  9901. cat >>conftest.$ac_ext <<_ACEOF
  9902. /* end confdefs.h. */
  9903. $ac_includes_default
  9904. #include <$ac_header>
  9905. _ACEOF
  9906. rm -f conftest.$ac_objext
  9907. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9908. (eval $ac_compile) 2>conftest.er1
  9909. ac_status=$?
  9910. grep -v '^ *+' conftest.er1 >conftest.err
  9911. rm -f conftest.er1
  9912. cat conftest.err >&5
  9913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9914. (exit $ac_status); } &&
  9915. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9917. (eval $ac_try) 2>&5
  9918. ac_status=$?
  9919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9920. (exit $ac_status); }; } &&
  9921. { ac_try='test -s conftest.$ac_objext'
  9922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9923. (eval $ac_try) 2>&5
  9924. ac_status=$?
  9925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9926. (exit $ac_status); }; }; then
  9927. ac_header_compiler=yes
  9928. else
  9929. echo "$as_me: failed program was:" >&5
  9930. sed 's/^/| /' conftest.$ac_ext >&5
  9931. ac_header_compiler=no
  9932. fi
  9933. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9934. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9935. echo "${ECHO_T}$ac_header_compiler" >&6
  9936. # Is the header present?
  9937. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9938. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9939. cat >conftest.$ac_ext <<_ACEOF
  9940. /* confdefs.h. */
  9941. _ACEOF
  9942. cat confdefs.h >>conftest.$ac_ext
  9943. cat >>conftest.$ac_ext <<_ACEOF
  9944. /* end confdefs.h. */
  9945. #include <$ac_header>
  9946. _ACEOF
  9947. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9948. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9949. ac_status=$?
  9950. grep -v '^ *+' conftest.er1 >conftest.err
  9951. rm -f conftest.er1
  9952. cat conftest.err >&5
  9953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9954. (exit $ac_status); } >/dev/null; then
  9955. if test -s conftest.err; then
  9956. ac_cpp_err=$ac_c_preproc_warn_flag
  9957. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9958. else
  9959. ac_cpp_err=
  9960. fi
  9961. else
  9962. ac_cpp_err=yes
  9963. fi
  9964. if test -z "$ac_cpp_err"; then
  9965. ac_header_preproc=yes
  9966. else
  9967. echo "$as_me: failed program was:" >&5
  9968. sed 's/^/| /' conftest.$ac_ext >&5
  9969. ac_header_preproc=no
  9970. fi
  9971. rm -f conftest.err conftest.$ac_ext
  9972. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9973. echo "${ECHO_T}$ac_header_preproc" >&6
  9974. # So? What about this header?
  9975. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9976. yes:no: )
  9977. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9978. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9979. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9980. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9981. ac_header_preproc=yes
  9982. ;;
  9983. no:yes:* )
  9984. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9985. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9986. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9987. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9988. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9989. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9990. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9991. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9992. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9993. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9994. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9995. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9996. (
  9997. cat <<\_ASBOX
  9998. ## ------------------------------------------ ##
  9999. ## Report this to the AC_PACKAGE_NAME lists. ##
  10000. ## ------------------------------------------ ##
  10001. _ASBOX
  10002. ) |
  10003. sed "s/^/$as_me: WARNING: /" >&2
  10004. ;;
  10005. esac
  10006. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10007. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10008. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10009. echo $ECHO_N "(cached) $ECHO_C" >&6
  10010. else
  10011. eval "$as_ac_Header=\$ac_header_preproc"
  10012. fi
  10013. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10014. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10015. fi
  10016. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10017. cat >>confdefs.h <<_ACEOF
  10018. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10019. _ACEOF
  10020. fi
  10021. done
  10022. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10023. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10024. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10025. echo $ECHO_N "(cached) $ECHO_C" >&6
  10026. else
  10027. if test "$cross_compiling" = yes; then
  10028. ac_cv_func_realloc_0_nonnull=no
  10029. else
  10030. cat >conftest.$ac_ext <<_ACEOF
  10031. /* confdefs.h. */
  10032. _ACEOF
  10033. cat confdefs.h >>conftest.$ac_ext
  10034. cat >>conftest.$ac_ext <<_ACEOF
  10035. /* end confdefs.h. */
  10036. #if STDC_HEADERS || HAVE_STDLIB_H
  10037. # include <stdlib.h>
  10038. #else
  10039. char *realloc ();
  10040. #endif
  10041. int
  10042. main ()
  10043. {
  10044. exit (realloc (0, 0) ? 0 : 1);
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. rm -f conftest$ac_exeext
  10050. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10051. (eval $ac_link) 2>&5
  10052. ac_status=$?
  10053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10054. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10056. (eval $ac_try) 2>&5
  10057. ac_status=$?
  10058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10059. (exit $ac_status); }; }; then
  10060. ac_cv_func_realloc_0_nonnull=yes
  10061. else
  10062. echo "$as_me: program exited with status $ac_status" >&5
  10063. echo "$as_me: failed program was:" >&5
  10064. sed 's/^/| /' conftest.$ac_ext >&5
  10065. ( exit $ac_status )
  10066. ac_cv_func_realloc_0_nonnull=no
  10067. fi
  10068. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10069. fi
  10070. fi
  10071. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10072. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10073. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10074. cat >>confdefs.h <<\_ACEOF
  10075. #define HAVE_REALLOC 1
  10076. _ACEOF
  10077. else
  10078. cat >>confdefs.h <<\_ACEOF
  10079. #define HAVE_REALLOC 0
  10080. _ACEOF
  10081. case $LIBOBJS in
  10082. "realloc.$ac_objext" | \
  10083. *" realloc.$ac_objext" | \
  10084. "realloc.$ac_objext "* | \
  10085. *" realloc.$ac_objext "* ) ;;
  10086. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10087. esac
  10088. cat >>confdefs.h <<\_ACEOF
  10089. #define realloc rpl_realloc
  10090. _ACEOF
  10091. fi
  10092. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10093. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10094. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10095. echo $ECHO_N "(cached) $ECHO_C" >&6
  10096. else
  10097. if test "$cross_compiling" = yes; then
  10098. ac_cv_func_stat_empty_string_bug=yes
  10099. else
  10100. cat >conftest.$ac_ext <<_ACEOF
  10101. /* confdefs.h. */
  10102. _ACEOF
  10103. cat confdefs.h >>conftest.$ac_ext
  10104. cat >>conftest.$ac_ext <<_ACEOF
  10105. /* end confdefs.h. */
  10106. $ac_includes_default
  10107. int
  10108. main ()
  10109. {
  10110. struct stat sbuf;
  10111. exit (stat ("", &sbuf) ? 1 : 0);
  10112. ;
  10113. return 0;
  10114. }
  10115. _ACEOF
  10116. rm -f conftest$ac_exeext
  10117. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10118. (eval $ac_link) 2>&5
  10119. ac_status=$?
  10120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10121. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10123. (eval $ac_try) 2>&5
  10124. ac_status=$?
  10125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10126. (exit $ac_status); }; }; then
  10127. ac_cv_func_stat_empty_string_bug=yes
  10128. else
  10129. echo "$as_me: program exited with status $ac_status" >&5
  10130. echo "$as_me: failed program was:" >&5
  10131. sed 's/^/| /' conftest.$ac_ext >&5
  10132. ( exit $ac_status )
  10133. ac_cv_func_stat_empty_string_bug=no
  10134. fi
  10135. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10136. fi
  10137. fi
  10138. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10139. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10140. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10141. case $LIBOBJS in
  10142. "stat.$ac_objext" | \
  10143. *" stat.$ac_objext" | \
  10144. "stat.$ac_objext "* | \
  10145. *" stat.$ac_objext "* ) ;;
  10146. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10147. esac
  10148. cat >>confdefs.h <<_ACEOF
  10149. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10150. _ACEOF
  10151. fi
  10152. for ac_func in strftime
  10153. do
  10154. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10155. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10156. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10157. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10158. echo $ECHO_N "(cached) $ECHO_C" >&6
  10159. else
  10160. cat >conftest.$ac_ext <<_ACEOF
  10161. /* confdefs.h. */
  10162. _ACEOF
  10163. cat confdefs.h >>conftest.$ac_ext
  10164. cat >>conftest.$ac_ext <<_ACEOF
  10165. /* end confdefs.h. */
  10166. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10167. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10168. #define $ac_func innocuous_$ac_func
  10169. /* System header to define __stub macros and hopefully few prototypes,
  10170. which can conflict with char $ac_func (); below.
  10171. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10172. <limits.h> exists even on freestanding compilers. */
  10173. #ifdef __STDC__
  10174. # include <limits.h>
  10175. #else
  10176. # include <assert.h>
  10177. #endif
  10178. #undef $ac_func
  10179. /* Override any gcc2 internal prototype to avoid an error. */
  10180. #ifdef __cplusplus
  10181. extern "C"
  10182. {
  10183. #endif
  10184. /* We use char because int might match the return type of a gcc2
  10185. builtin and then its argument prototype would still apply. */
  10186. char $ac_func ();
  10187. /* The GNU C library defines this for functions which it implements
  10188. to always fail with ENOSYS. Some functions are actually named
  10189. something starting with __ and the normal name is an alias. */
  10190. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10191. choke me
  10192. #else
  10193. char (*f) () = $ac_func;
  10194. #endif
  10195. #ifdef __cplusplus
  10196. }
  10197. #endif
  10198. int
  10199. main ()
  10200. {
  10201. return f != $ac_func;
  10202. ;
  10203. return 0;
  10204. }
  10205. _ACEOF
  10206. rm -f conftest.$ac_objext conftest$ac_exeext
  10207. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10208. (eval $ac_link) 2>conftest.er1
  10209. ac_status=$?
  10210. grep -v '^ *+' conftest.er1 >conftest.err
  10211. rm -f conftest.er1
  10212. cat conftest.err >&5
  10213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10214. (exit $ac_status); } &&
  10215. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10217. (eval $ac_try) 2>&5
  10218. ac_status=$?
  10219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10220. (exit $ac_status); }; } &&
  10221. { ac_try='test -s conftest$ac_exeext'
  10222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10223. (eval $ac_try) 2>&5
  10224. ac_status=$?
  10225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10226. (exit $ac_status); }; }; then
  10227. eval "$as_ac_var=yes"
  10228. else
  10229. echo "$as_me: failed program was:" >&5
  10230. sed 's/^/| /' conftest.$ac_ext >&5
  10231. eval "$as_ac_var=no"
  10232. fi
  10233. rm -f conftest.err conftest.$ac_objext \
  10234. conftest$ac_exeext conftest.$ac_ext
  10235. fi
  10236. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10237. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10238. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10239. cat >>confdefs.h <<_ACEOF
  10240. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10241. _ACEOF
  10242. else
  10243. # strftime is in -lintl on SCO UNIX.
  10244. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10245. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10246. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10247. echo $ECHO_N "(cached) $ECHO_C" >&6
  10248. else
  10249. ac_check_lib_save_LIBS=$LIBS
  10250. LIBS="-lintl $LIBS"
  10251. cat >conftest.$ac_ext <<_ACEOF
  10252. /* confdefs.h. */
  10253. _ACEOF
  10254. cat confdefs.h >>conftest.$ac_ext
  10255. cat >>conftest.$ac_ext <<_ACEOF
  10256. /* end confdefs.h. */
  10257. /* Override any gcc2 internal prototype to avoid an error. */
  10258. #ifdef __cplusplus
  10259. extern "C"
  10260. #endif
  10261. /* We use char because int might match the return type of a gcc2
  10262. builtin and then its argument prototype would still apply. */
  10263. char strftime ();
  10264. int
  10265. main ()
  10266. {
  10267. strftime ();
  10268. ;
  10269. return 0;
  10270. }
  10271. _ACEOF
  10272. rm -f conftest.$ac_objext conftest$ac_exeext
  10273. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10274. (eval $ac_link) 2>conftest.er1
  10275. ac_status=$?
  10276. grep -v '^ *+' conftest.er1 >conftest.err
  10277. rm -f conftest.er1
  10278. cat conftest.err >&5
  10279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10280. (exit $ac_status); } &&
  10281. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10283. (eval $ac_try) 2>&5
  10284. ac_status=$?
  10285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10286. (exit $ac_status); }; } &&
  10287. { ac_try='test -s conftest$ac_exeext'
  10288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10289. (eval $ac_try) 2>&5
  10290. ac_status=$?
  10291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10292. (exit $ac_status); }; }; then
  10293. ac_cv_lib_intl_strftime=yes
  10294. else
  10295. echo "$as_me: failed program was:" >&5
  10296. sed 's/^/| /' conftest.$ac_ext >&5
  10297. ac_cv_lib_intl_strftime=no
  10298. fi
  10299. rm -f conftest.err conftest.$ac_objext \
  10300. conftest$ac_exeext conftest.$ac_ext
  10301. LIBS=$ac_check_lib_save_LIBS
  10302. fi
  10303. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10304. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10305. if test $ac_cv_lib_intl_strftime = yes; then
  10306. cat >>confdefs.h <<\_ACEOF
  10307. #define HAVE_STRFTIME 1
  10308. _ACEOF
  10309. LIBS="-lintl $LIBS"
  10310. fi
  10311. fi
  10312. done
  10313. #checkpoint
  10314. cat >confcache <<\_ACEOF
  10315. # This file is a shell script that caches the results of configure
  10316. # tests run on this system so they can be shared between configure
  10317. # scripts and configure runs, see configure's option --config-cache.
  10318. # It is not useful on other systems. If it contains results you don't
  10319. # want to keep, you may remove or edit it.
  10320. #
  10321. # config.status only pays attention to the cache file if you give it
  10322. # the --recheck option to rerun configure.
  10323. #
  10324. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10325. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10326. # following values.
  10327. _ACEOF
  10328. # The following way of writing the cache mishandles newlines in values,
  10329. # but we know of no workaround that is simple, portable, and efficient.
  10330. # So, don't put newlines in cache variables' values.
  10331. # Ultrix sh set writes to stderr and can't be redirected directly,
  10332. # and sets the high bit in the cache file unless we assign to the vars.
  10333. {
  10334. (set) 2>&1 |
  10335. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10336. *ac_space=\ *)
  10337. # `set' does not quote correctly, so add quotes (double-quote
  10338. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10339. sed -n \
  10340. "s/'/'\\\\''/g;
  10341. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10342. ;;
  10343. *)
  10344. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10345. sed -n \
  10346. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10347. ;;
  10348. esac;
  10349. } |
  10350. sed '
  10351. t clear
  10352. : clear
  10353. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10354. t end
  10355. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10356. : end' >>confcache
  10357. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10358. if test -w $cache_file; then
  10359. test "x$cache_file" != "x/dev/null"
  10360. cat confcache >$cache_file
  10361. else
  10362. echo "not updating unwritable cache $cache_file"
  10363. fi
  10364. fi
  10365. rm -f confcache
  10366. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  10367. do
  10368. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10369. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10370. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10371. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10372. echo $ECHO_N "(cached) $ECHO_C" >&6
  10373. else
  10374. cat >conftest.$ac_ext <<_ACEOF
  10375. /* confdefs.h. */
  10376. _ACEOF
  10377. cat confdefs.h >>conftest.$ac_ext
  10378. cat >>conftest.$ac_ext <<_ACEOF
  10379. /* end confdefs.h. */
  10380. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10381. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10382. #define $ac_func innocuous_$ac_func
  10383. /* System header to define __stub macros and hopefully few prototypes,
  10384. which can conflict with char $ac_func (); below.
  10385. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10386. <limits.h> exists even on freestanding compilers. */
  10387. #ifdef __STDC__
  10388. # include <limits.h>
  10389. #else
  10390. # include <assert.h>
  10391. #endif
  10392. #undef $ac_func
  10393. /* Override any gcc2 internal prototype to avoid an error. */
  10394. #ifdef __cplusplus
  10395. extern "C"
  10396. {
  10397. #endif
  10398. /* We use char because int might match the return type of a gcc2
  10399. builtin and then its argument prototype would still apply. */
  10400. char $ac_func ();
  10401. /* The GNU C library defines this for functions which it implements
  10402. to always fail with ENOSYS. Some functions are actually named
  10403. something starting with __ and the normal name is an alias. */
  10404. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10405. choke me
  10406. #else
  10407. char (*f) () = $ac_func;
  10408. #endif
  10409. #ifdef __cplusplus
  10410. }
  10411. #endif
  10412. int
  10413. main ()
  10414. {
  10415. return f != $ac_func;
  10416. ;
  10417. return 0;
  10418. }
  10419. _ACEOF
  10420. rm -f conftest.$ac_objext conftest$ac_exeext
  10421. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10422. (eval $ac_link) 2>conftest.er1
  10423. ac_status=$?
  10424. grep -v '^ *+' conftest.er1 >conftest.err
  10425. rm -f conftest.er1
  10426. cat conftest.err >&5
  10427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10428. (exit $ac_status); } &&
  10429. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10431. (eval $ac_try) 2>&5
  10432. ac_status=$?
  10433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10434. (exit $ac_status); }; } &&
  10435. { ac_try='test -s conftest$ac_exeext'
  10436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10437. (eval $ac_try) 2>&5
  10438. ac_status=$?
  10439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10440. (exit $ac_status); }; }; then
  10441. eval "$as_ac_var=yes"
  10442. else
  10443. echo "$as_me: failed program was:" >&5
  10444. sed 's/^/| /' conftest.$ac_ext >&5
  10445. eval "$as_ac_var=no"
  10446. fi
  10447. rm -f conftest.err conftest.$ac_objext \
  10448. conftest$ac_exeext conftest.$ac_ext
  10449. fi
  10450. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10451. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10452. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10453. cat >>confdefs.h <<_ACEOF
  10454. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10455. _ACEOF
  10456. fi
  10457. done
  10458. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  10459. do
  10460. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10461. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10462. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10463. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10464. echo $ECHO_N "(cached) $ECHO_C" >&6
  10465. else
  10466. cat >conftest.$ac_ext <<_ACEOF
  10467. /* confdefs.h. */
  10468. _ACEOF
  10469. cat confdefs.h >>conftest.$ac_ext
  10470. cat >>conftest.$ac_ext <<_ACEOF
  10471. /* end confdefs.h. */
  10472. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10473. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10474. #define $ac_func innocuous_$ac_func
  10475. /* System header to define __stub macros and hopefully few prototypes,
  10476. which can conflict with char $ac_func (); below.
  10477. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10478. <limits.h> exists even on freestanding compilers. */
  10479. #ifdef __STDC__
  10480. # include <limits.h>
  10481. #else
  10482. # include <assert.h>
  10483. #endif
  10484. #undef $ac_func
  10485. /* Override any gcc2 internal prototype to avoid an error. */
  10486. #ifdef __cplusplus
  10487. extern "C"
  10488. {
  10489. #endif
  10490. /* We use char because int might match the return type of a gcc2
  10491. builtin and then its argument prototype would still apply. */
  10492. char $ac_func ();
  10493. /* The GNU C library defines this for functions which it implements
  10494. to always fail with ENOSYS. Some functions are actually named
  10495. something starting with __ and the normal name is an alias. */
  10496. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10497. choke me
  10498. #else
  10499. char (*f) () = $ac_func;
  10500. #endif
  10501. #ifdef __cplusplus
  10502. }
  10503. #endif
  10504. int
  10505. main ()
  10506. {
  10507. return f != $ac_func;
  10508. ;
  10509. return 0;
  10510. }
  10511. _ACEOF
  10512. rm -f conftest.$ac_objext conftest$ac_exeext
  10513. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10514. (eval $ac_link) 2>conftest.er1
  10515. ac_status=$?
  10516. grep -v '^ *+' conftest.er1 >conftest.err
  10517. rm -f conftest.er1
  10518. cat conftest.err >&5
  10519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. (exit $ac_status); } &&
  10521. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10523. (eval $ac_try) 2>&5
  10524. ac_status=$?
  10525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10526. (exit $ac_status); }; } &&
  10527. { ac_try='test -s conftest$ac_exeext'
  10528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10529. (eval $ac_try) 2>&5
  10530. ac_status=$?
  10531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10532. (exit $ac_status); }; }; then
  10533. eval "$as_ac_var=yes"
  10534. else
  10535. echo "$as_me: failed program was:" >&5
  10536. sed 's/^/| /' conftest.$ac_ext >&5
  10537. eval "$as_ac_var=no"
  10538. fi
  10539. rm -f conftest.err conftest.$ac_objext \
  10540. conftest$ac_exeext conftest.$ac_ext
  10541. fi
  10542. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10543. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10544. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10545. cat >>confdefs.h <<_ACEOF
  10546. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10547. _ACEOF
  10548. fi
  10549. done
  10550. #checkpoint
  10551. cat >confcache <<\_ACEOF
  10552. # This file is a shell script that caches the results of configure
  10553. # tests run on this system so they can be shared between configure
  10554. # scripts and configure runs, see configure's option --config-cache.
  10555. # It is not useful on other systems. If it contains results you don't
  10556. # want to keep, you may remove or edit it.
  10557. #
  10558. # config.status only pays attention to the cache file if you give it
  10559. # the --recheck option to rerun configure.
  10560. #
  10561. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10562. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10563. # following values.
  10564. _ACEOF
  10565. # The following way of writing the cache mishandles newlines in values,
  10566. # but we know of no workaround that is simple, portable, and efficient.
  10567. # So, don't put newlines in cache variables' values.
  10568. # Ultrix sh set writes to stderr and can't be redirected directly,
  10569. # and sets the high bit in the cache file unless we assign to the vars.
  10570. {
  10571. (set) 2>&1 |
  10572. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10573. *ac_space=\ *)
  10574. # `set' does not quote correctly, so add quotes (double-quote
  10575. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10576. sed -n \
  10577. "s/'/'\\\\''/g;
  10578. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10579. ;;
  10580. *)
  10581. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10582. sed -n \
  10583. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10584. ;;
  10585. esac;
  10586. } |
  10587. sed '
  10588. t clear
  10589. : clear
  10590. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10591. t end
  10592. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10593. : end' >>confcache
  10594. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10595. if test -w $cache_file; then
  10596. test "x$cache_file" != "x/dev/null"
  10597. cat confcache >$cache_file
  10598. else
  10599. echo "not updating unwritable cache $cache_file"
  10600. fi
  10601. fi
  10602. rm -f confcache
  10603. for ac_func in strcasecmp strncasecmp vsnprintf
  10604. do
  10605. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10606. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10607. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10608. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10609. echo $ECHO_N "(cached) $ECHO_C" >&6
  10610. else
  10611. cat >conftest.$ac_ext <<_ACEOF
  10612. /* confdefs.h. */
  10613. _ACEOF
  10614. cat confdefs.h >>conftest.$ac_ext
  10615. cat >>conftest.$ac_ext <<_ACEOF
  10616. /* end confdefs.h. */
  10617. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10618. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10619. #define $ac_func innocuous_$ac_func
  10620. /* System header to define __stub macros and hopefully few prototypes,
  10621. which can conflict with char $ac_func (); below.
  10622. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10623. <limits.h> exists even on freestanding compilers. */
  10624. #ifdef __STDC__
  10625. # include <limits.h>
  10626. #else
  10627. # include <assert.h>
  10628. #endif
  10629. #undef $ac_func
  10630. /* Override any gcc2 internal prototype to avoid an error. */
  10631. #ifdef __cplusplus
  10632. extern "C"
  10633. {
  10634. #endif
  10635. /* We use char because int might match the return type of a gcc2
  10636. builtin and then its argument prototype would still apply. */
  10637. char $ac_func ();
  10638. /* The GNU C library defines this for functions which it implements
  10639. to always fail with ENOSYS. Some functions are actually named
  10640. something starting with __ and the normal name is an alias. */
  10641. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10642. choke me
  10643. #else
  10644. char (*f) () = $ac_func;
  10645. #endif
  10646. #ifdef __cplusplus
  10647. }
  10648. #endif
  10649. int
  10650. main ()
  10651. {
  10652. return f != $ac_func;
  10653. ;
  10654. return 0;
  10655. }
  10656. _ACEOF
  10657. rm -f conftest.$ac_objext conftest$ac_exeext
  10658. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10659. (eval $ac_link) 2>conftest.er1
  10660. ac_status=$?
  10661. grep -v '^ *+' conftest.er1 >conftest.err
  10662. rm -f conftest.er1
  10663. cat conftest.err >&5
  10664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10665. (exit $ac_status); } &&
  10666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10668. (eval $ac_try) 2>&5
  10669. ac_status=$?
  10670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10671. (exit $ac_status); }; } &&
  10672. { ac_try='test -s conftest$ac_exeext'
  10673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10674. (eval $ac_try) 2>&5
  10675. ac_status=$?
  10676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10677. (exit $ac_status); }; }; then
  10678. eval "$as_ac_var=yes"
  10679. else
  10680. echo "$as_me: failed program was:" >&5
  10681. sed 's/^/| /' conftest.$ac_ext >&5
  10682. eval "$as_ac_var=no"
  10683. fi
  10684. rm -f conftest.err conftest.$ac_objext \
  10685. conftest$ac_exeext conftest.$ac_ext
  10686. fi
  10687. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10688. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10689. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10690. cat >>confdefs.h <<_ACEOF
  10691. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10692. _ACEOF
  10693. fi
  10694. done
  10695. #autoscan suggested this....
  10696. #These are recommended by autoscan, but no code supports it currently
  10697. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10698. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10699. for ac_func in vsprintf
  10700. do
  10701. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10702. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10703. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10704. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10705. echo $ECHO_N "(cached) $ECHO_C" >&6
  10706. else
  10707. cat >conftest.$ac_ext <<_ACEOF
  10708. /* confdefs.h. */
  10709. _ACEOF
  10710. cat confdefs.h >>conftest.$ac_ext
  10711. cat >>conftest.$ac_ext <<_ACEOF
  10712. /* end confdefs.h. */
  10713. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10714. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10715. #define $ac_func innocuous_$ac_func
  10716. /* System header to define __stub macros and hopefully few prototypes,
  10717. which can conflict with char $ac_func (); below.
  10718. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10719. <limits.h> exists even on freestanding compilers. */
  10720. #ifdef __STDC__
  10721. # include <limits.h>
  10722. #else
  10723. # include <assert.h>
  10724. #endif
  10725. #undef $ac_func
  10726. /* Override any gcc2 internal prototype to avoid an error. */
  10727. #ifdef __cplusplus
  10728. extern "C"
  10729. {
  10730. #endif
  10731. /* We use char because int might match the return type of a gcc2
  10732. builtin and then its argument prototype would still apply. */
  10733. char $ac_func ();
  10734. /* The GNU C library defines this for functions which it implements
  10735. to always fail with ENOSYS. Some functions are actually named
  10736. something starting with __ and the normal name is an alias. */
  10737. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10738. choke me
  10739. #else
  10740. char (*f) () = $ac_func;
  10741. #endif
  10742. #ifdef __cplusplus
  10743. }
  10744. #endif
  10745. int
  10746. main ()
  10747. {
  10748. return f != $ac_func;
  10749. ;
  10750. return 0;
  10751. }
  10752. _ACEOF
  10753. rm -f conftest.$ac_objext conftest$ac_exeext
  10754. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10755. (eval $ac_link) 2>conftest.er1
  10756. ac_status=$?
  10757. grep -v '^ *+' conftest.er1 >conftest.err
  10758. rm -f conftest.er1
  10759. cat conftest.err >&5
  10760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10761. (exit $ac_status); } &&
  10762. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10764. (eval $ac_try) 2>&5
  10765. ac_status=$?
  10766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10767. (exit $ac_status); }; } &&
  10768. { ac_try='test -s conftest$ac_exeext'
  10769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10770. (eval $ac_try) 2>&5
  10771. ac_status=$?
  10772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10773. (exit $ac_status); }; }; then
  10774. eval "$as_ac_var=yes"
  10775. else
  10776. echo "$as_me: failed program was:" >&5
  10777. sed 's/^/| /' conftest.$ac_ext >&5
  10778. eval "$as_ac_var=no"
  10779. fi
  10780. rm -f conftest.err conftest.$ac_objext \
  10781. conftest$ac_exeext conftest.$ac_ext
  10782. fi
  10783. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10784. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10785. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10786. cat >>confdefs.h <<_ACEOF
  10787. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10788. _ACEOF
  10789. fi
  10790. done
  10791. if test "$ac_cv_func_vsprintf" = "no"
  10792. then
  10793. cat << 'EOF' >&2
  10794. configure: error:
  10795. Your system does not have the sprintf/vsprintf libraries.
  10796. These are required to compile almost anything. Sorry.
  10797. EOF
  10798. exit 1
  10799. fi
  10800. for ac_func in uname
  10801. do
  10802. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10803. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10804. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10805. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10806. echo $ECHO_N "(cached) $ECHO_C" >&6
  10807. else
  10808. cat >conftest.$ac_ext <<_ACEOF
  10809. /* confdefs.h. */
  10810. _ACEOF
  10811. cat confdefs.h >>conftest.$ac_ext
  10812. cat >>conftest.$ac_ext <<_ACEOF
  10813. /* end confdefs.h. */
  10814. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10815. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10816. #define $ac_func innocuous_$ac_func
  10817. /* System header to define __stub macros and hopefully few prototypes,
  10818. which can conflict with char $ac_func (); below.
  10819. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10820. <limits.h> exists even on freestanding compilers. */
  10821. #ifdef __STDC__
  10822. # include <limits.h>
  10823. #else
  10824. # include <assert.h>
  10825. #endif
  10826. #undef $ac_func
  10827. /* Override any gcc2 internal prototype to avoid an error. */
  10828. #ifdef __cplusplus
  10829. extern "C"
  10830. {
  10831. #endif
  10832. /* We use char because int might match the return type of a gcc2
  10833. builtin and then its argument prototype would still apply. */
  10834. char $ac_func ();
  10835. /* The GNU C library defines this for functions which it implements
  10836. to always fail with ENOSYS. Some functions are actually named
  10837. something starting with __ and the normal name is an alias. */
  10838. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10839. choke me
  10840. #else
  10841. char (*f) () = $ac_func;
  10842. #endif
  10843. #ifdef __cplusplus
  10844. }
  10845. #endif
  10846. int
  10847. main ()
  10848. {
  10849. return f != $ac_func;
  10850. ;
  10851. return 0;
  10852. }
  10853. _ACEOF
  10854. rm -f conftest.$ac_objext conftest$ac_exeext
  10855. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10856. (eval $ac_link) 2>conftest.er1
  10857. ac_status=$?
  10858. grep -v '^ *+' conftest.er1 >conftest.err
  10859. rm -f conftest.er1
  10860. cat conftest.err >&5
  10861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10862. (exit $ac_status); } &&
  10863. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10865. (eval $ac_try) 2>&5
  10866. ac_status=$?
  10867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10868. (exit $ac_status); }; } &&
  10869. { ac_try='test -s conftest$ac_exeext'
  10870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10871. (eval $ac_try) 2>&5
  10872. ac_status=$?
  10873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10874. (exit $ac_status); }; }; then
  10875. eval "$as_ac_var=yes"
  10876. else
  10877. echo "$as_me: failed program was:" >&5
  10878. sed 's/^/| /' conftest.$ac_ext >&5
  10879. eval "$as_ac_var=no"
  10880. fi
  10881. rm -f conftest.err conftest.$ac_objext \
  10882. conftest$ac_exeext conftest.$ac_ext
  10883. fi
  10884. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10885. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10886. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10887. cat >>confdefs.h <<_ACEOF
  10888. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10889. _ACEOF
  10890. fi
  10891. done
  10892. if test "$ac_cv_func_uname" = "no"
  10893. then
  10894. cat << 'EOF' >&2
  10895. configure: error:
  10896. Your system does not have the uname() function.
  10897. This is required for the botpack.
  10898. EOF
  10899. exit 1
  10900. fi
  10901. # Make sure we have stdc headers, since we can't compile without them
  10902. if test "$ac_cv_header_stdc" = "no"
  10903. then
  10904. cat << 'EOF' >&2
  10905. configure: error:
  10906. Your system must support ANSI C Header files.
  10907. These are required for the language support. Sorry.
  10908. EOF
  10909. exit 1
  10910. fi
  10911. #checkpoint
  10912. cat >confcache <<\_ACEOF
  10913. # This file is a shell script that caches the results of configure
  10914. # tests run on this system so they can be shared between configure
  10915. # scripts and configure runs, see configure's option --config-cache.
  10916. # It is not useful on other systems. If it contains results you don't
  10917. # want to keep, you may remove or edit it.
  10918. #
  10919. # config.status only pays attention to the cache file if you give it
  10920. # the --recheck option to rerun configure.
  10921. #
  10922. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10923. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10924. # following values.
  10925. _ACEOF
  10926. # The following way of writing the cache mishandles newlines in values,
  10927. # but we know of no workaround that is simple, portable, and efficient.
  10928. # So, don't put newlines in cache variables' values.
  10929. # Ultrix sh set writes to stderr and can't be redirected directly,
  10930. # and sets the high bit in the cache file unless we assign to the vars.
  10931. {
  10932. (set) 2>&1 |
  10933. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10934. *ac_space=\ *)
  10935. # `set' does not quote correctly, so add quotes (double-quote
  10936. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10937. sed -n \
  10938. "s/'/'\\\\''/g;
  10939. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10940. ;;
  10941. *)
  10942. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10943. sed -n \
  10944. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10945. ;;
  10946. esac;
  10947. } |
  10948. sed '
  10949. t clear
  10950. : clear
  10951. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10952. t end
  10953. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10954. : end' >>confcache
  10955. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10956. if test -w $cache_file; then
  10957. test "x$cache_file" != "x/dev/null"
  10958. cat confcache >$cache_file
  10959. else
  10960. echo "not updating unwritable cache $cache_file"
  10961. fi
  10962. fi
  10963. rm -f confcache
  10964. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10965. if ! test -f $cfg; then
  10966. cat << EOF >&2
  10967. configure: error:
  10968. Your pack cfg is missing, please copy it to $srcdir/$cfg
  10969. Or specify the path to it with: --with-cfg=
  10970. EOF
  10971. exit 1
  10972. fi
  10973. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  10974. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10975. cat >>confdefs.h <<_ACEOF
  10976. #define EGG_VERSION $version_num
  10977. _ACEOF
  10978. CFG="$cfg"
  10979. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  10980. u_define="S_$define"
  10981. cat >>confdefs.h <<_ACEOF
  10982. #define $u_define 1
  10983. _ACEOF
  10984. done
  10985. ld_line="-Wl"
  10986. for func in `grep -hrsI __wrap_ src/compat/* | sed -e 's/^__wrap_\(.*\)(.*/\1/'`; do
  10987. ld_line="${ld_line},--wrap,${func}";
  10988. # echo "FUNC: $func :: $ld_line";
  10989. WRAP="$ld_line"
  10990. done
  10991. case "$srcdir" in
  10992. [\\/]* | ?:[\\/]*)
  10993. MOD_UPDIR=""
  10994. ;;
  10995. *)
  10996. MOD_UPDIR="../"
  10997. ;;
  10998. esac
  10999. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  11000. for mf in $files; do
  11001. # Strip MF so we end up with the name of the file.
  11002. # echo "MF: $mf"
  11003. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11004. dirpart=`(dirname "$mf") 2>/dev/null ||
  11005. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11006. X"$mf" : 'X\(//\)[^/]' \| \
  11007. X"$mf" : 'X\(//\)$' \| \
  11008. X"$mf" : 'X\(/\)' \| \
  11009. . : '\(.\)' 2>/dev/null ||
  11010. echo X"$mf" |
  11011. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11012. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11013. /^X\(\/\/\)$/{ s//\1/; q; }
  11014. /^X\(\/\).*/{ s//\1/; q; }
  11015. s/.*/./; q'`
  11016. # echo "dirpart: $dirpart mf: $mf"
  11017. # rm -rf "$dirpart/.deps/"
  11018. rm -f "$dirpart/.deps/includes"
  11019. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11020. for file in `sed -n -e '
  11021. /^OBJS = .*\\\\$/ {
  11022. s/^OBJS = //
  11023. :loop
  11024. s/\\\\$//
  11025. p
  11026. n
  11027. /\\\\$/ b loop
  11028. p
  11029. }
  11030. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11031. do
  11032. base=`basename $file .o`
  11033. test -f "$dirpart/$base.c" || continue
  11034. if ! test -f "$dirpart/.deps/$base.Po"; then
  11035. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11036. #Remove the .o file, because it needs to be recompiled for its dependancies.
  11037. if test -f "$dirpart/$base.o"; then
  11038. rm -f "$dirpart/$base.o"
  11039. fi
  11040. fi
  11041. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11042. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11043. done
  11044. done
  11045. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  11046. cat >confcache <<\_ACEOF
  11047. # This file is a shell script that caches the results of configure
  11048. # tests run on this system so they can be shared between configure
  11049. # scripts and configure runs, see configure's option --config-cache.
  11050. # It is not useful on other systems. If it contains results you don't
  11051. # want to keep, you may remove or edit it.
  11052. #
  11053. # config.status only pays attention to the cache file if you give it
  11054. # the --recheck option to rerun configure.
  11055. #
  11056. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11057. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11058. # following values.
  11059. _ACEOF
  11060. # The following way of writing the cache mishandles newlines in values,
  11061. # but we know of no workaround that is simple, portable, and efficient.
  11062. # So, don't put newlines in cache variables' values.
  11063. # Ultrix sh set writes to stderr and can't be redirected directly,
  11064. # and sets the high bit in the cache file unless we assign to the vars.
  11065. {
  11066. (set) 2>&1 |
  11067. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11068. *ac_space=\ *)
  11069. # `set' does not quote correctly, so add quotes (double-quote
  11070. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11071. sed -n \
  11072. "s/'/'\\\\''/g;
  11073. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11074. ;;
  11075. *)
  11076. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11077. sed -n \
  11078. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11079. ;;
  11080. esac;
  11081. } |
  11082. sed '
  11083. t clear
  11084. : clear
  11085. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11086. t end
  11087. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11088. : end' >>confcache
  11089. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11090. if test -w $cache_file; then
  11091. test "x$cache_file" != "x/dev/null"
  11092. cat confcache >$cache_file
  11093. else
  11094. echo "not updating unwritable cache $cache_file"
  11095. fi
  11096. fi
  11097. rm -f confcache
  11098. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11099. # Let make expand exec_prefix.
  11100. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11101. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11102. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11103. # trailing colons and then remove the whole line if VPATH becomes empty
  11104. # (actually we leave an empty line to preserve line numbers).
  11105. if test "x$srcdir" = x.; then
  11106. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11107. s/:*\$(srcdir):*/:/;
  11108. s/:*\${srcdir}:*/:/;
  11109. s/:*@srcdir@:*/:/;
  11110. s/^\([^=]*=[ ]*\):*/\1/;
  11111. s/:*$//;
  11112. s/^[^=]*=[ ]*$//;
  11113. }'
  11114. fi
  11115. DEFS=-DHAVE_CONFIG_H
  11116. ac_libobjs=
  11117. ac_ltlibobjs=
  11118. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11119. # 1. Remove the extension, and $U if already installed.
  11120. ac_i=`echo "$ac_i" |
  11121. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11122. # 2. Add them.
  11123. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11124. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11125. done
  11126. LIBOBJS=$ac_libobjs
  11127. LTLIBOBJS=$ac_ltlibobjs
  11128. : ${CONFIG_STATUS=./config.status}
  11129. ac_clean_files_save=$ac_clean_files
  11130. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11131. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11132. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11133. cat >$CONFIG_STATUS <<_ACEOF
  11134. #! $SHELL
  11135. # Generated by $as_me.
  11136. # Run this file to recreate the current configuration.
  11137. # Compiler output produced by configure, useful for debugging
  11138. # configure, is in config.log if it exists.
  11139. debug=false
  11140. ac_cs_recheck=false
  11141. ac_cs_silent=false
  11142. SHELL=\${CONFIG_SHELL-$SHELL}
  11143. _ACEOF
  11144. cat >>$CONFIG_STATUS <<\_ACEOF
  11145. ## --------------------- ##
  11146. ## M4sh Initialization. ##
  11147. ## --------------------- ##
  11148. # Be Bourne compatible
  11149. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11150. emulate sh
  11151. NULLCMD=:
  11152. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11153. # is contrary to our usage. Disable this feature.
  11154. alias -g '${1+"$@"}'='"$@"'
  11155. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11156. set -o posix
  11157. fi
  11158. DUALCASE=1; export DUALCASE # for MKS sh
  11159. # Support unset when possible.
  11160. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11161. as_unset=unset
  11162. else
  11163. as_unset=false
  11164. fi
  11165. # Work around bugs in pre-3.0 UWIN ksh.
  11166. $as_unset ENV MAIL MAILPATH
  11167. PS1='$ '
  11168. PS2='> '
  11169. PS4='+ '
  11170. # NLS nuisances.
  11171. for as_var in \
  11172. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11173. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11174. LC_TELEPHONE LC_TIME
  11175. do
  11176. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11177. eval $as_var=C; export $as_var
  11178. else
  11179. $as_unset $as_var
  11180. fi
  11181. done
  11182. # Required to use basename.
  11183. if expr a : '\(a\)' >/dev/null 2>&1; then
  11184. as_expr=expr
  11185. else
  11186. as_expr=false
  11187. fi
  11188. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11189. as_basename=basename
  11190. else
  11191. as_basename=false
  11192. fi
  11193. # Name of the executable.
  11194. as_me=`$as_basename "$0" ||
  11195. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11196. X"$0" : 'X\(//\)$' \| \
  11197. X"$0" : 'X\(/\)$' \| \
  11198. . : '\(.\)' 2>/dev/null ||
  11199. echo X/"$0" |
  11200. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11201. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11202. /^X\/\(\/\).*/{ s//\1/; q; }
  11203. s/.*/./; q'`
  11204. # PATH needs CR, and LINENO needs CR and PATH.
  11205. # Avoid depending upon Character Ranges.
  11206. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11207. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11208. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11209. as_cr_digits='0123456789'
  11210. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11211. # The user is always right.
  11212. if test "${PATH_SEPARATOR+set}" != set; then
  11213. echo "#! /bin/sh" >conf$$.sh
  11214. echo "exit 0" >>conf$$.sh
  11215. chmod +x conf$$.sh
  11216. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11217. PATH_SEPARATOR=';'
  11218. else
  11219. PATH_SEPARATOR=:
  11220. fi
  11221. rm -f conf$$.sh
  11222. fi
  11223. as_lineno_1=$LINENO
  11224. as_lineno_2=$LINENO
  11225. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11226. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11227. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11228. # Find who we are. Look in the path if we contain no path at all
  11229. # relative or not.
  11230. case $0 in
  11231. *[\\/]* ) as_myself=$0 ;;
  11232. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11233. for as_dir in $PATH
  11234. do
  11235. IFS=$as_save_IFS
  11236. test -z "$as_dir" && as_dir=.
  11237. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11238. done
  11239. ;;
  11240. esac
  11241. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11242. # in which case we are not to be found in the path.
  11243. if test "x$as_myself" = x; then
  11244. as_myself=$0
  11245. fi
  11246. if test ! -f "$as_myself"; then
  11247. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11248. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11249. { (exit 1); exit 1; }; }
  11250. fi
  11251. case $CONFIG_SHELL in
  11252. '')
  11253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11254. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11255. do
  11256. IFS=$as_save_IFS
  11257. test -z "$as_dir" && as_dir=.
  11258. for as_base in sh bash ksh sh5; do
  11259. case $as_dir in
  11260. /*)
  11261. if ("$as_dir/$as_base" -c '
  11262. as_lineno_1=$LINENO
  11263. as_lineno_2=$LINENO
  11264. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11265. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11266. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11267. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11268. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11269. CONFIG_SHELL=$as_dir/$as_base
  11270. export CONFIG_SHELL
  11271. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11272. fi;;
  11273. esac
  11274. done
  11275. done
  11276. ;;
  11277. esac
  11278. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11279. # uniformly replaced by the line number. The first 'sed' inserts a
  11280. # line-number line before each line; the second 'sed' does the real
  11281. # work. The second script uses 'N' to pair each line-number line
  11282. # with the numbered line, and appends trailing '-' during
  11283. # substitution so that $LINENO is not a special case at line end.
  11284. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11285. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11286. sed '=' <$as_myself |
  11287. sed '
  11288. N
  11289. s,$,-,
  11290. : loop
  11291. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11292. t loop
  11293. s,-$,,
  11294. s,^['$as_cr_digits']*\n,,
  11295. ' >$as_me.lineno &&
  11296. chmod +x $as_me.lineno ||
  11297. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11298. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11299. { (exit 1); exit 1; }; }
  11300. # Don't try to exec as it changes $[0], causing all sort of problems
  11301. # (the dirname of $[0] is not the place where we might find the
  11302. # original and so on. Autoconf is especially sensible to this).
  11303. . ./$as_me.lineno
  11304. # Exit status is that of the last command.
  11305. exit
  11306. }
  11307. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11308. *c*,-n*) ECHO_N= ECHO_C='
  11309. ' ECHO_T=' ' ;;
  11310. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11311. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11312. esac
  11313. if expr a : '\(a\)' >/dev/null 2>&1; then
  11314. as_expr=expr
  11315. else
  11316. as_expr=false
  11317. fi
  11318. rm -f conf$$ conf$$.exe conf$$.file
  11319. echo >conf$$.file
  11320. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11321. # We could just check for DJGPP; but this test a) works b) is more generic
  11322. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11323. if test -f conf$$.exe; then
  11324. # Don't use ln at all; we don't have any links
  11325. as_ln_s='cp -p'
  11326. else
  11327. as_ln_s='ln -s'
  11328. fi
  11329. elif ln conf$$.file conf$$ 2>/dev/null; then
  11330. as_ln_s=ln
  11331. else
  11332. as_ln_s='cp -p'
  11333. fi
  11334. rm -f conf$$ conf$$.exe conf$$.file
  11335. if mkdir -p . 2>/dev/null; then
  11336. as_mkdir_p=:
  11337. else
  11338. test -d ./-p && rmdir ./-p
  11339. as_mkdir_p=false
  11340. fi
  11341. as_executable_p="test -f"
  11342. # Sed expression to map a string onto a valid CPP name.
  11343. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11344. # Sed expression to map a string onto a valid variable name.
  11345. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11346. # IFS
  11347. # We need space, tab and new line, in precisely that order.
  11348. as_nl='
  11349. '
  11350. IFS=" $as_nl"
  11351. # CDPATH.
  11352. $as_unset CDPATH
  11353. exec 6>&1
  11354. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11355. # report actual input values of CONFIG_FILES etc. instead of their
  11356. # values after options handling. Logging --version etc. is OK.
  11357. exec 5>>config.log
  11358. {
  11359. echo
  11360. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11361. ## Running $as_me. ##
  11362. _ASBOX
  11363. } >&5
  11364. cat >&5 <<_CSEOF
  11365. This file was extended by $as_me, which was
  11366. generated by GNU Autoconf 2.59. Invocation command line was
  11367. CONFIG_FILES = $CONFIG_FILES
  11368. CONFIG_HEADERS = $CONFIG_HEADERS
  11369. CONFIG_LINKS = $CONFIG_LINKS
  11370. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11371. $ $0 $@
  11372. _CSEOF
  11373. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11374. echo >&5
  11375. _ACEOF
  11376. # Files that config.status was made for.
  11377. if test -n "$ac_config_files"; then
  11378. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11379. fi
  11380. if test -n "$ac_config_headers"; then
  11381. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11382. fi
  11383. if test -n "$ac_config_links"; then
  11384. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11385. fi
  11386. if test -n "$ac_config_commands"; then
  11387. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11388. fi
  11389. cat >>$CONFIG_STATUS <<\_ACEOF
  11390. ac_cs_usage="\
  11391. \`$as_me' instantiates files from templates according to the
  11392. current configuration.
  11393. Usage: $0 [OPTIONS] [FILE]...
  11394. -h, --help print this help, then exit
  11395. -V, --version print version number, then exit
  11396. -q, --quiet do not print progress messages
  11397. -d, --debug don't remove temporary files
  11398. --recheck update $as_me by reconfiguring in the same conditions
  11399. --file=FILE[:TEMPLATE]
  11400. instantiate the configuration file FILE
  11401. --header=FILE[:TEMPLATE]
  11402. instantiate the configuration header FILE
  11403. Configuration files:
  11404. $config_files
  11405. Configuration headers:
  11406. $config_headers
  11407. Report bugs to <bug-autoconf@gnu.org>."
  11408. _ACEOF
  11409. cat >>$CONFIG_STATUS <<_ACEOF
  11410. ac_cs_version="\\
  11411. config.status
  11412. configured by $0, generated by GNU Autoconf 2.59,
  11413. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11414. Copyright (C) 2003 Free Software Foundation, Inc.
  11415. This config.status script is free software; the Free Software Foundation
  11416. gives unlimited permission to copy, distribute and modify it."
  11417. srcdir=$srcdir
  11418. _ACEOF
  11419. cat >>$CONFIG_STATUS <<\_ACEOF
  11420. # If no file are specified by the user, then we need to provide default
  11421. # value. By we need to know if files were specified by the user.
  11422. ac_need_defaults=:
  11423. while test $# != 0
  11424. do
  11425. case $1 in
  11426. --*=*)
  11427. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11428. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11429. ac_shift=:
  11430. ;;
  11431. -*)
  11432. ac_option=$1
  11433. ac_optarg=$2
  11434. ac_shift=shift
  11435. ;;
  11436. *) # This is not an option, so the user has probably given explicit
  11437. # arguments.
  11438. ac_option=$1
  11439. ac_need_defaults=false;;
  11440. esac
  11441. case $ac_option in
  11442. # Handling of the options.
  11443. _ACEOF
  11444. cat >>$CONFIG_STATUS <<\_ACEOF
  11445. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11446. ac_cs_recheck=: ;;
  11447. --version | --vers* | -V )
  11448. echo "$ac_cs_version"; exit 0 ;;
  11449. --he | --h)
  11450. # Conflict between --help and --header
  11451. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11452. Try \`$0 --help' for more information." >&5
  11453. echo "$as_me: error: ambiguous option: $1
  11454. Try \`$0 --help' for more information." >&2;}
  11455. { (exit 1); exit 1; }; };;
  11456. --help | --hel | -h )
  11457. echo "$ac_cs_usage"; exit 0 ;;
  11458. --debug | --d* | -d )
  11459. debug=: ;;
  11460. --file | --fil | --fi | --f )
  11461. $ac_shift
  11462. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11463. ac_need_defaults=false;;
  11464. --header | --heade | --head | --hea )
  11465. $ac_shift
  11466. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11467. ac_need_defaults=false;;
  11468. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11469. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11470. ac_cs_silent=: ;;
  11471. # This is an error.
  11472. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11473. Try \`$0 --help' for more information." >&5
  11474. echo "$as_me: error: unrecognized option: $1
  11475. Try \`$0 --help' for more information." >&2;}
  11476. { (exit 1); exit 1; }; } ;;
  11477. *) ac_config_targets="$ac_config_targets $1" ;;
  11478. esac
  11479. shift
  11480. done
  11481. ac_configure_extra_args=
  11482. if $ac_cs_silent; then
  11483. exec 6>/dev/null
  11484. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11485. fi
  11486. _ACEOF
  11487. cat >>$CONFIG_STATUS <<_ACEOF
  11488. if \$ac_cs_recheck; then
  11489. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11490. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11491. fi
  11492. _ACEOF
  11493. cat >>$CONFIG_STATUS <<\_ACEOF
  11494. for ac_config_target in $ac_config_targets
  11495. do
  11496. case "$ac_config_target" in
  11497. # Handling of arguments.
  11498. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11499. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11500. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11501. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11502. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11503. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11504. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11505. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11506. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11507. { (exit 1); exit 1; }; };;
  11508. esac
  11509. done
  11510. # If the user did not use the arguments to specify the items to instantiate,
  11511. # then the envvar interface is used. Set only those that are not.
  11512. # We use the long form for the default assignment because of an extremely
  11513. # bizarre bug on SunOS 4.1.3.
  11514. if $ac_need_defaults; then
  11515. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11516. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11517. fi
  11518. # Have a temporary directory for convenience. Make it in the build tree
  11519. # simply because there is no reason to put it here, and in addition,
  11520. # creating and moving files from /tmp can sometimes cause problems.
  11521. # Create a temporary directory, and hook for its removal unless debugging.
  11522. $debug ||
  11523. {
  11524. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11525. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11526. }
  11527. # Create a (secure) tmp directory for tmp files.
  11528. {
  11529. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11530. test -n "$tmp" && test -d "$tmp"
  11531. } ||
  11532. {
  11533. tmp=./confstat$$-$RANDOM
  11534. (umask 077 && mkdir $tmp)
  11535. } ||
  11536. {
  11537. echo "$me: cannot create a temporary directory in ." >&2
  11538. { (exit 1); exit 1; }
  11539. }
  11540. _ACEOF
  11541. cat >>$CONFIG_STATUS <<_ACEOF
  11542. #
  11543. # CONFIG_FILES section.
  11544. #
  11545. # No need to generate the scripts if there are no CONFIG_FILES.
  11546. # This happens for instance when ./config.status config.h
  11547. if test -n "\$CONFIG_FILES"; then
  11548. # Protect against being on the right side of a sed subst in config.status.
  11549. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11550. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11551. s,@SHELL@,$SHELL,;t t
  11552. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11553. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11554. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11555. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11556. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11557. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11558. s,@exec_prefix@,$exec_prefix,;t t
  11559. s,@prefix@,$prefix,;t t
  11560. s,@program_transform_name@,$program_transform_name,;t t
  11561. s,@bindir@,$bindir,;t t
  11562. s,@sbindir@,$sbindir,;t t
  11563. s,@libexecdir@,$libexecdir,;t t
  11564. s,@datadir@,$datadir,;t t
  11565. s,@sysconfdir@,$sysconfdir,;t t
  11566. s,@sharedstatedir@,$sharedstatedir,;t t
  11567. s,@localstatedir@,$localstatedir,;t t
  11568. s,@libdir@,$libdir,;t t
  11569. s,@includedir@,$includedir,;t t
  11570. s,@oldincludedir@,$oldincludedir,;t t
  11571. s,@infodir@,$infodir,;t t
  11572. s,@mandir@,$mandir,;t t
  11573. s,@build_alias@,$build_alias,;t t
  11574. s,@host_alias@,$host_alias,;t t
  11575. s,@target_alias@,$target_alias,;t t
  11576. s,@DEFS@,$DEFS,;t t
  11577. s,@ECHO_C@,$ECHO_C,;t t
  11578. s,@ECHO_N@,$ECHO_N,;t t
  11579. s,@ECHO_T@,$ECHO_T,;t t
  11580. s,@LIBS@,$LIBS,;t t
  11581. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11582. s,@CC@,$CC,;t t
  11583. s,@CFLAGS@,$CFLAGS,;t t
  11584. s,@LDFLAGS@,$LDFLAGS,;t t
  11585. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11586. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11587. s,@EXEEXT@,$EXEEXT,;t t
  11588. s,@OBJEXT@,$OBJEXT,;t t
  11589. s,@CPP@,$CPP,;t t
  11590. s,@EGREP@,$EGREP,;t t
  11591. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11592. s,@GCC3@,$GCC3,;t t
  11593. s,@CCDEBUG@,$CCDEBUG,;t t
  11594. s,@SET_MAKE@,$SET_MAKE,;t t
  11595. s,@HEAD_1@,$HEAD_1,;t t
  11596. s,@AWK@,$AWK,;t t
  11597. s,@BASENAME@,$BASENAME,;t t
  11598. s,@OBJCOPY@,$OBJCOPY,;t t
  11599. s,@STRIP@,$STRIP,;t t
  11600. s,@UNAME@,$UNAME,;t t
  11601. s,@DISTCC@,$DISTCC,;t t
  11602. s,@RESLIB@,$RESLIB,;t t
  11603. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11604. s,@ZLIB@,$ZLIB,;t t
  11605. s,@LIBOBJS@,$LIBOBJS,;t t
  11606. s,@VERSION@,$VERSION,;t t
  11607. s,@NUMVER@,$NUMVER,;t t
  11608. s,@PACKNAME@,$PACKNAME,;t t
  11609. s,@CFG@,$CFG,;t t
  11610. s,@WRAP@,$WRAP,;t t
  11611. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11612. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11613. CEOF
  11614. _ACEOF
  11615. cat >>$CONFIG_STATUS <<\_ACEOF
  11616. # Split the substitutions into bite-sized pieces for seds with
  11617. # small command number limits, like on Digital OSF/1 and HP-UX.
  11618. ac_max_sed_lines=48
  11619. ac_sed_frag=1 # Number of current file.
  11620. ac_beg=1 # First line for current file.
  11621. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11622. ac_more_lines=:
  11623. ac_sed_cmds=
  11624. while $ac_more_lines; do
  11625. if test $ac_beg -gt 1; then
  11626. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11627. else
  11628. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11629. fi
  11630. if test ! -s $tmp/subs.frag; then
  11631. ac_more_lines=false
  11632. else
  11633. # The purpose of the label and of the branching condition is to
  11634. # speed up the sed processing (if there are no `@' at all, there
  11635. # is no need to browse any of the substitutions).
  11636. # These are the two extra sed commands mentioned above.
  11637. (echo ':t
  11638. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11639. if test -z "$ac_sed_cmds"; then
  11640. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11641. else
  11642. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11643. fi
  11644. ac_sed_frag=`expr $ac_sed_frag + 1`
  11645. ac_beg=$ac_end
  11646. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11647. fi
  11648. done
  11649. if test -z "$ac_sed_cmds"; then
  11650. ac_sed_cmds=cat
  11651. fi
  11652. fi # test -n "$CONFIG_FILES"
  11653. _ACEOF
  11654. cat >>$CONFIG_STATUS <<\_ACEOF
  11655. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11656. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11657. case $ac_file in
  11658. - | *:- | *:-:* ) # input from stdin
  11659. cat >$tmp/stdin
  11660. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11661. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11662. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11663. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11664. * ) ac_file_in=$ac_file.in ;;
  11665. esac
  11666. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11667. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11668. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11669. X"$ac_file" : 'X\(//\)[^/]' \| \
  11670. X"$ac_file" : 'X\(//\)$' \| \
  11671. X"$ac_file" : 'X\(/\)' \| \
  11672. . : '\(.\)' 2>/dev/null ||
  11673. echo X"$ac_file" |
  11674. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11675. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11676. /^X\(\/\/\)$/{ s//\1/; q; }
  11677. /^X\(\/\).*/{ s//\1/; q; }
  11678. s/.*/./; q'`
  11679. { if $as_mkdir_p; then
  11680. mkdir -p "$ac_dir"
  11681. else
  11682. as_dir="$ac_dir"
  11683. as_dirs=
  11684. while test ! -d "$as_dir"; do
  11685. as_dirs="$as_dir $as_dirs"
  11686. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11687. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11688. X"$as_dir" : 'X\(//\)[^/]' \| \
  11689. X"$as_dir" : 'X\(//\)$' \| \
  11690. X"$as_dir" : 'X\(/\)' \| \
  11691. . : '\(.\)' 2>/dev/null ||
  11692. echo X"$as_dir" |
  11693. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11694. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11695. /^X\(\/\/\)$/{ s//\1/; q; }
  11696. /^X\(\/\).*/{ s//\1/; q; }
  11697. s/.*/./; q'`
  11698. done
  11699. test ! -n "$as_dirs" || mkdir $as_dirs
  11700. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11701. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11702. { (exit 1); exit 1; }; }; }
  11703. ac_builddir=.
  11704. if test "$ac_dir" != .; then
  11705. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11706. # A "../" for each directory in $ac_dir_suffix.
  11707. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11708. else
  11709. ac_dir_suffix= ac_top_builddir=
  11710. fi
  11711. case $srcdir in
  11712. .) # No --srcdir option. We are building in place.
  11713. ac_srcdir=.
  11714. if test -z "$ac_top_builddir"; then
  11715. ac_top_srcdir=.
  11716. else
  11717. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11718. fi ;;
  11719. [\\/]* | ?:[\\/]* ) # Absolute path.
  11720. ac_srcdir=$srcdir$ac_dir_suffix;
  11721. ac_top_srcdir=$srcdir ;;
  11722. *) # Relative path.
  11723. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11724. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11725. esac
  11726. # Do not use `cd foo && pwd` to compute absolute paths, because
  11727. # the directories may not exist.
  11728. case `pwd` in
  11729. .) ac_abs_builddir="$ac_dir";;
  11730. *)
  11731. case "$ac_dir" in
  11732. .) ac_abs_builddir=`pwd`;;
  11733. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11734. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11735. esac;;
  11736. esac
  11737. case $ac_abs_builddir in
  11738. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11739. *)
  11740. case ${ac_top_builddir}. in
  11741. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11742. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11743. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11744. esac;;
  11745. esac
  11746. case $ac_abs_builddir in
  11747. .) ac_abs_srcdir=$ac_srcdir;;
  11748. *)
  11749. case $ac_srcdir in
  11750. .) ac_abs_srcdir=$ac_abs_builddir;;
  11751. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11752. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11753. esac;;
  11754. esac
  11755. case $ac_abs_builddir in
  11756. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11757. *)
  11758. case $ac_top_srcdir in
  11759. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11760. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11761. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11762. esac;;
  11763. esac
  11764. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11765. # use $as_me), people would be surprised to read:
  11766. # /* config.h. Generated by config.status. */
  11767. if test x"$ac_file" = x-; then
  11768. configure_input=
  11769. else
  11770. configure_input="$ac_file. "
  11771. fi
  11772. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11773. sed 's,.*/,,'` by configure."
  11774. # First look for the input files in the build tree, otherwise in the
  11775. # src tree.
  11776. ac_file_inputs=`IFS=:
  11777. for f in $ac_file_in; do
  11778. case $f in
  11779. -) echo $tmp/stdin ;;
  11780. [\\/$]*)
  11781. # Absolute (can't be DOS-style, as IFS=:)
  11782. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11783. echo "$as_me: error: cannot find input file: $f" >&2;}
  11784. { (exit 1); exit 1; }; }
  11785. echo "$f";;
  11786. *) # Relative
  11787. if test -f "$f"; then
  11788. # Build tree
  11789. echo "$f"
  11790. elif test -f "$srcdir/$f"; then
  11791. # Source tree
  11792. echo "$srcdir/$f"
  11793. else
  11794. # /dev/null tree
  11795. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11796. echo "$as_me: error: cannot find input file: $f" >&2;}
  11797. { (exit 1); exit 1; }; }
  11798. fi;;
  11799. esac
  11800. done` || { (exit 1); exit 1; }
  11801. if test x"$ac_file" != x-; then
  11802. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11803. echo "$as_me: creating $ac_file" >&6;}
  11804. rm -f "$ac_file"
  11805. fi
  11806. _ACEOF
  11807. cat >>$CONFIG_STATUS <<_ACEOF
  11808. sed "$ac_vpsub
  11809. $extrasub
  11810. _ACEOF
  11811. cat >>$CONFIG_STATUS <<\_ACEOF
  11812. :t
  11813. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11814. s,@configure_input@,$configure_input,;t t
  11815. s,@srcdir@,$ac_srcdir,;t t
  11816. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11817. s,@top_srcdir@,$ac_top_srcdir,;t t
  11818. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11819. s,@builddir@,$ac_builddir,;t t
  11820. s,@abs_builddir@,$ac_abs_builddir,;t t
  11821. s,@top_builddir@,$ac_top_builddir,;t t
  11822. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11823. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11824. rm -f $tmp/stdin
  11825. if test x"$ac_file" != x-; then
  11826. mv $tmp/out $ac_file
  11827. else
  11828. cat $tmp/out
  11829. rm -f $tmp/out
  11830. fi
  11831. done
  11832. _ACEOF
  11833. cat >>$CONFIG_STATUS <<\_ACEOF
  11834. #
  11835. # CONFIG_HEADER section.
  11836. #
  11837. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11838. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11839. #
  11840. # ac_d sets the value in "#define NAME VALUE" lines.
  11841. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11842. ac_dB='[ ].*$,\1#\2'
  11843. ac_dC=' '
  11844. ac_dD=',;t'
  11845. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11846. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11847. ac_uB='$,\1#\2define\3'
  11848. ac_uC=' '
  11849. ac_uD=',;t'
  11850. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11851. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11852. case $ac_file in
  11853. - | *:- | *:-:* ) # input from stdin
  11854. cat >$tmp/stdin
  11855. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11856. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11857. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11858. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11859. * ) ac_file_in=$ac_file.in ;;
  11860. esac
  11861. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11862. echo "$as_me: creating $ac_file" >&6;}
  11863. # First look for the input files in the build tree, otherwise in the
  11864. # src tree.
  11865. ac_file_inputs=`IFS=:
  11866. for f in $ac_file_in; do
  11867. case $f in
  11868. -) echo $tmp/stdin ;;
  11869. [\\/$]*)
  11870. # Absolute (can't be DOS-style, as IFS=:)
  11871. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11872. echo "$as_me: error: cannot find input file: $f" >&2;}
  11873. { (exit 1); exit 1; }; }
  11874. # Do quote $f, to prevent DOS paths from being IFS'd.
  11875. echo "$f";;
  11876. *) # Relative
  11877. if test -f "$f"; then
  11878. # Build tree
  11879. echo "$f"
  11880. elif test -f "$srcdir/$f"; then
  11881. # Source tree
  11882. echo "$srcdir/$f"
  11883. else
  11884. # /dev/null tree
  11885. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11886. echo "$as_me: error: cannot find input file: $f" >&2;}
  11887. { (exit 1); exit 1; }; }
  11888. fi;;
  11889. esac
  11890. done` || { (exit 1); exit 1; }
  11891. # Remove the trailing spaces.
  11892. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11893. _ACEOF
  11894. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11895. # `conftest.undefs', that substitutes the proper values into
  11896. # config.h.in to produce config.h. The first handles `#define'
  11897. # templates, and the second `#undef' templates.
  11898. # And first: Protect against being on the right side of a sed subst in
  11899. # config.status. Protect against being in an unquoted here document
  11900. # in config.status.
  11901. rm -f conftest.defines conftest.undefs
  11902. # Using a here document instead of a string reduces the quoting nightmare.
  11903. # Putting comments in sed scripts is not portable.
  11904. #
  11905. # `end' is used to avoid that the second main sed command (meant for
  11906. # 0-ary CPP macros) applies to n-ary macro definitions.
  11907. # See the Autoconf documentation for `clear'.
  11908. cat >confdef2sed.sed <<\_ACEOF
  11909. s/[\\&,]/\\&/g
  11910. s,[\\$`],\\&,g
  11911. t clear
  11912. : clear
  11913. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11914. t end
  11915. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11916. : end
  11917. _ACEOF
  11918. # If some macros were called several times there might be several times
  11919. # the same #defines, which is useless. Nevertheless, we may not want to
  11920. # sort them, since we want the *last* AC-DEFINE to be honored.
  11921. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11922. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11923. rm -f confdef2sed.sed
  11924. # This sed command replaces #undef with comments. This is necessary, for
  11925. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11926. # on some systems where configure will not decide to define it.
  11927. cat >>conftest.undefs <<\_ACEOF
  11928. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11929. _ACEOF
  11930. # Break up conftest.defines because some shells have a limit on the size
  11931. # of here documents, and old seds have small limits too (100 cmds).
  11932. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11933. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11934. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11935. echo ' :' >>$CONFIG_STATUS
  11936. rm -f conftest.tail
  11937. while grep . conftest.defines >/dev/null
  11938. do
  11939. # Write a limited-size here document to $tmp/defines.sed.
  11940. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11941. # Speed up: don't consider the non `#define' lines.
  11942. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11943. # Work around the forget-to-reset-the-flag bug.
  11944. echo 't clr' >>$CONFIG_STATUS
  11945. echo ': clr' >>$CONFIG_STATUS
  11946. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11947. echo 'CEOF
  11948. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11949. rm -f $tmp/in
  11950. mv $tmp/out $tmp/in
  11951. ' >>$CONFIG_STATUS
  11952. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11953. rm -f conftest.defines
  11954. mv conftest.tail conftest.defines
  11955. done
  11956. rm -f conftest.defines
  11957. echo ' fi # grep' >>$CONFIG_STATUS
  11958. echo >>$CONFIG_STATUS
  11959. # Break up conftest.undefs because some shells have a limit on the size
  11960. # of here documents, and old seds have small limits too (100 cmds).
  11961. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11962. rm -f conftest.tail
  11963. while grep . conftest.undefs >/dev/null
  11964. do
  11965. # Write a limited-size here document to $tmp/undefs.sed.
  11966. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11967. # Speed up: don't consider the non `#undef'
  11968. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11969. # Work around the forget-to-reset-the-flag bug.
  11970. echo 't clr' >>$CONFIG_STATUS
  11971. echo ': clr' >>$CONFIG_STATUS
  11972. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11973. echo 'CEOF
  11974. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11975. rm -f $tmp/in
  11976. mv $tmp/out $tmp/in
  11977. ' >>$CONFIG_STATUS
  11978. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11979. rm -f conftest.undefs
  11980. mv conftest.tail conftest.undefs
  11981. done
  11982. rm -f conftest.undefs
  11983. cat >>$CONFIG_STATUS <<\_ACEOF
  11984. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11985. # use $as_me), people would be surprised to read:
  11986. # /* config.h. Generated by config.status. */
  11987. if test x"$ac_file" = x-; then
  11988. echo "/* Generated by configure. */" >$tmp/config.h
  11989. else
  11990. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11991. fi
  11992. cat $tmp/in >>$tmp/config.h
  11993. rm -f $tmp/in
  11994. if test x"$ac_file" != x-; then
  11995. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11996. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11997. echo "$as_me: $ac_file is unchanged" >&6;}
  11998. else
  11999. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12000. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12001. X"$ac_file" : 'X\(//\)[^/]' \| \
  12002. X"$ac_file" : 'X\(//\)$' \| \
  12003. X"$ac_file" : 'X\(/\)' \| \
  12004. . : '\(.\)' 2>/dev/null ||
  12005. echo X"$ac_file" |
  12006. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12007. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12008. /^X\(\/\/\)$/{ s//\1/; q; }
  12009. /^X\(\/\).*/{ s//\1/; q; }
  12010. s/.*/./; q'`
  12011. { if $as_mkdir_p; then
  12012. mkdir -p "$ac_dir"
  12013. else
  12014. as_dir="$ac_dir"
  12015. as_dirs=
  12016. while test ! -d "$as_dir"; do
  12017. as_dirs="$as_dir $as_dirs"
  12018. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12019. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12020. X"$as_dir" : 'X\(//\)[^/]' \| \
  12021. X"$as_dir" : 'X\(//\)$' \| \
  12022. X"$as_dir" : 'X\(/\)' \| \
  12023. . : '\(.\)' 2>/dev/null ||
  12024. echo X"$as_dir" |
  12025. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12026. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12027. /^X\(\/\/\)$/{ s//\1/; q; }
  12028. /^X\(\/\).*/{ s//\1/; q; }
  12029. s/.*/./; q'`
  12030. done
  12031. test ! -n "$as_dirs" || mkdir $as_dirs
  12032. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12033. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12034. { (exit 1); exit 1; }; }; }
  12035. rm -f $ac_file
  12036. mv $tmp/config.h $ac_file
  12037. fi
  12038. else
  12039. cat $tmp/config.h
  12040. rm -f $tmp/config.h
  12041. fi
  12042. done
  12043. _ACEOF
  12044. cat >>$CONFIG_STATUS <<\_ACEOF
  12045. { (exit 0); exit 0; }
  12046. _ACEOF
  12047. chmod +x $CONFIG_STATUS
  12048. ac_clean_files=$ac_clean_files_save
  12049. # configure is writing to config.log, and then calls config.status.
  12050. # config.status does its own redirection, appending to config.log.
  12051. # Unfortunately, on DOS this fails, as config.log is still kept open
  12052. # by configure, so config.status won't be able to write to it; its
  12053. # output is simply discarded. So we exec the FD to /dev/null,
  12054. # effectively closing config.log, so it can be properly (re)opened and
  12055. # appended to by config.status. When coming back to configure, we
  12056. # need to make the FD available again.
  12057. if test "$no_create" != yes; then
  12058. ac_cs_success=:
  12059. ac_config_status_args=
  12060. test "$silent" = yes &&
  12061. ac_config_status_args="$ac_config_status_args --quiet"
  12062. exec 5>/dev/null
  12063. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12064. exec 5>>config.log
  12065. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12066. # would make configure fail if this is the last instruction.
  12067. $ac_cs_success || { (exit 1); exit 1; }
  12068. fi