configure 384 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.5 .
  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 CCDEBUG SET_MAKE HEAD_1 STRIP AWK BASENAME CCACHE DISTCC UNAME ZLIB SSL LIBOBJS TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS VERSION NUMVER PACKNAME 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-tcllib=PATH full path to Tcl library
  744. --with-tclinc=PATH full path to Tcl header
  745. Some influential environment variables:
  746. CC C compiler command
  747. CFLAGS C compiler flags
  748. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  749. nonstandard directory <lib dir>
  750. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  751. headers in a nonstandard directory <include dir>
  752. CPP C preprocessor
  753. Use these variables to override the choices made by `configure' or to help
  754. it to find libraries and programs with nonstandard names/locations.
  755. _ACEOF
  756. fi
  757. if test "$ac_init_help" = "recursive"; then
  758. # If there are subdirs, report their specific --help.
  759. ac_popdir=`pwd`
  760. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  761. test -d $ac_dir || continue
  762. ac_builddir=.
  763. if test "$ac_dir" != .; then
  764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  765. # A "../" for each directory in $ac_dir_suffix.
  766. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  767. else
  768. ac_dir_suffix= ac_top_builddir=
  769. fi
  770. case $srcdir in
  771. .) # No --srcdir option. We are building in place.
  772. ac_srcdir=.
  773. if test -z "$ac_top_builddir"; then
  774. ac_top_srcdir=.
  775. else
  776. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  777. fi ;;
  778. [\\/]* | ?:[\\/]* ) # Absolute path.
  779. ac_srcdir=$srcdir$ac_dir_suffix;
  780. ac_top_srcdir=$srcdir ;;
  781. *) # Relative path.
  782. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  783. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  784. esac
  785. # Do not use `cd foo && pwd` to compute absolute paths, because
  786. # the directories may not exist.
  787. case `pwd` in
  788. .) ac_abs_builddir="$ac_dir";;
  789. *)
  790. case "$ac_dir" in
  791. .) ac_abs_builddir=`pwd`;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  793. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  798. *)
  799. case ${ac_top_builddir}. in
  800. .) ac_abs_top_builddir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  802. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_srcdir=$ac_srcdir;;
  807. *)
  808. case $ac_srcdir in
  809. .) ac_abs_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  811. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  816. *)
  817. case $ac_top_srcdir in
  818. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  820. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  821. esac;;
  822. esac
  823. cd $ac_dir
  824. # Check for guested configure; otherwise get Cygnus style configure.
  825. if test -f $ac_srcdir/configure.gnu; then
  826. echo
  827. $SHELL $ac_srcdir/configure.gnu --help=recursive
  828. elif test -f $ac_srcdir/configure; then
  829. echo
  830. $SHELL $ac_srcdir/configure --help=recursive
  831. elif test -f $ac_srcdir/configure.ac ||
  832. test -f $ac_srcdir/configure.in; then
  833. echo
  834. $ac_configure --help
  835. else
  836. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  837. fi
  838. cd "$ac_popdir"
  839. done
  840. fi
  841. test -n "$ac_init_help" && exit 0
  842. if $ac_init_version; then
  843. cat <<\_ACEOF
  844. Copyright (C) 2003 Free Software Foundation, Inc.
  845. This configure script is free software; the Free Software Foundation
  846. gives unlimited permission to copy, distribute and modify it.
  847. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  848. _ACEOF
  849. exit 0
  850. fi
  851. exec 5>config.log
  852. cat >&5 <<_ACEOF
  853. This file contains any messages produced by compilers while
  854. running configure, to aid debugging if configure makes a mistake.
  855. It was created by $as_me, which was
  856. generated by GNU Autoconf 2.59. Invocation command line was
  857. $ $0 $@
  858. _ACEOF
  859. {
  860. cat <<_ASUNAME
  861. ## --------- ##
  862. ## Platform. ##
  863. ## --------- ##
  864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  869. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  870. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  871. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  872. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  873. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  874. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  875. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  876. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  877. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  878. _ASUNAME
  879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  880. for as_dir in $PATH
  881. do
  882. IFS=$as_save_IFS
  883. test -z "$as_dir" && as_dir=.
  884. echo "PATH: $as_dir"
  885. done
  886. } >&5
  887. cat >&5 <<_ACEOF
  888. ## ----------- ##
  889. ## Core tests. ##
  890. ## ----------- ##
  891. _ACEOF
  892. # Keep a trace of the command line.
  893. # Strip out --no-create and --no-recursion so they do not pile up.
  894. # Strip out --silent because we don't want to record it for future runs.
  895. # Also quote any args containing shell meta-characters.
  896. # Make two passes to allow for proper duplicate-argument suppression.
  897. ac_configure_args=
  898. ac_configure_args0=
  899. ac_configure_args1=
  900. ac_sep=
  901. ac_must_keep_next=false
  902. for ac_pass in 1 2
  903. do
  904. for ac_arg
  905. do
  906. case $ac_arg in
  907. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. continue ;;
  911. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  912. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  913. esac
  914. case $ac_pass in
  915. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  916. 2)
  917. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  918. if test $ac_must_keep_next = true; then
  919. ac_must_keep_next=false # Got value, back to normal.
  920. else
  921. case $ac_arg in
  922. *=* | --config-cache | -C | -disable-* | --disable-* \
  923. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  924. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  925. | -with-* | --with-* | -without-* | --without-* | --x)
  926. case "$ac_configure_args0 " in
  927. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  928. esac
  929. ;;
  930. -* ) ac_must_keep_next=true ;;
  931. esac
  932. fi
  933. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  934. # Get rid of the leading space.
  935. ac_sep=" "
  936. ;;
  937. esac
  938. done
  939. done
  940. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  941. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  942. # When interrupted or exit'd, cleanup temporary files, and complete
  943. # config.log. We remove comments because anyway the quotes in there
  944. # would cause problems or look ugly.
  945. # WARNING: Be sure not to use single quotes in there, as some shells,
  946. # such as our DU 5.0 friend, will then `close' the trap.
  947. trap 'exit_status=$?
  948. # Save into config.log some information that might help in debugging.
  949. {
  950. echo
  951. cat <<\_ASBOX
  952. ## ---------------- ##
  953. ## Cache variables. ##
  954. ## ---------------- ##
  955. _ASBOX
  956. echo
  957. # The following way of writing the cache mishandles newlines in values,
  958. {
  959. (set) 2>&1 |
  960. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  961. *ac_space=\ *)
  962. sed -n \
  963. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  965. ;;
  966. *)
  967. sed -n \
  968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  969. ;;
  970. esac;
  971. }
  972. echo
  973. cat <<\_ASBOX
  974. ## ----------------- ##
  975. ## Output variables. ##
  976. ## ----------------- ##
  977. _ASBOX
  978. echo
  979. for ac_var in $ac_subst_vars
  980. do
  981. eval ac_val=$`echo $ac_var`
  982. echo "$ac_var='"'"'$ac_val'"'"'"
  983. done | sort
  984. echo
  985. if test -n "$ac_subst_files"; then
  986. cat <<\_ASBOX
  987. ## ------------- ##
  988. ## Output files. ##
  989. ## ------------- ##
  990. _ASBOX
  991. echo
  992. for ac_var in $ac_subst_files
  993. do
  994. eval ac_val=$`echo $ac_var`
  995. echo "$ac_var='"'"'$ac_val'"'"'"
  996. done | sort
  997. echo
  998. fi
  999. if test -s confdefs.h; then
  1000. cat <<\_ASBOX
  1001. ## ----------- ##
  1002. ## confdefs.h. ##
  1003. ## ----------- ##
  1004. _ASBOX
  1005. echo
  1006. sed "/^$/d" confdefs.h | sort
  1007. echo
  1008. fi
  1009. test "$ac_signal" != 0 &&
  1010. echo "$as_me: caught signal $ac_signal"
  1011. echo "$as_me: exit $exit_status"
  1012. } >&5
  1013. rm -f core *.core &&
  1014. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1015. exit $exit_status
  1016. ' 0
  1017. for ac_signal in 1 2 13 15; do
  1018. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1019. done
  1020. ac_signal=0
  1021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1022. rm -rf conftest* confdefs.h
  1023. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1024. echo >confdefs.h
  1025. # Predefined preprocessor variables.
  1026. cat >>confdefs.h <<_ACEOF
  1027. #define PACKAGE_NAME "$PACKAGE_NAME"
  1028. _ACEOF
  1029. cat >>confdefs.h <<_ACEOF
  1030. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1031. _ACEOF
  1032. cat >>confdefs.h <<_ACEOF
  1033. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1034. _ACEOF
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_STRING "$PACKAGE_STRING"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1040. _ACEOF
  1041. # Let the site file select an alternate cache file if it wants to.
  1042. # Prefer explicitly selected file to automatically selected ones.
  1043. if test -z "$CONFIG_SITE"; then
  1044. if test "x$prefix" != xNONE; then
  1045. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1046. else
  1047. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1048. fi
  1049. fi
  1050. for ac_site_file in $CONFIG_SITE; do
  1051. if test -r "$ac_site_file"; then
  1052. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1053. echo "$as_me: loading site script $ac_site_file" >&6;}
  1054. sed 's/^/| /' "$ac_site_file" >&5
  1055. . "$ac_site_file"
  1056. fi
  1057. done
  1058. if test -r "$cache_file"; then
  1059. # Some versions of bash will fail to source /dev/null (special
  1060. # files actually), so we avoid doing that.
  1061. if test -f "$cache_file"; then
  1062. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1063. echo "$as_me: loading cache $cache_file" >&6;}
  1064. case $cache_file in
  1065. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1066. *) . ./$cache_file;;
  1067. esac
  1068. fi
  1069. else
  1070. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1071. echo "$as_me: creating cache $cache_file" >&6;}
  1072. >$cache_file
  1073. fi
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers config.h"
  1130. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1131. egg_ac_parameters=
  1132. ac_prev=
  1133. for ac_arg in $ac_configure_args; do
  1134. if test -n "$ac_prev"; then
  1135. ac_prev=
  1136. continue
  1137. fi
  1138. case $ac_arg in
  1139. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1140. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1141. ac_prev=cache_file ;;
  1142. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1143. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1144. | --c=*)
  1145. ;;
  1146. --config-cache | -C)
  1147. ;;
  1148. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149. ac_prev=srcdir ;;
  1150. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151. ;;
  1152. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1153. esac
  1154. done
  1155. # Setup build environment
  1156. ac_ext=c
  1157. ac_cpp='$CPP $CPPFLAGS'
  1158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1161. if test -n "$ac_tool_prefix"; then
  1162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$CC"; then
  1170. ac_cv_prog_CC="$CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. CC=$ac_cv_prog_CC
  1188. if test -n "$CC"; then
  1189. echo "$as_me:$LINENO: result: $CC" >&5
  1190. echo "${ECHO_T}$CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. fi
  1196. if test -z "$ac_cv_prog_CC"; then
  1197. ac_ct_CC=$CC
  1198. # Extract the first word of "gcc", so it can be a program name with args.
  1199. set dummy gcc; ac_word=$2
  1200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1202. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1203. echo $ECHO_N "(cached) $ECHO_C" >&6
  1204. else
  1205. if test -n "$ac_ct_CC"; then
  1206. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. for ac_exec_ext in '' $ac_executable_extensions; do
  1214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1215. ac_cv_prog_ac_ct_CC="gcc"
  1216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1217. break 2
  1218. fi
  1219. done
  1220. done
  1221. fi
  1222. fi
  1223. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1224. if test -n "$ac_ct_CC"; then
  1225. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1226. echo "${ECHO_T}$ac_ct_CC" >&6
  1227. else
  1228. echo "$as_me:$LINENO: result: no" >&5
  1229. echo "${ECHO_T}no" >&6
  1230. fi
  1231. CC=$ac_ct_CC
  1232. else
  1233. CC="$ac_cv_prog_CC"
  1234. fi
  1235. if test -z "$CC"; then
  1236. if test -n "$ac_tool_prefix"; then
  1237. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1238. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$CC"; then
  1245. ac_cv_prog_CC="$CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:$LINENO: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "cc", so it can be a program name with args.
  1274. set dummy cc; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286. IFS=$as_save_IFS
  1287. test -z "$as_dir" && as_dir=.
  1288. for ac_exec_ext in '' $ac_executable_extensions; do
  1289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290. ac_cv_prog_ac_ct_CC="cc"
  1291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292. break 2
  1293. fi
  1294. done
  1295. done
  1296. fi
  1297. fi
  1298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1299. if test -n "$ac_ct_CC"; then
  1300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1301. echo "${ECHO_T}$ac_ct_CC" >&6
  1302. else
  1303. echo "$as_me:$LINENO: result: no" >&5
  1304. echo "${ECHO_T}no" >&6
  1305. fi
  1306. CC=$ac_ct_CC
  1307. else
  1308. CC="$ac_cv_prog_CC"
  1309. fi
  1310. fi
  1311. if test -z "$CC"; then
  1312. # Extract the first word of "cc", so it can be a program name with args.
  1313. set dummy cc; ac_word=$2
  1314. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1316. if test "${ac_cv_prog_CC+set}" = set; then
  1317. echo $ECHO_N "(cached) $ECHO_C" >&6
  1318. else
  1319. if test -n "$CC"; then
  1320. ac_cv_prog_CC="$CC" # Let the user override the test.
  1321. else
  1322. ac_prog_rejected=no
  1323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1324. for as_dir in $PATH
  1325. do
  1326. IFS=$as_save_IFS
  1327. test -z "$as_dir" && as_dir=.
  1328. for ac_exec_ext in '' $ac_executable_extensions; do
  1329. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1331. ac_prog_rejected=yes
  1332. continue
  1333. fi
  1334. ac_cv_prog_CC="cc"
  1335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1336. break 2
  1337. fi
  1338. done
  1339. done
  1340. if test $ac_prog_rejected = yes; then
  1341. # We found a bogon in the path, so make sure we never use it.
  1342. set dummy $ac_cv_prog_CC
  1343. shift
  1344. if test $# != 0; then
  1345. # We chose a different compiler from the bogus one.
  1346. # However, it has the same basename, so the bogon will be chosen
  1347. # first if we set CC to just the basename; use the full file name.
  1348. shift
  1349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1350. fi
  1351. fi
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$CC"; then
  1364. if test -n "$ac_tool_prefix"; then
  1365. for ac_prog in cl
  1366. do
  1367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1371. if test "${ac_cv_prog_CC+set}" = set; then
  1372. echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. else
  1374. if test -n "$CC"; then
  1375. ac_cv_prog_CC="$CC" # Let the user override the test.
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. for ac_exec_ext in '' $ac_executable_extensions; do
  1383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1386. break 2
  1387. fi
  1388. done
  1389. done
  1390. fi
  1391. fi
  1392. CC=$ac_cv_prog_CC
  1393. if test -n "$CC"; then
  1394. echo "$as_me:$LINENO: result: $CC" >&5
  1395. echo "${ECHO_T}$CC" >&6
  1396. else
  1397. echo "$as_me:$LINENO: result: no" >&5
  1398. echo "${ECHO_T}no" >&6
  1399. fi
  1400. test -n "$CC" && break
  1401. done
  1402. fi
  1403. if test -z "$CC"; then
  1404. ac_ct_CC=$CC
  1405. for ac_prog in cl
  1406. do
  1407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1408. set dummy $ac_prog; ac_word=$2
  1409. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1411. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1412. echo $ECHO_N "(cached) $ECHO_C" >&6
  1413. else
  1414. if test -n "$ac_ct_CC"; then
  1415. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1416. else
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. for ac_exec_ext in '' $ac_executable_extensions; do
  1423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_prog"
  1425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1426. break 2
  1427. fi
  1428. done
  1429. done
  1430. fi
  1431. fi
  1432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1433. if test -n "$ac_ct_CC"; then
  1434. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1435. echo "${ECHO_T}$ac_ct_CC" >&6
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. fi
  1440. test -n "$ac_ct_CC" && break
  1441. done
  1442. CC=$ac_ct_CC
  1443. fi
  1444. fi
  1445. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. # Provide some information about the compiler.
  1451. echo "$as_me:$LINENO:" \
  1452. "checking for C compiler version" >&5
  1453. ac_compiler=`set X $ac_compile; echo $2`
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1455. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -v </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. cat >conftest.$ac_ext <<_ACEOF
  1470. /* confdefs.h. */
  1471. _ACEOF
  1472. cat confdefs.h >>conftest.$ac_ext
  1473. cat >>conftest.$ac_ext <<_ACEOF
  1474. /* end confdefs.h. */
  1475. int
  1476. main ()
  1477. {
  1478. ;
  1479. return 0;
  1480. }
  1481. _ACEOF
  1482. ac_clean_files_save=$ac_clean_files
  1483. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1484. # Try to create an executable without -o first, disregard a.out.
  1485. # It will help us diagnose broken compilers, and finding out an intuition
  1486. # of exeext.
  1487. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1488. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1489. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1490. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1491. (eval $ac_link_default) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; then
  1495. # Find the output, starting from the most likely. This scheme is
  1496. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1497. # resort.
  1498. # Be careful to initialize this variable, since it used to be cached.
  1499. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1500. ac_cv_exeext=
  1501. # b.out is created by i960 compilers.
  1502. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1503. do
  1504. test -f "$ac_file" || continue
  1505. case $ac_file in
  1506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1507. ;;
  1508. conftest.$ac_ext )
  1509. # This is the source file.
  1510. ;;
  1511. [ab].out )
  1512. # We found the default executable, but exeext='' is most
  1513. # certainly right.
  1514. break;;
  1515. *.* )
  1516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1517. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1518. # but it would be cool to find out if it's true. Does anybody
  1519. # maintain Libtool? --akim.
  1520. export ac_cv_exeext
  1521. break;;
  1522. * )
  1523. break;;
  1524. esac
  1525. done
  1526. else
  1527. echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&5
  1531. echo "$as_me: error: C compiler cannot create executables
  1532. See \`config.log' for more details." >&2;}
  1533. { (exit 77); exit 77; }; }
  1534. fi
  1535. ac_exeext=$ac_cv_exeext
  1536. echo "$as_me:$LINENO: result: $ac_file" >&5
  1537. echo "${ECHO_T}$ac_file" >&6
  1538. # Check the compiler produces executables we can run. If not, either
  1539. # the compiler is broken, or we cross compile.
  1540. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1541. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1542. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1543. # If not cross compiling, check that we can run a simple program.
  1544. if test "$cross_compiling" != yes; then
  1545. if { ac_try='./$ac_file'
  1546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1547. (eval $ac_try) 2>&5
  1548. ac_status=$?
  1549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1550. (exit $ac_status); }; }; then
  1551. cross_compiling=no
  1552. else
  1553. if test "$cross_compiling" = maybe; then
  1554. cross_compiling=yes
  1555. else
  1556. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1557. If you meant to cross compile, use \`--host'.
  1558. See \`config.log' for more details." >&5
  1559. echo "$as_me: error: cannot run C compiled programs.
  1560. If you meant to cross compile, use \`--host'.
  1561. See \`config.log' for more details." >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. fi
  1564. fi
  1565. fi
  1566. echo "$as_me:$LINENO: result: yes" >&5
  1567. echo "${ECHO_T}yes" >&6
  1568. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1569. ac_clean_files=$ac_clean_files_save
  1570. # Check the compiler produces executables we can run. If not, either
  1571. # the compiler is broken, or we cross compile.
  1572. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1573. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1574. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1575. echo "${ECHO_T}$cross_compiling" >&6
  1576. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1577. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1579. (eval $ac_link) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1582. (exit $ac_status); }; then
  1583. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1584. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1585. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1586. # `rm'.
  1587. for ac_file in conftest.exe conftest conftest.*; do
  1588. test -f "$ac_file" || continue
  1589. case $ac_file in
  1590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1591. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1592. export ac_cv_exeext
  1593. break;;
  1594. * ) break;;
  1595. esac
  1596. done
  1597. else
  1598. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&5
  1600. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1601. See \`config.log' for more details." >&2;}
  1602. { (exit 1); exit 1; }; }
  1603. fi
  1604. rm -f conftest$ac_cv_exeext
  1605. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1606. echo "${ECHO_T}$ac_cv_exeext" >&6
  1607. rm -f conftest.$ac_ext
  1608. EXEEXT=$ac_cv_exeext
  1609. ac_exeext=$EXEEXT
  1610. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1611. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1612. if test "${ac_cv_objext+set}" = set; then
  1613. echo $ECHO_N "(cached) $ECHO_C" >&6
  1614. else
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. /* confdefs.h. */
  1663. _ACEOF
  1664. cat confdefs.h >>conftest.$ac_ext
  1665. cat >>conftest.$ac_ext <<_ACEOF
  1666. /* end confdefs.h. */
  1667. int
  1668. main ()
  1669. {
  1670. #ifndef __GNUC__
  1671. choke me
  1672. #endif
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. rm -f conftest.$ac_objext
  1678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1679. (eval $ac_compile) 2>conftest.er1
  1680. ac_status=$?
  1681. grep -v '^ *+' conftest.er1 >conftest.err
  1682. rm -f conftest.er1
  1683. cat conftest.err >&5
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); } &&
  1686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1688. (eval $ac_try) 2>&5
  1689. ac_status=$?
  1690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1691. (exit $ac_status); }; } &&
  1692. { ac_try='test -s conftest.$ac_objext'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; }; then
  1698. ac_compiler_gnu=yes
  1699. else
  1700. echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_compiler_gnu=no
  1703. fi
  1704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1706. fi
  1707. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1708. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1709. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1710. ac_test_CFLAGS=${CFLAGS+set}
  1711. ac_save_CFLAGS=$CFLAGS
  1712. CFLAGS="-g"
  1713. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1714. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_cc_g+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. cat >conftest.$ac_ext <<_ACEOF
  1719. /* confdefs.h. */
  1720. _ACEOF
  1721. cat confdefs.h >>conftest.$ac_ext
  1722. cat >>conftest.$ac_ext <<_ACEOF
  1723. /* end confdefs.h. */
  1724. int
  1725. main ()
  1726. {
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. rm -f conftest.$ac_objext
  1732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1733. (eval $ac_compile) 2>conftest.er1
  1734. ac_status=$?
  1735. grep -v '^ *+' conftest.er1 >conftest.err
  1736. rm -f conftest.er1
  1737. cat conftest.err >&5
  1738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1739. (exit $ac_status); } &&
  1740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; } &&
  1859. { ac_try='test -s conftest.$ac_objext'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. ac_cv_prog_cc_stdc=$ac_arg
  1866. break
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. fi
  1871. rm -f conftest.err conftest.$ac_objext
  1872. done
  1873. rm -f conftest.$ac_ext conftest.$ac_objext
  1874. CC=$ac_save_CC
  1875. fi
  1876. case "x$ac_cv_prog_cc_stdc" in
  1877. x|xno)
  1878. echo "$as_me:$LINENO: result: none needed" >&5
  1879. echo "${ECHO_T}none needed" >&6 ;;
  1880. *)
  1881. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1882. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1883. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1884. esac
  1885. # Some people use a C++ compiler to compile C. Since we use `exit',
  1886. # in C++ we need to declare it. In case someone uses the same compiler
  1887. # for both compiling C and C++ we need to have the C++ compiler decide
  1888. # the declaration of exit, since it's the most demanding environment.
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. #ifndef __cplusplus
  1891. choke me
  1892. #endif
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>conftest.er1
  1897. ac_status=$?
  1898. grep -v '^ *+' conftest.er1 >conftest.err
  1899. rm -f conftest.er1
  1900. cat conftest.err >&5
  1901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1902. (exit $ac_status); } &&
  1903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1905. (eval $ac_try) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; } &&
  1909. { ac_try='test -s conftest.$ac_objext'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. for ac_declaration in \
  1916. '' \
  1917. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1918. 'extern "C" void std::exit (int); using std::exit;' \
  1919. 'extern "C" void exit (int) throw ();' \
  1920. 'extern "C" void exit (int);' \
  1921. 'void exit (int);'
  1922. do
  1923. cat >conftest.$ac_ext <<_ACEOF
  1924. /* confdefs.h. */
  1925. _ACEOF
  1926. cat confdefs.h >>conftest.$ac_ext
  1927. cat >>conftest.$ac_ext <<_ACEOF
  1928. /* end confdefs.h. */
  1929. $ac_declaration
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>conftest.er1
  1942. ac_status=$?
  1943. grep -v '^ *+' conftest.er1 >conftest.err
  1944. rm -f conftest.er1
  1945. cat conftest.err >&5
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); } &&
  1948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1950. (eval $ac_try) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; } &&
  1954. { ac_try='test -s conftest.$ac_objext'
  1955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1956. (eval $ac_try) 2>&5
  1957. ac_status=$?
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); }; }; then
  1960. :
  1961. else
  1962. echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. continue
  1965. fi
  1966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. $ac_declaration
  1974. int
  1975. main ()
  1976. {
  1977. exit (42);
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. rm -f conftest.$ac_objext
  1983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1984. (eval $ac_compile) 2>conftest.er1
  1985. ac_status=$?
  1986. grep -v '^ *+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); } &&
  1991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; } &&
  1997. { ac_try='test -s conftest.$ac_objext'
  1998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1999. (eval $ac_try) 2>&5
  2000. ac_status=$?
  2001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2002. (exit $ac_status); }; }; then
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. rm -f conftest*
  2011. if test -n "$ac_declaration"; then
  2012. echo '#ifdef __cplusplus' >>confdefs.h
  2013. echo $ac_declaration >>confdefs.h
  2014. echo '#endif' >>confdefs.h
  2015. fi
  2016. else
  2017. echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. fi
  2020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2026. if test "${cross_compiling-x}" = "x"
  2027. then
  2028. cat << 'EOF' >&2
  2029. configure: error:
  2030. This system does not appear to have a working C compiler.
  2031. A working C compiler is required to compile Eggdrop.
  2032. EOF
  2033. exit 1
  2034. fi
  2035. # Crazy machines
  2036. ac_ext=c
  2037. ac_cpp='$CPP $CPPFLAGS'
  2038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2041. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2043. # On Suns, sometimes $CPP names a directory.
  2044. if test -n "$CPP" && test -d "$CPP"; then
  2045. CPP=
  2046. fi
  2047. if test -z "$CPP"; then
  2048. if test "${ac_cv_prog_CPP+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. # Double quotes because CPP needs to be expanded
  2052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2053. do
  2054. ac_preproc_ok=false
  2055. for ac_c_preproc_warn_flag in '' yes
  2056. do
  2057. # Use a header file that comes with gcc, so configuring glibc
  2058. # with a fresh cross-compiler works.
  2059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2060. # <limits.h> exists even on freestanding compilers.
  2061. # On the NeXT, cc -E runs the code through the compiler's parser,
  2062. # not just through cpp. "Syntax error" is here to catch this case.
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. #ifdef __STDC__
  2070. # include <limits.h>
  2071. #else
  2072. # include <assert.h>
  2073. #endif
  2074. Syntax error
  2075. _ACEOF
  2076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2078. ac_status=$?
  2079. grep -v '^ *+' conftest.er1 >conftest.err
  2080. rm -f conftest.er1
  2081. cat conftest.err >&5
  2082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2083. (exit $ac_status); } >/dev/null; then
  2084. if test -s conftest.err; then
  2085. ac_cpp_err=$ac_c_preproc_warn_flag
  2086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2087. else
  2088. ac_cpp_err=
  2089. fi
  2090. else
  2091. ac_cpp_err=yes
  2092. fi
  2093. if test -z "$ac_cpp_err"; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. # Broken: fails on valid input.
  2099. continue
  2100. fi
  2101. rm -f conftest.err conftest.$ac_ext
  2102. # OK, works on sane cases. Now check whether non-existent headers
  2103. # can be detected and how.
  2104. cat >conftest.$ac_ext <<_ACEOF
  2105. /* confdefs.h. */
  2106. _ACEOF
  2107. cat confdefs.h >>conftest.$ac_ext
  2108. cat >>conftest.$ac_ext <<_ACEOF
  2109. /* end confdefs.h. */
  2110. #include <ac_nonexistent.h>
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. # Broken: success on invalid input.
  2131. continue
  2132. else
  2133. echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. # Passes both tests.
  2136. ac_preproc_ok=:
  2137. break
  2138. fi
  2139. rm -f conftest.err conftest.$ac_ext
  2140. done
  2141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2142. rm -f conftest.err conftest.$ac_ext
  2143. if $ac_preproc_ok; then
  2144. break
  2145. fi
  2146. done
  2147. ac_cv_prog_CPP=$CPP
  2148. fi
  2149. CPP=$ac_cv_prog_CPP
  2150. else
  2151. ac_cv_prog_CPP=$CPP
  2152. fi
  2153. echo "$as_me:$LINENO: result: $CPP" >&5
  2154. echo "${ECHO_T}$CPP" >&6
  2155. ac_preproc_ok=false
  2156. for ac_c_preproc_warn_flag in '' yes
  2157. do
  2158. # Use a header file that comes with gcc, so configuring glibc
  2159. # with a fresh cross-compiler works.
  2160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. # <limits.h> exists even on freestanding compilers.
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp. "Syntax error" is here to catch this case.
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. #ifdef __STDC__
  2171. # include <limits.h>
  2172. #else
  2173. # include <assert.h>
  2174. #endif
  2175. Syntax error
  2176. _ACEOF
  2177. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2178. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2179. ac_status=$?
  2180. grep -v '^ *+' conftest.er1 >conftest.err
  2181. rm -f conftest.er1
  2182. cat conftest.err >&5
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); } >/dev/null; then
  2185. if test -s conftest.err; then
  2186. ac_cpp_err=$ac_c_preproc_warn_flag
  2187. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2188. else
  2189. ac_cpp_err=
  2190. fi
  2191. else
  2192. ac_cpp_err=yes
  2193. fi
  2194. if test -z "$ac_cpp_err"; then
  2195. :
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. # Broken: fails on valid input.
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_ext
  2203. # OK, works on sane cases. Now check whether non-existent headers
  2204. # can be detected and how.
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <ac_nonexistent.h>
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. # Broken: success on invalid input.
  2232. continue
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. # Passes both tests.
  2237. ac_preproc_ok=:
  2238. break
  2239. fi
  2240. rm -f conftest.err conftest.$ac_ext
  2241. done
  2242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2243. rm -f conftest.err conftest.$ac_ext
  2244. if $ac_preproc_ok; then
  2245. :
  2246. else
  2247. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2248. See \`config.log' for more details." >&5
  2249. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2250. See \`config.log' for more details." >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. echo "$as_me:$LINENO: checking for egrep" >&5
  2259. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_egrep+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2264. then ac_cv_prog_egrep='grep -E'
  2265. else ac_cv_prog_egrep='egrep'
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2270. EGREP=$ac_cv_prog_egrep
  2271. echo "$as_me:$LINENO: checking for AIX" >&5
  2272. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. #ifdef _AIX
  2280. yes
  2281. #endif
  2282. _ACEOF
  2283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2284. $EGREP "yes" >/dev/null 2>&1; then
  2285. echo "$as_me:$LINENO: result: yes" >&5
  2286. echo "${ECHO_T}yes" >&6
  2287. cat >>confdefs.h <<\_ACEOF
  2288. #define _ALL_SOURCE 1
  2289. _ACEOF
  2290. else
  2291. echo "$as_me:$LINENO: result: no" >&5
  2292. echo "${ECHO_T}no" >&6
  2293. fi
  2294. rm -f conftest*
  2295. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2296. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2297. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_check_lib_save_LIBS=$LIBS
  2301. LIBS="-lcposix $LIBS"
  2302. cat >conftest.$ac_ext <<_ACEOF
  2303. /* confdefs.h. */
  2304. _ACEOF
  2305. cat confdefs.h >>conftest.$ac_ext
  2306. cat >>conftest.$ac_ext <<_ACEOF
  2307. /* end confdefs.h. */
  2308. /* Override any gcc2 internal prototype to avoid an error. */
  2309. #ifdef __cplusplus
  2310. extern "C"
  2311. #endif
  2312. /* We use char because int might match the return type of a gcc2
  2313. builtin and then its argument prototype would still apply. */
  2314. char strerror ();
  2315. int
  2316. main ()
  2317. {
  2318. strerror ();
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext conftest$ac_exeext
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2325. (eval $ac_link) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } &&
  2332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2334. (eval $ac_try) 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; } &&
  2338. { ac_try='test -s conftest$ac_exeext'
  2339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2340. (eval $ac_try) 2>&5
  2341. ac_status=$?
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); }; }; then
  2344. ac_cv_lib_cposix_strerror=yes
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. ac_cv_lib_cposix_strerror=no
  2349. fi
  2350. rm -f conftest.err conftest.$ac_objext \
  2351. conftest$ac_exeext conftest.$ac_ext
  2352. LIBS=$ac_check_lib_save_LIBS
  2353. fi
  2354. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2355. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2356. if test $ac_cv_lib_cposix_strerror = yes; then
  2357. LIBS="$LIBS -lcposix"
  2358. fi
  2359. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2360. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2361. if test "${ac_cv_header_stdc+set}" = set; then
  2362. echo $ECHO_N "(cached) $ECHO_C" >&6
  2363. else
  2364. cat >conftest.$ac_ext <<_ACEOF
  2365. /* confdefs.h. */
  2366. _ACEOF
  2367. cat confdefs.h >>conftest.$ac_ext
  2368. cat >>conftest.$ac_ext <<_ACEOF
  2369. /* end confdefs.h. */
  2370. #include <stdlib.h>
  2371. #include <stdarg.h>
  2372. #include <string.h>
  2373. #include <float.h>
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. rm -f conftest.$ac_objext
  2382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2383. (eval $ac_compile) 2>conftest.er1
  2384. ac_status=$?
  2385. grep -v '^ *+' conftest.er1 >conftest.err
  2386. rm -f conftest.er1
  2387. cat conftest.err >&5
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); } &&
  2390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2392. (eval $ac_try) 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }; } &&
  2396. { ac_try='test -s conftest.$ac_objext'
  2397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2398. (eval $ac_try) 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }; }; then
  2402. ac_cv_header_stdc=yes
  2403. else
  2404. echo "$as_me: failed program was:" >&5
  2405. sed 's/^/| /' conftest.$ac_ext >&5
  2406. ac_cv_header_stdc=no
  2407. fi
  2408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2409. if test $ac_cv_header_stdc = yes; then
  2410. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2411. cat >conftest.$ac_ext <<_ACEOF
  2412. /* confdefs.h. */
  2413. _ACEOF
  2414. cat confdefs.h >>conftest.$ac_ext
  2415. cat >>conftest.$ac_ext <<_ACEOF
  2416. /* end confdefs.h. */
  2417. #include <string.h>
  2418. _ACEOF
  2419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2420. $EGREP "memchr" >/dev/null 2>&1; then
  2421. :
  2422. else
  2423. ac_cv_header_stdc=no
  2424. fi
  2425. rm -f conftest*
  2426. fi
  2427. if test $ac_cv_header_stdc = yes; then
  2428. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2429. cat >conftest.$ac_ext <<_ACEOF
  2430. /* confdefs.h. */
  2431. _ACEOF
  2432. cat confdefs.h >>conftest.$ac_ext
  2433. cat >>conftest.$ac_ext <<_ACEOF
  2434. /* end confdefs.h. */
  2435. #include <stdlib.h>
  2436. _ACEOF
  2437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2438. $EGREP "free" >/dev/null 2>&1; then
  2439. :
  2440. else
  2441. ac_cv_header_stdc=no
  2442. fi
  2443. rm -f conftest*
  2444. fi
  2445. if test $ac_cv_header_stdc = yes; then
  2446. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2447. if test "$cross_compiling" = yes; then
  2448. :
  2449. else
  2450. cat >conftest.$ac_ext <<_ACEOF
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. #include <ctype.h>
  2457. #if ((' ' & 0x0FF) == 0x020)
  2458. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2459. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2460. #else
  2461. # define ISLOWER(c) \
  2462. (('a' <= (c) && (c) <= 'i') \
  2463. || ('j' <= (c) && (c) <= 'r') \
  2464. || ('s' <= (c) && (c) <= 'z'))
  2465. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2466. #endif
  2467. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2468. int
  2469. main ()
  2470. {
  2471. int i;
  2472. for (i = 0; i < 256; i++)
  2473. if (XOR (islower (i), ISLOWER (i))
  2474. || toupper (i) != TOUPPER (i))
  2475. exit(2);
  2476. exit (0);
  2477. }
  2478. _ACEOF
  2479. rm -f conftest$ac_exeext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2481. (eval $ac_link) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2486. (eval $ac_try) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); }; }; then
  2490. :
  2491. else
  2492. echo "$as_me: program exited with status $ac_status" >&5
  2493. echo "$as_me: failed program was:" >&5
  2494. sed 's/^/| /' conftest.$ac_ext >&5
  2495. ( exit $ac_status )
  2496. ac_cv_header_stdc=no
  2497. fi
  2498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2499. fi
  2500. fi
  2501. fi
  2502. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2503. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2504. if test $ac_cv_header_stdc = yes; then
  2505. cat >>confdefs.h <<\_ACEOF
  2506. #define STDC_HEADERS 1
  2507. _ACEOF
  2508. fi
  2509. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2510. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2511. inttypes.h stdint.h unistd.h
  2512. do
  2513. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2514. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2515. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2516. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2517. echo $ECHO_N "(cached) $ECHO_C" >&6
  2518. else
  2519. cat >conftest.$ac_ext <<_ACEOF
  2520. /* confdefs.h. */
  2521. _ACEOF
  2522. cat confdefs.h >>conftest.$ac_ext
  2523. cat >>conftest.$ac_ext <<_ACEOF
  2524. /* end confdefs.h. */
  2525. $ac_includes_default
  2526. #include <$ac_header>
  2527. _ACEOF
  2528. rm -f conftest.$ac_objext
  2529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2530. (eval $ac_compile) 2>conftest.er1
  2531. ac_status=$?
  2532. grep -v '^ *+' conftest.er1 >conftest.err
  2533. rm -f conftest.er1
  2534. cat conftest.err >&5
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } &&
  2537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; } &&
  2543. { ac_try='test -s conftest.$ac_objext'
  2544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2545. (eval $ac_try) 2>&5
  2546. ac_status=$?
  2547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. (exit $ac_status); }; }; then
  2549. eval "$as_ac_Header=yes"
  2550. else
  2551. echo "$as_me: failed program was:" >&5
  2552. sed 's/^/| /' conftest.$ac_ext >&5
  2553. eval "$as_ac_Header=no"
  2554. fi
  2555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2556. fi
  2557. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2558. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2559. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2562. _ACEOF
  2563. fi
  2564. done
  2565. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2566. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2567. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2568. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2569. echo $ECHO_N "(cached) $ECHO_C" >&6
  2570. fi
  2571. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2572. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2573. else
  2574. # Is the header compilable?
  2575. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2576. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. $ac_includes_default
  2584. #include <minix/config.h>
  2585. _ACEOF
  2586. rm -f conftest.$ac_objext
  2587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2588. (eval $ac_compile) 2>conftest.er1
  2589. ac_status=$?
  2590. grep -v '^ *+' conftest.er1 >conftest.err
  2591. rm -f conftest.er1
  2592. cat conftest.err >&5
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); } &&
  2595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2597. (eval $ac_try) 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; } &&
  2601. { ac_try='test -s conftest.$ac_objext'
  2602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2603. (eval $ac_try) 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; }; then
  2607. ac_header_compiler=yes
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. ac_header_compiler=no
  2612. fi
  2613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2614. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2615. echo "${ECHO_T}$ac_header_compiler" >&6
  2616. # Is the header present?
  2617. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2618. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2619. cat >conftest.$ac_ext <<_ACEOF
  2620. /* confdefs.h. */
  2621. _ACEOF
  2622. cat confdefs.h >>conftest.$ac_ext
  2623. cat >>conftest.$ac_ext <<_ACEOF
  2624. /* end confdefs.h. */
  2625. #include <minix/config.h>
  2626. _ACEOF
  2627. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2628. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2629. ac_status=$?
  2630. grep -v '^ *+' conftest.er1 >conftest.err
  2631. rm -f conftest.er1
  2632. cat conftest.err >&5
  2633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2634. (exit $ac_status); } >/dev/null; then
  2635. if test -s conftest.err; then
  2636. ac_cpp_err=$ac_c_preproc_warn_flag
  2637. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2638. else
  2639. ac_cpp_err=
  2640. fi
  2641. else
  2642. ac_cpp_err=yes
  2643. fi
  2644. if test -z "$ac_cpp_err"; then
  2645. ac_header_preproc=yes
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. ac_header_preproc=no
  2650. fi
  2651. rm -f conftest.err conftest.$ac_ext
  2652. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2653. echo "${ECHO_T}$ac_header_preproc" >&6
  2654. # So? What about this header?
  2655. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2656. yes:no: )
  2657. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2658. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2660. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2661. ac_header_preproc=yes
  2662. ;;
  2663. no:yes:* )
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2665. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2666. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2667. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2668. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2669. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2670. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2671. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2673. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2675. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2676. (
  2677. cat <<\_ASBOX
  2678. ## ------------------------------------------ ##
  2679. ## Report this to the AC_PACKAGE_NAME lists. ##
  2680. ## ------------------------------------------ ##
  2681. _ASBOX
  2682. ) |
  2683. sed "s/^/$as_me: WARNING: /" >&2
  2684. ;;
  2685. esac
  2686. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2687. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2688. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2689. echo $ECHO_N "(cached) $ECHO_C" >&6
  2690. else
  2691. ac_cv_header_minix_config_h=$ac_header_preproc
  2692. fi
  2693. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2694. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2695. fi
  2696. if test $ac_cv_header_minix_config_h = yes; then
  2697. MINIX=yes
  2698. else
  2699. MINIX=
  2700. fi
  2701. if test "$MINIX" = yes; then
  2702. cat >>confdefs.h <<\_ACEOF
  2703. #define _POSIX_SOURCE 1
  2704. _ACEOF
  2705. cat >>confdefs.h <<\_ACEOF
  2706. #define _POSIX_1_SOURCE 2
  2707. _ACEOF
  2708. cat >>confdefs.h <<\_ACEOF
  2709. #define _MINIX 1
  2710. _ACEOF
  2711. fi
  2712. #checkpoint
  2713. cat >confcache <<\_ACEOF
  2714. # This file is a shell script that caches the results of configure
  2715. # tests run on this system so they can be shared between configure
  2716. # scripts and configure runs, see configure's option --config-cache.
  2717. # It is not useful on other systems. If it contains results you don't
  2718. # want to keep, you may remove or edit it.
  2719. #
  2720. # config.status only pays attention to the cache file if you give it
  2721. # the --recheck option to rerun configure.
  2722. #
  2723. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2724. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2725. # following values.
  2726. _ACEOF
  2727. # The following way of writing the cache mishandles newlines in values,
  2728. # but we know of no workaround that is simple, portable, and efficient.
  2729. # So, don't put newlines in cache variables' values.
  2730. # Ultrix sh set writes to stderr and can't be redirected directly,
  2731. # and sets the high bit in the cache file unless we assign to the vars.
  2732. {
  2733. (set) 2>&1 |
  2734. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2735. *ac_space=\ *)
  2736. # `set' does not quote correctly, so add quotes (double-quote
  2737. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2738. sed -n \
  2739. "s/'/'\\\\''/g;
  2740. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2741. ;;
  2742. *)
  2743. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2744. sed -n \
  2745. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2746. ;;
  2747. esac;
  2748. } |
  2749. sed '
  2750. t clear
  2751. : clear
  2752. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2753. t end
  2754. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2755. : end' >>confcache
  2756. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2757. if test -w $cache_file; then
  2758. test "x$cache_file" != "x/dev/null"
  2759. cat confcache >$cache_file
  2760. else
  2761. echo "not updating unwritable cache $cache_file"
  2762. fi
  2763. fi
  2764. rm -f confcache
  2765. # Speedup compile
  2766. if test -z "$no_pipe"
  2767. then
  2768. if test -n "$GCC"
  2769. then
  2770. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2771. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2772. if test "${egg_cv_var_ccpipe+set}" = set; then
  2773. echo $ECHO_N "(cached) $ECHO_C" >&6
  2774. else
  2775. ac_old_CC="$CC"
  2776. CC="$CC -pipe"
  2777. cat >conftest.$ac_ext <<_ACEOF
  2778. /* confdefs.h. */
  2779. _ACEOF
  2780. cat confdefs.h >>conftest.$ac_ext
  2781. cat >>conftest.$ac_ext <<_ACEOF
  2782. /* end confdefs.h. */
  2783. int
  2784. main ()
  2785. {
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2792. (eval $ac_compile) 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } &&
  2799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801. (eval $ac_try) 2>&5
  2802. ac_status=$?
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }; } &&
  2805. { ac_try='test -s conftest.$ac_objext'
  2806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2807. (eval $ac_try) 2>&5
  2808. ac_status=$?
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); }; }; then
  2811. egg_cv_var_ccpipe="yes"
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. egg_cv_var_ccpipe="no"
  2816. fi
  2817. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2818. CC="$ac_old_CC"
  2819. fi
  2820. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2821. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2822. if test "$egg_cv_var_ccpipe" = "yes"
  2823. then
  2824. CC="$CC -pipe"
  2825. fi
  2826. fi
  2827. fi
  2828. CCDEPMODE=gcc
  2829. num=`gcc -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2830. if test $num = "3"; then
  2831. CCDEPMODE=gcc3
  2832. fi
  2833. # Create static binaries
  2834. if test -z "$no_static"
  2835. then
  2836. if test -n "$GCC"
  2837. then
  2838. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2839. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2840. if test "${egg_cv_var_ccstatic+set}" = set; then
  2841. echo $ECHO_N "(cached) $ECHO_C" >&6
  2842. else
  2843. ac_old_CC="$CC"
  2844. CC="$CC -static"
  2845. cat >conftest.$ac_ext <<_ACEOF
  2846. /* confdefs.h. */
  2847. _ACEOF
  2848. cat confdefs.h >>conftest.$ac_ext
  2849. cat >>conftest.$ac_ext <<_ACEOF
  2850. /* end confdefs.h. */
  2851. int
  2852. main ()
  2853. {
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. rm -f conftest.$ac_objext
  2859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2860. (eval $ac_compile) 2>conftest.er1
  2861. ac_status=$?
  2862. grep -v '^ *+' conftest.er1 >conftest.err
  2863. rm -f conftest.er1
  2864. cat conftest.err >&5
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); } &&
  2867. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2869. (eval $ac_try) 2>&5
  2870. ac_status=$?
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); }; } &&
  2873. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  2879. egg_cv_var_ccstatic="yes"
  2880. else
  2881. echo "$as_me: failed program was:" >&5
  2882. sed 's/^/| /' conftest.$ac_ext >&5
  2883. egg_cv_var_ccstatic="no"
  2884. fi
  2885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2886. CC="$ac_old_CC"
  2887. fi
  2888. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2889. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2890. if test "$egg_cv_var_ccstatic" = "yes"
  2891. then
  2892. CCDEBUG="$CC"
  2893. CC="$CC -static"
  2894. else
  2895. cat << 'EOF' >&2
  2896. configure: error:
  2897. Your C compiler does not support -static.
  2898. This compile flag is required for the botpack.
  2899. EOF
  2900. exit 1
  2901. fi
  2902. fi
  2903. fi
  2904. # Checks for programs
  2905. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2906. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2907. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2908. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2909. echo $ECHO_N "(cached) $ECHO_C" >&6
  2910. else
  2911. cat >conftest.make <<\_ACEOF
  2912. all:
  2913. @echo 'ac_maketemp="$(MAKE)"'
  2914. _ACEOF
  2915. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2916. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2917. if test -n "$ac_maketemp"; then
  2918. eval ac_cv_prog_make_${ac_make}_set=yes
  2919. else
  2920. eval ac_cv_prog_make_${ac_make}_set=no
  2921. fi
  2922. rm -f conftest.make
  2923. fi
  2924. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2925. echo "$as_me:$LINENO: result: yes" >&5
  2926. echo "${ECHO_T}yes" >&6
  2927. SET_MAKE=
  2928. else
  2929. echo "$as_me:$LINENO: result: no" >&5
  2930. echo "${ECHO_T}no" >&6
  2931. SET_MAKE="MAKE=${MAKE-make}"
  2932. fi
  2933. cat << 'EOF' > conftest.head
  2934. a
  2935. b
  2936. c
  2937. EOF
  2938. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2939. do
  2940. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2941. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2942. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2943. echo $ECHO_N "(cached) $ECHO_C" >&6
  2944. else
  2945. if test -n "$HEAD_1"
  2946. then
  2947. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2948. else
  2949. if test "`cat conftest.head | $ac_prog`" = "a";
  2950. then
  2951. echo "$as_me:$LINENO: result: yes" >&5
  2952. echo "${ECHO_T}yes" >&6
  2953. ac_cv_prog_HEAD_1=$ac_prog
  2954. else
  2955. echo "$as_me:$LINENO: result: no" >&5
  2956. echo "${ECHO_T}no" >&6
  2957. fi
  2958. fi
  2959. fi
  2960. test -n "$ac_cv_prog_HEAD_1" && break
  2961. done
  2962. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2963. then
  2964. cat << 'EOF' >&2
  2965. configure: error:
  2966. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2967. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2968. EOF
  2969. exit 1
  2970. fi
  2971. rm -f conftest.head
  2972. HEAD_1=$ac_cv_prog_HEAD_1
  2973. # Extract the first word of "strip", so it can be a program name with args.
  2974. set dummy strip; ac_word=$2
  2975. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2976. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2977. if test "${ac_cv_prog_STRIP+set}" = set; then
  2978. echo $ECHO_N "(cached) $ECHO_C" >&6
  2979. else
  2980. if test -n "$STRIP"; then
  2981. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_exec_ext in '' $ac_executable_extensions; do
  2989. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2990. ac_cv_prog_STRIP="strip"
  2991. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2992. break 2
  2993. fi
  2994. done
  2995. done
  2996. fi
  2997. fi
  2998. STRIP=$ac_cv_prog_STRIP
  2999. if test -n "$STRIP"; then
  3000. echo "$as_me:$LINENO: result: $STRIP" >&5
  3001. echo "${ECHO_T}$STRIP" >&6
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. if test "${STRIP-x}" = "x"
  3007. then
  3008. STRIP=touch
  3009. fi
  3010. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3011. for ac_prog in gawk mawk nawk awk
  3012. do
  3013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3014. set dummy $ac_prog; ac_word=$2
  3015. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3017. if test "${ac_cv_prog_AWK+set}" = set; then
  3018. echo $ECHO_N "(cached) $ECHO_C" >&6
  3019. else
  3020. if test -n "$AWK"; then
  3021. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3022. else
  3023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3024. for as_dir in $PATH
  3025. do
  3026. IFS=$as_save_IFS
  3027. test -z "$as_dir" && as_dir=.
  3028. for ac_exec_ext in '' $ac_executable_extensions; do
  3029. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3030. ac_cv_prog_AWK="$ac_prog"
  3031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3032. break 2
  3033. fi
  3034. done
  3035. done
  3036. fi
  3037. fi
  3038. AWK=$ac_cv_prog_AWK
  3039. if test -n "$AWK"; then
  3040. echo "$as_me:$LINENO: result: $AWK" >&5
  3041. echo "${ECHO_T}$AWK" >&6
  3042. else
  3043. echo "$as_me:$LINENO: result: no" >&5
  3044. echo "${ECHO_T}no" >&6
  3045. fi
  3046. test -n "$AWK" && break
  3047. done
  3048. if test "${AWK-x}" = "x"
  3049. then
  3050. cat << 'EOF' >&2
  3051. configure: error:
  3052. This system seems to lack a working 'awk' command.
  3053. A working 'awk' command is required to compile Eggdrop.
  3054. EOF
  3055. exit 1
  3056. fi
  3057. # basename is needed for Tcl library and header checks
  3058. # Extract the first word of "basename", so it can be a program name with args.
  3059. set dummy basename; ac_word=$2
  3060. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3061. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3062. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -n "$BASENAME"; then
  3066. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3067. else
  3068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3069. for as_dir in $PATH
  3070. do
  3071. IFS=$as_save_IFS
  3072. test -z "$as_dir" && as_dir=.
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3075. ac_cv_prog_BASENAME="basename"
  3076. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3077. break 2
  3078. fi
  3079. done
  3080. done
  3081. fi
  3082. fi
  3083. BASENAME=$ac_cv_prog_BASENAME
  3084. if test -n "$BASENAME"; then
  3085. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3086. echo "${ECHO_T}$BASENAME" >&6
  3087. else
  3088. echo "$as_me:$LINENO: result: no" >&5
  3089. echo "${ECHO_T}no" >&6
  3090. fi
  3091. if test "${BASENAME-x}" = "x"
  3092. then
  3093. cat << 'EOF' >&2
  3094. configure: error:
  3095. This system seems to lack a working 'basename' command.
  3096. A working 'basename' command is required to compile Eggdrop.
  3097. EOF
  3098. exit 1
  3099. fi
  3100. # Extract the first word of "ccache", so it can be a program name with args.
  3101. set dummy ccache; ac_word=$2
  3102. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3104. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3105. echo $ECHO_N "(cached) $ECHO_C" >&6
  3106. else
  3107. if test -n "$CCACHE"; then
  3108. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3109. else
  3110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3111. for as_dir in $PATH
  3112. do
  3113. IFS=$as_save_IFS
  3114. test -z "$as_dir" && as_dir=.
  3115. for ac_exec_ext in '' $ac_executable_extensions; do
  3116. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3117. ac_cv_prog_CCACHE="ccache"
  3118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3119. break 2
  3120. fi
  3121. done
  3122. done
  3123. fi
  3124. fi
  3125. CCACHE=$ac_cv_prog_CCACHE
  3126. if test -n "$CCACHE"; then
  3127. echo "$as_me:$LINENO: result: $CCACHE" >&5
  3128. echo "${ECHO_T}$CCACHE" >&6
  3129. else
  3130. echo "$as_me:$LINENO: result: no" >&5
  3131. echo "${ECHO_T}no" >&6
  3132. fi
  3133. if test "${CCACHE-x}" = "x"
  3134. then
  3135. CCACHE=ccache
  3136. fi
  3137. # Extract the first word of "distcc", so it can be a program name with args.
  3138. set dummy distcc; 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_DISTCC+set}" = set; then
  3142. echo $ECHO_N "(cached) $ECHO_C" >&6
  3143. else
  3144. if test -n "$DISTCC"; then
  3145. ac_cv_prog_DISTCC="$DISTCC" # 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_DISTCC="distcc"
  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. DISTCC=$ac_cv_prog_DISTCC
  3163. if test -n "$DISTCC"; then
  3164. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3165. echo "${ECHO_T}$DISTCC" >&6
  3166. else
  3167. echo "$as_me:$LINENO: result: no" >&5
  3168. echo "${ECHO_T}no" >&6
  3169. fi
  3170. if test "${DISTCC-x}" = "x"
  3171. then
  3172. DISTCC=distcc
  3173. fi
  3174. # Extract the first word of "uname", so it can be a program name with args.
  3175. set dummy uname; ac_word=$2
  3176. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3178. if test "${ac_cv_prog_UNAME+set}" = set; then
  3179. echo $ECHO_N "(cached) $ECHO_C" >&6
  3180. else
  3181. if test -n "$UNAME"; then
  3182. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3183. else
  3184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3185. for as_dir in $PATH
  3186. do
  3187. IFS=$as_save_IFS
  3188. test -z "$as_dir" && as_dir=.
  3189. for ac_exec_ext in '' $ac_executable_extensions; do
  3190. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3191. ac_cv_prog_UNAME="uname"
  3192. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3193. break 2
  3194. fi
  3195. done
  3196. done
  3197. fi
  3198. fi
  3199. UNAME=$ac_cv_prog_UNAME
  3200. if test -n "$UNAME"; then
  3201. echo "$as_me:$LINENO: result: $UNAME" >&5
  3202. echo "${ECHO_T}$UNAME" >&6
  3203. else
  3204. echo "$as_me:$LINENO: result: no" >&5
  3205. echo "${ECHO_T}no" >&6
  3206. fi
  3207. # Test the os and set the module linking settings
  3208. LINUX=no
  3209. IRIX=no
  3210. SUNOS=no
  3211. HPUX=no
  3212. EGG_CYGWIN=no
  3213. echo "$as_me:$LINENO: checking system type" >&5
  3214. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3215. if test "${egg_cv_var_system_type+set}" = set; then
  3216. echo $ECHO_N "(cached) $ECHO_C" >&6
  3217. else
  3218. egg_cv_var_system_type=`$UNAME -s`
  3219. fi
  3220. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3221. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3222. echo "$as_me:$LINENO: checking system release" >&5
  3223. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3224. if test "${egg_cv_var_system_release+set}" = set; then
  3225. echo $ECHO_N "(cached) $ECHO_C" >&6
  3226. else
  3227. egg_cv_var_system_release=`$UNAME -r`
  3228. fi
  3229. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3230. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3231. case "$egg_cv_var_system_type" in
  3232. BSD/OS)
  3233. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3234. 2)
  3235. ;;
  3236. *)
  3237. CFLAGS="$CFLAGS -Wall"
  3238. ;;
  3239. esac
  3240. ;;
  3241. CYGWI*)
  3242. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3243. 1.*)
  3244. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3245. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3246. WIN32FLAGS=
  3247. cat >conftest.$ac_ext <<_ACEOF
  3248. /* confdefs.h. */
  3249. _ACEOF
  3250. cat confdefs.h >>conftest.$ac_ext
  3251. cat >>conftest.$ac_ext <<_ACEOF
  3252. /* end confdefs.h. */
  3253. int
  3254. main ()
  3255. {
  3256. #ifndef WIN32
  3257. # ifndef _WIN32
  3258. # error WIN32 or _WIN32 not defined
  3259. # endif
  3260. #endif
  3261. ;
  3262. return 0;
  3263. }
  3264. _ACEOF
  3265. rm -f conftest.$ac_objext
  3266. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3267. (eval $ac_compile) 2>conftest.er1
  3268. ac_status=$?
  3269. grep -v '^ *+' conftest.er1 >conftest.err
  3270. rm -f conftest.er1
  3271. cat conftest.err >&5
  3272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3273. (exit $ac_status); } &&
  3274. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3276. (eval $ac_try) 2>&5
  3277. ac_status=$?
  3278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279. (exit $ac_status); }; } &&
  3280. { ac_try='test -s conftest.$ac_objext'
  3281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3282. (eval $ac_try) 2>&5
  3283. ac_status=$?
  3284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3285. (exit $ac_status); }; }; then
  3286. echo "$as_me:$LINENO: result: present by default" >&5
  3287. echo "${ECHO_T}present by default" >&6
  3288. else
  3289. echo "$as_me: failed program was:" >&5
  3290. sed 's/^/| /' conftest.$ac_ext >&5
  3291. ac_compile_save="$ac_compile"
  3292. save_CC="$CC"
  3293. ac_compile="$ac_compile -mwin32"
  3294. CC="$CC -mwin32"
  3295. cat >conftest.$ac_ext <<_ACEOF
  3296. /* confdefs.h. */
  3297. _ACEOF
  3298. cat confdefs.h >>conftest.$ac_ext
  3299. cat >>conftest.$ac_ext <<_ACEOF
  3300. /* end confdefs.h. */
  3301. int
  3302. main ()
  3303. {
  3304. #ifndef WIN32
  3305. # ifndef _WIN32
  3306. # error WIN32 or _WIN32 not defined
  3307. # endif
  3308. #endif
  3309. ;
  3310. return 0;
  3311. }
  3312. _ACEOF
  3313. rm -f conftest.$ac_objext
  3314. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3315. (eval $ac_compile) 2>conftest.er1
  3316. ac_status=$?
  3317. grep -v '^ *+' conftest.er1 >conftest.err
  3318. rm -f conftest.er1
  3319. cat conftest.err >&5
  3320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3321. (exit $ac_status); } &&
  3322. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3324. (eval $ac_try) 2>&5
  3325. ac_status=$?
  3326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); }; } &&
  3328. { ac_try='test -s conftest.$ac_objext'
  3329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3330. (eval $ac_try) 2>&5
  3331. ac_status=$?
  3332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3333. (exit $ac_status); }; }; then
  3334. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3335. echo "${ECHO_T}found via -mwin32" >&6
  3336. ac_compile="$ac_compile_save"
  3337. CC="$save_CC"
  3338. WIN32FLAGS="-mwin32"
  3339. else
  3340. echo "$as_me: failed program was:" >&5
  3341. sed 's/^/| /' conftest.$ac_ext >&5
  3342. ac_compile="$ac_compile_save"
  3343. CC="$save_CC"
  3344. echo "$as_me:$LINENO: result: not found" >&5
  3345. echo "${ECHO_T}not found" >&6
  3346. fi
  3347. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3348. fi
  3349. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3350. CC="$CC $WIN32FLAGS"
  3351. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3352. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3353. if test -r /usr/lib/binmode.o
  3354. then
  3355. echo "$as_me:$LINENO: result: yes" >&5
  3356. echo "${ECHO_T}yes" >&6
  3357. LIBS="$LIBS /usr/lib/binmode.o"
  3358. else
  3359. echo "$as_me:$LINENO: result: no" >&5
  3360. echo "${ECHO_T}no" >&6
  3361. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3362. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3363. fi
  3364. ;;
  3365. *)
  3366. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3367. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3368. ;;
  3369. esac
  3370. EGG_CYGWIN=yes
  3371. cat >>confdefs.h <<\_ACEOF
  3372. #define CYGWIN_HACKS 1
  3373. _ACEOF
  3374. ;;
  3375. HP-UX)
  3376. HPUX=yes
  3377. cat >>confdefs.h <<\_ACEOF
  3378. #define HPUX_HACKS 1
  3379. _ACEOF
  3380. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3381. then
  3382. cat >>confdefs.h <<\_ACEOF
  3383. #define HPUX10_HACKS 1
  3384. _ACEOF
  3385. fi
  3386. ;;
  3387. dell)
  3388. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3389. echo "${ECHO_T}Dell SVR4" >&6
  3390. ;;
  3391. IRIX)
  3392. IRIX=yes
  3393. ;;
  3394. Ultrix)
  3395. SHELL=/bin/sh5
  3396. ;;
  3397. SINIX*)
  3398. ;;
  3399. BeOS)
  3400. ;;
  3401. Linux)
  3402. LINUX=yes
  3403. CFLAGS="$CFLAGS -Wall"
  3404. ;;
  3405. Lynx)
  3406. ;;
  3407. QNX)
  3408. ;;
  3409. OSF1)
  3410. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3411. V*)
  3412. # FIXME: we should check this in a separate test
  3413. # Digital OSF uses an ancient version of gawk
  3414. if test "$AWK" = "gawk"
  3415. then
  3416. AWK=awk
  3417. fi
  3418. ;;
  3419. 1.0|1.1|1.2)
  3420. cat >>confdefs.h <<\_ACEOF
  3421. #define OSF1_HACKS 1
  3422. _ACEOF
  3423. ;;
  3424. 1.*)
  3425. cat >>confdefs.h <<\_ACEOF
  3426. #define OSF1_HACKS 1
  3427. _ACEOF
  3428. ;;
  3429. *)
  3430. ;;
  3431. esac
  3432. cat >>confdefs.h <<\_ACEOF
  3433. #define STOP_UAC 1
  3434. _ACEOF
  3435. cat >>confdefs.h <<\_ACEOF
  3436. #define BROKEN_SNPRINTF 1
  3437. _ACEOF
  3438. ;;
  3439. SunOS)
  3440. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3441. then
  3442. # SunOS 4
  3443. SUNOS=yes
  3444. fi
  3445. ;;
  3446. *BSD)
  3447. # FreeBSD/OpenBSD/NetBSD
  3448. ;;
  3449. *)
  3450. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3451. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3452. if test -r /mach
  3453. then
  3454. echo "$as_me:$LINENO: result: yes" >&5
  3455. echo "${ECHO_T}yes" >&6
  3456. cat >>confdefs.h <<\_ACEOF
  3457. #define BORGCUBES 1
  3458. _ACEOF
  3459. else
  3460. echo "$as_me:$LINENO: result: no" >&5
  3461. echo "${ECHO_T}no" >&6
  3462. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3463. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3464. if test -r /cmds
  3465. then
  3466. echo "$as_me:$LINENO: result: yes" >&5
  3467. echo "${ECHO_T}yes" >&6
  3468. else
  3469. echo "$as_me:$LINENO: result: no" >&5
  3470. echo "${ECHO_T}no" >&6
  3471. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3472. echo "${ECHO_T}Something unknown!" >&6
  3473. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3474. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3475. fi
  3476. fi
  3477. ;;
  3478. esac
  3479. #checkpoint
  3480. cat >confcache <<\_ACEOF
  3481. # This file is a shell script that caches the results of configure
  3482. # tests run on this system so they can be shared between configure
  3483. # scripts and configure runs, see configure's option --config-cache.
  3484. # It is not useful on other systems. If it contains results you don't
  3485. # want to keep, you may remove or edit it.
  3486. #
  3487. # config.status only pays attention to the cache file if you give it
  3488. # the --recheck option to rerun configure.
  3489. #
  3490. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3491. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3492. # following values.
  3493. _ACEOF
  3494. # The following way of writing the cache mishandles newlines in values,
  3495. # but we know of no workaround that is simple, portable, and efficient.
  3496. # So, don't put newlines in cache variables' values.
  3497. # Ultrix sh set writes to stderr and can't be redirected directly,
  3498. # and sets the high bit in the cache file unless we assign to the vars.
  3499. {
  3500. (set) 2>&1 |
  3501. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3502. *ac_space=\ *)
  3503. # `set' does not quote correctly, so add quotes (double-quote
  3504. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3505. sed -n \
  3506. "s/'/'\\\\''/g;
  3507. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3508. ;;
  3509. *)
  3510. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3511. sed -n \
  3512. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3513. ;;
  3514. esac;
  3515. } |
  3516. sed '
  3517. t clear
  3518. : clear
  3519. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3520. t end
  3521. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3522. : end' >>confcache
  3523. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3524. if test -w $cache_file; then
  3525. test "x$cache_file" != "x/dev/null"
  3526. cat confcache >$cache_file
  3527. else
  3528. echo "not updating unwritable cache $cache_file"
  3529. fi
  3530. fi
  3531. rm -f confcache
  3532. # Checks for system libraries
  3533. # FIXME: this needs to be fixed so that it works on IRIX
  3534. if test "$IRIX" = "yes"
  3535. then
  3536. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  3537. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  3538. else
  3539. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3540. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3541. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3542. echo $ECHO_N "(cached) $ECHO_C" >&6
  3543. else
  3544. ac_check_lib_save_LIBS=$LIBS
  3545. LIBS="-lsocket $LIBS"
  3546. cat >conftest.$ac_ext <<_ACEOF
  3547. /* confdefs.h. */
  3548. _ACEOF
  3549. cat confdefs.h >>conftest.$ac_ext
  3550. cat >>conftest.$ac_ext <<_ACEOF
  3551. /* end confdefs.h. */
  3552. /* Override any gcc2 internal prototype to avoid an error. */
  3553. #ifdef __cplusplus
  3554. extern "C"
  3555. #endif
  3556. /* We use char because int might match the return type of a gcc2
  3557. builtin and then its argument prototype would still apply. */
  3558. char socket ();
  3559. int
  3560. main ()
  3561. {
  3562. socket ();
  3563. ;
  3564. return 0;
  3565. }
  3566. _ACEOF
  3567. rm -f conftest.$ac_objext conftest$ac_exeext
  3568. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3569. (eval $ac_link) 2>conftest.er1
  3570. ac_status=$?
  3571. grep -v '^ *+' conftest.er1 >conftest.err
  3572. rm -f conftest.er1
  3573. cat conftest.err >&5
  3574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3575. (exit $ac_status); } &&
  3576. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3578. (eval $ac_try) 2>&5
  3579. ac_status=$?
  3580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3581. (exit $ac_status); }; } &&
  3582. { ac_try='test -s conftest$ac_exeext'
  3583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3584. (eval $ac_try) 2>&5
  3585. ac_status=$?
  3586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3587. (exit $ac_status); }; }; then
  3588. ac_cv_lib_socket_socket=yes
  3589. else
  3590. echo "$as_me: failed program was:" >&5
  3591. sed 's/^/| /' conftest.$ac_ext >&5
  3592. ac_cv_lib_socket_socket=no
  3593. fi
  3594. rm -f conftest.err conftest.$ac_objext \
  3595. conftest$ac_exeext conftest.$ac_ext
  3596. LIBS=$ac_check_lib_save_LIBS
  3597. fi
  3598. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3599. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3600. if test $ac_cv_lib_socket_socket = yes; then
  3601. cat >>confdefs.h <<_ACEOF
  3602. #define HAVE_LIBSOCKET 1
  3603. _ACEOF
  3604. LIBS="-lsocket $LIBS"
  3605. fi
  3606. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3607. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3608. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3609. echo $ECHO_N "(cached) $ECHO_C" >&6
  3610. else
  3611. ac_check_lib_save_LIBS=$LIBS
  3612. LIBS="-lnsl $LIBS"
  3613. cat >conftest.$ac_ext <<_ACEOF
  3614. /* confdefs.h. */
  3615. _ACEOF
  3616. cat confdefs.h >>conftest.$ac_ext
  3617. cat >>conftest.$ac_ext <<_ACEOF
  3618. /* end confdefs.h. */
  3619. /* Override any gcc2 internal prototype to avoid an error. */
  3620. #ifdef __cplusplus
  3621. extern "C"
  3622. #endif
  3623. /* We use char because int might match the return type of a gcc2
  3624. builtin and then its argument prototype would still apply. */
  3625. char connect ();
  3626. int
  3627. main ()
  3628. {
  3629. connect ();
  3630. ;
  3631. return 0;
  3632. }
  3633. _ACEOF
  3634. rm -f conftest.$ac_objext conftest$ac_exeext
  3635. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3636. (eval $ac_link) 2>conftest.er1
  3637. ac_status=$?
  3638. grep -v '^ *+' conftest.er1 >conftest.err
  3639. rm -f conftest.er1
  3640. cat conftest.err >&5
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); } &&
  3643. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3645. (eval $ac_try) 2>&5
  3646. ac_status=$?
  3647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3648. (exit $ac_status); }; } &&
  3649. { ac_try='test -s conftest$ac_exeext'
  3650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3651. (eval $ac_try) 2>&5
  3652. ac_status=$?
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); }; }; then
  3655. ac_cv_lib_nsl_connect=yes
  3656. else
  3657. echo "$as_me: failed program was:" >&5
  3658. sed 's/^/| /' conftest.$ac_ext >&5
  3659. ac_cv_lib_nsl_connect=no
  3660. fi
  3661. rm -f conftest.err conftest.$ac_objext \
  3662. conftest$ac_exeext conftest.$ac_ext
  3663. LIBS=$ac_check_lib_save_LIBS
  3664. fi
  3665. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3666. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3667. if test $ac_cv_lib_nsl_connect = yes; then
  3668. cat >>confdefs.h <<_ACEOF
  3669. #define HAVE_LIBNSL 1
  3670. _ACEOF
  3671. LIBS="-lnsl $LIBS"
  3672. fi
  3673. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3674. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3675. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3676. echo $ECHO_N "(cached) $ECHO_C" >&6
  3677. else
  3678. ac_check_lib_save_LIBS=$LIBS
  3679. LIBS="-ldns $LIBS"
  3680. cat >conftest.$ac_ext <<_ACEOF
  3681. /* confdefs.h. */
  3682. _ACEOF
  3683. cat confdefs.h >>conftest.$ac_ext
  3684. cat >>conftest.$ac_ext <<_ACEOF
  3685. /* end confdefs.h. */
  3686. /* Override any gcc2 internal prototype to avoid an error. */
  3687. #ifdef __cplusplus
  3688. extern "C"
  3689. #endif
  3690. /* We use char because int might match the return type of a gcc2
  3691. builtin and then its argument prototype would still apply. */
  3692. char gethostbyname ();
  3693. int
  3694. main ()
  3695. {
  3696. gethostbyname ();
  3697. ;
  3698. return 0;
  3699. }
  3700. _ACEOF
  3701. rm -f conftest.$ac_objext conftest$ac_exeext
  3702. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3703. (eval $ac_link) 2>conftest.er1
  3704. ac_status=$?
  3705. grep -v '^ *+' conftest.er1 >conftest.err
  3706. rm -f conftest.er1
  3707. cat conftest.err >&5
  3708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3709. (exit $ac_status); } &&
  3710. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3712. (eval $ac_try) 2>&5
  3713. ac_status=$?
  3714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3715. (exit $ac_status); }; } &&
  3716. { ac_try='test -s conftest$ac_exeext'
  3717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3718. (eval $ac_try) 2>&5
  3719. ac_status=$?
  3720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3721. (exit $ac_status); }; }; then
  3722. ac_cv_lib_dns_gethostbyname=yes
  3723. else
  3724. echo "$as_me: failed program was:" >&5
  3725. sed 's/^/| /' conftest.$ac_ext >&5
  3726. ac_cv_lib_dns_gethostbyname=no
  3727. fi
  3728. rm -f conftest.err conftest.$ac_objext \
  3729. conftest$ac_exeext conftest.$ac_ext
  3730. LIBS=$ac_check_lib_save_LIBS
  3731. fi
  3732. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3733. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3734. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3735. cat >>confdefs.h <<_ACEOF
  3736. #define HAVE_LIBDNS 1
  3737. _ACEOF
  3738. LIBS="-ldns $LIBS"
  3739. fi
  3740. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3741. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3742. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3743. echo $ECHO_N "(cached) $ECHO_C" >&6
  3744. else
  3745. ac_check_lib_save_LIBS=$LIBS
  3746. LIBS="-lz $LIBS"
  3747. cat >conftest.$ac_ext <<_ACEOF
  3748. /* confdefs.h. */
  3749. _ACEOF
  3750. cat confdefs.h >>conftest.$ac_ext
  3751. cat >>conftest.$ac_ext <<_ACEOF
  3752. /* end confdefs.h. */
  3753. /* Override any gcc2 internal prototype to avoid an error. */
  3754. #ifdef __cplusplus
  3755. extern "C"
  3756. #endif
  3757. /* We use char because int might match the return type of a gcc2
  3758. builtin and then its argument prototype would still apply. */
  3759. char gzopen ();
  3760. int
  3761. main ()
  3762. {
  3763. gzopen ();
  3764. ;
  3765. return 0;
  3766. }
  3767. _ACEOF
  3768. rm -f conftest.$ac_objext conftest$ac_exeext
  3769. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3770. (eval $ac_link) 2>conftest.er1
  3771. ac_status=$?
  3772. grep -v '^ *+' conftest.er1 >conftest.err
  3773. rm -f conftest.er1
  3774. cat conftest.err >&5
  3775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3776. (exit $ac_status); } &&
  3777. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3779. (eval $ac_try) 2>&5
  3780. ac_status=$?
  3781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3782. (exit $ac_status); }; } &&
  3783. { ac_try='test -s conftest$ac_exeext'
  3784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3785. (eval $ac_try) 2>&5
  3786. ac_status=$?
  3787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3788. (exit $ac_status); }; }; then
  3789. ac_cv_lib_z_gzopen=yes
  3790. else
  3791. echo "$as_me: failed program was:" >&5
  3792. sed 's/^/| /' conftest.$ac_ext >&5
  3793. ac_cv_lib_z_gzopen=no
  3794. fi
  3795. rm -f conftest.err conftest.$ac_objext \
  3796. conftest$ac_exeext conftest.$ac_ext
  3797. LIBS=$ac_check_lib_save_LIBS
  3798. fi
  3799. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3800. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3801. if test $ac_cv_lib_z_gzopen = yes; then
  3802. ZLIB="-lz"
  3803. fi
  3804. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  3805. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  3806. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  3807. echo $ECHO_N "(cached) $ECHO_C" >&6
  3808. else
  3809. ac_check_lib_save_LIBS=$LIBS
  3810. LIBS="-lssl -lcrypto $LIBS"
  3811. cat >conftest.$ac_ext <<_ACEOF
  3812. /* confdefs.h. */
  3813. _ACEOF
  3814. cat confdefs.h >>conftest.$ac_ext
  3815. cat >>conftest.$ac_ext <<_ACEOF
  3816. /* end confdefs.h. */
  3817. /* Override any gcc2 internal prototype to avoid an error. */
  3818. #ifdef __cplusplus
  3819. extern "C"
  3820. #endif
  3821. /* We use char because int might match the return type of a gcc2
  3822. builtin and then its argument prototype would still apply. */
  3823. char SSL_accept ();
  3824. int
  3825. main ()
  3826. {
  3827. SSL_accept ();
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. rm -f conftest.$ac_objext conftest$ac_exeext
  3833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3834. (eval $ac_link) 2>conftest.er1
  3835. ac_status=$?
  3836. grep -v '^ *+' conftest.er1 >conftest.err
  3837. rm -f conftest.er1
  3838. cat conftest.err >&5
  3839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3840. (exit $ac_status); } &&
  3841. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3843. (eval $ac_try) 2>&5
  3844. ac_status=$?
  3845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3846. (exit $ac_status); }; } &&
  3847. { ac_try='test -s conftest$ac_exeext'
  3848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3849. (eval $ac_try) 2>&5
  3850. ac_status=$?
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); }; }; then
  3853. ac_cv_lib_ssl_SSL_accept=yes
  3854. else
  3855. echo "$as_me: failed program was:" >&5
  3856. sed 's/^/| /' conftest.$ac_ext >&5
  3857. ac_cv_lib_ssl_SSL_accept=no
  3858. fi
  3859. rm -f conftest.err conftest.$ac_objext \
  3860. conftest$ac_exeext conftest.$ac_ext
  3861. LIBS=$ac_check_lib_save_LIBS
  3862. fi
  3863. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  3864. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  3865. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  3866. SSL="-lssl -lcrypto"
  3867. else
  3868. SSL=""
  3869. fi
  3870. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  3871. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3872. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3873. echo $ECHO_N "(cached) $ECHO_C" >&6
  3874. else
  3875. ac_check_lib_save_LIBS=$LIBS
  3876. LIBS="-ldl $LIBS"
  3877. cat >conftest.$ac_ext <<_ACEOF
  3878. /* confdefs.h. */
  3879. _ACEOF
  3880. cat confdefs.h >>conftest.$ac_ext
  3881. cat >>conftest.$ac_ext <<_ACEOF
  3882. /* end confdefs.h. */
  3883. /* Override any gcc2 internal prototype to avoid an error. */
  3884. #ifdef __cplusplus
  3885. extern "C"
  3886. #endif
  3887. /* We use char because int might match the return type of a gcc2
  3888. builtin and then its argument prototype would still apply. */
  3889. char dlopen ();
  3890. int
  3891. main ()
  3892. {
  3893. dlopen ();
  3894. ;
  3895. return 0;
  3896. }
  3897. _ACEOF
  3898. rm -f conftest.$ac_objext conftest$ac_exeext
  3899. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3900. (eval $ac_link) 2>conftest.er1
  3901. ac_status=$?
  3902. grep -v '^ *+' conftest.er1 >conftest.err
  3903. rm -f conftest.er1
  3904. cat conftest.err >&5
  3905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3906. (exit $ac_status); } &&
  3907. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3909. (eval $ac_try) 2>&5
  3910. ac_status=$?
  3911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); }; } &&
  3913. { ac_try='test -s conftest$ac_exeext'
  3914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3915. (eval $ac_try) 2>&5
  3916. ac_status=$?
  3917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3918. (exit $ac_status); }; }; then
  3919. ac_cv_lib_dl_dlopen=yes
  3920. else
  3921. echo "$as_me: failed program was:" >&5
  3922. sed 's/^/| /' conftest.$ac_ext >&5
  3923. ac_cv_lib_dl_dlopen=no
  3924. fi
  3925. rm -f conftest.err conftest.$ac_objext \
  3926. conftest$ac_exeext conftest.$ac_ext
  3927. LIBS=$ac_check_lib_save_LIBS
  3928. fi
  3929. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  3930. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3931. if test $ac_cv_lib_dl_dlopen = yes; then
  3932. cat >>confdefs.h <<_ACEOF
  3933. #define HAVE_LIBDL 1
  3934. _ACEOF
  3935. LIBS="-ldl $LIBS"
  3936. fi
  3937. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  3938. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  3939. if test "${ac_cv_lib_m_tan+set}" = set; then
  3940. echo $ECHO_N "(cached) $ECHO_C" >&6
  3941. else
  3942. ac_check_lib_save_LIBS=$LIBS
  3943. LIBS="-lm $LIBS"
  3944. cat >conftest.$ac_ext <<_ACEOF
  3945. /* confdefs.h. */
  3946. _ACEOF
  3947. cat confdefs.h >>conftest.$ac_ext
  3948. cat >>conftest.$ac_ext <<_ACEOF
  3949. /* end confdefs.h. */
  3950. /* Override any gcc2 internal prototype to avoid an error. */
  3951. #ifdef __cplusplus
  3952. extern "C"
  3953. #endif
  3954. /* We use char because int might match the return type of a gcc2
  3955. builtin and then its argument prototype would still apply. */
  3956. char tan ();
  3957. int
  3958. main ()
  3959. {
  3960. tan ();
  3961. ;
  3962. return 0;
  3963. }
  3964. _ACEOF
  3965. rm -f conftest.$ac_objext conftest$ac_exeext
  3966. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3967. (eval $ac_link) 2>conftest.er1
  3968. ac_status=$?
  3969. grep -v '^ *+' conftest.er1 >conftest.err
  3970. rm -f conftest.er1
  3971. cat conftest.err >&5
  3972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3973. (exit $ac_status); } &&
  3974. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3976. (eval $ac_try) 2>&5
  3977. ac_status=$?
  3978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3979. (exit $ac_status); }; } &&
  3980. { ac_try='test -s conftest$ac_exeext'
  3981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3982. (eval $ac_try) 2>&5
  3983. ac_status=$?
  3984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3985. (exit $ac_status); }; }; then
  3986. ac_cv_lib_m_tan=yes
  3987. else
  3988. echo "$as_me: failed program was:" >&5
  3989. sed 's/^/| /' conftest.$ac_ext >&5
  3990. ac_cv_lib_m_tan=no
  3991. fi
  3992. rm -f conftest.err conftest.$ac_objext \
  3993. conftest$ac_exeext conftest.$ac_ext
  3994. LIBS=$ac_check_lib_save_LIBS
  3995. fi
  3996. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  3997. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  3998. if test $ac_cv_lib_m_tan = yes; then
  3999. EGG_MATH_LIB="-lm"
  4000. fi
  4001. # This is needed for Tcl libraries compiled with thread support
  4002. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  4003. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4004. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  4005. echo $ECHO_N "(cached) $ECHO_C" >&6
  4006. else
  4007. ac_check_lib_save_LIBS=$LIBS
  4008. LIBS="-lpthread $LIBS"
  4009. cat >conftest.$ac_ext <<_ACEOF
  4010. /* confdefs.h. */
  4011. _ACEOF
  4012. cat confdefs.h >>conftest.$ac_ext
  4013. cat >>conftest.$ac_ext <<_ACEOF
  4014. /* end confdefs.h. */
  4015. /* Override any gcc2 internal prototype to avoid an error. */
  4016. #ifdef __cplusplus
  4017. extern "C"
  4018. #endif
  4019. /* We use char because int might match the return type of a gcc2
  4020. builtin and then its argument prototype would still apply. */
  4021. char pthread_mutex_init ();
  4022. int
  4023. main ()
  4024. {
  4025. pthread_mutex_init ();
  4026. ;
  4027. return 0;
  4028. }
  4029. _ACEOF
  4030. rm -f conftest.$ac_objext conftest$ac_exeext
  4031. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4032. (eval $ac_link) 2>conftest.er1
  4033. ac_status=$?
  4034. grep -v '^ *+' conftest.er1 >conftest.err
  4035. rm -f conftest.er1
  4036. cat conftest.err >&5
  4037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4038. (exit $ac_status); } &&
  4039. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4041. (eval $ac_try) 2>&5
  4042. ac_status=$?
  4043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044. (exit $ac_status); }; } &&
  4045. { ac_try='test -s conftest$ac_exeext'
  4046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4047. (eval $ac_try) 2>&5
  4048. ac_status=$?
  4049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4050. (exit $ac_status); }; }; then
  4051. ac_cv_lib_pthread_pthread_mutex_init=yes
  4052. else
  4053. echo "$as_me: failed program was:" >&5
  4054. sed 's/^/| /' conftest.$ac_ext >&5
  4055. ac_cv_lib_pthread_pthread_mutex_init=no
  4056. fi
  4057. rm -f conftest.err conftest.$ac_objext \
  4058. conftest$ac_exeext conftest.$ac_ext
  4059. LIBS=$ac_check_lib_save_LIBS
  4060. fi
  4061. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4062. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4063. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4064. ac_cv_lib_pthread_pthread_mutex_init=yes
  4065. ac_cv_lib_pthread="-lpthread"
  4066. else
  4067. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4068. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4069. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4070. echo $ECHO_N "(cached) $ECHO_C" >&6
  4071. else
  4072. ac_check_lib_save_LIBS=$LIBS
  4073. LIBS="-lpthread $LIBS"
  4074. cat >conftest.$ac_ext <<_ACEOF
  4075. /* confdefs.h. */
  4076. _ACEOF
  4077. cat confdefs.h >>conftest.$ac_ext
  4078. cat >>conftest.$ac_ext <<_ACEOF
  4079. /* end confdefs.h. */
  4080. /* Override any gcc2 internal prototype to avoid an error. */
  4081. #ifdef __cplusplus
  4082. extern "C"
  4083. #endif
  4084. /* We use char because int might match the return type of a gcc2
  4085. builtin and then its argument prototype would still apply. */
  4086. char __pthread_mutex_init ();
  4087. int
  4088. main ()
  4089. {
  4090. __pthread_mutex_init ();
  4091. ;
  4092. return 0;
  4093. }
  4094. _ACEOF
  4095. rm -f conftest.$ac_objext conftest$ac_exeext
  4096. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4097. (eval $ac_link) 2>conftest.er1
  4098. ac_status=$?
  4099. grep -v '^ *+' conftest.er1 >conftest.err
  4100. rm -f conftest.er1
  4101. cat conftest.err >&5
  4102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. (exit $ac_status); } &&
  4104. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4106. (eval $ac_try) 2>&5
  4107. ac_status=$?
  4108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4109. (exit $ac_status); }; } &&
  4110. { ac_try='test -s conftest$ac_exeext'
  4111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4112. (eval $ac_try) 2>&5
  4113. ac_status=$?
  4114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4115. (exit $ac_status); }; }; then
  4116. ac_cv_lib_pthread___pthread_mutex_init=yes
  4117. else
  4118. echo "$as_me: failed program was:" >&5
  4119. sed 's/^/| /' conftest.$ac_ext >&5
  4120. ac_cv_lib_pthread___pthread_mutex_init=no
  4121. fi
  4122. rm -f conftest.err conftest.$ac_objext \
  4123. conftest$ac_exeext conftest.$ac_ext
  4124. LIBS=$ac_check_lib_save_LIBS
  4125. fi
  4126. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  4127. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  4128. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  4129. ac_cv_lib_pthread_pthread_mutex_init=yes
  4130. ac_cv_lib_pthread="-lpthread"
  4131. else
  4132. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  4133. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  4134. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  4135. echo $ECHO_N "(cached) $ECHO_C" >&6
  4136. else
  4137. ac_check_lib_save_LIBS=$LIBS
  4138. LIBS="-lpthreads $LIBS"
  4139. cat >conftest.$ac_ext <<_ACEOF
  4140. /* confdefs.h. */
  4141. _ACEOF
  4142. cat confdefs.h >>conftest.$ac_ext
  4143. cat >>conftest.$ac_ext <<_ACEOF
  4144. /* end confdefs.h. */
  4145. /* Override any gcc2 internal prototype to avoid an error. */
  4146. #ifdef __cplusplus
  4147. extern "C"
  4148. #endif
  4149. /* We use char because int might match the return type of a gcc2
  4150. builtin and then its argument prototype would still apply. */
  4151. char pthread_mutex_init ();
  4152. int
  4153. main ()
  4154. {
  4155. pthread_mutex_init ();
  4156. ;
  4157. return 0;
  4158. }
  4159. _ACEOF
  4160. rm -f conftest.$ac_objext conftest$ac_exeext
  4161. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4162. (eval $ac_link) 2>conftest.er1
  4163. ac_status=$?
  4164. grep -v '^ *+' conftest.er1 >conftest.err
  4165. rm -f conftest.er1
  4166. cat conftest.err >&5
  4167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4168. (exit $ac_status); } &&
  4169. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4171. (eval $ac_try) 2>&5
  4172. ac_status=$?
  4173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4174. (exit $ac_status); }; } &&
  4175. { ac_try='test -s conftest$ac_exeext'
  4176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4177. (eval $ac_try) 2>&5
  4178. ac_status=$?
  4179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4180. (exit $ac_status); }; }; then
  4181. ac_cv_lib_pthreads_pthread_mutex_init=yes
  4182. else
  4183. echo "$as_me: failed program was:" >&5
  4184. sed 's/^/| /' conftest.$ac_ext >&5
  4185. ac_cv_lib_pthreads_pthread_mutex_init=no
  4186. fi
  4187. rm -f conftest.err conftest.$ac_objext \
  4188. conftest$ac_exeext conftest.$ac_ext
  4189. LIBS=$ac_check_lib_save_LIBS
  4190. fi
  4191. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  4192. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  4193. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  4194. ac_cv_lib_pthread_pthread_mutex_init=yes
  4195. ac_cv_lib_pthread="-lpthreads"
  4196. else
  4197. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  4198. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  4199. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  4200. echo $ECHO_N "(cached) $ECHO_C" >&6
  4201. else
  4202. cat >conftest.$ac_ext <<_ACEOF
  4203. /* confdefs.h. */
  4204. _ACEOF
  4205. cat confdefs.h >>conftest.$ac_ext
  4206. cat >>conftest.$ac_ext <<_ACEOF
  4207. /* end confdefs.h. */
  4208. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  4209. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4210. #define pthread_mutex_init innocuous_pthread_mutex_init
  4211. /* System header to define __stub macros and hopefully few prototypes,
  4212. which can conflict with char pthread_mutex_init (); below.
  4213. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4214. <limits.h> exists even on freestanding compilers. */
  4215. #ifdef __STDC__
  4216. # include <limits.h>
  4217. #else
  4218. # include <assert.h>
  4219. #endif
  4220. #undef pthread_mutex_init
  4221. /* Override any gcc2 internal prototype to avoid an error. */
  4222. #ifdef __cplusplus
  4223. extern "C"
  4224. {
  4225. #endif
  4226. /* We use char because int might match the return type of a gcc2
  4227. builtin and then its argument prototype would still apply. */
  4228. char pthread_mutex_init ();
  4229. /* The GNU C library defines this for functions which it implements
  4230. to always fail with ENOSYS. Some functions are actually named
  4231. something starting with __ and the normal name is an alias. */
  4232. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  4233. choke me
  4234. #else
  4235. char (*f) () = pthread_mutex_init;
  4236. #endif
  4237. #ifdef __cplusplus
  4238. }
  4239. #endif
  4240. int
  4241. main ()
  4242. {
  4243. return f != pthread_mutex_init;
  4244. ;
  4245. return 0;
  4246. }
  4247. _ACEOF
  4248. rm -f conftest.$ac_objext conftest$ac_exeext
  4249. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4250. (eval $ac_link) 2>conftest.er1
  4251. ac_status=$?
  4252. grep -v '^ *+' conftest.er1 >conftest.err
  4253. rm -f conftest.er1
  4254. cat conftest.err >&5
  4255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4256. (exit $ac_status); } &&
  4257. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4259. (eval $ac_try) 2>&5
  4260. ac_status=$?
  4261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4262. (exit $ac_status); }; } &&
  4263. { ac_try='test -s conftest$ac_exeext'
  4264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4265. (eval $ac_try) 2>&5
  4266. ac_status=$?
  4267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4268. (exit $ac_status); }; }; then
  4269. ac_cv_func_pthread_mutex_init=yes
  4270. else
  4271. echo "$as_me: failed program was:" >&5
  4272. sed 's/^/| /' conftest.$ac_ext >&5
  4273. ac_cv_func_pthread_mutex_init=no
  4274. fi
  4275. rm -f conftest.err conftest.$ac_objext \
  4276. conftest$ac_exeext conftest.$ac_ext
  4277. fi
  4278. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  4279. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  4280. if test $ac_cv_func_pthread_mutex_init = yes; then
  4281. ac_cv_lib_pthread_pthread_mutex_init=yes
  4282. ac_cv_lib_pthread=""
  4283. else
  4284. ac_cv_lib_pthread_pthread_mutex_init=no
  4285. fi
  4286. fi
  4287. fi
  4288. fi
  4289. if test "$SUNOS" = "yes"
  4290. then
  4291. # For suns without yp or something like that
  4292. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4293. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  4294. if test "${ac_cv_lib_dl_main+set}" = set; then
  4295. echo $ECHO_N "(cached) $ECHO_C" >&6
  4296. else
  4297. ac_check_lib_save_LIBS=$LIBS
  4298. LIBS="-ldl $LIBS"
  4299. cat >conftest.$ac_ext <<_ACEOF
  4300. /* confdefs.h. */
  4301. _ACEOF
  4302. cat confdefs.h >>conftest.$ac_ext
  4303. cat >>conftest.$ac_ext <<_ACEOF
  4304. /* end confdefs.h. */
  4305. int
  4306. main ()
  4307. {
  4308. main ();
  4309. ;
  4310. return 0;
  4311. }
  4312. _ACEOF
  4313. rm -f conftest.$ac_objext conftest$ac_exeext
  4314. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4315. (eval $ac_link) 2>conftest.er1
  4316. ac_status=$?
  4317. grep -v '^ *+' conftest.er1 >conftest.err
  4318. rm -f conftest.er1
  4319. cat conftest.err >&5
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); } &&
  4322. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4324. (eval $ac_try) 2>&5
  4325. ac_status=$?
  4326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4327. (exit $ac_status); }; } &&
  4328. { ac_try='test -s conftest$ac_exeext'
  4329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4330. (eval $ac_try) 2>&5
  4331. ac_status=$?
  4332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4333. (exit $ac_status); }; }; then
  4334. ac_cv_lib_dl_main=yes
  4335. else
  4336. echo "$as_me: failed program was:" >&5
  4337. sed 's/^/| /' conftest.$ac_ext >&5
  4338. ac_cv_lib_dl_main=no
  4339. fi
  4340. rm -f conftest.err conftest.$ac_objext \
  4341. conftest$ac_exeext conftest.$ac_ext
  4342. LIBS=$ac_check_lib_save_LIBS
  4343. fi
  4344. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4345. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  4346. if test $ac_cv_lib_dl_main = yes; then
  4347. cat >>confdefs.h <<_ACEOF
  4348. #define HAVE_LIBDL 1
  4349. _ACEOF
  4350. LIBS="-ldl $LIBS"
  4351. fi
  4352. else
  4353. if test "$HPUX" = "yes"
  4354. then
  4355. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  4356. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  4357. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  4358. echo $ECHO_N "(cached) $ECHO_C" >&6
  4359. else
  4360. ac_check_lib_save_LIBS=$LIBS
  4361. LIBS="-ldld $LIBS"
  4362. cat >conftest.$ac_ext <<_ACEOF
  4363. /* confdefs.h. */
  4364. _ACEOF
  4365. cat confdefs.h >>conftest.$ac_ext
  4366. cat >>conftest.$ac_ext <<_ACEOF
  4367. /* end confdefs.h. */
  4368. /* Override any gcc2 internal prototype to avoid an error. */
  4369. #ifdef __cplusplus
  4370. extern "C"
  4371. #endif
  4372. /* We use char because int might match the return type of a gcc2
  4373. builtin and then its argument prototype would still apply. */
  4374. char shl_load ();
  4375. int
  4376. main ()
  4377. {
  4378. shl_load ();
  4379. ;
  4380. return 0;
  4381. }
  4382. _ACEOF
  4383. rm -f conftest.$ac_objext conftest$ac_exeext
  4384. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4385. (eval $ac_link) 2>conftest.er1
  4386. ac_status=$?
  4387. grep -v '^ *+' conftest.er1 >conftest.err
  4388. rm -f conftest.er1
  4389. cat conftest.err >&5
  4390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4391. (exit $ac_status); } &&
  4392. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4394. (eval $ac_try) 2>&5
  4395. ac_status=$?
  4396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4397. (exit $ac_status); }; } &&
  4398. { ac_try='test -s conftest$ac_exeext'
  4399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4400. (eval $ac_try) 2>&5
  4401. ac_status=$?
  4402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4403. (exit $ac_status); }; }; then
  4404. ac_cv_lib_dld_shl_load=yes
  4405. else
  4406. echo "$as_me: failed program was:" >&5
  4407. sed 's/^/| /' conftest.$ac_ext >&5
  4408. ac_cv_lib_dld_shl_load=no
  4409. fi
  4410. rm -f conftest.err conftest.$ac_objext \
  4411. conftest$ac_exeext conftest.$ac_ext
  4412. LIBS=$ac_check_lib_save_LIBS
  4413. fi
  4414. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  4415. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  4416. if test $ac_cv_lib_dld_shl_load = yes; then
  4417. cat >>confdefs.h <<_ACEOF
  4418. #define HAVE_LIBDLD 1
  4419. _ACEOF
  4420. LIBS="-ldld $LIBS"
  4421. fi
  4422. fi
  4423. fi
  4424. fi
  4425. # Checks for header files
  4426. ac_header_dirent=no
  4427. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4428. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4429. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4430. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4431. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4432. echo $ECHO_N "(cached) $ECHO_C" >&6
  4433. else
  4434. cat >conftest.$ac_ext <<_ACEOF
  4435. /* confdefs.h. */
  4436. _ACEOF
  4437. cat confdefs.h >>conftest.$ac_ext
  4438. cat >>conftest.$ac_ext <<_ACEOF
  4439. /* end confdefs.h. */
  4440. #include <sys/types.h>
  4441. #include <$ac_hdr>
  4442. int
  4443. main ()
  4444. {
  4445. if ((DIR *) 0)
  4446. return 0;
  4447. ;
  4448. return 0;
  4449. }
  4450. _ACEOF
  4451. rm -f conftest.$ac_objext
  4452. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4453. (eval $ac_compile) 2>conftest.er1
  4454. ac_status=$?
  4455. grep -v '^ *+' conftest.er1 >conftest.err
  4456. rm -f conftest.er1
  4457. cat conftest.err >&5
  4458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4459. (exit $ac_status); } &&
  4460. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4462. (eval $ac_try) 2>&5
  4463. ac_status=$?
  4464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4465. (exit $ac_status); }; } &&
  4466. { ac_try='test -s conftest.$ac_objext'
  4467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4468. (eval $ac_try) 2>&5
  4469. ac_status=$?
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); }; }; then
  4472. eval "$as_ac_Header=yes"
  4473. else
  4474. echo "$as_me: failed program was:" >&5
  4475. sed 's/^/| /' conftest.$ac_ext >&5
  4476. eval "$as_ac_Header=no"
  4477. fi
  4478. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4479. fi
  4480. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4481. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4482. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4483. cat >>confdefs.h <<_ACEOF
  4484. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4485. _ACEOF
  4486. ac_header_dirent=$ac_hdr; break
  4487. fi
  4488. done
  4489. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4490. if test $ac_header_dirent = dirent.h; then
  4491. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4492. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4493. if test "${ac_cv_search_opendir+set}" = set; then
  4494. echo $ECHO_N "(cached) $ECHO_C" >&6
  4495. else
  4496. ac_func_search_save_LIBS=$LIBS
  4497. ac_cv_search_opendir=no
  4498. cat >conftest.$ac_ext <<_ACEOF
  4499. /* confdefs.h. */
  4500. _ACEOF
  4501. cat confdefs.h >>conftest.$ac_ext
  4502. cat >>conftest.$ac_ext <<_ACEOF
  4503. /* end confdefs.h. */
  4504. /* Override any gcc2 internal prototype to avoid an error. */
  4505. #ifdef __cplusplus
  4506. extern "C"
  4507. #endif
  4508. /* We use char because int might match the return type of a gcc2
  4509. builtin and then its argument prototype would still apply. */
  4510. char opendir ();
  4511. int
  4512. main ()
  4513. {
  4514. opendir ();
  4515. ;
  4516. return 0;
  4517. }
  4518. _ACEOF
  4519. rm -f conftest.$ac_objext conftest$ac_exeext
  4520. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4521. (eval $ac_link) 2>conftest.er1
  4522. ac_status=$?
  4523. grep -v '^ *+' conftest.er1 >conftest.err
  4524. rm -f conftest.er1
  4525. cat conftest.err >&5
  4526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4527. (exit $ac_status); } &&
  4528. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4530. (eval $ac_try) 2>&5
  4531. ac_status=$?
  4532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4533. (exit $ac_status); }; } &&
  4534. { ac_try='test -s conftest$ac_exeext'
  4535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4536. (eval $ac_try) 2>&5
  4537. ac_status=$?
  4538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4539. (exit $ac_status); }; }; then
  4540. ac_cv_search_opendir="none required"
  4541. else
  4542. echo "$as_me: failed program was:" >&5
  4543. sed 's/^/| /' conftest.$ac_ext >&5
  4544. fi
  4545. rm -f conftest.err conftest.$ac_objext \
  4546. conftest$ac_exeext conftest.$ac_ext
  4547. if test "$ac_cv_search_opendir" = no; then
  4548. for ac_lib in dir; do
  4549. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4550. cat >conftest.$ac_ext <<_ACEOF
  4551. /* confdefs.h. */
  4552. _ACEOF
  4553. cat confdefs.h >>conftest.$ac_ext
  4554. cat >>conftest.$ac_ext <<_ACEOF
  4555. /* end confdefs.h. */
  4556. /* Override any gcc2 internal prototype to avoid an error. */
  4557. #ifdef __cplusplus
  4558. extern "C"
  4559. #endif
  4560. /* We use char because int might match the return type of a gcc2
  4561. builtin and then its argument prototype would still apply. */
  4562. char opendir ();
  4563. int
  4564. main ()
  4565. {
  4566. opendir ();
  4567. ;
  4568. return 0;
  4569. }
  4570. _ACEOF
  4571. rm -f conftest.$ac_objext conftest$ac_exeext
  4572. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4573. (eval $ac_link) 2>conftest.er1
  4574. ac_status=$?
  4575. grep -v '^ *+' conftest.er1 >conftest.err
  4576. rm -f conftest.er1
  4577. cat conftest.err >&5
  4578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4579. (exit $ac_status); } &&
  4580. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4582. (eval $ac_try) 2>&5
  4583. ac_status=$?
  4584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4585. (exit $ac_status); }; } &&
  4586. { ac_try='test -s conftest$ac_exeext'
  4587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4588. (eval $ac_try) 2>&5
  4589. ac_status=$?
  4590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4591. (exit $ac_status); }; }; then
  4592. ac_cv_search_opendir="-l$ac_lib"
  4593. break
  4594. else
  4595. echo "$as_me: failed program was:" >&5
  4596. sed 's/^/| /' conftest.$ac_ext >&5
  4597. fi
  4598. rm -f conftest.err conftest.$ac_objext \
  4599. conftest$ac_exeext conftest.$ac_ext
  4600. done
  4601. fi
  4602. LIBS=$ac_func_search_save_LIBS
  4603. fi
  4604. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4605. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4606. if test "$ac_cv_search_opendir" != no; then
  4607. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4608. fi
  4609. else
  4610. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4611. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4612. if test "${ac_cv_search_opendir+set}" = set; then
  4613. echo $ECHO_N "(cached) $ECHO_C" >&6
  4614. else
  4615. ac_func_search_save_LIBS=$LIBS
  4616. ac_cv_search_opendir=no
  4617. cat >conftest.$ac_ext <<_ACEOF
  4618. /* confdefs.h. */
  4619. _ACEOF
  4620. cat confdefs.h >>conftest.$ac_ext
  4621. cat >>conftest.$ac_ext <<_ACEOF
  4622. /* end confdefs.h. */
  4623. /* Override any gcc2 internal prototype to avoid an error. */
  4624. #ifdef __cplusplus
  4625. extern "C"
  4626. #endif
  4627. /* We use char because int might match the return type of a gcc2
  4628. builtin and then its argument prototype would still apply. */
  4629. char opendir ();
  4630. int
  4631. main ()
  4632. {
  4633. opendir ();
  4634. ;
  4635. return 0;
  4636. }
  4637. _ACEOF
  4638. rm -f conftest.$ac_objext conftest$ac_exeext
  4639. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4640. (eval $ac_link) 2>conftest.er1
  4641. ac_status=$?
  4642. grep -v '^ *+' conftest.er1 >conftest.err
  4643. rm -f conftest.er1
  4644. cat conftest.err >&5
  4645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4646. (exit $ac_status); } &&
  4647. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4649. (eval $ac_try) 2>&5
  4650. ac_status=$?
  4651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4652. (exit $ac_status); }; } &&
  4653. { ac_try='test -s conftest$ac_exeext'
  4654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4655. (eval $ac_try) 2>&5
  4656. ac_status=$?
  4657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4658. (exit $ac_status); }; }; then
  4659. ac_cv_search_opendir="none required"
  4660. else
  4661. echo "$as_me: failed program was:" >&5
  4662. sed 's/^/| /' conftest.$ac_ext >&5
  4663. fi
  4664. rm -f conftest.err conftest.$ac_objext \
  4665. conftest$ac_exeext conftest.$ac_ext
  4666. if test "$ac_cv_search_opendir" = no; then
  4667. for ac_lib in x; do
  4668. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4669. cat >conftest.$ac_ext <<_ACEOF
  4670. /* confdefs.h. */
  4671. _ACEOF
  4672. cat confdefs.h >>conftest.$ac_ext
  4673. cat >>conftest.$ac_ext <<_ACEOF
  4674. /* end confdefs.h. */
  4675. /* Override any gcc2 internal prototype to avoid an error. */
  4676. #ifdef __cplusplus
  4677. extern "C"
  4678. #endif
  4679. /* We use char because int might match the return type of a gcc2
  4680. builtin and then its argument prototype would still apply. */
  4681. char opendir ();
  4682. int
  4683. main ()
  4684. {
  4685. opendir ();
  4686. ;
  4687. return 0;
  4688. }
  4689. _ACEOF
  4690. rm -f conftest.$ac_objext conftest$ac_exeext
  4691. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4692. (eval $ac_link) 2>conftest.er1
  4693. ac_status=$?
  4694. grep -v '^ *+' conftest.er1 >conftest.err
  4695. rm -f conftest.er1
  4696. cat conftest.err >&5
  4697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4698. (exit $ac_status); } &&
  4699. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4701. (eval $ac_try) 2>&5
  4702. ac_status=$?
  4703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); }; } &&
  4705. { ac_try='test -s conftest$ac_exeext'
  4706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4707. (eval $ac_try) 2>&5
  4708. ac_status=$?
  4709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4710. (exit $ac_status); }; }; then
  4711. ac_cv_search_opendir="-l$ac_lib"
  4712. break
  4713. else
  4714. echo "$as_me: failed program was:" >&5
  4715. sed 's/^/| /' conftest.$ac_ext >&5
  4716. fi
  4717. rm -f conftest.err conftest.$ac_objext \
  4718. conftest$ac_exeext conftest.$ac_ext
  4719. done
  4720. fi
  4721. LIBS=$ac_func_search_save_LIBS
  4722. fi
  4723. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4724. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4725. if test "$ac_cv_search_opendir" != no; then
  4726. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4727. fi
  4728. fi
  4729. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4730. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4731. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4732. echo $ECHO_N "(cached) $ECHO_C" >&6
  4733. else
  4734. cat >conftest.$ac_ext <<_ACEOF
  4735. /* confdefs.h. */
  4736. _ACEOF
  4737. cat confdefs.h >>conftest.$ac_ext
  4738. cat >>conftest.$ac_ext <<_ACEOF
  4739. /* end confdefs.h. */
  4740. #include <sys/types.h>
  4741. #include <sys/wait.h>
  4742. #ifndef WEXITSTATUS
  4743. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4744. #endif
  4745. #ifndef WIFEXITED
  4746. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4747. #endif
  4748. int
  4749. main ()
  4750. {
  4751. int s;
  4752. wait (&s);
  4753. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4754. ;
  4755. return 0;
  4756. }
  4757. _ACEOF
  4758. rm -f conftest.$ac_objext
  4759. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4760. (eval $ac_compile) 2>conftest.er1
  4761. ac_status=$?
  4762. grep -v '^ *+' conftest.er1 >conftest.err
  4763. rm -f conftest.er1
  4764. cat conftest.err >&5
  4765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4766. (exit $ac_status); } &&
  4767. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4769. (eval $ac_try) 2>&5
  4770. ac_status=$?
  4771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4772. (exit $ac_status); }; } &&
  4773. { ac_try='test -s conftest.$ac_objext'
  4774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4775. (eval $ac_try) 2>&5
  4776. ac_status=$?
  4777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4778. (exit $ac_status); }; }; then
  4779. ac_cv_header_sys_wait_h=yes
  4780. else
  4781. echo "$as_me: failed program was:" >&5
  4782. sed 's/^/| /' conftest.$ac_ext >&5
  4783. ac_cv_header_sys_wait_h=no
  4784. fi
  4785. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4786. fi
  4787. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4788. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4789. if test $ac_cv_header_sys_wait_h = yes; then
  4790. cat >>confdefs.h <<\_ACEOF
  4791. #define HAVE_SYS_WAIT_H 1
  4792. _ACEOF
  4793. fi
  4794. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4795. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4796. if test "${ac_cv_header_time+set}" = set; then
  4797. echo $ECHO_N "(cached) $ECHO_C" >&6
  4798. else
  4799. cat >conftest.$ac_ext <<_ACEOF
  4800. /* confdefs.h. */
  4801. _ACEOF
  4802. cat confdefs.h >>conftest.$ac_ext
  4803. cat >>conftest.$ac_ext <<_ACEOF
  4804. /* end confdefs.h. */
  4805. #include <sys/types.h>
  4806. #include <sys/time.h>
  4807. #include <time.h>
  4808. int
  4809. main ()
  4810. {
  4811. if ((struct tm *) 0)
  4812. return 0;
  4813. ;
  4814. return 0;
  4815. }
  4816. _ACEOF
  4817. rm -f conftest.$ac_objext
  4818. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4819. (eval $ac_compile) 2>conftest.er1
  4820. ac_status=$?
  4821. grep -v '^ *+' conftest.er1 >conftest.err
  4822. rm -f conftest.er1
  4823. cat conftest.err >&5
  4824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4825. (exit $ac_status); } &&
  4826. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4828. (eval $ac_try) 2>&5
  4829. ac_status=$?
  4830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4831. (exit $ac_status); }; } &&
  4832. { ac_try='test -s conftest.$ac_objext'
  4833. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4834. (eval $ac_try) 2>&5
  4835. ac_status=$?
  4836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4837. (exit $ac_status); }; }; then
  4838. ac_cv_header_time=yes
  4839. else
  4840. echo "$as_me: failed program was:" >&5
  4841. sed 's/^/| /' conftest.$ac_ext >&5
  4842. ac_cv_header_time=no
  4843. fi
  4844. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4845. fi
  4846. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4847. echo "${ECHO_T}$ac_cv_header_time" >&6
  4848. if test $ac_cv_header_time = yes; then
  4849. cat >>confdefs.h <<\_ACEOF
  4850. #define TIME_WITH_SYS_TIME 1
  4851. _ACEOF
  4852. fi
  4853. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4854. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4855. if test "${ac_cv_header_stat_broken+set}" = set; then
  4856. echo $ECHO_N "(cached) $ECHO_C" >&6
  4857. else
  4858. cat >conftest.$ac_ext <<_ACEOF
  4859. /* confdefs.h. */
  4860. _ACEOF
  4861. cat confdefs.h >>conftest.$ac_ext
  4862. cat >>conftest.$ac_ext <<_ACEOF
  4863. /* end confdefs.h. */
  4864. #include <sys/types.h>
  4865. #include <sys/stat.h>
  4866. #if defined(S_ISBLK) && defined(S_IFDIR)
  4867. # if S_ISBLK (S_IFDIR)
  4868. You lose.
  4869. # endif
  4870. #endif
  4871. #if defined(S_ISBLK) && defined(S_IFCHR)
  4872. # if S_ISBLK (S_IFCHR)
  4873. You lose.
  4874. # endif
  4875. #endif
  4876. #if defined(S_ISLNK) && defined(S_IFREG)
  4877. # if S_ISLNK (S_IFREG)
  4878. You lose.
  4879. # endif
  4880. #endif
  4881. #if defined(S_ISSOCK) && defined(S_IFREG)
  4882. # if S_ISSOCK (S_IFREG)
  4883. You lose.
  4884. # endif
  4885. #endif
  4886. _ACEOF
  4887. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4888. $EGREP "You lose" >/dev/null 2>&1; then
  4889. ac_cv_header_stat_broken=yes
  4890. else
  4891. ac_cv_header_stat_broken=no
  4892. fi
  4893. rm -f conftest*
  4894. fi
  4895. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4896. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4897. if test $ac_cv_header_stat_broken = yes; then
  4898. cat >>confdefs.h <<\_ACEOF
  4899. #define STAT_MACROS_BROKEN 1
  4900. _ACEOF
  4901. fi
  4902. #checkpoint
  4903. cat >confcache <<\_ACEOF
  4904. # This file is a shell script that caches the results of configure
  4905. # tests run on this system so they can be shared between configure
  4906. # scripts and configure runs, see configure's option --config-cache.
  4907. # It is not useful on other systems. If it contains results you don't
  4908. # want to keep, you may remove or edit it.
  4909. #
  4910. # config.status only pays attention to the cache file if you give it
  4911. # the --recheck option to rerun configure.
  4912. #
  4913. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4914. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4915. # following values.
  4916. _ACEOF
  4917. # The following way of writing the cache mishandles newlines in values,
  4918. # but we know of no workaround that is simple, portable, and efficient.
  4919. # So, don't put newlines in cache variables' values.
  4920. # Ultrix sh set writes to stderr and can't be redirected directly,
  4921. # and sets the high bit in the cache file unless we assign to the vars.
  4922. {
  4923. (set) 2>&1 |
  4924. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4925. *ac_space=\ *)
  4926. # `set' does not quote correctly, so add quotes (double-quote
  4927. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4928. sed -n \
  4929. "s/'/'\\\\''/g;
  4930. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4931. ;;
  4932. *)
  4933. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4934. sed -n \
  4935. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4936. ;;
  4937. esac;
  4938. } |
  4939. sed '
  4940. t clear
  4941. : clear
  4942. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4943. t end
  4944. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4945. : end' >>confcache
  4946. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4947. if test -w $cache_file; then
  4948. test "x$cache_file" != "x/dev/null"
  4949. cat confcache >$cache_file
  4950. else
  4951. echo "not updating unwritable cache $cache_file"
  4952. fi
  4953. fi
  4954. rm -f confcache
  4955. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4956. do
  4957. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4958. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4959. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4960. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4961. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4962. echo $ECHO_N "(cached) $ECHO_C" >&6
  4963. fi
  4964. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4965. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4966. else
  4967. # Is the header compilable?
  4968. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4969. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4970. cat >conftest.$ac_ext <<_ACEOF
  4971. /* confdefs.h. */
  4972. _ACEOF
  4973. cat confdefs.h >>conftest.$ac_ext
  4974. cat >>conftest.$ac_ext <<_ACEOF
  4975. /* end confdefs.h. */
  4976. $ac_includes_default
  4977. #include <$ac_header>
  4978. _ACEOF
  4979. rm -f conftest.$ac_objext
  4980. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4981. (eval $ac_compile) 2>conftest.er1
  4982. ac_status=$?
  4983. grep -v '^ *+' conftest.er1 >conftest.err
  4984. rm -f conftest.er1
  4985. cat conftest.err >&5
  4986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4987. (exit $ac_status); } &&
  4988. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4990. (eval $ac_try) 2>&5
  4991. ac_status=$?
  4992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4993. (exit $ac_status); }; } &&
  4994. { ac_try='test -s conftest.$ac_objext'
  4995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4996. (eval $ac_try) 2>&5
  4997. ac_status=$?
  4998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4999. (exit $ac_status); }; }; then
  5000. ac_header_compiler=yes
  5001. else
  5002. echo "$as_me: failed program was:" >&5
  5003. sed 's/^/| /' conftest.$ac_ext >&5
  5004. ac_header_compiler=no
  5005. fi
  5006. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5007. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5008. echo "${ECHO_T}$ac_header_compiler" >&6
  5009. # Is the header present?
  5010. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5011. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5012. cat >conftest.$ac_ext <<_ACEOF
  5013. /* confdefs.h. */
  5014. _ACEOF
  5015. cat confdefs.h >>conftest.$ac_ext
  5016. cat >>conftest.$ac_ext <<_ACEOF
  5017. /* end confdefs.h. */
  5018. #include <$ac_header>
  5019. _ACEOF
  5020. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5021. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5022. ac_status=$?
  5023. grep -v '^ *+' conftest.er1 >conftest.err
  5024. rm -f conftest.er1
  5025. cat conftest.err >&5
  5026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5027. (exit $ac_status); } >/dev/null; then
  5028. if test -s conftest.err; then
  5029. ac_cpp_err=$ac_c_preproc_warn_flag
  5030. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5031. else
  5032. ac_cpp_err=
  5033. fi
  5034. else
  5035. ac_cpp_err=yes
  5036. fi
  5037. if test -z "$ac_cpp_err"; then
  5038. ac_header_preproc=yes
  5039. else
  5040. echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. ac_header_preproc=no
  5043. fi
  5044. rm -f conftest.err conftest.$ac_ext
  5045. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5046. echo "${ECHO_T}$ac_header_preproc" >&6
  5047. # So? What about this header?
  5048. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5049. yes:no: )
  5050. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5051. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5052. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5053. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5054. ac_header_preproc=yes
  5055. ;;
  5056. no:yes:* )
  5057. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5058. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5059. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5060. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5061. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5062. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5063. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5064. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5065. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5066. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5067. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5068. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5069. (
  5070. cat <<\_ASBOX
  5071. ## ------------------------------------------ ##
  5072. ## Report this to the AC_PACKAGE_NAME lists. ##
  5073. ## ------------------------------------------ ##
  5074. _ASBOX
  5075. ) |
  5076. sed "s/^/$as_me: WARNING: /" >&2
  5077. ;;
  5078. esac
  5079. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5080. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5081. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5082. echo $ECHO_N "(cached) $ECHO_C" >&6
  5083. else
  5084. eval "$as_ac_Header=\$ac_header_preproc"
  5085. fi
  5086. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5087. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5088. fi
  5089. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5090. cat >>confdefs.h <<_ACEOF
  5091. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5092. _ACEOF
  5093. fi
  5094. done
  5095. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5096. do
  5097. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5098. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5099. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5100. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5101. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5102. echo $ECHO_N "(cached) $ECHO_C" >&6
  5103. fi
  5104. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5105. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5106. else
  5107. # Is the header compilable?
  5108. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5109. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5110. cat >conftest.$ac_ext <<_ACEOF
  5111. /* confdefs.h. */
  5112. _ACEOF
  5113. cat confdefs.h >>conftest.$ac_ext
  5114. cat >>conftest.$ac_ext <<_ACEOF
  5115. /* end confdefs.h. */
  5116. $ac_includes_default
  5117. #include <$ac_header>
  5118. _ACEOF
  5119. rm -f conftest.$ac_objext
  5120. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5121. (eval $ac_compile) 2>conftest.er1
  5122. ac_status=$?
  5123. grep -v '^ *+' conftest.er1 >conftest.err
  5124. rm -f conftest.er1
  5125. cat conftest.err >&5
  5126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5127. (exit $ac_status); } &&
  5128. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5130. (eval $ac_try) 2>&5
  5131. ac_status=$?
  5132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5133. (exit $ac_status); }; } &&
  5134. { ac_try='test -s conftest.$ac_objext'
  5135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5136. (eval $ac_try) 2>&5
  5137. ac_status=$?
  5138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5139. (exit $ac_status); }; }; then
  5140. ac_header_compiler=yes
  5141. else
  5142. echo "$as_me: failed program was:" >&5
  5143. sed 's/^/| /' conftest.$ac_ext >&5
  5144. ac_header_compiler=no
  5145. fi
  5146. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5147. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5148. echo "${ECHO_T}$ac_header_compiler" >&6
  5149. # Is the header present?
  5150. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5151. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5152. cat >conftest.$ac_ext <<_ACEOF
  5153. /* confdefs.h. */
  5154. _ACEOF
  5155. cat confdefs.h >>conftest.$ac_ext
  5156. cat >>conftest.$ac_ext <<_ACEOF
  5157. /* end confdefs.h. */
  5158. #include <$ac_header>
  5159. _ACEOF
  5160. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5161. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5162. ac_status=$?
  5163. grep -v '^ *+' conftest.er1 >conftest.err
  5164. rm -f conftest.er1
  5165. cat conftest.err >&5
  5166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5167. (exit $ac_status); } >/dev/null; then
  5168. if test -s conftest.err; then
  5169. ac_cpp_err=$ac_c_preproc_warn_flag
  5170. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5171. else
  5172. ac_cpp_err=
  5173. fi
  5174. else
  5175. ac_cpp_err=yes
  5176. fi
  5177. if test -z "$ac_cpp_err"; then
  5178. ac_header_preproc=yes
  5179. else
  5180. echo "$as_me: failed program was:" >&5
  5181. sed 's/^/| /' conftest.$ac_ext >&5
  5182. ac_header_preproc=no
  5183. fi
  5184. rm -f conftest.err conftest.$ac_ext
  5185. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5186. echo "${ECHO_T}$ac_header_preproc" >&6
  5187. # So? What about this header?
  5188. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5189. yes:no: )
  5190. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5191. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5192. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5193. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5194. ac_header_preproc=yes
  5195. ;;
  5196. no:yes:* )
  5197. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5198. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5199. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5200. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5201. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5202. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5203. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5204. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5205. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5206. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5207. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5208. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5209. (
  5210. cat <<\_ASBOX
  5211. ## ------------------------------------------ ##
  5212. ## Report this to the AC_PACKAGE_NAME lists. ##
  5213. ## ------------------------------------------ ##
  5214. _ASBOX
  5215. ) |
  5216. sed "s/^/$as_me: WARNING: /" >&2
  5217. ;;
  5218. esac
  5219. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5220. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5221. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5222. echo $ECHO_N "(cached) $ECHO_C" >&6
  5223. else
  5224. eval "$as_ac_Header=\$ac_header_preproc"
  5225. fi
  5226. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5227. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5228. fi
  5229. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5230. cat >>confdefs.h <<_ACEOF
  5231. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5232. _ACEOF
  5233. fi
  5234. done
  5235. #checkpoint
  5236. cat >confcache <<\_ACEOF
  5237. # This file is a shell script that caches the results of configure
  5238. # tests run on this system so they can be shared between configure
  5239. # scripts and configure runs, see configure's option --config-cache.
  5240. # It is not useful on other systems. If it contains results you don't
  5241. # want to keep, you may remove or edit it.
  5242. #
  5243. # config.status only pays attention to the cache file if you give it
  5244. # the --recheck option to rerun configure.
  5245. #
  5246. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5247. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5248. # following values.
  5249. _ACEOF
  5250. # The following way of writing the cache mishandles newlines in values,
  5251. # but we know of no workaround that is simple, portable, and efficient.
  5252. # So, don't put newlines in cache variables' values.
  5253. # Ultrix sh set writes to stderr and can't be redirected directly,
  5254. # and sets the high bit in the cache file unless we assign to the vars.
  5255. {
  5256. (set) 2>&1 |
  5257. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5258. *ac_space=\ *)
  5259. # `set' does not quote correctly, so add quotes (double-quote
  5260. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5261. sed -n \
  5262. "s/'/'\\\\''/g;
  5263. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5264. ;;
  5265. *)
  5266. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5267. sed -n \
  5268. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5269. ;;
  5270. esac;
  5271. } |
  5272. sed '
  5273. t clear
  5274. : clear
  5275. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5276. t end
  5277. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5278. : end' >>confcache
  5279. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5280. if test -w $cache_file; then
  5281. test "x$cache_file" != "x/dev/null"
  5282. cat confcache >$cache_file
  5283. else
  5284. echo "not updating unwritable cache $cache_file"
  5285. fi
  5286. fi
  5287. rm -f confcache
  5288. for ac_header in openssl/ssl.h openssl/crypto.h
  5289. do
  5290. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5291. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5292. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5293. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5294. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5295. echo $ECHO_N "(cached) $ECHO_C" >&6
  5296. fi
  5297. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5298. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5299. else
  5300. # Is the header compilable?
  5301. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5302. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5303. cat >conftest.$ac_ext <<_ACEOF
  5304. /* confdefs.h. */
  5305. _ACEOF
  5306. cat confdefs.h >>conftest.$ac_ext
  5307. cat >>conftest.$ac_ext <<_ACEOF
  5308. /* end confdefs.h. */
  5309. $ac_includes_default
  5310. #include <$ac_header>
  5311. _ACEOF
  5312. rm -f conftest.$ac_objext
  5313. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5314. (eval $ac_compile) 2>conftest.er1
  5315. ac_status=$?
  5316. grep -v '^ *+' conftest.er1 >conftest.err
  5317. rm -f conftest.er1
  5318. cat conftest.err >&5
  5319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5320. (exit $ac_status); } &&
  5321. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5323. (eval $ac_try) 2>&5
  5324. ac_status=$?
  5325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5326. (exit $ac_status); }; } &&
  5327. { ac_try='test -s conftest.$ac_objext'
  5328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5329. (eval $ac_try) 2>&5
  5330. ac_status=$?
  5331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5332. (exit $ac_status); }; }; then
  5333. ac_header_compiler=yes
  5334. else
  5335. echo "$as_me: failed program was:" >&5
  5336. sed 's/^/| /' conftest.$ac_ext >&5
  5337. ac_header_compiler=no
  5338. fi
  5339. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5340. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5341. echo "${ECHO_T}$ac_header_compiler" >&6
  5342. # Is the header present?
  5343. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5344. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5345. cat >conftest.$ac_ext <<_ACEOF
  5346. /* confdefs.h. */
  5347. _ACEOF
  5348. cat confdefs.h >>conftest.$ac_ext
  5349. cat >>conftest.$ac_ext <<_ACEOF
  5350. /* end confdefs.h. */
  5351. #include <$ac_header>
  5352. _ACEOF
  5353. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5354. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5355. ac_status=$?
  5356. grep -v '^ *+' conftest.er1 >conftest.err
  5357. rm -f conftest.er1
  5358. cat conftest.err >&5
  5359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5360. (exit $ac_status); } >/dev/null; then
  5361. if test -s conftest.err; then
  5362. ac_cpp_err=$ac_c_preproc_warn_flag
  5363. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5364. else
  5365. ac_cpp_err=
  5366. fi
  5367. else
  5368. ac_cpp_err=yes
  5369. fi
  5370. if test -z "$ac_cpp_err"; then
  5371. ac_header_preproc=yes
  5372. else
  5373. echo "$as_me: failed program was:" >&5
  5374. sed 's/^/| /' conftest.$ac_ext >&5
  5375. ac_header_preproc=no
  5376. fi
  5377. rm -f conftest.err conftest.$ac_ext
  5378. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5379. echo "${ECHO_T}$ac_header_preproc" >&6
  5380. # So? What about this header?
  5381. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5382. yes:no: )
  5383. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5384. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5385. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5386. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5387. ac_header_preproc=yes
  5388. ;;
  5389. no:yes:* )
  5390. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5391. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5392. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5393. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5394. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5395. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5396. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5397. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5398. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5399. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5400. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5401. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5402. (
  5403. cat <<\_ASBOX
  5404. ## ------------------------------------------ ##
  5405. ## Report this to the AC_PACKAGE_NAME lists. ##
  5406. ## ------------------------------------------ ##
  5407. _ASBOX
  5408. ) |
  5409. sed "s/^/$as_me: WARNING: /" >&2
  5410. ;;
  5411. esac
  5412. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5413. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5414. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5415. echo $ECHO_N "(cached) $ECHO_C" >&6
  5416. else
  5417. eval "$as_ac_Header=\$ac_header_preproc"
  5418. fi
  5419. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5420. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5421. fi
  5422. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5423. cat >>confdefs.h <<_ACEOF
  5424. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5425. _ACEOF
  5426. fi
  5427. done
  5428. for ac_header in zlib.h
  5429. do
  5430. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5431. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5432. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5433. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5434. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5435. echo $ECHO_N "(cached) $ECHO_C" >&6
  5436. fi
  5437. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5438. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5439. else
  5440. # Is the header compilable?
  5441. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5442. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5443. cat >conftest.$ac_ext <<_ACEOF
  5444. /* confdefs.h. */
  5445. _ACEOF
  5446. cat confdefs.h >>conftest.$ac_ext
  5447. cat >>conftest.$ac_ext <<_ACEOF
  5448. /* end confdefs.h. */
  5449. $ac_includes_default
  5450. #include <$ac_header>
  5451. _ACEOF
  5452. rm -f conftest.$ac_objext
  5453. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5454. (eval $ac_compile) 2>conftest.er1
  5455. ac_status=$?
  5456. grep -v '^ *+' conftest.er1 >conftest.err
  5457. rm -f conftest.er1
  5458. cat conftest.err >&5
  5459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5460. (exit $ac_status); } &&
  5461. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5463. (eval $ac_try) 2>&5
  5464. ac_status=$?
  5465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5466. (exit $ac_status); }; } &&
  5467. { ac_try='test -s conftest.$ac_objext'
  5468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5469. (eval $ac_try) 2>&5
  5470. ac_status=$?
  5471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5472. (exit $ac_status); }; }; then
  5473. ac_header_compiler=yes
  5474. else
  5475. echo "$as_me: failed program was:" >&5
  5476. sed 's/^/| /' conftest.$ac_ext >&5
  5477. ac_header_compiler=no
  5478. fi
  5479. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5480. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5481. echo "${ECHO_T}$ac_header_compiler" >&6
  5482. # Is the header present?
  5483. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5484. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5485. cat >conftest.$ac_ext <<_ACEOF
  5486. /* confdefs.h. */
  5487. _ACEOF
  5488. cat confdefs.h >>conftest.$ac_ext
  5489. cat >>conftest.$ac_ext <<_ACEOF
  5490. /* end confdefs.h. */
  5491. #include <$ac_header>
  5492. _ACEOF
  5493. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5494. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5495. ac_status=$?
  5496. grep -v '^ *+' conftest.er1 >conftest.err
  5497. rm -f conftest.er1
  5498. cat conftest.err >&5
  5499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5500. (exit $ac_status); } >/dev/null; then
  5501. if test -s conftest.err; then
  5502. ac_cpp_err=$ac_c_preproc_warn_flag
  5503. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5504. else
  5505. ac_cpp_err=
  5506. fi
  5507. else
  5508. ac_cpp_err=yes
  5509. fi
  5510. if test -z "$ac_cpp_err"; then
  5511. ac_header_preproc=yes
  5512. else
  5513. echo "$as_me: failed program was:" >&5
  5514. sed 's/^/| /' conftest.$ac_ext >&5
  5515. ac_header_preproc=no
  5516. fi
  5517. rm -f conftest.err conftest.$ac_ext
  5518. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5519. echo "${ECHO_T}$ac_header_preproc" >&6
  5520. # So? What about this header?
  5521. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5522. yes:no: )
  5523. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5524. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5525. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5526. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5527. ac_header_preproc=yes
  5528. ;;
  5529. no:yes:* )
  5530. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5531. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5532. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5533. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5534. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5535. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5536. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5537. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5538. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5539. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5540. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5541. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5542. (
  5543. cat <<\_ASBOX
  5544. ## ------------------------------------------ ##
  5545. ## Report this to the AC_PACKAGE_NAME lists. ##
  5546. ## ------------------------------------------ ##
  5547. _ASBOX
  5548. ) |
  5549. sed "s/^/$as_me: WARNING: /" >&2
  5550. ;;
  5551. esac
  5552. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5553. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5554. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5555. echo $ECHO_N "(cached) $ECHO_C" >&6
  5556. else
  5557. eval "$as_ac_Header=\$ac_header_preproc"
  5558. fi
  5559. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5560. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5561. fi
  5562. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5563. cat >>confdefs.h <<_ACEOF
  5564. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5565. _ACEOF
  5566. fi
  5567. done
  5568. if test "x${ZLIB}" = x; then
  5569. cat >&2 <<EOF
  5570. configure: error:
  5571. Your system does not provide a working zlib compression library.
  5572. It is required.
  5573. EOF
  5574. exit 1
  5575. else
  5576. if test "${ac_cv_header_zlib_h}" != yes; then
  5577. cat >&2 <<EOF
  5578. configure: error:
  5579. Your system does not provide the necessary zlib header file.
  5580. It is required.
  5581. EOF
  5582. exit 1
  5583. fi
  5584. fi
  5585. if test "x${SSL}" = x; then
  5586. cat >&2 <<EOF
  5587. configure: error:
  5588. Your system does not provide a working ssl library.
  5589. It is required. Download openssl at www.openssl.org
  5590. EOF
  5591. exit 1
  5592. else
  5593. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5594. cat >&2 <<EOF
  5595. configure: error:
  5596. Your system does not provide the necessary ssl header file.
  5597. It is required. Download openssl at www.openssl.org
  5598. EOF
  5599. exit 1
  5600. fi
  5601. fi
  5602. # Checks for typedefs, structures, and compiler characteristics
  5603. echo "$as_me:$LINENO: checking for pid_t" >&5
  5604. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5605. if test "${ac_cv_type_pid_t+set}" = set; then
  5606. echo $ECHO_N "(cached) $ECHO_C" >&6
  5607. else
  5608. cat >conftest.$ac_ext <<_ACEOF
  5609. /* confdefs.h. */
  5610. _ACEOF
  5611. cat confdefs.h >>conftest.$ac_ext
  5612. cat >>conftest.$ac_ext <<_ACEOF
  5613. /* end confdefs.h. */
  5614. $ac_includes_default
  5615. int
  5616. main ()
  5617. {
  5618. if ((pid_t *) 0)
  5619. return 0;
  5620. if (sizeof (pid_t))
  5621. return 0;
  5622. ;
  5623. return 0;
  5624. }
  5625. _ACEOF
  5626. rm -f conftest.$ac_objext
  5627. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5628. (eval $ac_compile) 2>conftest.er1
  5629. ac_status=$?
  5630. grep -v '^ *+' conftest.er1 >conftest.err
  5631. rm -f conftest.er1
  5632. cat conftest.err >&5
  5633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5634. (exit $ac_status); } &&
  5635. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5637. (eval $ac_try) 2>&5
  5638. ac_status=$?
  5639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5640. (exit $ac_status); }; } &&
  5641. { ac_try='test -s conftest.$ac_objext'
  5642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5643. (eval $ac_try) 2>&5
  5644. ac_status=$?
  5645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5646. (exit $ac_status); }; }; then
  5647. ac_cv_type_pid_t=yes
  5648. else
  5649. echo "$as_me: failed program was:" >&5
  5650. sed 's/^/| /' conftest.$ac_ext >&5
  5651. ac_cv_type_pid_t=no
  5652. fi
  5653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5654. fi
  5655. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5656. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5657. if test $ac_cv_type_pid_t = yes; then
  5658. :
  5659. else
  5660. cat >>confdefs.h <<_ACEOF
  5661. #define pid_t int
  5662. _ACEOF
  5663. fi
  5664. echo "$as_me:$LINENO: checking for size_t" >&5
  5665. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5666. if test "${ac_cv_type_size_t+set}" = set; then
  5667. echo $ECHO_N "(cached) $ECHO_C" >&6
  5668. else
  5669. cat >conftest.$ac_ext <<_ACEOF
  5670. /* confdefs.h. */
  5671. _ACEOF
  5672. cat confdefs.h >>conftest.$ac_ext
  5673. cat >>conftest.$ac_ext <<_ACEOF
  5674. /* end confdefs.h. */
  5675. $ac_includes_default
  5676. int
  5677. main ()
  5678. {
  5679. if ((size_t *) 0)
  5680. return 0;
  5681. if (sizeof (size_t))
  5682. return 0;
  5683. ;
  5684. return 0;
  5685. }
  5686. _ACEOF
  5687. rm -f conftest.$ac_objext
  5688. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5689. (eval $ac_compile) 2>conftest.er1
  5690. ac_status=$?
  5691. grep -v '^ *+' conftest.er1 >conftest.err
  5692. rm -f conftest.er1
  5693. cat conftest.err >&5
  5694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5695. (exit $ac_status); } &&
  5696. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5698. (eval $ac_try) 2>&5
  5699. ac_status=$?
  5700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5701. (exit $ac_status); }; } &&
  5702. { ac_try='test -s conftest.$ac_objext'
  5703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5704. (eval $ac_try) 2>&5
  5705. ac_status=$?
  5706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5707. (exit $ac_status); }; }; then
  5708. ac_cv_type_size_t=yes
  5709. else
  5710. echo "$as_me: failed program was:" >&5
  5711. sed 's/^/| /' conftest.$ac_ext >&5
  5712. ac_cv_type_size_t=no
  5713. fi
  5714. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5715. fi
  5716. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5717. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5718. if test $ac_cv_type_size_t = yes; then
  5719. :
  5720. else
  5721. cat >>confdefs.h <<_ACEOF
  5722. #define size_t unsigned
  5723. _ACEOF
  5724. fi
  5725. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5726. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5727. if test "${ac_cv_type_uid_t+set}" = set; then
  5728. echo $ECHO_N "(cached) $ECHO_C" >&6
  5729. else
  5730. cat >conftest.$ac_ext <<_ACEOF
  5731. /* confdefs.h. */
  5732. _ACEOF
  5733. cat confdefs.h >>conftest.$ac_ext
  5734. cat >>conftest.$ac_ext <<_ACEOF
  5735. /* end confdefs.h. */
  5736. #include <sys/types.h>
  5737. _ACEOF
  5738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5739. $EGREP "uid_t" >/dev/null 2>&1; then
  5740. ac_cv_type_uid_t=yes
  5741. else
  5742. ac_cv_type_uid_t=no
  5743. fi
  5744. rm -f conftest*
  5745. fi
  5746. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5747. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5748. if test $ac_cv_type_uid_t = no; then
  5749. cat >>confdefs.h <<\_ACEOF
  5750. #define uid_t int
  5751. _ACEOF
  5752. cat >>confdefs.h <<\_ACEOF
  5753. #define gid_t int
  5754. _ACEOF
  5755. fi
  5756. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5757. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5758. if test "${ac_cv_c_const+set}" = set; then
  5759. echo $ECHO_N "(cached) $ECHO_C" >&6
  5760. else
  5761. cat >conftest.$ac_ext <<_ACEOF
  5762. /* confdefs.h. */
  5763. _ACEOF
  5764. cat confdefs.h >>conftest.$ac_ext
  5765. cat >>conftest.$ac_ext <<_ACEOF
  5766. /* end confdefs.h. */
  5767. int
  5768. main ()
  5769. {
  5770. /* FIXME: Include the comments suggested by Paul. */
  5771. #ifndef __cplusplus
  5772. /* Ultrix mips cc rejects this. */
  5773. typedef int charset[2];
  5774. const charset x;
  5775. /* SunOS 4.1.1 cc rejects this. */
  5776. char const *const *ccp;
  5777. char **p;
  5778. /* NEC SVR4.0.2 mips cc rejects this. */
  5779. struct point {int x, y;};
  5780. static struct point const zero = {0,0};
  5781. /* AIX XL C 1.02.0.0 rejects this.
  5782. It does not let you subtract one const X* pointer from another in
  5783. an arm of an if-expression whose if-part is not a constant
  5784. expression */
  5785. const char *g = "string";
  5786. ccp = &g + (g ? g-g : 0);
  5787. /* HPUX 7.0 cc rejects these. */
  5788. ++ccp;
  5789. p = (char**) ccp;
  5790. ccp = (char const *const *) p;
  5791. { /* SCO 3.2v4 cc rejects this. */
  5792. char *t;
  5793. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5794. *t++ = 0;
  5795. }
  5796. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5797. int x[] = {25, 17};
  5798. const int *foo = &x[0];
  5799. ++foo;
  5800. }
  5801. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5802. typedef const int *iptr;
  5803. iptr p = 0;
  5804. ++p;
  5805. }
  5806. { /* AIX XL C 1.02.0.0 rejects this saying
  5807. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5808. struct s { int j; const int *ap[3]; };
  5809. struct s *b; b->j = 5;
  5810. }
  5811. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5812. const int foo = 10;
  5813. }
  5814. #endif
  5815. ;
  5816. return 0;
  5817. }
  5818. _ACEOF
  5819. rm -f conftest.$ac_objext
  5820. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5821. (eval $ac_compile) 2>conftest.er1
  5822. ac_status=$?
  5823. grep -v '^ *+' conftest.er1 >conftest.err
  5824. rm -f conftest.er1
  5825. cat conftest.err >&5
  5826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5827. (exit $ac_status); } &&
  5828. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5830. (eval $ac_try) 2>&5
  5831. ac_status=$?
  5832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5833. (exit $ac_status); }; } &&
  5834. { ac_try='test -s conftest.$ac_objext'
  5835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5836. (eval $ac_try) 2>&5
  5837. ac_status=$?
  5838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. (exit $ac_status); }; }; then
  5840. ac_cv_c_const=yes
  5841. else
  5842. echo "$as_me: failed program was:" >&5
  5843. sed 's/^/| /' conftest.$ac_ext >&5
  5844. ac_cv_c_const=no
  5845. fi
  5846. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5847. fi
  5848. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5849. echo "${ECHO_T}$ac_cv_c_const" >&6
  5850. if test $ac_cv_c_const = no; then
  5851. cat >>confdefs.h <<\_ACEOF
  5852. #define const
  5853. _ACEOF
  5854. fi
  5855. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5856. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5857. if test "${ac_cv_c_bigendian+set}" = set; then
  5858. echo $ECHO_N "(cached) $ECHO_C" >&6
  5859. else
  5860. # See if sys/param.h defines the BYTE_ORDER macro.
  5861. cat >conftest.$ac_ext <<_ACEOF
  5862. /* confdefs.h. */
  5863. _ACEOF
  5864. cat confdefs.h >>conftest.$ac_ext
  5865. cat >>conftest.$ac_ext <<_ACEOF
  5866. /* end confdefs.h. */
  5867. #include <sys/types.h>
  5868. #include <sys/param.h>
  5869. int
  5870. main ()
  5871. {
  5872. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5873. bogus endian macros
  5874. #endif
  5875. ;
  5876. return 0;
  5877. }
  5878. _ACEOF
  5879. rm -f conftest.$ac_objext
  5880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5881. (eval $ac_compile) 2>conftest.er1
  5882. ac_status=$?
  5883. grep -v '^ *+' conftest.er1 >conftest.err
  5884. rm -f conftest.er1
  5885. cat conftest.err >&5
  5886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5887. (exit $ac_status); } &&
  5888. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5890. (eval $ac_try) 2>&5
  5891. ac_status=$?
  5892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893. (exit $ac_status); }; } &&
  5894. { ac_try='test -s conftest.$ac_objext'
  5895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5896. (eval $ac_try) 2>&5
  5897. ac_status=$?
  5898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. (exit $ac_status); }; }; then
  5900. # It does; now see whether it defined to BIG_ENDIAN or not.
  5901. cat >conftest.$ac_ext <<_ACEOF
  5902. /* confdefs.h. */
  5903. _ACEOF
  5904. cat confdefs.h >>conftest.$ac_ext
  5905. cat >>conftest.$ac_ext <<_ACEOF
  5906. /* end confdefs.h. */
  5907. #include <sys/types.h>
  5908. #include <sys/param.h>
  5909. int
  5910. main ()
  5911. {
  5912. #if BYTE_ORDER != BIG_ENDIAN
  5913. not big endian
  5914. #endif
  5915. ;
  5916. return 0;
  5917. }
  5918. _ACEOF
  5919. rm -f conftest.$ac_objext
  5920. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5921. (eval $ac_compile) 2>conftest.er1
  5922. ac_status=$?
  5923. grep -v '^ *+' conftest.er1 >conftest.err
  5924. rm -f conftest.er1
  5925. cat conftest.err >&5
  5926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5927. (exit $ac_status); } &&
  5928. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5930. (eval $ac_try) 2>&5
  5931. ac_status=$?
  5932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5933. (exit $ac_status); }; } &&
  5934. { ac_try='test -s conftest.$ac_objext'
  5935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5936. (eval $ac_try) 2>&5
  5937. ac_status=$?
  5938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5939. (exit $ac_status); }; }; then
  5940. ac_cv_c_bigendian=yes
  5941. else
  5942. echo "$as_me: failed program was:" >&5
  5943. sed 's/^/| /' conftest.$ac_ext >&5
  5944. ac_cv_c_bigendian=no
  5945. fi
  5946. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5947. else
  5948. echo "$as_me: failed program was:" >&5
  5949. sed 's/^/| /' conftest.$ac_ext >&5
  5950. # It does not; compile a test program.
  5951. if test "$cross_compiling" = yes; then
  5952. # try to guess the endianness by grepping values into an object file
  5953. ac_cv_c_bigendian=unknown
  5954. cat >conftest.$ac_ext <<_ACEOF
  5955. /* confdefs.h. */
  5956. _ACEOF
  5957. cat confdefs.h >>conftest.$ac_ext
  5958. cat >>conftest.$ac_ext <<_ACEOF
  5959. /* end confdefs.h. */
  5960. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5961. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5962. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5963. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5964. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5965. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5966. int
  5967. main ()
  5968. {
  5969. _ascii (); _ebcdic ();
  5970. ;
  5971. return 0;
  5972. }
  5973. _ACEOF
  5974. rm -f conftest.$ac_objext
  5975. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5976. (eval $ac_compile) 2>conftest.er1
  5977. ac_status=$?
  5978. grep -v '^ *+' conftest.er1 >conftest.err
  5979. rm -f conftest.er1
  5980. cat conftest.err >&5
  5981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5982. (exit $ac_status); } &&
  5983. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5985. (eval $ac_try) 2>&5
  5986. ac_status=$?
  5987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5988. (exit $ac_status); }; } &&
  5989. { ac_try='test -s conftest.$ac_objext'
  5990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5991. (eval $ac_try) 2>&5
  5992. ac_status=$?
  5993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5994. (exit $ac_status); }; }; then
  5995. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5996. ac_cv_c_bigendian=yes
  5997. fi
  5998. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5999. if test "$ac_cv_c_bigendian" = unknown; then
  6000. ac_cv_c_bigendian=no
  6001. else
  6002. # finding both strings is unlikely to happen, but who knows?
  6003. ac_cv_c_bigendian=unknown
  6004. fi
  6005. fi
  6006. else
  6007. echo "$as_me: failed program was:" >&5
  6008. sed 's/^/| /' conftest.$ac_ext >&5
  6009. fi
  6010. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6011. else
  6012. cat >conftest.$ac_ext <<_ACEOF
  6013. /* confdefs.h. */
  6014. _ACEOF
  6015. cat confdefs.h >>conftest.$ac_ext
  6016. cat >>conftest.$ac_ext <<_ACEOF
  6017. /* end confdefs.h. */
  6018. int
  6019. main ()
  6020. {
  6021. /* Are we little or big endian? From Harbison&Steele. */
  6022. union
  6023. {
  6024. long l;
  6025. char c[sizeof (long)];
  6026. } u;
  6027. u.l = 1;
  6028. exit (u.c[sizeof (long) - 1] == 1);
  6029. }
  6030. _ACEOF
  6031. rm -f conftest$ac_exeext
  6032. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6033. (eval $ac_link) 2>&5
  6034. ac_status=$?
  6035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6036. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6038. (eval $ac_try) 2>&5
  6039. ac_status=$?
  6040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6041. (exit $ac_status); }; }; then
  6042. ac_cv_c_bigendian=no
  6043. else
  6044. echo "$as_me: program exited with status $ac_status" >&5
  6045. echo "$as_me: failed program was:" >&5
  6046. sed 's/^/| /' conftest.$ac_ext >&5
  6047. ( exit $ac_status )
  6048. ac_cv_c_bigendian=yes
  6049. fi
  6050. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6051. fi
  6052. fi
  6053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6054. fi
  6055. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6056. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6057. case $ac_cv_c_bigendian in
  6058. yes)
  6059. cat >>confdefs.h <<\_ACEOF
  6060. #define WORDS_BIGENDIAN 1
  6061. _ACEOF
  6062. ;;
  6063. no)
  6064. ;;
  6065. *)
  6066. { { echo "$as_me:$LINENO: error: unknown endianness
  6067. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6068. echo "$as_me: error: unknown endianness
  6069. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6070. { (exit 1); exit 1; }; } ;;
  6071. esac
  6072. echo "$as_me:$LINENO: checking for inline" >&5
  6073. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6074. if test "${ac_cv_c_inline+set}" = set; then
  6075. echo $ECHO_N "(cached) $ECHO_C" >&6
  6076. else
  6077. ac_cv_c_inline=no
  6078. for ac_kw in inline __inline__ __inline; do
  6079. cat >conftest.$ac_ext <<_ACEOF
  6080. /* confdefs.h. */
  6081. _ACEOF
  6082. cat confdefs.h >>conftest.$ac_ext
  6083. cat >>conftest.$ac_ext <<_ACEOF
  6084. /* end confdefs.h. */
  6085. #ifndef __cplusplus
  6086. typedef int foo_t;
  6087. static $ac_kw foo_t static_foo () {return 0; }
  6088. $ac_kw foo_t foo () {return 0; }
  6089. #endif
  6090. _ACEOF
  6091. rm -f conftest.$ac_objext
  6092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6093. (eval $ac_compile) 2>conftest.er1
  6094. ac_status=$?
  6095. grep -v '^ *+' conftest.er1 >conftest.err
  6096. rm -f conftest.er1
  6097. cat conftest.err >&5
  6098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6099. (exit $ac_status); } &&
  6100. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6102. (eval $ac_try) 2>&5
  6103. ac_status=$?
  6104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6105. (exit $ac_status); }; } &&
  6106. { ac_try='test -s conftest.$ac_objext'
  6107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6108. (eval $ac_try) 2>&5
  6109. ac_status=$?
  6110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6111. (exit $ac_status); }; }; then
  6112. ac_cv_c_inline=$ac_kw; break
  6113. else
  6114. echo "$as_me: failed program was:" >&5
  6115. sed 's/^/| /' conftest.$ac_ext >&5
  6116. fi
  6117. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6118. done
  6119. fi
  6120. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6121. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6122. case $ac_cv_c_inline in
  6123. inline | yes) ;;
  6124. *)
  6125. case $ac_cv_c_inline in
  6126. no) ac_val=;;
  6127. *) ac_val=$ac_cv_c_inline;;
  6128. esac
  6129. cat >>confdefs.h <<_ACEOF
  6130. #ifndef __cplusplus
  6131. #define inline $ac_val
  6132. #endif
  6133. _ACEOF
  6134. ;;
  6135. esac
  6136. echo "$as_me:$LINENO: checking for long" >&5
  6137. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6138. if test "${ac_cv_type_long+set}" = set; then
  6139. echo $ECHO_N "(cached) $ECHO_C" >&6
  6140. else
  6141. cat >conftest.$ac_ext <<_ACEOF
  6142. /* confdefs.h. */
  6143. _ACEOF
  6144. cat confdefs.h >>conftest.$ac_ext
  6145. cat >>conftest.$ac_ext <<_ACEOF
  6146. /* end confdefs.h. */
  6147. $ac_includes_default
  6148. int
  6149. main ()
  6150. {
  6151. if ((long *) 0)
  6152. return 0;
  6153. if (sizeof (long))
  6154. return 0;
  6155. ;
  6156. return 0;
  6157. }
  6158. _ACEOF
  6159. rm -f conftest.$ac_objext
  6160. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6161. (eval $ac_compile) 2>conftest.er1
  6162. ac_status=$?
  6163. grep -v '^ *+' conftest.er1 >conftest.err
  6164. rm -f conftest.er1
  6165. cat conftest.err >&5
  6166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6167. (exit $ac_status); } &&
  6168. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6170. (eval $ac_try) 2>&5
  6171. ac_status=$?
  6172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6173. (exit $ac_status); }; } &&
  6174. { ac_try='test -s conftest.$ac_objext'
  6175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6176. (eval $ac_try) 2>&5
  6177. ac_status=$?
  6178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6179. (exit $ac_status); }; }; then
  6180. ac_cv_type_long=yes
  6181. else
  6182. echo "$as_me: failed program was:" >&5
  6183. sed 's/^/| /' conftest.$ac_ext >&5
  6184. ac_cv_type_long=no
  6185. fi
  6186. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6187. fi
  6188. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6189. echo "${ECHO_T}$ac_cv_type_long" >&6
  6190. echo "$as_me:$LINENO: checking size of long" >&5
  6191. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6192. if test "${ac_cv_sizeof_long+set}" = set; then
  6193. echo $ECHO_N "(cached) $ECHO_C" >&6
  6194. else
  6195. if test "$ac_cv_type_long" = yes; then
  6196. # The cast to unsigned long works around a bug in the HP C Compiler
  6197. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6198. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6199. # This bug is HP SR number 8606223364.
  6200. if test "$cross_compiling" = yes; then
  6201. # Depending upon the size, compute the lo and hi bounds.
  6202. cat >conftest.$ac_ext <<_ACEOF
  6203. /* confdefs.h. */
  6204. _ACEOF
  6205. cat confdefs.h >>conftest.$ac_ext
  6206. cat >>conftest.$ac_ext <<_ACEOF
  6207. /* end confdefs.h. */
  6208. $ac_includes_default
  6209. int
  6210. main ()
  6211. {
  6212. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6213. test_array [0] = 0
  6214. ;
  6215. return 0;
  6216. }
  6217. _ACEOF
  6218. rm -f conftest.$ac_objext
  6219. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6220. (eval $ac_compile) 2>conftest.er1
  6221. ac_status=$?
  6222. grep -v '^ *+' conftest.er1 >conftest.err
  6223. rm -f conftest.er1
  6224. cat conftest.err >&5
  6225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6226. (exit $ac_status); } &&
  6227. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6229. (eval $ac_try) 2>&5
  6230. ac_status=$?
  6231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6232. (exit $ac_status); }; } &&
  6233. { ac_try='test -s conftest.$ac_objext'
  6234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6235. (eval $ac_try) 2>&5
  6236. ac_status=$?
  6237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238. (exit $ac_status); }; }; then
  6239. ac_lo=0 ac_mid=0
  6240. while :; do
  6241. cat >conftest.$ac_ext <<_ACEOF
  6242. /* confdefs.h. */
  6243. _ACEOF
  6244. cat confdefs.h >>conftest.$ac_ext
  6245. cat >>conftest.$ac_ext <<_ACEOF
  6246. /* end confdefs.h. */
  6247. $ac_includes_default
  6248. int
  6249. main ()
  6250. {
  6251. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6252. test_array [0] = 0
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. rm -f conftest.$ac_objext
  6258. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6259. (eval $ac_compile) 2>conftest.er1
  6260. ac_status=$?
  6261. grep -v '^ *+' conftest.er1 >conftest.err
  6262. rm -f conftest.er1
  6263. cat conftest.err >&5
  6264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6265. (exit $ac_status); } &&
  6266. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6268. (eval $ac_try) 2>&5
  6269. ac_status=$?
  6270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6271. (exit $ac_status); }; } &&
  6272. { ac_try='test -s conftest.$ac_objext'
  6273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6274. (eval $ac_try) 2>&5
  6275. ac_status=$?
  6276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6277. (exit $ac_status); }; }; then
  6278. ac_hi=$ac_mid; break
  6279. else
  6280. echo "$as_me: failed program was:" >&5
  6281. sed 's/^/| /' conftest.$ac_ext >&5
  6282. ac_lo=`expr $ac_mid + 1`
  6283. if test $ac_lo -le $ac_mid; then
  6284. ac_lo= ac_hi=
  6285. break
  6286. fi
  6287. ac_mid=`expr 2 '*' $ac_mid + 1`
  6288. fi
  6289. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6290. done
  6291. else
  6292. echo "$as_me: failed program was:" >&5
  6293. sed 's/^/| /' conftest.$ac_ext >&5
  6294. cat >conftest.$ac_ext <<_ACEOF
  6295. /* confdefs.h. */
  6296. _ACEOF
  6297. cat confdefs.h >>conftest.$ac_ext
  6298. cat >>conftest.$ac_ext <<_ACEOF
  6299. /* end confdefs.h. */
  6300. $ac_includes_default
  6301. int
  6302. main ()
  6303. {
  6304. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6305. test_array [0] = 0
  6306. ;
  6307. return 0;
  6308. }
  6309. _ACEOF
  6310. rm -f conftest.$ac_objext
  6311. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6312. (eval $ac_compile) 2>conftest.er1
  6313. ac_status=$?
  6314. grep -v '^ *+' conftest.er1 >conftest.err
  6315. rm -f conftest.er1
  6316. cat conftest.err >&5
  6317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6318. (exit $ac_status); } &&
  6319. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6321. (eval $ac_try) 2>&5
  6322. ac_status=$?
  6323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6324. (exit $ac_status); }; } &&
  6325. { ac_try='test -s conftest.$ac_objext'
  6326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6327. (eval $ac_try) 2>&5
  6328. ac_status=$?
  6329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6330. (exit $ac_status); }; }; then
  6331. ac_hi=-1 ac_mid=-1
  6332. while :; do
  6333. cat >conftest.$ac_ext <<_ACEOF
  6334. /* confdefs.h. */
  6335. _ACEOF
  6336. cat confdefs.h >>conftest.$ac_ext
  6337. cat >>conftest.$ac_ext <<_ACEOF
  6338. /* end confdefs.h. */
  6339. $ac_includes_default
  6340. int
  6341. main ()
  6342. {
  6343. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6344. test_array [0] = 0
  6345. ;
  6346. return 0;
  6347. }
  6348. _ACEOF
  6349. rm -f conftest.$ac_objext
  6350. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6351. (eval $ac_compile) 2>conftest.er1
  6352. ac_status=$?
  6353. grep -v '^ *+' conftest.er1 >conftest.err
  6354. rm -f conftest.er1
  6355. cat conftest.err >&5
  6356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6357. (exit $ac_status); } &&
  6358. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6360. (eval $ac_try) 2>&5
  6361. ac_status=$?
  6362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6363. (exit $ac_status); }; } &&
  6364. { ac_try='test -s conftest.$ac_objext'
  6365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6366. (eval $ac_try) 2>&5
  6367. ac_status=$?
  6368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6369. (exit $ac_status); }; }; then
  6370. ac_lo=$ac_mid; break
  6371. else
  6372. echo "$as_me: failed program was:" >&5
  6373. sed 's/^/| /' conftest.$ac_ext >&5
  6374. ac_hi=`expr '(' $ac_mid ')' - 1`
  6375. if test $ac_mid -le $ac_hi; then
  6376. ac_lo= ac_hi=
  6377. break
  6378. fi
  6379. ac_mid=`expr 2 '*' $ac_mid`
  6380. fi
  6381. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6382. done
  6383. else
  6384. echo "$as_me: failed program was:" >&5
  6385. sed 's/^/| /' conftest.$ac_ext >&5
  6386. ac_lo= ac_hi=
  6387. fi
  6388. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6389. fi
  6390. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6391. # Binary search between lo and hi bounds.
  6392. while test "x$ac_lo" != "x$ac_hi"; do
  6393. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6394. cat >conftest.$ac_ext <<_ACEOF
  6395. /* confdefs.h. */
  6396. _ACEOF
  6397. cat confdefs.h >>conftest.$ac_ext
  6398. cat >>conftest.$ac_ext <<_ACEOF
  6399. /* end confdefs.h. */
  6400. $ac_includes_default
  6401. int
  6402. main ()
  6403. {
  6404. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6405. test_array [0] = 0
  6406. ;
  6407. return 0;
  6408. }
  6409. _ACEOF
  6410. rm -f conftest.$ac_objext
  6411. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6412. (eval $ac_compile) 2>conftest.er1
  6413. ac_status=$?
  6414. grep -v '^ *+' conftest.er1 >conftest.err
  6415. rm -f conftest.er1
  6416. cat conftest.err >&5
  6417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6418. (exit $ac_status); } &&
  6419. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6421. (eval $ac_try) 2>&5
  6422. ac_status=$?
  6423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6424. (exit $ac_status); }; } &&
  6425. { ac_try='test -s conftest.$ac_objext'
  6426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6427. (eval $ac_try) 2>&5
  6428. ac_status=$?
  6429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6430. (exit $ac_status); }; }; then
  6431. ac_hi=$ac_mid
  6432. else
  6433. echo "$as_me: failed program was:" >&5
  6434. sed 's/^/| /' conftest.$ac_ext >&5
  6435. ac_lo=`expr '(' $ac_mid ')' + 1`
  6436. fi
  6437. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6438. done
  6439. case $ac_lo in
  6440. ?*) ac_cv_sizeof_long=$ac_lo;;
  6441. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6442. See \`config.log' for more details." >&5
  6443. echo "$as_me: error: cannot compute sizeof (long), 77
  6444. See \`config.log' for more details." >&2;}
  6445. { (exit 1); exit 1; }; } ;;
  6446. esac
  6447. else
  6448. if test "$cross_compiling" = yes; then
  6449. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6450. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6451. { (exit 1); exit 1; }; }
  6452. else
  6453. cat >conftest.$ac_ext <<_ACEOF
  6454. /* confdefs.h. */
  6455. _ACEOF
  6456. cat confdefs.h >>conftest.$ac_ext
  6457. cat >>conftest.$ac_ext <<_ACEOF
  6458. /* end confdefs.h. */
  6459. $ac_includes_default
  6460. long longval () { return (long) (sizeof (long)); }
  6461. unsigned long ulongval () { return (long) (sizeof (long)); }
  6462. #include <stdio.h>
  6463. #include <stdlib.h>
  6464. int
  6465. main ()
  6466. {
  6467. FILE *f = fopen ("conftest.val", "w");
  6468. if (! f)
  6469. exit (1);
  6470. if (((long) (sizeof (long))) < 0)
  6471. {
  6472. long i = longval ();
  6473. if (i != ((long) (sizeof (long))))
  6474. exit (1);
  6475. fprintf (f, "%ld\n", i);
  6476. }
  6477. else
  6478. {
  6479. unsigned long i = ulongval ();
  6480. if (i != ((long) (sizeof (long))))
  6481. exit (1);
  6482. fprintf (f, "%lu\n", i);
  6483. }
  6484. exit (ferror (f) || fclose (f) != 0);
  6485. ;
  6486. return 0;
  6487. }
  6488. _ACEOF
  6489. rm -f conftest$ac_exeext
  6490. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6491. (eval $ac_link) 2>&5
  6492. ac_status=$?
  6493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6494. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6496. (eval $ac_try) 2>&5
  6497. ac_status=$?
  6498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6499. (exit $ac_status); }; }; then
  6500. ac_cv_sizeof_long=`cat conftest.val`
  6501. else
  6502. echo "$as_me: program exited with status $ac_status" >&5
  6503. echo "$as_me: failed program was:" >&5
  6504. sed 's/^/| /' conftest.$ac_ext >&5
  6505. ( exit $ac_status )
  6506. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6507. See \`config.log' for more details." >&5
  6508. echo "$as_me: error: cannot compute sizeof (long), 77
  6509. See \`config.log' for more details." >&2;}
  6510. { (exit 1); exit 1; }; }
  6511. fi
  6512. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6513. fi
  6514. fi
  6515. rm -f conftest.val
  6516. else
  6517. ac_cv_sizeof_long=0
  6518. fi
  6519. fi
  6520. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6521. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6522. cat >>confdefs.h <<_ACEOF
  6523. #define SIZEOF_LONG $ac_cv_sizeof_long
  6524. _ACEOF
  6525. echo "$as_me:$LINENO: checking for int" >&5
  6526. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6527. if test "${ac_cv_type_int+set}" = set; then
  6528. echo $ECHO_N "(cached) $ECHO_C" >&6
  6529. else
  6530. cat >conftest.$ac_ext <<_ACEOF
  6531. /* confdefs.h. */
  6532. _ACEOF
  6533. cat confdefs.h >>conftest.$ac_ext
  6534. cat >>conftest.$ac_ext <<_ACEOF
  6535. /* end confdefs.h. */
  6536. $ac_includes_default
  6537. int
  6538. main ()
  6539. {
  6540. if ((int *) 0)
  6541. return 0;
  6542. if (sizeof (int))
  6543. return 0;
  6544. ;
  6545. return 0;
  6546. }
  6547. _ACEOF
  6548. rm -f conftest.$ac_objext
  6549. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6550. (eval $ac_compile) 2>conftest.er1
  6551. ac_status=$?
  6552. grep -v '^ *+' conftest.er1 >conftest.err
  6553. rm -f conftest.er1
  6554. cat conftest.err >&5
  6555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6556. (exit $ac_status); } &&
  6557. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6559. (eval $ac_try) 2>&5
  6560. ac_status=$?
  6561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6562. (exit $ac_status); }; } &&
  6563. { ac_try='test -s conftest.$ac_objext'
  6564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6565. (eval $ac_try) 2>&5
  6566. ac_status=$?
  6567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6568. (exit $ac_status); }; }; then
  6569. ac_cv_type_int=yes
  6570. else
  6571. echo "$as_me: failed program was:" >&5
  6572. sed 's/^/| /' conftest.$ac_ext >&5
  6573. ac_cv_type_int=no
  6574. fi
  6575. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6576. fi
  6577. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6578. echo "${ECHO_T}$ac_cv_type_int" >&6
  6579. echo "$as_me:$LINENO: checking size of int" >&5
  6580. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6581. if test "${ac_cv_sizeof_int+set}" = set; then
  6582. echo $ECHO_N "(cached) $ECHO_C" >&6
  6583. else
  6584. if test "$ac_cv_type_int" = yes; then
  6585. # The cast to unsigned long works around a bug in the HP C Compiler
  6586. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6587. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6588. # This bug is HP SR number 8606223364.
  6589. if test "$cross_compiling" = yes; then
  6590. # Depending upon the size, compute the lo and hi bounds.
  6591. cat >conftest.$ac_ext <<_ACEOF
  6592. /* confdefs.h. */
  6593. _ACEOF
  6594. cat confdefs.h >>conftest.$ac_ext
  6595. cat >>conftest.$ac_ext <<_ACEOF
  6596. /* end confdefs.h. */
  6597. $ac_includes_default
  6598. int
  6599. main ()
  6600. {
  6601. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6602. test_array [0] = 0
  6603. ;
  6604. return 0;
  6605. }
  6606. _ACEOF
  6607. rm -f conftest.$ac_objext
  6608. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6609. (eval $ac_compile) 2>conftest.er1
  6610. ac_status=$?
  6611. grep -v '^ *+' conftest.er1 >conftest.err
  6612. rm -f conftest.er1
  6613. cat conftest.err >&5
  6614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6615. (exit $ac_status); } &&
  6616. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6618. (eval $ac_try) 2>&5
  6619. ac_status=$?
  6620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); }; } &&
  6622. { ac_try='test -s conftest.$ac_objext'
  6623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6624. (eval $ac_try) 2>&5
  6625. ac_status=$?
  6626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6627. (exit $ac_status); }; }; then
  6628. ac_lo=0 ac_mid=0
  6629. while :; do
  6630. cat >conftest.$ac_ext <<_ACEOF
  6631. /* confdefs.h. */
  6632. _ACEOF
  6633. cat confdefs.h >>conftest.$ac_ext
  6634. cat >>conftest.$ac_ext <<_ACEOF
  6635. /* end confdefs.h. */
  6636. $ac_includes_default
  6637. int
  6638. main ()
  6639. {
  6640. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6641. test_array [0] = 0
  6642. ;
  6643. return 0;
  6644. }
  6645. _ACEOF
  6646. rm -f conftest.$ac_objext
  6647. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6648. (eval $ac_compile) 2>conftest.er1
  6649. ac_status=$?
  6650. grep -v '^ *+' conftest.er1 >conftest.err
  6651. rm -f conftest.er1
  6652. cat conftest.err >&5
  6653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6654. (exit $ac_status); } &&
  6655. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6657. (eval $ac_try) 2>&5
  6658. ac_status=$?
  6659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6660. (exit $ac_status); }; } &&
  6661. { ac_try='test -s conftest.$ac_objext'
  6662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6663. (eval $ac_try) 2>&5
  6664. ac_status=$?
  6665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6666. (exit $ac_status); }; }; then
  6667. ac_hi=$ac_mid; break
  6668. else
  6669. echo "$as_me: failed program was:" >&5
  6670. sed 's/^/| /' conftest.$ac_ext >&5
  6671. ac_lo=`expr $ac_mid + 1`
  6672. if test $ac_lo -le $ac_mid; then
  6673. ac_lo= ac_hi=
  6674. break
  6675. fi
  6676. ac_mid=`expr 2 '*' $ac_mid + 1`
  6677. fi
  6678. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6679. done
  6680. else
  6681. echo "$as_me: failed program was:" >&5
  6682. sed 's/^/| /' conftest.$ac_ext >&5
  6683. cat >conftest.$ac_ext <<_ACEOF
  6684. /* confdefs.h. */
  6685. _ACEOF
  6686. cat confdefs.h >>conftest.$ac_ext
  6687. cat >>conftest.$ac_ext <<_ACEOF
  6688. /* end confdefs.h. */
  6689. $ac_includes_default
  6690. int
  6691. main ()
  6692. {
  6693. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6694. test_array [0] = 0
  6695. ;
  6696. return 0;
  6697. }
  6698. _ACEOF
  6699. rm -f conftest.$ac_objext
  6700. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6701. (eval $ac_compile) 2>conftest.er1
  6702. ac_status=$?
  6703. grep -v '^ *+' conftest.er1 >conftest.err
  6704. rm -f conftest.er1
  6705. cat conftest.err >&5
  6706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6707. (exit $ac_status); } &&
  6708. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6710. (eval $ac_try) 2>&5
  6711. ac_status=$?
  6712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6713. (exit $ac_status); }; } &&
  6714. { ac_try='test -s conftest.$ac_objext'
  6715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6716. (eval $ac_try) 2>&5
  6717. ac_status=$?
  6718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6719. (exit $ac_status); }; }; then
  6720. ac_hi=-1 ac_mid=-1
  6721. while :; do
  6722. cat >conftest.$ac_ext <<_ACEOF
  6723. /* confdefs.h. */
  6724. _ACEOF
  6725. cat confdefs.h >>conftest.$ac_ext
  6726. cat >>conftest.$ac_ext <<_ACEOF
  6727. /* end confdefs.h. */
  6728. $ac_includes_default
  6729. int
  6730. main ()
  6731. {
  6732. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6733. test_array [0] = 0
  6734. ;
  6735. return 0;
  6736. }
  6737. _ACEOF
  6738. rm -f conftest.$ac_objext
  6739. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6740. (eval $ac_compile) 2>conftest.er1
  6741. ac_status=$?
  6742. grep -v '^ *+' conftest.er1 >conftest.err
  6743. rm -f conftest.er1
  6744. cat conftest.err >&5
  6745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6746. (exit $ac_status); } &&
  6747. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6749. (eval $ac_try) 2>&5
  6750. ac_status=$?
  6751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6752. (exit $ac_status); }; } &&
  6753. { ac_try='test -s conftest.$ac_objext'
  6754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6755. (eval $ac_try) 2>&5
  6756. ac_status=$?
  6757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6758. (exit $ac_status); }; }; then
  6759. ac_lo=$ac_mid; break
  6760. else
  6761. echo "$as_me: failed program was:" >&5
  6762. sed 's/^/| /' conftest.$ac_ext >&5
  6763. ac_hi=`expr '(' $ac_mid ')' - 1`
  6764. if test $ac_mid -le $ac_hi; then
  6765. ac_lo= ac_hi=
  6766. break
  6767. fi
  6768. ac_mid=`expr 2 '*' $ac_mid`
  6769. fi
  6770. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6771. done
  6772. else
  6773. echo "$as_me: failed program was:" >&5
  6774. sed 's/^/| /' conftest.$ac_ext >&5
  6775. ac_lo= ac_hi=
  6776. fi
  6777. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6778. fi
  6779. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6780. # Binary search between lo and hi bounds.
  6781. while test "x$ac_lo" != "x$ac_hi"; do
  6782. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6783. cat >conftest.$ac_ext <<_ACEOF
  6784. /* confdefs.h. */
  6785. _ACEOF
  6786. cat confdefs.h >>conftest.$ac_ext
  6787. cat >>conftest.$ac_ext <<_ACEOF
  6788. /* end confdefs.h. */
  6789. $ac_includes_default
  6790. int
  6791. main ()
  6792. {
  6793. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6794. test_array [0] = 0
  6795. ;
  6796. return 0;
  6797. }
  6798. _ACEOF
  6799. rm -f conftest.$ac_objext
  6800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6801. (eval $ac_compile) 2>conftest.er1
  6802. ac_status=$?
  6803. grep -v '^ *+' conftest.er1 >conftest.err
  6804. rm -f conftest.er1
  6805. cat conftest.err >&5
  6806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6807. (exit $ac_status); } &&
  6808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6810. (eval $ac_try) 2>&5
  6811. ac_status=$?
  6812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6813. (exit $ac_status); }; } &&
  6814. { ac_try='test -s conftest.$ac_objext'
  6815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6816. (eval $ac_try) 2>&5
  6817. ac_status=$?
  6818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6819. (exit $ac_status); }; }; then
  6820. ac_hi=$ac_mid
  6821. else
  6822. echo "$as_me: failed program was:" >&5
  6823. sed 's/^/| /' conftest.$ac_ext >&5
  6824. ac_lo=`expr '(' $ac_mid ')' + 1`
  6825. fi
  6826. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6827. done
  6828. case $ac_lo in
  6829. ?*) ac_cv_sizeof_int=$ac_lo;;
  6830. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6831. See \`config.log' for more details." >&5
  6832. echo "$as_me: error: cannot compute sizeof (int), 77
  6833. See \`config.log' for more details." >&2;}
  6834. { (exit 1); exit 1; }; } ;;
  6835. esac
  6836. else
  6837. if test "$cross_compiling" = yes; then
  6838. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6839. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6840. { (exit 1); exit 1; }; }
  6841. else
  6842. cat >conftest.$ac_ext <<_ACEOF
  6843. /* confdefs.h. */
  6844. _ACEOF
  6845. cat confdefs.h >>conftest.$ac_ext
  6846. cat >>conftest.$ac_ext <<_ACEOF
  6847. /* end confdefs.h. */
  6848. $ac_includes_default
  6849. long longval () { return (long) (sizeof (int)); }
  6850. unsigned long ulongval () { return (long) (sizeof (int)); }
  6851. #include <stdio.h>
  6852. #include <stdlib.h>
  6853. int
  6854. main ()
  6855. {
  6856. FILE *f = fopen ("conftest.val", "w");
  6857. if (! f)
  6858. exit (1);
  6859. if (((long) (sizeof (int))) < 0)
  6860. {
  6861. long i = longval ();
  6862. if (i != ((long) (sizeof (int))))
  6863. exit (1);
  6864. fprintf (f, "%ld\n", i);
  6865. }
  6866. else
  6867. {
  6868. unsigned long i = ulongval ();
  6869. if (i != ((long) (sizeof (int))))
  6870. exit (1);
  6871. fprintf (f, "%lu\n", i);
  6872. }
  6873. exit (ferror (f) || fclose (f) != 0);
  6874. ;
  6875. return 0;
  6876. }
  6877. _ACEOF
  6878. rm -f conftest$ac_exeext
  6879. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6880. (eval $ac_link) 2>&5
  6881. ac_status=$?
  6882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6883. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6885. (eval $ac_try) 2>&5
  6886. ac_status=$?
  6887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6888. (exit $ac_status); }; }; then
  6889. ac_cv_sizeof_int=`cat conftest.val`
  6890. else
  6891. echo "$as_me: program exited with status $ac_status" >&5
  6892. echo "$as_me: failed program was:" >&5
  6893. sed 's/^/| /' conftest.$ac_ext >&5
  6894. ( exit $ac_status )
  6895. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6896. See \`config.log' for more details." >&5
  6897. echo "$as_me: error: cannot compute sizeof (int), 77
  6898. See \`config.log' for more details." >&2;}
  6899. { (exit 1); exit 1; }; }
  6900. fi
  6901. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6902. fi
  6903. fi
  6904. rm -f conftest.val
  6905. else
  6906. ac_cv_sizeof_int=0
  6907. fi
  6908. fi
  6909. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6910. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6911. cat >>confdefs.h <<_ACEOF
  6912. #define SIZEOF_INT $ac_cv_sizeof_int
  6913. _ACEOF
  6914. #checkpoint
  6915. cat >confcache <<\_ACEOF
  6916. # This file is a shell script that caches the results of configure
  6917. # tests run on this system so they can be shared between configure
  6918. # scripts and configure runs, see configure's option --config-cache.
  6919. # It is not useful on other systems. If it contains results you don't
  6920. # want to keep, you may remove or edit it.
  6921. #
  6922. # config.status only pays attention to the cache file if you give it
  6923. # the --recheck option to rerun configure.
  6924. #
  6925. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6926. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6927. # following values.
  6928. _ACEOF
  6929. # The following way of writing the cache mishandles newlines in values,
  6930. # but we know of no workaround that is simple, portable, and efficient.
  6931. # So, don't put newlines in cache variables' values.
  6932. # Ultrix sh set writes to stderr and can't be redirected directly,
  6933. # and sets the high bit in the cache file unless we assign to the vars.
  6934. {
  6935. (set) 2>&1 |
  6936. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6937. *ac_space=\ *)
  6938. # `set' does not quote correctly, so add quotes (double-quote
  6939. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6940. sed -n \
  6941. "s/'/'\\\\''/g;
  6942. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6943. ;;
  6944. *)
  6945. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6946. sed -n \
  6947. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6948. ;;
  6949. esac;
  6950. } |
  6951. sed '
  6952. t clear
  6953. : clear
  6954. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6955. t end
  6956. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6957. : end' >>confcache
  6958. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6959. if test -w $cache_file; then
  6960. test "x$cache_file" != "x/dev/null"
  6961. cat confcache >$cache_file
  6962. else
  6963. echo "not updating unwritable cache $cache_file"
  6964. fi
  6965. fi
  6966. rm -f confcache
  6967. echo "$as_me:$LINENO: checking for working volatile" >&5
  6968. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  6969. if test "${ac_cv_c_volatile+set}" = set; then
  6970. echo $ECHO_N "(cached) $ECHO_C" >&6
  6971. else
  6972. cat >conftest.$ac_ext <<_ACEOF
  6973. /* confdefs.h. */
  6974. _ACEOF
  6975. cat confdefs.h >>conftest.$ac_ext
  6976. cat >>conftest.$ac_ext <<_ACEOF
  6977. /* end confdefs.h. */
  6978. int
  6979. main ()
  6980. {
  6981. volatile int x;
  6982. int * volatile y;
  6983. ;
  6984. return 0;
  6985. }
  6986. _ACEOF
  6987. rm -f conftest.$ac_objext
  6988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6989. (eval $ac_compile) 2>conftest.er1
  6990. ac_status=$?
  6991. grep -v '^ *+' conftest.er1 >conftest.err
  6992. rm -f conftest.er1
  6993. cat conftest.err >&5
  6994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6995. (exit $ac_status); } &&
  6996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6998. (eval $ac_try) 2>&5
  6999. ac_status=$?
  7000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7001. (exit $ac_status); }; } &&
  7002. { ac_try='test -s conftest.$ac_objext'
  7003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7004. (eval $ac_try) 2>&5
  7005. ac_status=$?
  7006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7007. (exit $ac_status); }; }; then
  7008. ac_cv_c_volatile=yes
  7009. else
  7010. echo "$as_me: failed program was:" >&5
  7011. sed 's/^/| /' conftest.$ac_ext >&5
  7012. ac_cv_c_volatile=no
  7013. fi
  7014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7015. fi
  7016. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7017. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7018. if test $ac_cv_c_volatile = no; then
  7019. cat >>confdefs.h <<\_ACEOF
  7020. #define volatile
  7021. _ACEOF
  7022. fi
  7023. if test $ac_cv_c_compiler_gnu = yes; then
  7024. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7025. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7026. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7027. echo $ECHO_N "(cached) $ECHO_C" >&6
  7028. else
  7029. ac_pattern="Autoconf.*'x'"
  7030. cat >conftest.$ac_ext <<_ACEOF
  7031. /* confdefs.h. */
  7032. _ACEOF
  7033. cat confdefs.h >>conftest.$ac_ext
  7034. cat >>conftest.$ac_ext <<_ACEOF
  7035. /* end confdefs.h. */
  7036. #include <sgtty.h>
  7037. Autoconf TIOCGETP
  7038. _ACEOF
  7039. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7040. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7041. ac_cv_prog_gcc_traditional=yes
  7042. else
  7043. ac_cv_prog_gcc_traditional=no
  7044. fi
  7045. rm -f conftest*
  7046. if test $ac_cv_prog_gcc_traditional = no; then
  7047. cat >conftest.$ac_ext <<_ACEOF
  7048. /* confdefs.h. */
  7049. _ACEOF
  7050. cat confdefs.h >>conftest.$ac_ext
  7051. cat >>conftest.$ac_ext <<_ACEOF
  7052. /* end confdefs.h. */
  7053. #include <termio.h>
  7054. Autoconf TCGETA
  7055. _ACEOF
  7056. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7057. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7058. ac_cv_prog_gcc_traditional=yes
  7059. fi
  7060. rm -f conftest*
  7061. fi
  7062. fi
  7063. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7064. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7065. if test $ac_cv_prog_gcc_traditional = yes; then
  7066. CC="$CC -traditional"
  7067. fi
  7068. fi
  7069. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7070. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7071. if test "${ac_cv_struct_tm+set}" = set; then
  7072. echo $ECHO_N "(cached) $ECHO_C" >&6
  7073. else
  7074. cat >conftest.$ac_ext <<_ACEOF
  7075. /* confdefs.h. */
  7076. _ACEOF
  7077. cat confdefs.h >>conftest.$ac_ext
  7078. cat >>conftest.$ac_ext <<_ACEOF
  7079. /* end confdefs.h. */
  7080. #include <sys/types.h>
  7081. #include <time.h>
  7082. int
  7083. main ()
  7084. {
  7085. struct tm *tp; tp->tm_sec;
  7086. ;
  7087. return 0;
  7088. }
  7089. _ACEOF
  7090. rm -f conftest.$ac_objext
  7091. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7092. (eval $ac_compile) 2>conftest.er1
  7093. ac_status=$?
  7094. grep -v '^ *+' conftest.er1 >conftest.err
  7095. rm -f conftest.er1
  7096. cat conftest.err >&5
  7097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7098. (exit $ac_status); } &&
  7099. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7101. (eval $ac_try) 2>&5
  7102. ac_status=$?
  7103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7104. (exit $ac_status); }; } &&
  7105. { ac_try='test -s conftest.$ac_objext'
  7106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7107. (eval $ac_try) 2>&5
  7108. ac_status=$?
  7109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7110. (exit $ac_status); }; }; then
  7111. ac_cv_struct_tm=time.h
  7112. else
  7113. echo "$as_me: failed program was:" >&5
  7114. sed 's/^/| /' conftest.$ac_ext >&5
  7115. ac_cv_struct_tm=sys/time.h
  7116. fi
  7117. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7118. fi
  7119. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7120. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7121. if test $ac_cv_struct_tm = sys/time.h; then
  7122. cat >>confdefs.h <<\_ACEOF
  7123. #define TM_IN_SYS_TIME 1
  7124. _ACEOF
  7125. fi
  7126. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7127. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7128. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7129. echo $ECHO_N "(cached) $ECHO_C" >&6
  7130. else
  7131. cat >conftest.$ac_ext <<_ACEOF
  7132. /* confdefs.h. */
  7133. _ACEOF
  7134. cat confdefs.h >>conftest.$ac_ext
  7135. cat >>conftest.$ac_ext <<_ACEOF
  7136. /* end confdefs.h. */
  7137. #include <sys/types.h>
  7138. #include <$ac_cv_struct_tm>
  7139. int
  7140. main ()
  7141. {
  7142. static struct tm ac_aggr;
  7143. if (ac_aggr.tm_zone)
  7144. return 0;
  7145. ;
  7146. return 0;
  7147. }
  7148. _ACEOF
  7149. rm -f conftest.$ac_objext
  7150. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7151. (eval $ac_compile) 2>conftest.er1
  7152. ac_status=$?
  7153. grep -v '^ *+' conftest.er1 >conftest.err
  7154. rm -f conftest.er1
  7155. cat conftest.err >&5
  7156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7157. (exit $ac_status); } &&
  7158. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7160. (eval $ac_try) 2>&5
  7161. ac_status=$?
  7162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7163. (exit $ac_status); }; } &&
  7164. { ac_try='test -s conftest.$ac_objext'
  7165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7166. (eval $ac_try) 2>&5
  7167. ac_status=$?
  7168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7169. (exit $ac_status); }; }; then
  7170. ac_cv_member_struct_tm_tm_zone=yes
  7171. else
  7172. echo "$as_me: failed program was:" >&5
  7173. sed 's/^/| /' conftest.$ac_ext >&5
  7174. cat >conftest.$ac_ext <<_ACEOF
  7175. /* confdefs.h. */
  7176. _ACEOF
  7177. cat confdefs.h >>conftest.$ac_ext
  7178. cat >>conftest.$ac_ext <<_ACEOF
  7179. /* end confdefs.h. */
  7180. #include <sys/types.h>
  7181. #include <$ac_cv_struct_tm>
  7182. int
  7183. main ()
  7184. {
  7185. static struct tm ac_aggr;
  7186. if (sizeof ac_aggr.tm_zone)
  7187. return 0;
  7188. ;
  7189. return 0;
  7190. }
  7191. _ACEOF
  7192. rm -f conftest.$ac_objext
  7193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7194. (eval $ac_compile) 2>conftest.er1
  7195. ac_status=$?
  7196. grep -v '^ *+' conftest.er1 >conftest.err
  7197. rm -f conftest.er1
  7198. cat conftest.err >&5
  7199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. (exit $ac_status); } &&
  7201. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7203. (eval $ac_try) 2>&5
  7204. ac_status=$?
  7205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7206. (exit $ac_status); }; } &&
  7207. { ac_try='test -s conftest.$ac_objext'
  7208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7209. (eval $ac_try) 2>&5
  7210. ac_status=$?
  7211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7212. (exit $ac_status); }; }; then
  7213. ac_cv_member_struct_tm_tm_zone=yes
  7214. else
  7215. echo "$as_me: failed program was:" >&5
  7216. sed 's/^/| /' conftest.$ac_ext >&5
  7217. ac_cv_member_struct_tm_tm_zone=no
  7218. fi
  7219. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7220. fi
  7221. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7222. fi
  7223. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7224. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7225. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7226. cat >>confdefs.h <<_ACEOF
  7227. #define HAVE_STRUCT_TM_TM_ZONE 1
  7228. _ACEOF
  7229. fi
  7230. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7231. cat >>confdefs.h <<\_ACEOF
  7232. #define HAVE_TM_ZONE 1
  7233. _ACEOF
  7234. else
  7235. echo "$as_me:$LINENO: checking for tzname" >&5
  7236. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7237. if test "${ac_cv_var_tzname+set}" = set; then
  7238. echo $ECHO_N "(cached) $ECHO_C" >&6
  7239. else
  7240. cat >conftest.$ac_ext <<_ACEOF
  7241. /* confdefs.h. */
  7242. _ACEOF
  7243. cat confdefs.h >>conftest.$ac_ext
  7244. cat >>conftest.$ac_ext <<_ACEOF
  7245. /* end confdefs.h. */
  7246. #include <time.h>
  7247. #ifndef tzname /* For SGI. */
  7248. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7249. #endif
  7250. int
  7251. main ()
  7252. {
  7253. atoi(*tzname);
  7254. ;
  7255. return 0;
  7256. }
  7257. _ACEOF
  7258. rm -f conftest.$ac_objext conftest$ac_exeext
  7259. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7260. (eval $ac_link) 2>conftest.er1
  7261. ac_status=$?
  7262. grep -v '^ *+' conftest.er1 >conftest.err
  7263. rm -f conftest.er1
  7264. cat conftest.err >&5
  7265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7266. (exit $ac_status); } &&
  7267. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7269. (eval $ac_try) 2>&5
  7270. ac_status=$?
  7271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7272. (exit $ac_status); }; } &&
  7273. { ac_try='test -s conftest$ac_exeext'
  7274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7275. (eval $ac_try) 2>&5
  7276. ac_status=$?
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. (exit $ac_status); }; }; then
  7279. ac_cv_var_tzname=yes
  7280. else
  7281. echo "$as_me: failed program was:" >&5
  7282. sed 's/^/| /' conftest.$ac_ext >&5
  7283. ac_cv_var_tzname=no
  7284. fi
  7285. rm -f conftest.err conftest.$ac_objext \
  7286. conftest$ac_exeext conftest.$ac_ext
  7287. fi
  7288. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7289. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7290. if test $ac_cv_var_tzname = yes; then
  7291. cat >>confdefs.h <<\_ACEOF
  7292. #define HAVE_TZNAME 1
  7293. _ACEOF
  7294. fi
  7295. fi
  7296. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7297. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7298. if test "${ac_cv_struct_tm+set}" = set; then
  7299. echo $ECHO_N "(cached) $ECHO_C" >&6
  7300. else
  7301. cat >conftest.$ac_ext <<_ACEOF
  7302. /* confdefs.h. */
  7303. _ACEOF
  7304. cat confdefs.h >>conftest.$ac_ext
  7305. cat >>conftest.$ac_ext <<_ACEOF
  7306. /* end confdefs.h. */
  7307. #include <sys/types.h>
  7308. #include <time.h>
  7309. int
  7310. main ()
  7311. {
  7312. struct tm *tp; tp->tm_sec;
  7313. ;
  7314. return 0;
  7315. }
  7316. _ACEOF
  7317. rm -f conftest.$ac_objext
  7318. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7319. (eval $ac_compile) 2>conftest.er1
  7320. ac_status=$?
  7321. grep -v '^ *+' conftest.er1 >conftest.err
  7322. rm -f conftest.er1
  7323. cat conftest.err >&5
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. (exit $ac_status); } &&
  7326. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7328. (eval $ac_try) 2>&5
  7329. ac_status=$?
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. (exit $ac_status); }; } &&
  7332. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  7338. ac_cv_struct_tm=time.h
  7339. else
  7340. echo "$as_me: failed program was:" >&5
  7341. sed 's/^/| /' conftest.$ac_ext >&5
  7342. ac_cv_struct_tm=sys/time.h
  7343. fi
  7344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7345. fi
  7346. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7347. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7348. if test $ac_cv_struct_tm = sys/time.h; then
  7349. cat >>confdefs.h <<\_ACEOF
  7350. #define TM_IN_SYS_TIME 1
  7351. _ACEOF
  7352. fi
  7353. #checkpoint
  7354. cat >confcache <<\_ACEOF
  7355. # This file is a shell script that caches the results of configure
  7356. # tests run on this system so they can be shared between configure
  7357. # scripts and configure runs, see configure's option --config-cache.
  7358. # It is not useful on other systems. If it contains results you don't
  7359. # want to keep, you may remove or edit it.
  7360. #
  7361. # config.status only pays attention to the cache file if you give it
  7362. # the --recheck option to rerun configure.
  7363. #
  7364. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7365. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7366. # following values.
  7367. _ACEOF
  7368. # The following way of writing the cache mishandles newlines in values,
  7369. # but we know of no workaround that is simple, portable, and efficient.
  7370. # So, don't put newlines in cache variables' values.
  7371. # Ultrix sh set writes to stderr and can't be redirected directly,
  7372. # and sets the high bit in the cache file unless we assign to the vars.
  7373. {
  7374. (set) 2>&1 |
  7375. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7376. *ac_space=\ *)
  7377. # `set' does not quote correctly, so add quotes (double-quote
  7378. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7379. sed -n \
  7380. "s/'/'\\\\''/g;
  7381. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7382. ;;
  7383. *)
  7384. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7385. sed -n \
  7386. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7387. ;;
  7388. esac;
  7389. } |
  7390. sed '
  7391. t clear
  7392. : clear
  7393. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7394. t end
  7395. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7396. : end' >>confcache
  7397. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7398. if test -w $cache_file; then
  7399. test "x$cache_file" != "x/dev/null"
  7400. cat confcache >$cache_file
  7401. else
  7402. echo "not updating unwritable cache $cache_file"
  7403. fi
  7404. fi
  7405. rm -f confcache
  7406. # Check for IPv6 support
  7407. #EGG_IPV6_SUPPORTED
  7408. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7409. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7410. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7411. if test "${enable_ipv6+set}" = set; then
  7412. enableval="$enable_ipv6"
  7413. ac_cv_dipv6="yes"
  7414. echo "$as_me:$LINENO: result: yes" >&5
  7415. echo "${ECHO_T}yes" >&6
  7416. else
  7417. ac_cv_dipv6="no"
  7418. if test "$egg_cv_ipv6_supported" = "no"; then
  7419. ac_cv_dipv6="no"
  7420. fi
  7421. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7422. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7423. fi;
  7424. if test "$ac_cv_dipv6" = "no"; then
  7425. cat >>confdefs.h <<\_ACEOF
  7426. #define USE_IPV6 1
  7427. _ACEOF
  7428. fi
  7429. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7430. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7431. if test "${egg_cv_socklen_t+set}" = set; then
  7432. echo $ECHO_N "(cached) $ECHO_C" >&6
  7433. else
  7434. if test "$cross_compiling" = yes; then
  7435. egg_cv_socklen_t=no
  7436. else
  7437. cat >conftest.$ac_ext <<_ACEOF
  7438. /* confdefs.h. */
  7439. _ACEOF
  7440. cat confdefs.h >>conftest.$ac_ext
  7441. cat >>conftest.$ac_ext <<_ACEOF
  7442. /* end confdefs.h. */
  7443. #include <unistd.h>
  7444. #include <sys/types.h>
  7445. #include <sys/socket.h>
  7446. #include <netinet/in.h>
  7447. #include <arpa/inet.h>
  7448. int main()
  7449. {
  7450. socklen_t test = sizeof(int);
  7451. return 0;
  7452. }
  7453. _ACEOF
  7454. rm -f conftest$ac_exeext
  7455. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7456. (eval $ac_link) 2>&5
  7457. ac_status=$?
  7458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7459. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7461. (eval $ac_try) 2>&5
  7462. ac_status=$?
  7463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7464. (exit $ac_status); }; }; then
  7465. egg_cv_socklen_t=yes
  7466. else
  7467. echo "$as_me: program exited with status $ac_status" >&5
  7468. echo "$as_me: failed program was:" >&5
  7469. sed 's/^/| /' conftest.$ac_ext >&5
  7470. ( exit $ac_status )
  7471. egg_cv_socklen_t=no
  7472. fi
  7473. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7474. fi
  7475. fi
  7476. if test "$egg_cv_socklen_t" = "yes"; then
  7477. cat >>confdefs.h <<\_ACEOF
  7478. #define HAVE_SOCKLEN_T 1
  7479. _ACEOF
  7480. echo "$as_me:$LINENO: result: yes" >&5
  7481. echo "${ECHO_T}yes" >&6
  7482. else
  7483. echo "$as_me:$LINENO: result: no" >&5
  7484. echo "${ECHO_T}no" >&6
  7485. fi
  7486. # Checks for library functions
  7487. #checkpoint
  7488. cat >confcache <<\_ACEOF
  7489. # This file is a shell script that caches the results of configure
  7490. # tests run on this system so they can be shared between configure
  7491. # scripts and configure runs, see configure's option --config-cache.
  7492. # It is not useful on other systems. If it contains results you don't
  7493. # want to keep, you may remove or edit it.
  7494. #
  7495. # config.status only pays attention to the cache file if you give it
  7496. # the --recheck option to rerun configure.
  7497. #
  7498. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7499. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7500. # following values.
  7501. _ACEOF
  7502. # The following way of writing the cache mishandles newlines in values,
  7503. # but we know of no workaround that is simple, portable, and efficient.
  7504. # So, don't put newlines in cache variables' values.
  7505. # Ultrix sh set writes to stderr and can't be redirected directly,
  7506. # and sets the high bit in the cache file unless we assign to the vars.
  7507. {
  7508. (set) 2>&1 |
  7509. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7510. *ac_space=\ *)
  7511. # `set' does not quote correctly, so add quotes (double-quote
  7512. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7513. sed -n \
  7514. "s/'/'\\\\''/g;
  7515. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7516. ;;
  7517. *)
  7518. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7519. sed -n \
  7520. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7521. ;;
  7522. esac;
  7523. } |
  7524. sed '
  7525. t clear
  7526. : clear
  7527. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7528. t end
  7529. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7530. : end' >>confcache
  7531. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7532. if test -w $cache_file; then
  7533. test "x$cache_file" != "x/dev/null"
  7534. cat confcache >$cache_file
  7535. else
  7536. echo "not updating unwritable cache $cache_file"
  7537. fi
  7538. fi
  7539. rm -f confcache
  7540. # Checks for library functions.
  7541. for ac_header in unistd.h vfork.h
  7542. do
  7543. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7544. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7545. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7546. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7547. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7548. echo $ECHO_N "(cached) $ECHO_C" >&6
  7549. fi
  7550. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7551. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7552. else
  7553. # Is the header compilable?
  7554. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7555. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7556. cat >conftest.$ac_ext <<_ACEOF
  7557. /* confdefs.h. */
  7558. _ACEOF
  7559. cat confdefs.h >>conftest.$ac_ext
  7560. cat >>conftest.$ac_ext <<_ACEOF
  7561. /* end confdefs.h. */
  7562. $ac_includes_default
  7563. #include <$ac_header>
  7564. _ACEOF
  7565. rm -f conftest.$ac_objext
  7566. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7567. (eval $ac_compile) 2>conftest.er1
  7568. ac_status=$?
  7569. grep -v '^ *+' conftest.er1 >conftest.err
  7570. rm -f conftest.er1
  7571. cat conftest.err >&5
  7572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7573. (exit $ac_status); } &&
  7574. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  7580. { ac_try='test -s conftest.$ac_objext'
  7581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7582. (eval $ac_try) 2>&5
  7583. ac_status=$?
  7584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7585. (exit $ac_status); }; }; then
  7586. ac_header_compiler=yes
  7587. else
  7588. echo "$as_me: failed program was:" >&5
  7589. sed 's/^/| /' conftest.$ac_ext >&5
  7590. ac_header_compiler=no
  7591. fi
  7592. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7593. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7594. echo "${ECHO_T}$ac_header_compiler" >&6
  7595. # Is the header present?
  7596. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7597. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7598. cat >conftest.$ac_ext <<_ACEOF
  7599. /* confdefs.h. */
  7600. _ACEOF
  7601. cat confdefs.h >>conftest.$ac_ext
  7602. cat >>conftest.$ac_ext <<_ACEOF
  7603. /* end confdefs.h. */
  7604. #include <$ac_header>
  7605. _ACEOF
  7606. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7607. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7608. ac_status=$?
  7609. grep -v '^ *+' conftest.er1 >conftest.err
  7610. rm -f conftest.er1
  7611. cat conftest.err >&5
  7612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7613. (exit $ac_status); } >/dev/null; then
  7614. if test -s conftest.err; then
  7615. ac_cpp_err=$ac_c_preproc_warn_flag
  7616. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7617. else
  7618. ac_cpp_err=
  7619. fi
  7620. else
  7621. ac_cpp_err=yes
  7622. fi
  7623. if test -z "$ac_cpp_err"; then
  7624. ac_header_preproc=yes
  7625. else
  7626. echo "$as_me: failed program was:" >&5
  7627. sed 's/^/| /' conftest.$ac_ext >&5
  7628. ac_header_preproc=no
  7629. fi
  7630. rm -f conftest.err conftest.$ac_ext
  7631. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7632. echo "${ECHO_T}$ac_header_preproc" >&6
  7633. # So? What about this header?
  7634. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7635. yes:no: )
  7636. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7637. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7638. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7639. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7640. ac_header_preproc=yes
  7641. ;;
  7642. no:yes:* )
  7643. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7644. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7645. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7646. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7647. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7648. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7649. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7650. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7651. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7652. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7653. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7654. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7655. (
  7656. cat <<\_ASBOX
  7657. ## ------------------------------------------ ##
  7658. ## Report this to the AC_PACKAGE_NAME lists. ##
  7659. ## ------------------------------------------ ##
  7660. _ASBOX
  7661. ) |
  7662. sed "s/^/$as_me: WARNING: /" >&2
  7663. ;;
  7664. esac
  7665. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7666. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7667. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7668. echo $ECHO_N "(cached) $ECHO_C" >&6
  7669. else
  7670. eval "$as_ac_Header=\$ac_header_preproc"
  7671. fi
  7672. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7673. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7674. fi
  7675. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7676. cat >>confdefs.h <<_ACEOF
  7677. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7678. _ACEOF
  7679. fi
  7680. done
  7681. for ac_func in fork vfork
  7682. do
  7683. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7684. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7685. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7686. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7687. echo $ECHO_N "(cached) $ECHO_C" >&6
  7688. else
  7689. cat >conftest.$ac_ext <<_ACEOF
  7690. /* confdefs.h. */
  7691. _ACEOF
  7692. cat confdefs.h >>conftest.$ac_ext
  7693. cat >>conftest.$ac_ext <<_ACEOF
  7694. /* end confdefs.h. */
  7695. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7696. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7697. #define $ac_func innocuous_$ac_func
  7698. /* System header to define __stub macros and hopefully few prototypes,
  7699. which can conflict with char $ac_func (); below.
  7700. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7701. <limits.h> exists even on freestanding compilers. */
  7702. #ifdef __STDC__
  7703. # include <limits.h>
  7704. #else
  7705. # include <assert.h>
  7706. #endif
  7707. #undef $ac_func
  7708. /* Override any gcc2 internal prototype to avoid an error. */
  7709. #ifdef __cplusplus
  7710. extern "C"
  7711. {
  7712. #endif
  7713. /* We use char because int might match the return type of a gcc2
  7714. builtin and then its argument prototype would still apply. */
  7715. char $ac_func ();
  7716. /* The GNU C library defines this for functions which it implements
  7717. to always fail with ENOSYS. Some functions are actually named
  7718. something starting with __ and the normal name is an alias. */
  7719. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7720. choke me
  7721. #else
  7722. char (*f) () = $ac_func;
  7723. #endif
  7724. #ifdef __cplusplus
  7725. }
  7726. #endif
  7727. int
  7728. main ()
  7729. {
  7730. return f != $ac_func;
  7731. ;
  7732. return 0;
  7733. }
  7734. _ACEOF
  7735. rm -f conftest.$ac_objext conftest$ac_exeext
  7736. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7737. (eval $ac_link) 2>conftest.er1
  7738. ac_status=$?
  7739. grep -v '^ *+' conftest.er1 >conftest.err
  7740. rm -f conftest.er1
  7741. cat conftest.err >&5
  7742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7743. (exit $ac_status); } &&
  7744. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7746. (eval $ac_try) 2>&5
  7747. ac_status=$?
  7748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7749. (exit $ac_status); }; } &&
  7750. { ac_try='test -s conftest$ac_exeext'
  7751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7752. (eval $ac_try) 2>&5
  7753. ac_status=$?
  7754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7755. (exit $ac_status); }; }; then
  7756. eval "$as_ac_var=yes"
  7757. else
  7758. echo "$as_me: failed program was:" >&5
  7759. sed 's/^/| /' conftest.$ac_ext >&5
  7760. eval "$as_ac_var=no"
  7761. fi
  7762. rm -f conftest.err conftest.$ac_objext \
  7763. conftest$ac_exeext conftest.$ac_ext
  7764. fi
  7765. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7766. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7767. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7768. cat >>confdefs.h <<_ACEOF
  7769. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7770. _ACEOF
  7771. fi
  7772. done
  7773. if test "x$ac_cv_func_fork" = xyes; then
  7774. echo "$as_me:$LINENO: checking for working fork" >&5
  7775. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7776. if test "${ac_cv_func_fork_works+set}" = set; then
  7777. echo $ECHO_N "(cached) $ECHO_C" >&6
  7778. else
  7779. if test "$cross_compiling" = yes; then
  7780. ac_cv_func_fork_works=cross
  7781. else
  7782. cat >conftest.$ac_ext <<_ACEOF
  7783. /* By Ruediger Kuhlmann. */
  7784. #include <sys/types.h>
  7785. #if HAVE_UNISTD_H
  7786. # include <unistd.h>
  7787. #endif
  7788. /* Some systems only have a dummy stub for fork() */
  7789. int main ()
  7790. {
  7791. if (fork() < 0)
  7792. exit (1);
  7793. exit (0);
  7794. }
  7795. _ACEOF
  7796. rm -f conftest$ac_exeext
  7797. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7798. (eval $ac_link) 2>&5
  7799. ac_status=$?
  7800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7801. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7803. (eval $ac_try) 2>&5
  7804. ac_status=$?
  7805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7806. (exit $ac_status); }; }; then
  7807. ac_cv_func_fork_works=yes
  7808. else
  7809. echo "$as_me: program exited with status $ac_status" >&5
  7810. echo "$as_me: failed program was:" >&5
  7811. sed 's/^/| /' conftest.$ac_ext >&5
  7812. ( exit $ac_status )
  7813. ac_cv_func_fork_works=no
  7814. fi
  7815. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7816. fi
  7817. fi
  7818. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7819. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7820. else
  7821. ac_cv_func_fork_works=$ac_cv_func_fork
  7822. fi
  7823. if test "x$ac_cv_func_fork_works" = xcross; then
  7824. case $host in
  7825. *-*-amigaos* | *-*-msdosdjgpp*)
  7826. # Override, as these systems have only a dummy fork() stub
  7827. ac_cv_func_fork_works=no
  7828. ;;
  7829. *)
  7830. ac_cv_func_fork_works=yes
  7831. ;;
  7832. esac
  7833. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7834. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7835. fi
  7836. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7837. if test "x$ac_cv_func_vfork" = xyes; then
  7838. echo "$as_me:$LINENO: checking for working vfork" >&5
  7839. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7840. if test "${ac_cv_func_vfork_works+set}" = set; then
  7841. echo $ECHO_N "(cached) $ECHO_C" >&6
  7842. else
  7843. if test "$cross_compiling" = yes; then
  7844. ac_cv_func_vfork_works=cross
  7845. else
  7846. cat >conftest.$ac_ext <<_ACEOF
  7847. /* confdefs.h. */
  7848. _ACEOF
  7849. cat confdefs.h >>conftest.$ac_ext
  7850. cat >>conftest.$ac_ext <<_ACEOF
  7851. /* end confdefs.h. */
  7852. /* Thanks to Paul Eggert for this test. */
  7853. #include <stdio.h>
  7854. #include <stdlib.h>
  7855. #include <sys/types.h>
  7856. #include <sys/stat.h>
  7857. #include <sys/wait.h>
  7858. #if HAVE_UNISTD_H
  7859. # include <unistd.h>
  7860. #endif
  7861. #if HAVE_VFORK_H
  7862. # include <vfork.h>
  7863. #endif
  7864. /* On some sparc systems, changes by the child to local and incoming
  7865. argument registers are propagated back to the parent. The compiler
  7866. is told about this with #include <vfork.h>, but some compilers
  7867. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7868. static variable whose address is put into a register that is
  7869. clobbered by the vfork. */
  7870. static void
  7871. #ifdef __cplusplus
  7872. sparc_address_test (int arg)
  7873. # else
  7874. sparc_address_test (arg) int arg;
  7875. #endif
  7876. {
  7877. static pid_t child;
  7878. if (!child) {
  7879. child = vfork ();
  7880. if (child < 0) {
  7881. perror ("vfork");
  7882. _exit(2);
  7883. }
  7884. if (!child) {
  7885. arg = getpid();
  7886. write(-1, "", 0);
  7887. _exit (arg);
  7888. }
  7889. }
  7890. }
  7891. int
  7892. main ()
  7893. {
  7894. pid_t parent = getpid ();
  7895. pid_t child;
  7896. sparc_address_test (0);
  7897. child = vfork ();
  7898. if (child == 0) {
  7899. /* Here is another test for sparc vfork register problems. This
  7900. test uses lots of local variables, at least as many local
  7901. variables as main has allocated so far including compiler
  7902. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7903. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7904. reuse the register of parent for one of the local variables,
  7905. since it will think that parent can't possibly be used any more
  7906. in this routine. Assigning to the local variable will thus
  7907. munge parent in the parent process. */
  7908. pid_t
  7909. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7910. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7911. /* Convince the compiler that p..p7 are live; otherwise, it might
  7912. use the same hardware register for all 8 local variables. */
  7913. if (p != p1 || p != p2 || p != p3 || p != p4
  7914. || p != p5 || p != p6 || p != p7)
  7915. _exit(1);
  7916. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7917. from child file descriptors. If the child closes a descriptor
  7918. before it execs or exits, this munges the parent's descriptor
  7919. as well. Test for this by closing stdout in the child. */
  7920. _exit(close(fileno(stdout)) != 0);
  7921. } else {
  7922. int status;
  7923. struct stat st;
  7924. while (wait(&status) != child)
  7925. ;
  7926. exit(
  7927. /* Was there some problem with vforking? */
  7928. child < 0
  7929. /* Did the child fail? (This shouldn't happen.) */
  7930. || status
  7931. /* Did the vfork/compiler bug occur? */
  7932. || parent != getpid()
  7933. /* Did the file descriptor bug occur? */
  7934. || fstat(fileno(stdout), &st) != 0
  7935. );
  7936. }
  7937. }
  7938. _ACEOF
  7939. rm -f conftest$ac_exeext
  7940. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7941. (eval $ac_link) 2>&5
  7942. ac_status=$?
  7943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7944. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7946. (eval $ac_try) 2>&5
  7947. ac_status=$?
  7948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7949. (exit $ac_status); }; }; then
  7950. ac_cv_func_vfork_works=yes
  7951. else
  7952. echo "$as_me: program exited with status $ac_status" >&5
  7953. echo "$as_me: failed program was:" >&5
  7954. sed 's/^/| /' conftest.$ac_ext >&5
  7955. ( exit $ac_status )
  7956. ac_cv_func_vfork_works=no
  7957. fi
  7958. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7959. fi
  7960. fi
  7961. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7962. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7963. fi;
  7964. if test "x$ac_cv_func_fork_works" = xcross; then
  7965. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7966. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7967. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7968. fi
  7969. if test "x$ac_cv_func_vfork_works" = xyes; then
  7970. cat >>confdefs.h <<\_ACEOF
  7971. #define HAVE_WORKING_VFORK 1
  7972. _ACEOF
  7973. else
  7974. cat >>confdefs.h <<\_ACEOF
  7975. #define vfork fork
  7976. _ACEOF
  7977. fi
  7978. if test "x$ac_cv_func_fork_works" = xyes; then
  7979. cat >>confdefs.h <<\_ACEOF
  7980. #define HAVE_WORKING_FORK 1
  7981. _ACEOF
  7982. fi
  7983. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7984. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7985. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7986. echo $ECHO_N "(cached) $ECHO_C" >&6
  7987. else
  7988. rm -f conftest.sym conftest.file
  7989. echo >conftest.file
  7990. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7991. if test "$cross_compiling" = yes; then
  7992. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7993. else
  7994. cat >conftest.$ac_ext <<_ACEOF
  7995. /* confdefs.h. */
  7996. _ACEOF
  7997. cat confdefs.h >>conftest.$ac_ext
  7998. cat >>conftest.$ac_ext <<_ACEOF
  7999. /* end confdefs.h. */
  8000. $ac_includes_default
  8001. int
  8002. main ()
  8003. {
  8004. struct stat sbuf;
  8005. /* Linux will dereference the symlink and fail.
  8006. That is better in the sense that it means we will not
  8007. have to compile and use the lstat wrapper. */
  8008. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8009. ;
  8010. return 0;
  8011. }
  8012. _ACEOF
  8013. rm -f conftest$ac_exeext
  8014. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8015. (eval $ac_link) 2>&5
  8016. ac_status=$?
  8017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8018. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8020. (eval $ac_try) 2>&5
  8021. ac_status=$?
  8022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8023. (exit $ac_status); }; }; then
  8024. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8025. else
  8026. echo "$as_me: program exited with status $ac_status" >&5
  8027. echo "$as_me: failed program was:" >&5
  8028. sed 's/^/| /' conftest.$ac_ext >&5
  8029. ( exit $ac_status )
  8030. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8031. fi
  8032. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8033. fi
  8034. else
  8035. # If the `ln -s' command failed, then we probably don't even
  8036. # have an lstat function.
  8037. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8038. fi
  8039. rm -f conftest.sym conftest.file
  8040. fi
  8041. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8042. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8043. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8044. cat >>confdefs.h <<_ACEOF
  8045. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8046. _ACEOF
  8047. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8048. case $LIBOBJS in
  8049. "lstat.$ac_objext" | \
  8050. *" lstat.$ac_objext" | \
  8051. "lstat.$ac_objext "* | \
  8052. *" lstat.$ac_objext "* ) ;;
  8053. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8054. esac
  8055. fi
  8056. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8057. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8058. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8059. echo $ECHO_N "(cached) $ECHO_C" >&6
  8060. else
  8061. if test "$cross_compiling" = yes; then
  8062. ac_cv_func_lstat_empty_string_bug=yes
  8063. else
  8064. cat >conftest.$ac_ext <<_ACEOF
  8065. /* confdefs.h. */
  8066. _ACEOF
  8067. cat confdefs.h >>conftest.$ac_ext
  8068. cat >>conftest.$ac_ext <<_ACEOF
  8069. /* end confdefs.h. */
  8070. $ac_includes_default
  8071. int
  8072. main ()
  8073. {
  8074. struct stat sbuf;
  8075. exit (lstat ("", &sbuf) ? 1 : 0);
  8076. ;
  8077. return 0;
  8078. }
  8079. _ACEOF
  8080. rm -f conftest$ac_exeext
  8081. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8082. (eval $ac_link) 2>&5
  8083. ac_status=$?
  8084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8085. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8087. (eval $ac_try) 2>&5
  8088. ac_status=$?
  8089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8090. (exit $ac_status); }; }; then
  8091. ac_cv_func_lstat_empty_string_bug=yes
  8092. else
  8093. echo "$as_me: program exited with status $ac_status" >&5
  8094. echo "$as_me: failed program was:" >&5
  8095. sed 's/^/| /' conftest.$ac_ext >&5
  8096. ( exit $ac_status )
  8097. ac_cv_func_lstat_empty_string_bug=no
  8098. fi
  8099. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8100. fi
  8101. fi
  8102. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8103. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8104. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8105. case $LIBOBJS in
  8106. "lstat.$ac_objext" | \
  8107. *" lstat.$ac_objext" | \
  8108. "lstat.$ac_objext "* | \
  8109. *" lstat.$ac_objext "* ) ;;
  8110. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8111. esac
  8112. cat >>confdefs.h <<_ACEOF
  8113. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8114. _ACEOF
  8115. fi
  8116. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8117. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8118. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8119. echo $ECHO_N "(cached) $ECHO_C" >&6
  8120. else
  8121. rm -f conftest.sym conftest.file
  8122. echo >conftest.file
  8123. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8124. if test "$cross_compiling" = yes; then
  8125. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8126. else
  8127. cat >conftest.$ac_ext <<_ACEOF
  8128. /* confdefs.h. */
  8129. _ACEOF
  8130. cat confdefs.h >>conftest.$ac_ext
  8131. cat >>conftest.$ac_ext <<_ACEOF
  8132. /* end confdefs.h. */
  8133. $ac_includes_default
  8134. int
  8135. main ()
  8136. {
  8137. struct stat sbuf;
  8138. /* Linux will dereference the symlink and fail.
  8139. That is better in the sense that it means we will not
  8140. have to compile and use the lstat wrapper. */
  8141. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8142. ;
  8143. return 0;
  8144. }
  8145. _ACEOF
  8146. rm -f conftest$ac_exeext
  8147. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8148. (eval $ac_link) 2>&5
  8149. ac_status=$?
  8150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8151. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8153. (eval $ac_try) 2>&5
  8154. ac_status=$?
  8155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8156. (exit $ac_status); }; }; then
  8157. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8158. else
  8159. echo "$as_me: program exited with status $ac_status" >&5
  8160. echo "$as_me: failed program was:" >&5
  8161. sed 's/^/| /' conftest.$ac_ext >&5
  8162. ( exit $ac_status )
  8163. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8164. fi
  8165. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8166. fi
  8167. else
  8168. # If the `ln -s' command failed, then we probably don't even
  8169. # have an lstat function.
  8170. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8171. fi
  8172. rm -f conftest.sym conftest.file
  8173. fi
  8174. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8175. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8176. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8177. cat >>confdefs.h <<_ACEOF
  8178. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8179. _ACEOF
  8180. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8181. case $LIBOBJS in
  8182. "lstat.$ac_objext" | \
  8183. *" lstat.$ac_objext" | \
  8184. "lstat.$ac_objext "* | \
  8185. *" lstat.$ac_objext "* ) ;;
  8186. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8187. esac
  8188. fi
  8189. for ac_header in stdlib.h
  8190. do
  8191. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8192. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8193. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8194. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8196. echo $ECHO_N "(cached) $ECHO_C" >&6
  8197. fi
  8198. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8199. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8200. else
  8201. # Is the header compilable?
  8202. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8203. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8204. cat >conftest.$ac_ext <<_ACEOF
  8205. /* confdefs.h. */
  8206. _ACEOF
  8207. cat confdefs.h >>conftest.$ac_ext
  8208. cat >>conftest.$ac_ext <<_ACEOF
  8209. /* end confdefs.h. */
  8210. $ac_includes_default
  8211. #include <$ac_header>
  8212. _ACEOF
  8213. rm -f conftest.$ac_objext
  8214. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8215. (eval $ac_compile) 2>conftest.er1
  8216. ac_status=$?
  8217. grep -v '^ *+' conftest.er1 >conftest.err
  8218. rm -f conftest.er1
  8219. cat conftest.err >&5
  8220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8221. (exit $ac_status); } &&
  8222. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8224. (eval $ac_try) 2>&5
  8225. ac_status=$?
  8226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8227. (exit $ac_status); }; } &&
  8228. { ac_try='test -s conftest.$ac_objext'
  8229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8230. (eval $ac_try) 2>&5
  8231. ac_status=$?
  8232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8233. (exit $ac_status); }; }; then
  8234. ac_header_compiler=yes
  8235. else
  8236. echo "$as_me: failed program was:" >&5
  8237. sed 's/^/| /' conftest.$ac_ext >&5
  8238. ac_header_compiler=no
  8239. fi
  8240. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8241. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8242. echo "${ECHO_T}$ac_header_compiler" >&6
  8243. # Is the header present?
  8244. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8245. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8246. cat >conftest.$ac_ext <<_ACEOF
  8247. /* confdefs.h. */
  8248. _ACEOF
  8249. cat confdefs.h >>conftest.$ac_ext
  8250. cat >>conftest.$ac_ext <<_ACEOF
  8251. /* end confdefs.h. */
  8252. #include <$ac_header>
  8253. _ACEOF
  8254. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8255. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8256. ac_status=$?
  8257. grep -v '^ *+' conftest.er1 >conftest.err
  8258. rm -f conftest.er1
  8259. cat conftest.err >&5
  8260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8261. (exit $ac_status); } >/dev/null; then
  8262. if test -s conftest.err; then
  8263. ac_cpp_err=$ac_c_preproc_warn_flag
  8264. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8265. else
  8266. ac_cpp_err=
  8267. fi
  8268. else
  8269. ac_cpp_err=yes
  8270. fi
  8271. if test -z "$ac_cpp_err"; then
  8272. ac_header_preproc=yes
  8273. else
  8274. echo "$as_me: failed program was:" >&5
  8275. sed 's/^/| /' conftest.$ac_ext >&5
  8276. ac_header_preproc=no
  8277. fi
  8278. rm -f conftest.err conftest.$ac_ext
  8279. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8280. echo "${ECHO_T}$ac_header_preproc" >&6
  8281. # So? What about this header?
  8282. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8283. yes:no: )
  8284. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8285. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8286. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8287. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8288. ac_header_preproc=yes
  8289. ;;
  8290. no:yes:* )
  8291. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8292. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8293. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8294. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8295. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8296. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8297. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8298. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8299. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8300. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8301. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8302. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8303. (
  8304. cat <<\_ASBOX
  8305. ## ------------------------------------------ ##
  8306. ## Report this to the AC_PACKAGE_NAME lists. ##
  8307. ## ------------------------------------------ ##
  8308. _ASBOX
  8309. ) |
  8310. sed "s/^/$as_me: WARNING: /" >&2
  8311. ;;
  8312. esac
  8313. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8314. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8315. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8316. echo $ECHO_N "(cached) $ECHO_C" >&6
  8317. else
  8318. eval "$as_ac_Header=\$ac_header_preproc"
  8319. fi
  8320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8321. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8322. fi
  8323. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8324. cat >>confdefs.h <<_ACEOF
  8325. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8326. _ACEOF
  8327. fi
  8328. done
  8329. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8330. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8331. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8332. echo $ECHO_N "(cached) $ECHO_C" >&6
  8333. else
  8334. if test "$cross_compiling" = yes; then
  8335. ac_cv_func_malloc_0_nonnull=no
  8336. else
  8337. cat >conftest.$ac_ext <<_ACEOF
  8338. /* confdefs.h. */
  8339. _ACEOF
  8340. cat confdefs.h >>conftest.$ac_ext
  8341. cat >>conftest.$ac_ext <<_ACEOF
  8342. /* end confdefs.h. */
  8343. #if STDC_HEADERS || HAVE_STDLIB_H
  8344. # include <stdlib.h>
  8345. #else
  8346. char *malloc ();
  8347. #endif
  8348. int
  8349. main ()
  8350. {
  8351. exit (malloc (0) ? 0 : 1);
  8352. ;
  8353. return 0;
  8354. }
  8355. _ACEOF
  8356. rm -f conftest$ac_exeext
  8357. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8358. (eval $ac_link) 2>&5
  8359. ac_status=$?
  8360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8361. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8363. (eval $ac_try) 2>&5
  8364. ac_status=$?
  8365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8366. (exit $ac_status); }; }; then
  8367. ac_cv_func_malloc_0_nonnull=yes
  8368. else
  8369. echo "$as_me: program exited with status $ac_status" >&5
  8370. echo "$as_me: failed program was:" >&5
  8371. sed 's/^/| /' conftest.$ac_ext >&5
  8372. ( exit $ac_status )
  8373. ac_cv_func_malloc_0_nonnull=no
  8374. fi
  8375. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8376. fi
  8377. fi
  8378. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8379. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8380. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8381. cat >>confdefs.h <<\_ACEOF
  8382. #define HAVE_MALLOC 1
  8383. _ACEOF
  8384. else
  8385. cat >>confdefs.h <<\_ACEOF
  8386. #define HAVE_MALLOC 0
  8387. _ACEOF
  8388. case $LIBOBJS in
  8389. "malloc.$ac_objext" | \
  8390. *" malloc.$ac_objext" | \
  8391. "malloc.$ac_objext "* | \
  8392. *" malloc.$ac_objext "* ) ;;
  8393. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8394. esac
  8395. cat >>confdefs.h <<\_ACEOF
  8396. #define malloc rpl_malloc
  8397. _ACEOF
  8398. fi
  8399. for ac_header in stdlib.h sys/time.h unistd.h
  8400. do
  8401. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8402. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8403. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8404. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8405. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8406. echo $ECHO_N "(cached) $ECHO_C" >&6
  8407. fi
  8408. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8409. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8410. else
  8411. # Is the header compilable?
  8412. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8413. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8414. cat >conftest.$ac_ext <<_ACEOF
  8415. /* confdefs.h. */
  8416. _ACEOF
  8417. cat confdefs.h >>conftest.$ac_ext
  8418. cat >>conftest.$ac_ext <<_ACEOF
  8419. /* end confdefs.h. */
  8420. $ac_includes_default
  8421. #include <$ac_header>
  8422. _ACEOF
  8423. rm -f conftest.$ac_objext
  8424. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8425. (eval $ac_compile) 2>conftest.er1
  8426. ac_status=$?
  8427. grep -v '^ *+' conftest.er1 >conftest.err
  8428. rm -f conftest.er1
  8429. cat conftest.err >&5
  8430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8431. (exit $ac_status); } &&
  8432. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8434. (eval $ac_try) 2>&5
  8435. ac_status=$?
  8436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8437. (exit $ac_status); }; } &&
  8438. { ac_try='test -s conftest.$ac_objext'
  8439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8440. (eval $ac_try) 2>&5
  8441. ac_status=$?
  8442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8443. (exit $ac_status); }; }; then
  8444. ac_header_compiler=yes
  8445. else
  8446. echo "$as_me: failed program was:" >&5
  8447. sed 's/^/| /' conftest.$ac_ext >&5
  8448. ac_header_compiler=no
  8449. fi
  8450. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8451. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8452. echo "${ECHO_T}$ac_header_compiler" >&6
  8453. # Is the header present?
  8454. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8455. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8456. cat >conftest.$ac_ext <<_ACEOF
  8457. /* confdefs.h. */
  8458. _ACEOF
  8459. cat confdefs.h >>conftest.$ac_ext
  8460. cat >>conftest.$ac_ext <<_ACEOF
  8461. /* end confdefs.h. */
  8462. #include <$ac_header>
  8463. _ACEOF
  8464. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8465. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8466. ac_status=$?
  8467. grep -v '^ *+' conftest.er1 >conftest.err
  8468. rm -f conftest.er1
  8469. cat conftest.err >&5
  8470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8471. (exit $ac_status); } >/dev/null; then
  8472. if test -s conftest.err; then
  8473. ac_cpp_err=$ac_c_preproc_warn_flag
  8474. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8475. else
  8476. ac_cpp_err=
  8477. fi
  8478. else
  8479. ac_cpp_err=yes
  8480. fi
  8481. if test -z "$ac_cpp_err"; then
  8482. ac_header_preproc=yes
  8483. else
  8484. echo "$as_me: failed program was:" >&5
  8485. sed 's/^/| /' conftest.$ac_ext >&5
  8486. ac_header_preproc=no
  8487. fi
  8488. rm -f conftest.err conftest.$ac_ext
  8489. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8490. echo "${ECHO_T}$ac_header_preproc" >&6
  8491. # So? What about this header?
  8492. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8493. yes:no: )
  8494. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8495. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8496. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8497. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8498. ac_header_preproc=yes
  8499. ;;
  8500. no:yes:* )
  8501. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8502. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8503. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8504. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8505. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8506. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8507. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8508. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8509. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8510. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8511. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8512. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8513. (
  8514. cat <<\_ASBOX
  8515. ## ------------------------------------------ ##
  8516. ## Report this to the AC_PACKAGE_NAME lists. ##
  8517. ## ------------------------------------------ ##
  8518. _ASBOX
  8519. ) |
  8520. sed "s/^/$as_me: WARNING: /" >&2
  8521. ;;
  8522. esac
  8523. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8524. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8525. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8526. echo $ECHO_N "(cached) $ECHO_C" >&6
  8527. else
  8528. eval "$as_ac_Header=\$ac_header_preproc"
  8529. fi
  8530. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8531. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8532. fi
  8533. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8534. cat >>confdefs.h <<_ACEOF
  8535. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8536. _ACEOF
  8537. fi
  8538. done
  8539. for ac_func in alarm
  8540. do
  8541. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8542. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8543. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8544. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8545. echo $ECHO_N "(cached) $ECHO_C" >&6
  8546. else
  8547. cat >conftest.$ac_ext <<_ACEOF
  8548. /* confdefs.h. */
  8549. _ACEOF
  8550. cat confdefs.h >>conftest.$ac_ext
  8551. cat >>conftest.$ac_ext <<_ACEOF
  8552. /* end confdefs.h. */
  8553. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8554. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8555. #define $ac_func innocuous_$ac_func
  8556. /* System header to define __stub macros and hopefully few prototypes,
  8557. which can conflict with char $ac_func (); below.
  8558. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8559. <limits.h> exists even on freestanding compilers. */
  8560. #ifdef __STDC__
  8561. # include <limits.h>
  8562. #else
  8563. # include <assert.h>
  8564. #endif
  8565. #undef $ac_func
  8566. /* Override any gcc2 internal prototype to avoid an error. */
  8567. #ifdef __cplusplus
  8568. extern "C"
  8569. {
  8570. #endif
  8571. /* We use char because int might match the return type of a gcc2
  8572. builtin and then its argument prototype would still apply. */
  8573. char $ac_func ();
  8574. /* The GNU C library defines this for functions which it implements
  8575. to always fail with ENOSYS. Some functions are actually named
  8576. something starting with __ and the normal name is an alias. */
  8577. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8578. choke me
  8579. #else
  8580. char (*f) () = $ac_func;
  8581. #endif
  8582. #ifdef __cplusplus
  8583. }
  8584. #endif
  8585. int
  8586. main ()
  8587. {
  8588. return f != $ac_func;
  8589. ;
  8590. return 0;
  8591. }
  8592. _ACEOF
  8593. rm -f conftest.$ac_objext conftest$ac_exeext
  8594. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8595. (eval $ac_link) 2>conftest.er1
  8596. ac_status=$?
  8597. grep -v '^ *+' conftest.er1 >conftest.err
  8598. rm -f conftest.er1
  8599. cat conftest.err >&5
  8600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8601. (exit $ac_status); } &&
  8602. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8604. (eval $ac_try) 2>&5
  8605. ac_status=$?
  8606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8607. (exit $ac_status); }; } &&
  8608. { ac_try='test -s conftest$ac_exeext'
  8609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8610. (eval $ac_try) 2>&5
  8611. ac_status=$?
  8612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8613. (exit $ac_status); }; }; then
  8614. eval "$as_ac_var=yes"
  8615. else
  8616. echo "$as_me: failed program was:" >&5
  8617. sed 's/^/| /' conftest.$ac_ext >&5
  8618. eval "$as_ac_var=no"
  8619. fi
  8620. rm -f conftest.err conftest.$ac_objext \
  8621. conftest$ac_exeext conftest.$ac_ext
  8622. fi
  8623. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8624. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8625. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8626. cat >>confdefs.h <<_ACEOF
  8627. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8628. _ACEOF
  8629. fi
  8630. done
  8631. echo "$as_me:$LINENO: checking for working mktime" >&5
  8632. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8633. if test "${ac_cv_func_working_mktime+set}" = set; then
  8634. echo $ECHO_N "(cached) $ECHO_C" >&6
  8635. else
  8636. if test "$cross_compiling" = yes; then
  8637. ac_cv_func_working_mktime=no
  8638. else
  8639. cat >conftest.$ac_ext <<_ACEOF
  8640. /* confdefs.h. */
  8641. _ACEOF
  8642. cat confdefs.h >>conftest.$ac_ext
  8643. cat >>conftest.$ac_ext <<_ACEOF
  8644. /* end confdefs.h. */
  8645. /* Test program from Paul Eggert and Tony Leneis. */
  8646. #if TIME_WITH_SYS_TIME
  8647. # include <sys/time.h>
  8648. # include <time.h>
  8649. #else
  8650. # if HAVE_SYS_TIME_H
  8651. # include <sys/time.h>
  8652. # else
  8653. # include <time.h>
  8654. # endif
  8655. #endif
  8656. #if HAVE_STDLIB_H
  8657. # include <stdlib.h>
  8658. #endif
  8659. #if HAVE_UNISTD_H
  8660. # include <unistd.h>
  8661. #endif
  8662. #if !HAVE_ALARM
  8663. # define alarm(X) /* empty */
  8664. #endif
  8665. /* Work around redefinition to rpl_putenv by other config tests. */
  8666. #undef putenv
  8667. static time_t time_t_max;
  8668. static time_t time_t_min;
  8669. /* Values we'll use to set the TZ environment variable. */
  8670. static char *tz_strings[] = {
  8671. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8672. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8673. };
  8674. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8675. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8676. Based on a problem report from Andreas Jaeger. */
  8677. static void
  8678. spring_forward_gap ()
  8679. {
  8680. /* glibc (up to about 1998-10-07) failed this test. */
  8681. struct tm tm;
  8682. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8683. instead of "TZ=America/Vancouver" in order to detect the bug even
  8684. on systems that don't support the Olson extension, or don't have the
  8685. full zoneinfo tables installed. */
  8686. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8687. tm.tm_year = 98;
  8688. tm.tm_mon = 3;
  8689. tm.tm_mday = 5;
  8690. tm.tm_hour = 2;
  8691. tm.tm_min = 0;
  8692. tm.tm_sec = 0;
  8693. tm.tm_isdst = -1;
  8694. if (mktime (&tm) == (time_t)-1)
  8695. exit (1);
  8696. }
  8697. static void
  8698. mktime_test1 (now)
  8699. time_t now;
  8700. {
  8701. struct tm *lt;
  8702. if ((lt = localtime (&now)) && mktime (lt) != now)
  8703. exit (1);
  8704. }
  8705. static void
  8706. mktime_test (now)
  8707. time_t now;
  8708. {
  8709. mktime_test1 (now);
  8710. mktime_test1 ((time_t) (time_t_max - now));
  8711. mktime_test1 ((time_t) (time_t_min + now));
  8712. }
  8713. static void
  8714. irix_6_4_bug ()
  8715. {
  8716. /* Based on code from Ariel Faigon. */
  8717. struct tm tm;
  8718. tm.tm_year = 96;
  8719. tm.tm_mon = 3;
  8720. tm.tm_mday = 0;
  8721. tm.tm_hour = 0;
  8722. tm.tm_min = 0;
  8723. tm.tm_sec = 0;
  8724. tm.tm_isdst = -1;
  8725. mktime (&tm);
  8726. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8727. exit (1);
  8728. }
  8729. static void
  8730. bigtime_test (j)
  8731. int j;
  8732. {
  8733. struct tm tm;
  8734. time_t now;
  8735. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8736. now = mktime (&tm);
  8737. if (now != (time_t) -1)
  8738. {
  8739. struct tm *lt = localtime (&now);
  8740. if (! (lt
  8741. && lt->tm_year == tm.tm_year
  8742. && lt->tm_mon == tm.tm_mon
  8743. && lt->tm_mday == tm.tm_mday
  8744. && lt->tm_hour == tm.tm_hour
  8745. && lt->tm_min == tm.tm_min
  8746. && lt->tm_sec == tm.tm_sec
  8747. && lt->tm_yday == tm.tm_yday
  8748. && lt->tm_wday == tm.tm_wday
  8749. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8750. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8751. exit (1);
  8752. }
  8753. }
  8754. int
  8755. main ()
  8756. {
  8757. time_t t, delta;
  8758. int i, j;
  8759. /* This test makes some buggy mktime implementations loop.
  8760. Give up after 60 seconds; a mktime slower than that
  8761. isn't worth using anyway. */
  8762. alarm (60);
  8763. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8764. continue;
  8765. time_t_max--;
  8766. if ((time_t) -1 < 0)
  8767. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8768. continue;
  8769. delta = time_t_max / 997; /* a suitable prime number */
  8770. for (i = 0; i < N_STRINGS; i++)
  8771. {
  8772. if (tz_strings[i])
  8773. putenv (tz_strings[i]);
  8774. for (t = 0; t <= time_t_max - delta; t += delta)
  8775. mktime_test (t);
  8776. mktime_test ((time_t) 1);
  8777. mktime_test ((time_t) (60 * 60));
  8778. mktime_test ((time_t) (60 * 60 * 24));
  8779. for (j = 1; 0 < j; j *= 2)
  8780. bigtime_test (j);
  8781. bigtime_test (j - 1);
  8782. }
  8783. irix_6_4_bug ();
  8784. spring_forward_gap ();
  8785. exit (0);
  8786. }
  8787. _ACEOF
  8788. rm -f conftest$ac_exeext
  8789. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8790. (eval $ac_link) 2>&5
  8791. ac_status=$?
  8792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8793. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8795. (eval $ac_try) 2>&5
  8796. ac_status=$?
  8797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8798. (exit $ac_status); }; }; then
  8799. ac_cv_func_working_mktime=yes
  8800. else
  8801. echo "$as_me: program exited with status $ac_status" >&5
  8802. echo "$as_me: failed program was:" >&5
  8803. sed 's/^/| /' conftest.$ac_ext >&5
  8804. ( exit $ac_status )
  8805. ac_cv_func_working_mktime=no
  8806. fi
  8807. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8808. fi
  8809. fi
  8810. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8811. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8812. if test $ac_cv_func_working_mktime = no; then
  8813. case $LIBOBJS in
  8814. "mktime.$ac_objext" | \
  8815. *" mktime.$ac_objext" | \
  8816. "mktime.$ac_objext "* | \
  8817. *" mktime.$ac_objext "* ) ;;
  8818. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8819. esac
  8820. fi
  8821. for ac_header in stdlib.h unistd.h
  8822. do
  8823. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8824. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8825. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8826. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8827. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8828. echo $ECHO_N "(cached) $ECHO_C" >&6
  8829. fi
  8830. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8831. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8832. else
  8833. # Is the header compilable?
  8834. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8835. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8836. cat >conftest.$ac_ext <<_ACEOF
  8837. /* confdefs.h. */
  8838. _ACEOF
  8839. cat confdefs.h >>conftest.$ac_ext
  8840. cat >>conftest.$ac_ext <<_ACEOF
  8841. /* end confdefs.h. */
  8842. $ac_includes_default
  8843. #include <$ac_header>
  8844. _ACEOF
  8845. rm -f conftest.$ac_objext
  8846. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8847. (eval $ac_compile) 2>conftest.er1
  8848. ac_status=$?
  8849. grep -v '^ *+' conftest.er1 >conftest.err
  8850. rm -f conftest.er1
  8851. cat conftest.err >&5
  8852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8853. (exit $ac_status); } &&
  8854. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8856. (eval $ac_try) 2>&5
  8857. ac_status=$?
  8858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8859. (exit $ac_status); }; } &&
  8860. { ac_try='test -s conftest.$ac_objext'
  8861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8862. (eval $ac_try) 2>&5
  8863. ac_status=$?
  8864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8865. (exit $ac_status); }; }; then
  8866. ac_header_compiler=yes
  8867. else
  8868. echo "$as_me: failed program was:" >&5
  8869. sed 's/^/| /' conftest.$ac_ext >&5
  8870. ac_header_compiler=no
  8871. fi
  8872. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8873. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8874. echo "${ECHO_T}$ac_header_compiler" >&6
  8875. # Is the header present?
  8876. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8877. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8878. cat >conftest.$ac_ext <<_ACEOF
  8879. /* confdefs.h. */
  8880. _ACEOF
  8881. cat confdefs.h >>conftest.$ac_ext
  8882. cat >>conftest.$ac_ext <<_ACEOF
  8883. /* end confdefs.h. */
  8884. #include <$ac_header>
  8885. _ACEOF
  8886. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8887. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8888. ac_status=$?
  8889. grep -v '^ *+' conftest.er1 >conftest.err
  8890. rm -f conftest.er1
  8891. cat conftest.err >&5
  8892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8893. (exit $ac_status); } >/dev/null; then
  8894. if test -s conftest.err; then
  8895. ac_cpp_err=$ac_c_preproc_warn_flag
  8896. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8897. else
  8898. ac_cpp_err=
  8899. fi
  8900. else
  8901. ac_cpp_err=yes
  8902. fi
  8903. if test -z "$ac_cpp_err"; then
  8904. ac_header_preproc=yes
  8905. else
  8906. echo "$as_me: failed program was:" >&5
  8907. sed 's/^/| /' conftest.$ac_ext >&5
  8908. ac_header_preproc=no
  8909. fi
  8910. rm -f conftest.err conftest.$ac_ext
  8911. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8912. echo "${ECHO_T}$ac_header_preproc" >&6
  8913. # So? What about this header?
  8914. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8915. yes:no: )
  8916. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8917. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8918. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8919. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8920. ac_header_preproc=yes
  8921. ;;
  8922. no:yes:* )
  8923. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8924. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8925. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8926. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8927. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8928. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8929. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8930. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8931. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8932. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8933. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8934. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8935. (
  8936. cat <<\_ASBOX
  8937. ## ------------------------------------------ ##
  8938. ## Report this to the AC_PACKAGE_NAME lists. ##
  8939. ## ------------------------------------------ ##
  8940. _ASBOX
  8941. ) |
  8942. sed "s/^/$as_me: WARNING: /" >&2
  8943. ;;
  8944. esac
  8945. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8946. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8947. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8948. echo $ECHO_N "(cached) $ECHO_C" >&6
  8949. else
  8950. eval "$as_ac_Header=\$ac_header_preproc"
  8951. fi
  8952. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8953. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8954. fi
  8955. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8956. cat >>confdefs.h <<_ACEOF
  8957. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8958. _ACEOF
  8959. fi
  8960. done
  8961. for ac_func in getpagesize
  8962. do
  8963. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8964. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8965. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8966. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8967. echo $ECHO_N "(cached) $ECHO_C" >&6
  8968. else
  8969. cat >conftest.$ac_ext <<_ACEOF
  8970. /* confdefs.h. */
  8971. _ACEOF
  8972. cat confdefs.h >>conftest.$ac_ext
  8973. cat >>conftest.$ac_ext <<_ACEOF
  8974. /* end confdefs.h. */
  8975. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8976. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8977. #define $ac_func innocuous_$ac_func
  8978. /* System header to define __stub macros and hopefully few prototypes,
  8979. which can conflict with char $ac_func (); below.
  8980. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8981. <limits.h> exists even on freestanding compilers. */
  8982. #ifdef __STDC__
  8983. # include <limits.h>
  8984. #else
  8985. # include <assert.h>
  8986. #endif
  8987. #undef $ac_func
  8988. /* Override any gcc2 internal prototype to avoid an error. */
  8989. #ifdef __cplusplus
  8990. extern "C"
  8991. {
  8992. #endif
  8993. /* We use char because int might match the return type of a gcc2
  8994. builtin and then its argument prototype would still apply. */
  8995. char $ac_func ();
  8996. /* The GNU C library defines this for functions which it implements
  8997. to always fail with ENOSYS. Some functions are actually named
  8998. something starting with __ and the normal name is an alias. */
  8999. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9000. choke me
  9001. #else
  9002. char (*f) () = $ac_func;
  9003. #endif
  9004. #ifdef __cplusplus
  9005. }
  9006. #endif
  9007. int
  9008. main ()
  9009. {
  9010. return f != $ac_func;
  9011. ;
  9012. return 0;
  9013. }
  9014. _ACEOF
  9015. rm -f conftest.$ac_objext conftest$ac_exeext
  9016. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9017. (eval $ac_link) 2>conftest.er1
  9018. ac_status=$?
  9019. grep -v '^ *+' conftest.er1 >conftest.err
  9020. rm -f conftest.er1
  9021. cat conftest.err >&5
  9022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9023. (exit $ac_status); } &&
  9024. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9026. (eval $ac_try) 2>&5
  9027. ac_status=$?
  9028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9029. (exit $ac_status); }; } &&
  9030. { ac_try='test -s conftest$ac_exeext'
  9031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9032. (eval $ac_try) 2>&5
  9033. ac_status=$?
  9034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9035. (exit $ac_status); }; }; then
  9036. eval "$as_ac_var=yes"
  9037. else
  9038. echo "$as_me: failed program was:" >&5
  9039. sed 's/^/| /' conftest.$ac_ext >&5
  9040. eval "$as_ac_var=no"
  9041. fi
  9042. rm -f conftest.err conftest.$ac_objext \
  9043. conftest$ac_exeext conftest.$ac_ext
  9044. fi
  9045. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9046. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9047. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9048. cat >>confdefs.h <<_ACEOF
  9049. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9050. _ACEOF
  9051. fi
  9052. done
  9053. echo "$as_me:$LINENO: checking for working mmap" >&5
  9054. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9055. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9056. echo $ECHO_N "(cached) $ECHO_C" >&6
  9057. else
  9058. if test "$cross_compiling" = yes; then
  9059. ac_cv_func_mmap_fixed_mapped=no
  9060. else
  9061. cat >conftest.$ac_ext <<_ACEOF
  9062. /* confdefs.h. */
  9063. _ACEOF
  9064. cat confdefs.h >>conftest.$ac_ext
  9065. cat >>conftest.$ac_ext <<_ACEOF
  9066. /* end confdefs.h. */
  9067. $ac_includes_default
  9068. /* malloc might have been renamed as rpl_malloc. */
  9069. #undef malloc
  9070. /* Thanks to Mike Haertel and Jim Avera for this test.
  9071. Here is a matrix of mmap possibilities:
  9072. mmap private not fixed
  9073. mmap private fixed at somewhere currently unmapped
  9074. mmap private fixed at somewhere already mapped
  9075. mmap shared not fixed
  9076. mmap shared fixed at somewhere currently unmapped
  9077. mmap shared fixed at somewhere already mapped
  9078. For private mappings, we should verify that changes cannot be read()
  9079. back from the file, nor mmap's back from the file at a different
  9080. address. (There have been systems where private was not correctly
  9081. implemented like the infamous i386 svr4.0, and systems where the
  9082. VM page cache was not coherent with the file system buffer cache
  9083. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9084. For shared mappings, we should conversely verify that changes get
  9085. propagated back to all the places they're supposed to be.
  9086. Grep wants private fixed already mapped.
  9087. The main things grep needs to know about mmap are:
  9088. * does it exist and is it safe to write into the mmap'd area
  9089. * how to use it (BSD variants) */
  9090. #include <fcntl.h>
  9091. #include <sys/mman.h>
  9092. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9093. char *malloc ();
  9094. #endif
  9095. /* This mess was copied from the GNU getpagesize.h. */
  9096. #if !HAVE_GETPAGESIZE
  9097. /* Assume that all systems that can run configure have sys/param.h. */
  9098. # if !HAVE_SYS_PARAM_H
  9099. # define HAVE_SYS_PARAM_H 1
  9100. # endif
  9101. # ifdef _SC_PAGESIZE
  9102. # define getpagesize() sysconf(_SC_PAGESIZE)
  9103. # else /* no _SC_PAGESIZE */
  9104. # if HAVE_SYS_PARAM_H
  9105. # include <sys/param.h>
  9106. # ifdef EXEC_PAGESIZE
  9107. # define getpagesize() EXEC_PAGESIZE
  9108. # else /* no EXEC_PAGESIZE */
  9109. # ifdef NBPG
  9110. # define getpagesize() NBPG * CLSIZE
  9111. # ifndef CLSIZE
  9112. # define CLSIZE 1
  9113. # endif /* no CLSIZE */
  9114. # else /* no NBPG */
  9115. # ifdef NBPC
  9116. # define getpagesize() NBPC
  9117. # else /* no NBPC */
  9118. # ifdef PAGESIZE
  9119. # define getpagesize() PAGESIZE
  9120. # endif /* PAGESIZE */
  9121. # endif /* no NBPC */
  9122. # endif /* no NBPG */
  9123. # endif /* no EXEC_PAGESIZE */
  9124. # else /* no HAVE_SYS_PARAM_H */
  9125. # define getpagesize() 8192 /* punt totally */
  9126. # endif /* no HAVE_SYS_PARAM_H */
  9127. # endif /* no _SC_PAGESIZE */
  9128. #endif /* no HAVE_GETPAGESIZE */
  9129. int
  9130. main ()
  9131. {
  9132. char *data, *data2, *data3;
  9133. int i, pagesize;
  9134. int fd;
  9135. pagesize = getpagesize ();
  9136. /* First, make a file with some known garbage in it. */
  9137. data = (char *) malloc (pagesize);
  9138. if (!data)
  9139. exit (1);
  9140. for (i = 0; i < pagesize; ++i)
  9141. *(data + i) = rand ();
  9142. umask (0);
  9143. fd = creat ("conftest.mmap", 0600);
  9144. if (fd < 0)
  9145. exit (1);
  9146. if (write (fd, data, pagesize) != pagesize)
  9147. exit (1);
  9148. close (fd);
  9149. /* Next, try to mmap the file at a fixed address which already has
  9150. something else allocated at it. If we can, also make sure that
  9151. we see the same garbage. */
  9152. fd = open ("conftest.mmap", O_RDWR);
  9153. if (fd < 0)
  9154. exit (1);
  9155. data2 = (char *) malloc (2 * pagesize);
  9156. if (!data2)
  9157. exit (1);
  9158. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9159. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9160. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9161. exit (1);
  9162. for (i = 0; i < pagesize; ++i)
  9163. if (*(data + i) != *(data2 + i))
  9164. exit (1);
  9165. /* Finally, make sure that changes to the mapped area do not
  9166. percolate back to the file as seen by read(). (This is a bug on
  9167. some variants of i386 svr4.0.) */
  9168. for (i = 0; i < pagesize; ++i)
  9169. *(data2 + i) = *(data2 + i) + 1;
  9170. data3 = (char *) malloc (pagesize);
  9171. if (!data3)
  9172. exit (1);
  9173. if (read (fd, data3, pagesize) != pagesize)
  9174. exit (1);
  9175. for (i = 0; i < pagesize; ++i)
  9176. if (*(data + i) != *(data3 + i))
  9177. exit (1);
  9178. close (fd);
  9179. exit (0);
  9180. }
  9181. _ACEOF
  9182. rm -f conftest$ac_exeext
  9183. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9184. (eval $ac_link) 2>&5
  9185. ac_status=$?
  9186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9187. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9189. (eval $ac_try) 2>&5
  9190. ac_status=$?
  9191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9192. (exit $ac_status); }; }; then
  9193. ac_cv_func_mmap_fixed_mapped=yes
  9194. else
  9195. echo "$as_me: program exited with status $ac_status" >&5
  9196. echo "$as_me: failed program was:" >&5
  9197. sed 's/^/| /' conftest.$ac_ext >&5
  9198. ( exit $ac_status )
  9199. ac_cv_func_mmap_fixed_mapped=no
  9200. fi
  9201. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9202. fi
  9203. fi
  9204. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9205. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9206. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9207. cat >>confdefs.h <<\_ACEOF
  9208. #define HAVE_MMAP 1
  9209. _ACEOF
  9210. fi
  9211. rm -f conftest.mmap
  9212. for ac_header in stdlib.h
  9213. do
  9214. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9215. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9216. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9217. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9218. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9219. echo $ECHO_N "(cached) $ECHO_C" >&6
  9220. fi
  9221. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9222. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9223. else
  9224. # Is the header compilable?
  9225. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9226. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9227. cat >conftest.$ac_ext <<_ACEOF
  9228. /* confdefs.h. */
  9229. _ACEOF
  9230. cat confdefs.h >>conftest.$ac_ext
  9231. cat >>conftest.$ac_ext <<_ACEOF
  9232. /* end confdefs.h. */
  9233. $ac_includes_default
  9234. #include <$ac_header>
  9235. _ACEOF
  9236. rm -f conftest.$ac_objext
  9237. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9238. (eval $ac_compile) 2>conftest.er1
  9239. ac_status=$?
  9240. grep -v '^ *+' conftest.er1 >conftest.err
  9241. rm -f conftest.er1
  9242. cat conftest.err >&5
  9243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9244. (exit $ac_status); } &&
  9245. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9247. (eval $ac_try) 2>&5
  9248. ac_status=$?
  9249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9250. (exit $ac_status); }; } &&
  9251. { ac_try='test -s conftest.$ac_objext'
  9252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9253. (eval $ac_try) 2>&5
  9254. ac_status=$?
  9255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9256. (exit $ac_status); }; }; then
  9257. ac_header_compiler=yes
  9258. else
  9259. echo "$as_me: failed program was:" >&5
  9260. sed 's/^/| /' conftest.$ac_ext >&5
  9261. ac_header_compiler=no
  9262. fi
  9263. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9264. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9265. echo "${ECHO_T}$ac_header_compiler" >&6
  9266. # Is the header present?
  9267. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9268. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9269. cat >conftest.$ac_ext <<_ACEOF
  9270. /* confdefs.h. */
  9271. _ACEOF
  9272. cat confdefs.h >>conftest.$ac_ext
  9273. cat >>conftest.$ac_ext <<_ACEOF
  9274. /* end confdefs.h. */
  9275. #include <$ac_header>
  9276. _ACEOF
  9277. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9278. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9279. ac_status=$?
  9280. grep -v '^ *+' conftest.er1 >conftest.err
  9281. rm -f conftest.er1
  9282. cat conftest.err >&5
  9283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9284. (exit $ac_status); } >/dev/null; then
  9285. if test -s conftest.err; then
  9286. ac_cpp_err=$ac_c_preproc_warn_flag
  9287. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9288. else
  9289. ac_cpp_err=
  9290. fi
  9291. else
  9292. ac_cpp_err=yes
  9293. fi
  9294. if test -z "$ac_cpp_err"; then
  9295. ac_header_preproc=yes
  9296. else
  9297. echo "$as_me: failed program was:" >&5
  9298. sed 's/^/| /' conftest.$ac_ext >&5
  9299. ac_header_preproc=no
  9300. fi
  9301. rm -f conftest.err conftest.$ac_ext
  9302. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9303. echo "${ECHO_T}$ac_header_preproc" >&6
  9304. # So? What about this header?
  9305. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9306. yes:no: )
  9307. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9308. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9309. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9310. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9311. ac_header_preproc=yes
  9312. ;;
  9313. no:yes:* )
  9314. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9315. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9316. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9317. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9318. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9319. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9320. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9321. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9322. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9323. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9324. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9325. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9326. (
  9327. cat <<\_ASBOX
  9328. ## ------------------------------------------ ##
  9329. ## Report this to the AC_PACKAGE_NAME lists. ##
  9330. ## ------------------------------------------ ##
  9331. _ASBOX
  9332. ) |
  9333. sed "s/^/$as_me: WARNING: /" >&2
  9334. ;;
  9335. esac
  9336. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9337. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9338. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9339. echo $ECHO_N "(cached) $ECHO_C" >&6
  9340. else
  9341. eval "$as_ac_Header=\$ac_header_preproc"
  9342. fi
  9343. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9344. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9345. fi
  9346. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9347. cat >>confdefs.h <<_ACEOF
  9348. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9349. _ACEOF
  9350. fi
  9351. done
  9352. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9353. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9354. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9355. echo $ECHO_N "(cached) $ECHO_C" >&6
  9356. else
  9357. if test "$cross_compiling" = yes; then
  9358. ac_cv_func_realloc_0_nonnull=no
  9359. else
  9360. cat >conftest.$ac_ext <<_ACEOF
  9361. /* confdefs.h. */
  9362. _ACEOF
  9363. cat confdefs.h >>conftest.$ac_ext
  9364. cat >>conftest.$ac_ext <<_ACEOF
  9365. /* end confdefs.h. */
  9366. #if STDC_HEADERS || HAVE_STDLIB_H
  9367. # include <stdlib.h>
  9368. #else
  9369. char *realloc ();
  9370. #endif
  9371. int
  9372. main ()
  9373. {
  9374. exit (realloc (0, 0) ? 0 : 1);
  9375. ;
  9376. return 0;
  9377. }
  9378. _ACEOF
  9379. rm -f conftest$ac_exeext
  9380. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9381. (eval $ac_link) 2>&5
  9382. ac_status=$?
  9383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9384. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9386. (eval $ac_try) 2>&5
  9387. ac_status=$?
  9388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9389. (exit $ac_status); }; }; then
  9390. ac_cv_func_realloc_0_nonnull=yes
  9391. else
  9392. echo "$as_me: program exited with status $ac_status" >&5
  9393. echo "$as_me: failed program was:" >&5
  9394. sed 's/^/| /' conftest.$ac_ext >&5
  9395. ( exit $ac_status )
  9396. ac_cv_func_realloc_0_nonnull=no
  9397. fi
  9398. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9399. fi
  9400. fi
  9401. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9402. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9403. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9404. cat >>confdefs.h <<\_ACEOF
  9405. #define HAVE_REALLOC 1
  9406. _ACEOF
  9407. else
  9408. cat >>confdefs.h <<\_ACEOF
  9409. #define HAVE_REALLOC 0
  9410. _ACEOF
  9411. case $LIBOBJS in
  9412. "realloc.$ac_objext" | \
  9413. *" realloc.$ac_objext" | \
  9414. "realloc.$ac_objext "* | \
  9415. *" realloc.$ac_objext "* ) ;;
  9416. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9417. esac
  9418. cat >>confdefs.h <<\_ACEOF
  9419. #define realloc rpl_realloc
  9420. _ACEOF
  9421. fi
  9422. for ac_header in sys/select.h sys/socket.h
  9423. do
  9424. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9425. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9426. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9427. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9428. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9429. echo $ECHO_N "(cached) $ECHO_C" >&6
  9430. fi
  9431. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9432. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9433. else
  9434. # Is the header compilable?
  9435. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9436. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9437. cat >conftest.$ac_ext <<_ACEOF
  9438. /* confdefs.h. */
  9439. _ACEOF
  9440. cat confdefs.h >>conftest.$ac_ext
  9441. cat >>conftest.$ac_ext <<_ACEOF
  9442. /* end confdefs.h. */
  9443. $ac_includes_default
  9444. #include <$ac_header>
  9445. _ACEOF
  9446. rm -f conftest.$ac_objext
  9447. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9448. (eval $ac_compile) 2>conftest.er1
  9449. ac_status=$?
  9450. grep -v '^ *+' conftest.er1 >conftest.err
  9451. rm -f conftest.er1
  9452. cat conftest.err >&5
  9453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9454. (exit $ac_status); } &&
  9455. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9457. (eval $ac_try) 2>&5
  9458. ac_status=$?
  9459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9460. (exit $ac_status); }; } &&
  9461. { ac_try='test -s conftest.$ac_objext'
  9462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9463. (eval $ac_try) 2>&5
  9464. ac_status=$?
  9465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9466. (exit $ac_status); }; }; then
  9467. ac_header_compiler=yes
  9468. else
  9469. echo "$as_me: failed program was:" >&5
  9470. sed 's/^/| /' conftest.$ac_ext >&5
  9471. ac_header_compiler=no
  9472. fi
  9473. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9474. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9475. echo "${ECHO_T}$ac_header_compiler" >&6
  9476. # Is the header present?
  9477. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9478. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9479. cat >conftest.$ac_ext <<_ACEOF
  9480. /* confdefs.h. */
  9481. _ACEOF
  9482. cat confdefs.h >>conftest.$ac_ext
  9483. cat >>conftest.$ac_ext <<_ACEOF
  9484. /* end confdefs.h. */
  9485. #include <$ac_header>
  9486. _ACEOF
  9487. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9488. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9489. ac_status=$?
  9490. grep -v '^ *+' conftest.er1 >conftest.err
  9491. rm -f conftest.er1
  9492. cat conftest.err >&5
  9493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9494. (exit $ac_status); } >/dev/null; then
  9495. if test -s conftest.err; then
  9496. ac_cpp_err=$ac_c_preproc_warn_flag
  9497. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9498. else
  9499. ac_cpp_err=
  9500. fi
  9501. else
  9502. ac_cpp_err=yes
  9503. fi
  9504. if test -z "$ac_cpp_err"; then
  9505. ac_header_preproc=yes
  9506. else
  9507. echo "$as_me: failed program was:" >&5
  9508. sed 's/^/| /' conftest.$ac_ext >&5
  9509. ac_header_preproc=no
  9510. fi
  9511. rm -f conftest.err conftest.$ac_ext
  9512. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9513. echo "${ECHO_T}$ac_header_preproc" >&6
  9514. # So? What about this header?
  9515. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9516. yes:no: )
  9517. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9518. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9519. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9520. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9521. ac_header_preproc=yes
  9522. ;;
  9523. no:yes:* )
  9524. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9525. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9526. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9527. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9528. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9529. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9530. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9531. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9532. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9533. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9534. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9535. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9536. (
  9537. cat <<\_ASBOX
  9538. ## ------------------------------------------ ##
  9539. ## Report this to the AC_PACKAGE_NAME lists. ##
  9540. ## ------------------------------------------ ##
  9541. _ASBOX
  9542. ) |
  9543. sed "s/^/$as_me: WARNING: /" >&2
  9544. ;;
  9545. esac
  9546. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9547. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9548. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9549. echo $ECHO_N "(cached) $ECHO_C" >&6
  9550. else
  9551. eval "$as_ac_Header=\$ac_header_preproc"
  9552. fi
  9553. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9554. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9555. fi
  9556. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9557. cat >>confdefs.h <<_ACEOF
  9558. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9559. _ACEOF
  9560. fi
  9561. done
  9562. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9563. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9564. if test "${ac_cv_func_select_args+set}" = set; then
  9565. echo $ECHO_N "(cached) $ECHO_C" >&6
  9566. else
  9567. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9568. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9569. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9570. cat >conftest.$ac_ext <<_ACEOF
  9571. /* confdefs.h. */
  9572. _ACEOF
  9573. cat confdefs.h >>conftest.$ac_ext
  9574. cat >>conftest.$ac_ext <<_ACEOF
  9575. /* end confdefs.h. */
  9576. $ac_includes_default
  9577. #if HAVE_SYS_SELECT_H
  9578. # include <sys/select.h>
  9579. #endif
  9580. #if HAVE_SYS_SOCKET_H
  9581. # include <sys/socket.h>
  9582. #endif
  9583. int
  9584. main ()
  9585. {
  9586. extern int select ($ac_arg1,
  9587. $ac_arg234, $ac_arg234, $ac_arg234,
  9588. $ac_arg5);
  9589. ;
  9590. return 0;
  9591. }
  9592. _ACEOF
  9593. rm -f conftest.$ac_objext
  9594. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9595. (eval $ac_compile) 2>conftest.er1
  9596. ac_status=$?
  9597. grep -v '^ *+' conftest.er1 >conftest.err
  9598. rm -f conftest.er1
  9599. cat conftest.err >&5
  9600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9601. (exit $ac_status); } &&
  9602. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9604. (eval $ac_try) 2>&5
  9605. ac_status=$?
  9606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9607. (exit $ac_status); }; } &&
  9608. { ac_try='test -s conftest.$ac_objext'
  9609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9610. (eval $ac_try) 2>&5
  9611. ac_status=$?
  9612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9613. (exit $ac_status); }; }; then
  9614. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9615. else
  9616. echo "$as_me: failed program was:" >&5
  9617. sed 's/^/| /' conftest.$ac_ext >&5
  9618. fi
  9619. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9620. done
  9621. done
  9622. done
  9623. # Provide a safe default value.
  9624. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9625. fi
  9626. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9627. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9628. ac_save_IFS=$IFS; IFS=','
  9629. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9630. IFS=$ac_save_IFS
  9631. shift
  9632. cat >>confdefs.h <<_ACEOF
  9633. #define SELECT_TYPE_ARG1 $1
  9634. _ACEOF
  9635. cat >>confdefs.h <<_ACEOF
  9636. #define SELECT_TYPE_ARG234 ($2)
  9637. _ACEOF
  9638. cat >>confdefs.h <<_ACEOF
  9639. #define SELECT_TYPE_ARG5 ($3)
  9640. _ACEOF
  9641. rm -f conftest*
  9642. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9643. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9644. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9645. echo $ECHO_N "(cached) $ECHO_C" >&6
  9646. else
  9647. if test "$cross_compiling" = yes; then
  9648. ac_cv_func_stat_empty_string_bug=yes
  9649. else
  9650. cat >conftest.$ac_ext <<_ACEOF
  9651. /* confdefs.h. */
  9652. _ACEOF
  9653. cat confdefs.h >>conftest.$ac_ext
  9654. cat >>conftest.$ac_ext <<_ACEOF
  9655. /* end confdefs.h. */
  9656. $ac_includes_default
  9657. int
  9658. main ()
  9659. {
  9660. struct stat sbuf;
  9661. exit (stat ("", &sbuf) ? 1 : 0);
  9662. ;
  9663. return 0;
  9664. }
  9665. _ACEOF
  9666. rm -f conftest$ac_exeext
  9667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9668. (eval $ac_link) 2>&5
  9669. ac_status=$?
  9670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9671. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9673. (eval $ac_try) 2>&5
  9674. ac_status=$?
  9675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9676. (exit $ac_status); }; }; then
  9677. ac_cv_func_stat_empty_string_bug=yes
  9678. else
  9679. echo "$as_me: program exited with status $ac_status" >&5
  9680. echo "$as_me: failed program was:" >&5
  9681. sed 's/^/| /' conftest.$ac_ext >&5
  9682. ( exit $ac_status )
  9683. ac_cv_func_stat_empty_string_bug=no
  9684. fi
  9685. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9686. fi
  9687. fi
  9688. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9689. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9690. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9691. case $LIBOBJS in
  9692. "stat.$ac_objext" | \
  9693. *" stat.$ac_objext" | \
  9694. "stat.$ac_objext "* | \
  9695. *" stat.$ac_objext "* ) ;;
  9696. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9697. esac
  9698. cat >>confdefs.h <<_ACEOF
  9699. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9700. _ACEOF
  9701. fi
  9702. for ac_func in strftime
  9703. do
  9704. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9705. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9706. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9707. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9708. echo $ECHO_N "(cached) $ECHO_C" >&6
  9709. else
  9710. cat >conftest.$ac_ext <<_ACEOF
  9711. /* confdefs.h. */
  9712. _ACEOF
  9713. cat confdefs.h >>conftest.$ac_ext
  9714. cat >>conftest.$ac_ext <<_ACEOF
  9715. /* end confdefs.h. */
  9716. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9717. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9718. #define $ac_func innocuous_$ac_func
  9719. /* System header to define __stub macros and hopefully few prototypes,
  9720. which can conflict with char $ac_func (); below.
  9721. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9722. <limits.h> exists even on freestanding compilers. */
  9723. #ifdef __STDC__
  9724. # include <limits.h>
  9725. #else
  9726. # include <assert.h>
  9727. #endif
  9728. #undef $ac_func
  9729. /* Override any gcc2 internal prototype to avoid an error. */
  9730. #ifdef __cplusplus
  9731. extern "C"
  9732. {
  9733. #endif
  9734. /* We use char because int might match the return type of a gcc2
  9735. builtin and then its argument prototype would still apply. */
  9736. char $ac_func ();
  9737. /* The GNU C library defines this for functions which it implements
  9738. to always fail with ENOSYS. Some functions are actually named
  9739. something starting with __ and the normal name is an alias. */
  9740. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9741. choke me
  9742. #else
  9743. char (*f) () = $ac_func;
  9744. #endif
  9745. #ifdef __cplusplus
  9746. }
  9747. #endif
  9748. int
  9749. main ()
  9750. {
  9751. return f != $ac_func;
  9752. ;
  9753. return 0;
  9754. }
  9755. _ACEOF
  9756. rm -f conftest.$ac_objext conftest$ac_exeext
  9757. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9758. (eval $ac_link) 2>conftest.er1
  9759. ac_status=$?
  9760. grep -v '^ *+' conftest.er1 >conftest.err
  9761. rm -f conftest.er1
  9762. cat conftest.err >&5
  9763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9764. (exit $ac_status); } &&
  9765. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9767. (eval $ac_try) 2>&5
  9768. ac_status=$?
  9769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); }; } &&
  9771. { ac_try='test -s conftest$ac_exeext'
  9772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9773. (eval $ac_try) 2>&5
  9774. ac_status=$?
  9775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9776. (exit $ac_status); }; }; then
  9777. eval "$as_ac_var=yes"
  9778. else
  9779. echo "$as_me: failed program was:" >&5
  9780. sed 's/^/| /' conftest.$ac_ext >&5
  9781. eval "$as_ac_var=no"
  9782. fi
  9783. rm -f conftest.err conftest.$ac_objext \
  9784. conftest$ac_exeext conftest.$ac_ext
  9785. fi
  9786. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9787. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9788. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9789. cat >>confdefs.h <<_ACEOF
  9790. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9791. _ACEOF
  9792. else
  9793. # strftime is in -lintl on SCO UNIX.
  9794. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9795. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9796. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9797. echo $ECHO_N "(cached) $ECHO_C" >&6
  9798. else
  9799. ac_check_lib_save_LIBS=$LIBS
  9800. LIBS="-lintl $LIBS"
  9801. cat >conftest.$ac_ext <<_ACEOF
  9802. /* confdefs.h. */
  9803. _ACEOF
  9804. cat confdefs.h >>conftest.$ac_ext
  9805. cat >>conftest.$ac_ext <<_ACEOF
  9806. /* end confdefs.h. */
  9807. /* Override any gcc2 internal prototype to avoid an error. */
  9808. #ifdef __cplusplus
  9809. extern "C"
  9810. #endif
  9811. /* We use char because int might match the return type of a gcc2
  9812. builtin and then its argument prototype would still apply. */
  9813. char strftime ();
  9814. int
  9815. main ()
  9816. {
  9817. strftime ();
  9818. ;
  9819. return 0;
  9820. }
  9821. _ACEOF
  9822. rm -f conftest.$ac_objext conftest$ac_exeext
  9823. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9824. (eval $ac_link) 2>conftest.er1
  9825. ac_status=$?
  9826. grep -v '^ *+' conftest.er1 >conftest.err
  9827. rm -f conftest.er1
  9828. cat conftest.err >&5
  9829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9830. (exit $ac_status); } &&
  9831. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9833. (eval $ac_try) 2>&5
  9834. ac_status=$?
  9835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9836. (exit $ac_status); }; } &&
  9837. { ac_try='test -s conftest$ac_exeext'
  9838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9839. (eval $ac_try) 2>&5
  9840. ac_status=$?
  9841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9842. (exit $ac_status); }; }; then
  9843. ac_cv_lib_intl_strftime=yes
  9844. else
  9845. echo "$as_me: failed program was:" >&5
  9846. sed 's/^/| /' conftest.$ac_ext >&5
  9847. ac_cv_lib_intl_strftime=no
  9848. fi
  9849. rm -f conftest.err conftest.$ac_objext \
  9850. conftest$ac_exeext conftest.$ac_ext
  9851. LIBS=$ac_check_lib_save_LIBS
  9852. fi
  9853. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9854. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9855. if test $ac_cv_lib_intl_strftime = yes; then
  9856. cat >>confdefs.h <<\_ACEOF
  9857. #define HAVE_STRFTIME 1
  9858. _ACEOF
  9859. LIBS="-lintl $LIBS"
  9860. fi
  9861. fi
  9862. done
  9863. #checkpoint
  9864. cat >confcache <<\_ACEOF
  9865. # This file is a shell script that caches the results of configure
  9866. # tests run on this system so they can be shared between configure
  9867. # scripts and configure runs, see configure's option --config-cache.
  9868. # It is not useful on other systems. If it contains results you don't
  9869. # want to keep, you may remove or edit it.
  9870. #
  9871. # config.status only pays attention to the cache file if you give it
  9872. # the --recheck option to rerun configure.
  9873. #
  9874. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9875. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9876. # following values.
  9877. _ACEOF
  9878. # The following way of writing the cache mishandles newlines in values,
  9879. # but we know of no workaround that is simple, portable, and efficient.
  9880. # So, don't put newlines in cache variables' values.
  9881. # Ultrix sh set writes to stderr and can't be redirected directly,
  9882. # and sets the high bit in the cache file unless we assign to the vars.
  9883. {
  9884. (set) 2>&1 |
  9885. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9886. *ac_space=\ *)
  9887. # `set' does not quote correctly, so add quotes (double-quote
  9888. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9889. sed -n \
  9890. "s/'/'\\\\''/g;
  9891. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9892. ;;
  9893. *)
  9894. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9895. sed -n \
  9896. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9897. ;;
  9898. esac;
  9899. } |
  9900. sed '
  9901. t clear
  9902. : clear
  9903. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9904. t end
  9905. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9906. : end' >>confcache
  9907. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9908. if test -w $cache_file; then
  9909. test "x$cache_file" != "x/dev/null"
  9910. cat confcache >$cache_file
  9911. else
  9912. echo "not updating unwritable cache $cache_file"
  9913. fi
  9914. fi
  9915. rm -f confcache
  9916. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  9917. do
  9918. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9919. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9920. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9921. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9922. echo $ECHO_N "(cached) $ECHO_C" >&6
  9923. else
  9924. cat >conftest.$ac_ext <<_ACEOF
  9925. /* confdefs.h. */
  9926. _ACEOF
  9927. cat confdefs.h >>conftest.$ac_ext
  9928. cat >>conftest.$ac_ext <<_ACEOF
  9929. /* end confdefs.h. */
  9930. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9932. #define $ac_func innocuous_$ac_func
  9933. /* System header to define __stub macros and hopefully few prototypes,
  9934. which can conflict with char $ac_func (); below.
  9935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9936. <limits.h> exists even on freestanding compilers. */
  9937. #ifdef __STDC__
  9938. # include <limits.h>
  9939. #else
  9940. # include <assert.h>
  9941. #endif
  9942. #undef $ac_func
  9943. /* Override any gcc2 internal prototype to avoid an error. */
  9944. #ifdef __cplusplus
  9945. extern "C"
  9946. {
  9947. #endif
  9948. /* We use char because int might match the return type of a gcc2
  9949. builtin and then its argument prototype would still apply. */
  9950. char $ac_func ();
  9951. /* The GNU C library defines this for functions which it implements
  9952. to always fail with ENOSYS. Some functions are actually named
  9953. something starting with __ and the normal name is an alias. */
  9954. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9955. choke me
  9956. #else
  9957. char (*f) () = $ac_func;
  9958. #endif
  9959. #ifdef __cplusplus
  9960. }
  9961. #endif
  9962. int
  9963. main ()
  9964. {
  9965. return f != $ac_func;
  9966. ;
  9967. return 0;
  9968. }
  9969. _ACEOF
  9970. rm -f conftest.$ac_objext conftest$ac_exeext
  9971. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9972. (eval $ac_link) 2>conftest.er1
  9973. ac_status=$?
  9974. grep -v '^ *+' conftest.er1 >conftest.err
  9975. rm -f conftest.er1
  9976. cat conftest.err >&5
  9977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9978. (exit $ac_status); } &&
  9979. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9981. (eval $ac_try) 2>&5
  9982. ac_status=$?
  9983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9984. (exit $ac_status); }; } &&
  9985. { ac_try='test -s conftest$ac_exeext'
  9986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9987. (eval $ac_try) 2>&5
  9988. ac_status=$?
  9989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9990. (exit $ac_status); }; }; then
  9991. eval "$as_ac_var=yes"
  9992. else
  9993. echo "$as_me: failed program was:" >&5
  9994. sed 's/^/| /' conftest.$ac_ext >&5
  9995. eval "$as_ac_var=no"
  9996. fi
  9997. rm -f conftest.err conftest.$ac_objext \
  9998. conftest$ac_exeext conftest.$ac_ext
  9999. fi
  10000. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10001. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10002. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10003. cat >>confdefs.h <<_ACEOF
  10004. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10005. _ACEOF
  10006. fi
  10007. done
  10008. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10009. do
  10010. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10011. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10012. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10013. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10014. echo $ECHO_N "(cached) $ECHO_C" >&6
  10015. else
  10016. cat >conftest.$ac_ext <<_ACEOF
  10017. /* confdefs.h. */
  10018. _ACEOF
  10019. cat confdefs.h >>conftest.$ac_ext
  10020. cat >>conftest.$ac_ext <<_ACEOF
  10021. /* end confdefs.h. */
  10022. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10023. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10024. #define $ac_func innocuous_$ac_func
  10025. /* System header to define __stub macros and hopefully few prototypes,
  10026. which can conflict with char $ac_func (); below.
  10027. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10028. <limits.h> exists even on freestanding compilers. */
  10029. #ifdef __STDC__
  10030. # include <limits.h>
  10031. #else
  10032. # include <assert.h>
  10033. #endif
  10034. #undef $ac_func
  10035. /* Override any gcc2 internal prototype to avoid an error. */
  10036. #ifdef __cplusplus
  10037. extern "C"
  10038. {
  10039. #endif
  10040. /* We use char because int might match the return type of a gcc2
  10041. builtin and then its argument prototype would still apply. */
  10042. char $ac_func ();
  10043. /* The GNU C library defines this for functions which it implements
  10044. to always fail with ENOSYS. Some functions are actually named
  10045. something starting with __ and the normal name is an alias. */
  10046. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10047. choke me
  10048. #else
  10049. char (*f) () = $ac_func;
  10050. #endif
  10051. #ifdef __cplusplus
  10052. }
  10053. #endif
  10054. int
  10055. main ()
  10056. {
  10057. return f != $ac_func;
  10058. ;
  10059. return 0;
  10060. }
  10061. _ACEOF
  10062. rm -f conftest.$ac_objext conftest$ac_exeext
  10063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10064. (eval $ac_link) 2>conftest.er1
  10065. ac_status=$?
  10066. grep -v '^ *+' conftest.er1 >conftest.err
  10067. rm -f conftest.er1
  10068. cat conftest.err >&5
  10069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10070. (exit $ac_status); } &&
  10071. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10073. (eval $ac_try) 2>&5
  10074. ac_status=$?
  10075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10076. (exit $ac_status); }; } &&
  10077. { ac_try='test -s conftest$ac_exeext'
  10078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10079. (eval $ac_try) 2>&5
  10080. ac_status=$?
  10081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10082. (exit $ac_status); }; }; then
  10083. eval "$as_ac_var=yes"
  10084. else
  10085. echo "$as_me: failed program was:" >&5
  10086. sed 's/^/| /' conftest.$ac_ext >&5
  10087. eval "$as_ac_var=no"
  10088. fi
  10089. rm -f conftest.err conftest.$ac_objext \
  10090. conftest$ac_exeext conftest.$ac_ext
  10091. fi
  10092. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10093. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10094. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10095. cat >>confdefs.h <<_ACEOF
  10096. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10097. _ACEOF
  10098. fi
  10099. done
  10100. #checkpoint
  10101. cat >confcache <<\_ACEOF
  10102. # This file is a shell script that caches the results of configure
  10103. # tests run on this system so they can be shared between configure
  10104. # scripts and configure runs, see configure's option --config-cache.
  10105. # It is not useful on other systems. If it contains results you don't
  10106. # want to keep, you may remove or edit it.
  10107. #
  10108. # config.status only pays attention to the cache file if you give it
  10109. # the --recheck option to rerun configure.
  10110. #
  10111. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10112. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10113. # following values.
  10114. _ACEOF
  10115. # The following way of writing the cache mishandles newlines in values,
  10116. # but we know of no workaround that is simple, portable, and efficient.
  10117. # So, don't put newlines in cache variables' values.
  10118. # Ultrix sh set writes to stderr and can't be redirected directly,
  10119. # and sets the high bit in the cache file unless we assign to the vars.
  10120. {
  10121. (set) 2>&1 |
  10122. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10123. *ac_space=\ *)
  10124. # `set' does not quote correctly, so add quotes (double-quote
  10125. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10126. sed -n \
  10127. "s/'/'\\\\''/g;
  10128. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10129. ;;
  10130. *)
  10131. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10132. sed -n \
  10133. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10134. ;;
  10135. esac;
  10136. } |
  10137. sed '
  10138. t clear
  10139. : clear
  10140. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10141. t end
  10142. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10143. : end' >>confcache
  10144. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10145. if test -w $cache_file; then
  10146. test "x$cache_file" != "x/dev/null"
  10147. cat confcache >$cache_file
  10148. else
  10149. echo "not updating unwritable cache $cache_file"
  10150. fi
  10151. fi
  10152. rm -f confcache
  10153. for ac_func in strcasecmp strncasecmp vsnprintf
  10154. do
  10155. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10156. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10157. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10158. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10159. echo $ECHO_N "(cached) $ECHO_C" >&6
  10160. else
  10161. cat >conftest.$ac_ext <<_ACEOF
  10162. /* confdefs.h. */
  10163. _ACEOF
  10164. cat confdefs.h >>conftest.$ac_ext
  10165. cat >>conftest.$ac_ext <<_ACEOF
  10166. /* end confdefs.h. */
  10167. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10168. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10169. #define $ac_func innocuous_$ac_func
  10170. /* System header to define __stub macros and hopefully few prototypes,
  10171. which can conflict with char $ac_func (); below.
  10172. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10173. <limits.h> exists even on freestanding compilers. */
  10174. #ifdef __STDC__
  10175. # include <limits.h>
  10176. #else
  10177. # include <assert.h>
  10178. #endif
  10179. #undef $ac_func
  10180. /* Override any gcc2 internal prototype to avoid an error. */
  10181. #ifdef __cplusplus
  10182. extern "C"
  10183. {
  10184. #endif
  10185. /* We use char because int might match the return type of a gcc2
  10186. builtin and then its argument prototype would still apply. */
  10187. char $ac_func ();
  10188. /* The GNU C library defines this for functions which it implements
  10189. to always fail with ENOSYS. Some functions are actually named
  10190. something starting with __ and the normal name is an alias. */
  10191. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10192. choke me
  10193. #else
  10194. char (*f) () = $ac_func;
  10195. #endif
  10196. #ifdef __cplusplus
  10197. }
  10198. #endif
  10199. int
  10200. main ()
  10201. {
  10202. return f != $ac_func;
  10203. ;
  10204. return 0;
  10205. }
  10206. _ACEOF
  10207. rm -f conftest.$ac_objext conftest$ac_exeext
  10208. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10209. (eval $ac_link) 2>conftest.er1
  10210. ac_status=$?
  10211. grep -v '^ *+' conftest.er1 >conftest.err
  10212. rm -f conftest.er1
  10213. cat conftest.err >&5
  10214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10215. (exit $ac_status); } &&
  10216. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10217. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10218. (eval $ac_try) 2>&5
  10219. ac_status=$?
  10220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10221. (exit $ac_status); }; } &&
  10222. { ac_try='test -s conftest$ac_exeext'
  10223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10224. (eval $ac_try) 2>&5
  10225. ac_status=$?
  10226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10227. (exit $ac_status); }; }; then
  10228. eval "$as_ac_var=yes"
  10229. else
  10230. echo "$as_me: failed program was:" >&5
  10231. sed 's/^/| /' conftest.$ac_ext >&5
  10232. eval "$as_ac_var=no"
  10233. fi
  10234. rm -f conftest.err conftest.$ac_objext \
  10235. conftest$ac_exeext conftest.$ac_ext
  10236. fi
  10237. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10238. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10239. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10240. cat >>confdefs.h <<_ACEOF
  10241. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10242. _ACEOF
  10243. fi
  10244. done
  10245. #autoscan suggested this....
  10246. #These are recommended by autoscan, but no code supports it currently
  10247. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10248. for ac_func in vsprintf
  10249. do
  10250. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10251. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10252. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10253. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10254. echo $ECHO_N "(cached) $ECHO_C" >&6
  10255. else
  10256. cat >conftest.$ac_ext <<_ACEOF
  10257. /* confdefs.h. */
  10258. _ACEOF
  10259. cat confdefs.h >>conftest.$ac_ext
  10260. cat >>conftest.$ac_ext <<_ACEOF
  10261. /* end confdefs.h. */
  10262. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10263. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10264. #define $ac_func innocuous_$ac_func
  10265. /* System header to define __stub macros and hopefully few prototypes,
  10266. which can conflict with char $ac_func (); below.
  10267. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10268. <limits.h> exists even on freestanding compilers. */
  10269. #ifdef __STDC__
  10270. # include <limits.h>
  10271. #else
  10272. # include <assert.h>
  10273. #endif
  10274. #undef $ac_func
  10275. /* Override any gcc2 internal prototype to avoid an error. */
  10276. #ifdef __cplusplus
  10277. extern "C"
  10278. {
  10279. #endif
  10280. /* We use char because int might match the return type of a gcc2
  10281. builtin and then its argument prototype would still apply. */
  10282. char $ac_func ();
  10283. /* The GNU C library defines this for functions which it implements
  10284. to always fail with ENOSYS. Some functions are actually named
  10285. something starting with __ and the normal name is an alias. */
  10286. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10287. choke me
  10288. #else
  10289. char (*f) () = $ac_func;
  10290. #endif
  10291. #ifdef __cplusplus
  10292. }
  10293. #endif
  10294. int
  10295. main ()
  10296. {
  10297. return f != $ac_func;
  10298. ;
  10299. return 0;
  10300. }
  10301. _ACEOF
  10302. rm -f conftest.$ac_objext conftest$ac_exeext
  10303. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10304. (eval $ac_link) 2>conftest.er1
  10305. ac_status=$?
  10306. grep -v '^ *+' conftest.er1 >conftest.err
  10307. rm -f conftest.er1
  10308. cat conftest.err >&5
  10309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10310. (exit $ac_status); } &&
  10311. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10313. (eval $ac_try) 2>&5
  10314. ac_status=$?
  10315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10316. (exit $ac_status); }; } &&
  10317. { ac_try='test -s conftest$ac_exeext'
  10318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10319. (eval $ac_try) 2>&5
  10320. ac_status=$?
  10321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10322. (exit $ac_status); }; }; then
  10323. eval "$as_ac_var=yes"
  10324. else
  10325. echo "$as_me: failed program was:" >&5
  10326. sed 's/^/| /' conftest.$ac_ext >&5
  10327. eval "$as_ac_var=no"
  10328. fi
  10329. rm -f conftest.err conftest.$ac_objext \
  10330. conftest$ac_exeext conftest.$ac_ext
  10331. fi
  10332. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10333. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10334. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10335. cat >>confdefs.h <<_ACEOF
  10336. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10337. _ACEOF
  10338. fi
  10339. done
  10340. if test "$ac_cv_func_vsprintf" = "no"
  10341. then
  10342. cat << 'EOF' >&2
  10343. configure: error:
  10344. Your system does not have the sprintf/vsprintf libraries.
  10345. These are required to compile almost anything. Sorry.
  10346. EOF
  10347. exit 1
  10348. fi
  10349. for ac_func in uname
  10350. do
  10351. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10352. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10353. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10354. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10355. echo $ECHO_N "(cached) $ECHO_C" >&6
  10356. else
  10357. cat >conftest.$ac_ext <<_ACEOF
  10358. /* confdefs.h. */
  10359. _ACEOF
  10360. cat confdefs.h >>conftest.$ac_ext
  10361. cat >>conftest.$ac_ext <<_ACEOF
  10362. /* end confdefs.h. */
  10363. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10364. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10365. #define $ac_func innocuous_$ac_func
  10366. /* System header to define __stub macros and hopefully few prototypes,
  10367. which can conflict with char $ac_func (); below.
  10368. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10369. <limits.h> exists even on freestanding compilers. */
  10370. #ifdef __STDC__
  10371. # include <limits.h>
  10372. #else
  10373. # include <assert.h>
  10374. #endif
  10375. #undef $ac_func
  10376. /* Override any gcc2 internal prototype to avoid an error. */
  10377. #ifdef __cplusplus
  10378. extern "C"
  10379. {
  10380. #endif
  10381. /* We use char because int might match the return type of a gcc2
  10382. builtin and then its argument prototype would still apply. */
  10383. char $ac_func ();
  10384. /* The GNU C library defines this for functions which it implements
  10385. to always fail with ENOSYS. Some functions are actually named
  10386. something starting with __ and the normal name is an alias. */
  10387. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10388. choke me
  10389. #else
  10390. char (*f) () = $ac_func;
  10391. #endif
  10392. #ifdef __cplusplus
  10393. }
  10394. #endif
  10395. int
  10396. main ()
  10397. {
  10398. return f != $ac_func;
  10399. ;
  10400. return 0;
  10401. }
  10402. _ACEOF
  10403. rm -f conftest.$ac_objext conftest$ac_exeext
  10404. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10405. (eval $ac_link) 2>conftest.er1
  10406. ac_status=$?
  10407. grep -v '^ *+' conftest.er1 >conftest.err
  10408. rm -f conftest.er1
  10409. cat conftest.err >&5
  10410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10411. (exit $ac_status); } &&
  10412. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10414. (eval $ac_try) 2>&5
  10415. ac_status=$?
  10416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10417. (exit $ac_status); }; } &&
  10418. { ac_try='test -s conftest$ac_exeext'
  10419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10420. (eval $ac_try) 2>&5
  10421. ac_status=$?
  10422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10423. (exit $ac_status); }; }; then
  10424. eval "$as_ac_var=yes"
  10425. else
  10426. echo "$as_me: failed program was:" >&5
  10427. sed 's/^/| /' conftest.$ac_ext >&5
  10428. eval "$as_ac_var=no"
  10429. fi
  10430. rm -f conftest.err conftest.$ac_objext \
  10431. conftest$ac_exeext conftest.$ac_ext
  10432. fi
  10433. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10434. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10435. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10436. cat >>confdefs.h <<_ACEOF
  10437. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10438. _ACEOF
  10439. fi
  10440. done
  10441. if test "$ac_cv_func_uname" = "no"
  10442. then
  10443. cat << 'EOF' >&2
  10444. configure: error:
  10445. Your system does not have the uname() function.
  10446. This is required for the botpack.
  10447. EOF
  10448. exit 1
  10449. fi
  10450. # Make sure we have stdc headers, since we can't compile without them
  10451. if test "$ac_cv_header_stdc" = "no"
  10452. then
  10453. cat << 'EOF' >&2
  10454. configure: error:
  10455. Your system must support ANSI C Header files.
  10456. These are required for the language support. Sorry.
  10457. EOF
  10458. exit 1
  10459. fi
  10460. #checkpoint
  10461. cat >confcache <<\_ACEOF
  10462. # This file is a shell script that caches the results of configure
  10463. # tests run on this system so they can be shared between configure
  10464. # scripts and configure runs, see configure's option --config-cache.
  10465. # It is not useful on other systems. If it contains results you don't
  10466. # want to keep, you may remove or edit it.
  10467. #
  10468. # config.status only pays attention to the cache file if you give it
  10469. # the --recheck option to rerun configure.
  10470. #
  10471. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10472. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10473. # following values.
  10474. _ACEOF
  10475. # The following way of writing the cache mishandles newlines in values,
  10476. # but we know of no workaround that is simple, portable, and efficient.
  10477. # So, don't put newlines in cache variables' values.
  10478. # Ultrix sh set writes to stderr and can't be redirected directly,
  10479. # and sets the high bit in the cache file unless we assign to the vars.
  10480. {
  10481. (set) 2>&1 |
  10482. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10483. *ac_space=\ *)
  10484. # `set' does not quote correctly, so add quotes (double-quote
  10485. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10486. sed -n \
  10487. "s/'/'\\\\''/g;
  10488. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10489. ;;
  10490. *)
  10491. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10492. sed -n \
  10493. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10494. ;;
  10495. esac;
  10496. } |
  10497. sed '
  10498. t clear
  10499. : clear
  10500. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10501. t end
  10502. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10503. : end' >>confcache
  10504. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10505. if test -w $cache_file; then
  10506. test "x$cache_file" != "x/dev/null"
  10507. cat confcache >$cache_file
  10508. else
  10509. echo "not updating unwritable cache $cache_file"
  10510. fi
  10511. fi
  10512. rm -f confcache
  10513. # Where is Tcl? Is it here?
  10514. # ---------- begin robey's Tcl thingies
  10515. # (well, what used to be robey's Tcl thingies...)
  10516. # Latest tested Tcl version to recommend if Tcl isn't found
  10517. tclrecommendver="8.4"
  10518. # Site recommended to download Tcl from
  10519. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  10520. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  10521. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  10522. tcl8.0 tcl80"
  10523. # Tcl library filename suffixes
  10524. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  10525. # Tcl library search paths
  10526. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  10527. /usr/local/lib /usr/local/pkgs/tcl/lib \
  10528. /usr/lib /lib /usr/i486-linuxaout/lib \
  10529. /beos/system/lib /sys/lib"
  10530. # Tcl header filenames
  10531. tclheadernames="tcl.h"
  10532. # Tcl header search paths
  10533. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  10534. /usr/local/include /usr/local/pkgs/tcl/include \
  10535. /usr/include /beos/system/include /beos/devel/include \
  10536. /sys/include"
  10537. # oohh new configure --variables for those with multiple Tcl libs
  10538. # Check whether --with-tcllib or --without-tcllib was given.
  10539. if test "${with_tcllib+set}" = set; then
  10540. withval="$with_tcllib"
  10541. tcllibname="$withval"
  10542. fi;
  10543. # Check whether --with-tclinc or --without-tclinc was given.
  10544. if test "${with_tclinc+set}" = set; then
  10545. withval="$with_tclinc"
  10546. tclincname="$withval"
  10547. fi;
  10548. WARN=0
  10549. # Make sure either both or neither $tcllibname and $tclincname are set
  10550. if test ! "${tcllibname-x}" = "x"
  10551. then
  10552. if test "${tclincname-x}" = "x"
  10553. then
  10554. WARN=1
  10555. tcllibname=""
  10556. TCLLIB=""
  10557. TCLINC=""
  10558. fi
  10559. else
  10560. if test ! "${tclincname-x}" = "x"
  10561. then
  10562. WARN=1
  10563. tclincname=""
  10564. TCLLIB=""
  10565. TCLINC=""
  10566. fi
  10567. fi
  10568. if test "$WARN" = 1
  10569. then
  10570. cat << 'EOF' >&2
  10571. configure: warning:
  10572. You must specify both --with-tcllib and --with-tclinc for them to work.
  10573. configure will now attempt to autodetect both the Tcl library and header...
  10574. EOF
  10575. fi
  10576. WARN=0
  10577. # Make sure either both or neither $TCLLIB and $TCLINC are set
  10578. if test ! "${TCLLIB-x}" = "x"
  10579. then
  10580. if test "${TCLINC-x}" = "x"
  10581. then
  10582. WARN=1
  10583. WVAR1=TCLLIB
  10584. WVAR2=TCLINC
  10585. TCLLIB=""
  10586. fi
  10587. else
  10588. if test ! "${TCLINC-x}" = "x"
  10589. then
  10590. WARN=1
  10591. WVAR1=TCLINC
  10592. WVAR2=TCLLIB
  10593. TCLINC=""
  10594. fi
  10595. fi
  10596. if test "$WARN" = 1
  10597. then
  10598. cat << EOF >&2
  10599. configure: warning:
  10600. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  10601. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10602. configure will now attempt to autodetect both the Tcl library and header...
  10603. EOF
  10604. fi
  10605. # Look for Tcl library: if $tcllibname is set, check there first
  10606. if test ! "${tcllibname-x}" = "x"
  10607. then
  10608. if test -f "$tcllibname" && test -r "$tcllibname"
  10609. then
  10610. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  10611. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  10612. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  10613. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  10614. else
  10615. cat << EOF >&2
  10616. configure: warning:
  10617. The file '$tcllibname' given to option --with-tcllib is not valid.
  10618. configure will now attempt to autodetect both the Tcl library and header...
  10619. EOF
  10620. tcllibname=""
  10621. tclincname=""
  10622. TCLLIB=""
  10623. TCLLIBFN=""
  10624. TCLINC=""
  10625. TCLINCFN=""
  10626. fi
  10627. fi
  10628. # Look for Tcl header: if $tclincname is set, check there first
  10629. if test ! "${tclincname-x}" = "x"
  10630. then
  10631. if test -f "$tclincname" && test -r "$tclincname"
  10632. then
  10633. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  10634. TCLINCFN=`$BASENAME $tclincname`
  10635. else
  10636. cat << EOF >&2
  10637. configure: warning:
  10638. The file '$tclincname' given to option --with-tclinc is not valid.
  10639. configure will now attempt to autodetect both the Tcl library and header...
  10640. EOF
  10641. tcllibname=""
  10642. tclincname=""
  10643. TCLLIB=""
  10644. TCLLIBFN=""
  10645. TCLINC=""
  10646. TCLINCFN=""
  10647. fi
  10648. fi
  10649. # Look for Tcl library: if $TCLLIB is set, check there first
  10650. if test "${TCLLIBFN-x}" = "x"
  10651. then
  10652. if test ! "${TCLLIB-x}" = "x"
  10653. then
  10654. if test -d "$TCLLIB"
  10655. then
  10656. for tcllibfns in $tcllibnames
  10657. do
  10658. for tcllibext in $tcllibextensions
  10659. do
  10660. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  10661. then
  10662. TCLLIBFN="$tcllibfns$tcllibext"
  10663. TCLLIBEXT="$tcllibext"
  10664. TCLLIBFNS="$tcllibfns"
  10665. break 2
  10666. fi
  10667. done
  10668. done
  10669. fi
  10670. if test "${TCLLIBFN-x}" = "x"
  10671. then
  10672. cat << 'EOF' >&2
  10673. configure: warning:
  10674. Environment variable TCLLIB was set, but incorrect.
  10675. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10676. configure will now attempt to autodetect both the Tcl library and header...
  10677. EOF
  10678. TCLLIB=""
  10679. TCLLIBFN=""
  10680. TCLINC=""
  10681. TCLINCFN=""
  10682. fi
  10683. fi
  10684. fi
  10685. # Look for Tcl header: if $TCLINC is set, check there first
  10686. if test "${TCLINCFN-x}" = "x"
  10687. then
  10688. if test ! "${TCLINC-x}" = "x"
  10689. then
  10690. if test -d "$TCLINC"
  10691. then
  10692. for tclheaderfn in $tclheadernames
  10693. do
  10694. if test -r "$TCLINC/$tclheaderfn"
  10695. then
  10696. TCLINCFN="$tclheaderfn"
  10697. break
  10698. fi
  10699. done
  10700. fi
  10701. if test "${TCLINCFN-x}" = "x"
  10702. then
  10703. cat << 'EOF' >&2
  10704. configure: warning:
  10705. Environment variable TCLINC was set, but incorrect.
  10706. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10707. configure will now attempt to autodetect both the Tcl library and header...
  10708. EOF
  10709. TCLLIB=""
  10710. TCLLIBFN=""
  10711. TCLINC=""
  10712. TCLINCFN=""
  10713. fi
  10714. fi
  10715. fi
  10716. echo "$as_me:$LINENO: checking for Tcl library" >&5
  10717. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  10718. # Attempt autodetect for $TCLLIBFN if it's not set
  10719. if test ! "${TCLLIBFN-x}" = "x"
  10720. then
  10721. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  10722. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  10723. else
  10724. for tcllibfns in $tcllibnames
  10725. do
  10726. for tcllibext in $tcllibextensions
  10727. do
  10728. for tcllibpath in $tcllibpaths
  10729. do
  10730. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  10731. then
  10732. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  10733. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  10734. TCLLIB="$tcllibpath"
  10735. TCLLIBFN="$tcllibfns$tcllibext"
  10736. TCLLIBEXT="$tcllibext"
  10737. TCLLIBFNS="$tcllibfns"
  10738. break 3
  10739. fi
  10740. done
  10741. done
  10742. done
  10743. fi
  10744. # Show if $TCLLIBFN wasn't found
  10745. if test "${TCLLIBFN-x}" = "x"
  10746. then
  10747. echo "$as_me:$LINENO: result: not found" >&5
  10748. echo "${ECHO_T}not found" >&6
  10749. fi
  10750. echo "$as_me:$LINENO: checking for Tcl header" >&5
  10751. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  10752. # Attempt autodetect for $TCLINCFN if it's not set
  10753. if test ! "${TCLINCFN-x}" = "x"
  10754. then
  10755. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  10756. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  10757. else
  10758. for tclheaderpath in $tclheaderpaths
  10759. do
  10760. for tclheaderfn in $tclheadernames
  10761. do
  10762. if test -r "$tclheaderpath/$tclheaderfn"
  10763. then
  10764. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  10765. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  10766. TCLINC="$tclheaderpath"
  10767. TCLINCFN="$tclheaderfn"
  10768. break 2
  10769. fi
  10770. done
  10771. done
  10772. # FreeBSD hack ...
  10773. if test "${TCLINCFN-x}" = "x"
  10774. then
  10775. for tcllibfns in $tcllibnames
  10776. do
  10777. for tclheaderpath in $tclheaderpaths
  10778. do
  10779. for tclheaderfn in $tclheadernames
  10780. do
  10781. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  10782. then
  10783. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  10784. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  10785. TCLINC="$tclheaderpath/$tcllibfns"
  10786. TCLINCFN="$tclheaderfn"
  10787. break 3
  10788. fi
  10789. done
  10790. done
  10791. done
  10792. fi
  10793. fi
  10794. # Show if $TCLINCFN wasn't found
  10795. if test "${TCLINCFN-x}" = "x"
  10796. then
  10797. echo "$as_me:$LINENO: result: not found" >&5
  10798. echo "${ECHO_T}not found" >&6
  10799. fi
  10800. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  10801. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  10802. egg_tcl_changed=yes
  10803. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  10804. if test ! "$egg_tcl_id" = ":::"
  10805. then
  10806. egg_tcl_cached=yes
  10807. if test "${egg_cv_var_tcl_id+set}" = set; then
  10808. echo $ECHO_N "(cached) $ECHO_C" >&6
  10809. else
  10810. egg_cv_var_tcl_id="$egg_tcl_id"
  10811. egg_tcl_cached=no
  10812. fi
  10813. if test "$egg_tcl_cached" = "yes"
  10814. then
  10815. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  10816. then
  10817. egg_tcl_changed=no
  10818. else
  10819. egg_cv_var_tcl_id="$egg_tcl_id"
  10820. fi
  10821. fi
  10822. fi
  10823. if test "$egg_tcl_changed" = "yes"
  10824. then
  10825. echo "$as_me:$LINENO: result: yes" >&5
  10826. echo "${ECHO_T}yes" >&6
  10827. else
  10828. echo "$as_me:$LINENO: result: no" >&5
  10829. echo "${ECHO_T}no" >&6
  10830. fi
  10831. #checkpoint
  10832. cat >confcache <<\_ACEOF
  10833. # This file is a shell script that caches the results of configure
  10834. # tests run on this system so they can be shared between configure
  10835. # scripts and configure runs, see configure's option --config-cache.
  10836. # It is not useful on other systems. If it contains results you don't
  10837. # want to keep, you may remove or edit it.
  10838. #
  10839. # config.status only pays attention to the cache file if you give it
  10840. # the --recheck option to rerun configure.
  10841. #
  10842. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10843. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10844. # following values.
  10845. _ACEOF
  10846. # The following way of writing the cache mishandles newlines in values,
  10847. # but we know of no workaround that is simple, portable, and efficient.
  10848. # So, don't put newlines in cache variables' values.
  10849. # Ultrix sh set writes to stderr and can't be redirected directly,
  10850. # and sets the high bit in the cache file unless we assign to the vars.
  10851. {
  10852. (set) 2>&1 |
  10853. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10854. *ac_space=\ *)
  10855. # `set' does not quote correctly, so add quotes (double-quote
  10856. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10857. sed -n \
  10858. "s/'/'\\\\''/g;
  10859. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10860. ;;
  10861. *)
  10862. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10863. sed -n \
  10864. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10865. ;;
  10866. esac;
  10867. } |
  10868. sed '
  10869. t clear
  10870. : clear
  10871. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10872. t end
  10873. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10874. : end' >>confcache
  10875. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10876. if test -w $cache_file; then
  10877. test "x$cache_file" != "x/dev/null"
  10878. cat confcache >$cache_file
  10879. else
  10880. echo "not updating unwritable cache $cache_file"
  10881. fi
  10882. fi
  10883. rm -f confcache
  10884. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  10885. TCL_FOUND=0
  10886. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  10887. then
  10888. TCL_FOUND=1
  10889. # Check Tcl's version
  10890. if test "$egg_tcl_changed" = "yes"
  10891. then
  10892. unset egg_cv_var_tcl_version
  10893. fi
  10894. echo "$as_me:$LINENO: checking for Tcl version" >&5
  10895. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  10896. if test "${egg_cv_var_tcl_version+set}" = set; then
  10897. echo $ECHO_N "(cached) $ECHO_C" >&6
  10898. else
  10899. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  10900. fi
  10901. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  10902. then
  10903. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  10904. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  10905. else
  10906. echo "$as_me:$LINENO: result: not found" >&5
  10907. echo "${ECHO_T}not found" >&6
  10908. TCL_FOUND=0
  10909. fi
  10910. # Check Tcl's patch level (if available)
  10911. if test "$egg_tcl_changed" = "yes"
  10912. then
  10913. unset egg_cv_var_tcl_patch_level
  10914. fi
  10915. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  10916. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  10917. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  10918. echo $ECHO_N "(cached) $ECHO_C" >&6
  10919. else
  10920. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  10921. fi
  10922. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  10923. then
  10924. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  10925. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  10926. else
  10927. egg_cv_var_tcl_patch_level="unknown"
  10928. echo "$as_me:$LINENO: result: unknown" >&5
  10929. echo "${ECHO_T}unknown" >&6
  10930. fi
  10931. fi
  10932. # Check if we found Tcl's version
  10933. if test "$TCL_FOUND" = 0
  10934. then
  10935. cat << 'EOF' >&2
  10936. configure: error:
  10937. I can't find Tcl on this system.
  10938. The download website is at:
  10939. http://www.tcl.tk/software/tcltk/download84.html
  10940. A nice direct link for the tarball is:
  10941. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  10942. OR
  10943. Just type: ./build -T
  10944. EOF
  10945. exit 1
  10946. fi
  10947. # Is this version of Tcl too old for us to use ?
  10948. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  10949. if test "$TCL_VER_PRE80" = "yes"
  10950. then
  10951. cat << EOF >&2
  10952. configure: error:
  10953. Your Tcl version is much too old for Eggdrop to use.
  10954. I suggest you download and compile a more recent version.
  10955. The most reliable current version is $tclrecommendver and
  10956. can be downloaded from $tclrecommendsite
  10957. EOF
  10958. exit 1
  10959. fi
  10960. # Set variables for Tcl library tests
  10961. TCL_TEST_LIB="$TCLLIBFNS"
  10962. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  10963. if test ! "${ac_cv_lib_pthread-x}" = "x"
  10964. then
  10965. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  10966. fi
  10967. if test "$egg_tcl_changed" = "yes"
  10968. then
  10969. unset egg_cv_var_tcl_free
  10970. fi
  10971. # Check for Tcl_Free()
  10972. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  10973. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  10974. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  10975. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  10976. echo $ECHO_N "(cached) $ECHO_C" >&6
  10977. else
  10978. ac_check_lib_save_LIBS=$LIBS
  10979. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  10980. cat >conftest.$ac_ext <<_ACEOF
  10981. /* confdefs.h. */
  10982. _ACEOF
  10983. cat confdefs.h >>conftest.$ac_ext
  10984. cat >>conftest.$ac_ext <<_ACEOF
  10985. /* end confdefs.h. */
  10986. /* Override any gcc2 internal prototype to avoid an error. */
  10987. #ifdef __cplusplus
  10988. extern "C"
  10989. #endif
  10990. /* We use char because int might match the return type of a gcc2
  10991. builtin and then its argument prototype would still apply. */
  10992. char Tcl_Free ();
  10993. int
  10994. main ()
  10995. {
  10996. Tcl_Free ();
  10997. ;
  10998. return 0;
  10999. }
  11000. _ACEOF
  11001. rm -f conftest.$ac_objext conftest$ac_exeext
  11002. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11003. (eval $ac_link) 2>conftest.er1
  11004. ac_status=$?
  11005. grep -v '^ *+' conftest.er1 >conftest.err
  11006. rm -f conftest.er1
  11007. cat conftest.err >&5
  11008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11009. (exit $ac_status); } &&
  11010. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11012. (eval $ac_try) 2>&5
  11013. ac_status=$?
  11014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11015. (exit $ac_status); }; } &&
  11016. { ac_try='test -s conftest$ac_exeext'
  11017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11018. (eval $ac_try) 2>&5
  11019. ac_status=$?
  11020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11021. (exit $ac_status); }; }; then
  11022. eval "$as_ac_Lib=yes"
  11023. else
  11024. echo "$as_me: failed program was:" >&5
  11025. sed 's/^/| /' conftest.$ac_ext >&5
  11026. eval "$as_ac_Lib=no"
  11027. fi
  11028. rm -f conftest.err conftest.$ac_objext \
  11029. conftest$ac_exeext conftest.$ac_ext
  11030. LIBS=$ac_check_lib_save_LIBS
  11031. fi
  11032. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11033. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11034. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11035. egg_cv_var_tcl_free="yes"
  11036. else
  11037. egg_cv_var_tcl_free="no"
  11038. fi
  11039. if test "$egg_cv_var_tcl_free" = "yes"
  11040. then
  11041. cat >>confdefs.h <<\_ACEOF
  11042. #define HAVE_TCL_FREE 1
  11043. _ACEOF
  11044. fi
  11045. if test "$egg_tcl_changed" = "yes"
  11046. then
  11047. unset egg_cv_var_tcl_threaded
  11048. fi
  11049. # Check for TclpFinalizeThreadData()
  11050. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11051. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11052. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11053. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11054. echo $ECHO_N "(cached) $ECHO_C" >&6
  11055. else
  11056. ac_check_lib_save_LIBS=$LIBS
  11057. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11058. cat >conftest.$ac_ext <<_ACEOF
  11059. /* confdefs.h. */
  11060. _ACEOF
  11061. cat confdefs.h >>conftest.$ac_ext
  11062. cat >>conftest.$ac_ext <<_ACEOF
  11063. /* end confdefs.h. */
  11064. /* Override any gcc2 internal prototype to avoid an error. */
  11065. #ifdef __cplusplus
  11066. extern "C"
  11067. #endif
  11068. /* We use char because int might match the return type of a gcc2
  11069. builtin and then its argument prototype would still apply. */
  11070. char TclpFinalizeThreadData ();
  11071. int
  11072. main ()
  11073. {
  11074. TclpFinalizeThreadData ();
  11075. ;
  11076. return 0;
  11077. }
  11078. _ACEOF
  11079. rm -f conftest.$ac_objext conftest$ac_exeext
  11080. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11081. (eval $ac_link) 2>conftest.er1
  11082. ac_status=$?
  11083. grep -v '^ *+' conftest.er1 >conftest.err
  11084. rm -f conftest.er1
  11085. cat conftest.err >&5
  11086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11087. (exit $ac_status); } &&
  11088. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11090. (eval $ac_try) 2>&5
  11091. ac_status=$?
  11092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11093. (exit $ac_status); }; } &&
  11094. { ac_try='test -s conftest$ac_exeext'
  11095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11096. (eval $ac_try) 2>&5
  11097. ac_status=$?
  11098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11099. (exit $ac_status); }; }; then
  11100. eval "$as_ac_Lib=yes"
  11101. else
  11102. echo "$as_me: failed program was:" >&5
  11103. sed 's/^/| /' conftest.$ac_ext >&5
  11104. eval "$as_ac_Lib=no"
  11105. fi
  11106. rm -f conftest.err conftest.$ac_objext \
  11107. conftest$ac_exeext conftest.$ac_ext
  11108. LIBS=$ac_check_lib_save_LIBS
  11109. fi
  11110. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11111. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11112. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11113. egg_cv_var_tcl_threaded="yes"
  11114. else
  11115. egg_cv_var_tcl_threaded="no"
  11116. fi
  11117. enable_tcl_threads=no
  11118. if test "$egg_cv_var_tcl_threaded" = "yes"
  11119. then
  11120. if test "$enable_tcl_threads" = "no"
  11121. then
  11122. cat << 'EOF' >&2
  11123. configure: warning:
  11124. You have disabled threads support on a system with a threaded Tcl library.
  11125. Tcl features that rely on scheduled events may not function properly.
  11126. EOF
  11127. fi
  11128. # Add pthread library to $LIBS if we need it
  11129. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11130. then
  11131. LIBS="$ac_cv_lib_pthread $LIBS"
  11132. fi
  11133. fi
  11134. if test "$EGG_CYGWIN" = "yes"
  11135. then
  11136. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11137. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11138. else
  11139. if test ! "$TCLLIBEXT" = ".a"
  11140. then
  11141. cat << 'EOF' >&2
  11142. configure: warning:
  11143. Your Tcl library is not compiled statically.
  11144. You will need to compile Tcl statically to successfully compile wraith.
  11145. EOF
  11146. exit 1
  11147. else
  11148. # Was the --with-tcllib option given ?
  11149. if test ! "${tcllibname-x}" = "x"
  11150. then
  11151. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11152. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  11153. else
  11154. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11155. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11156. fi
  11157. fi
  11158. fi
  11159. ac_config_commands="$ac_config_commands replace-if-changed"
  11160. #checkpoint
  11161. cat >confcache <<\_ACEOF
  11162. # This file is a shell script that caches the results of configure
  11163. # tests run on this system so they can be shared between configure
  11164. # scripts and configure runs, see configure's option --config-cache.
  11165. # It is not useful on other systems. If it contains results you don't
  11166. # want to keep, you may remove or edit it.
  11167. #
  11168. # config.status only pays attention to the cache file if you give it
  11169. # the --recheck option to rerun configure.
  11170. #
  11171. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11172. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11173. # following values.
  11174. _ACEOF
  11175. # The following way of writing the cache mishandles newlines in values,
  11176. # but we know of no workaround that is simple, portable, and efficient.
  11177. # So, don't put newlines in cache variables' values.
  11178. # Ultrix sh set writes to stderr and can't be redirected directly,
  11179. # and sets the high bit in the cache file unless we assign to the vars.
  11180. {
  11181. (set) 2>&1 |
  11182. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11183. *ac_space=\ *)
  11184. # `set' does not quote correctly, so add quotes (double-quote
  11185. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11186. sed -n \
  11187. "s/'/'\\\\''/g;
  11188. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11189. ;;
  11190. *)
  11191. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11192. sed -n \
  11193. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11194. ;;
  11195. esac;
  11196. } |
  11197. sed '
  11198. t clear
  11199. : clear
  11200. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11201. t end
  11202. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11203. : end' >>confcache
  11204. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11205. if test -w $cache_file; then
  11206. test "x$cache_file" != "x/dev/null"
  11207. cat confcache >$cache_file
  11208. else
  11209. echo "not updating unwritable cache $cache_file"
  11210. fi
  11211. fi
  11212. rm -f confcache
  11213. # ---------- end of (what used to be) robey's Tcl thingies
  11214. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11215. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  11216. if ! test -f $srcdir/pack/pack.cfg; then
  11217. cat << 'EOF' >&2
  11218. configure: error:
  11219. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  11220. EOF
  11221. exit 1
  11222. fi
  11223. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  11224. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11225. cat >>confdefs.h <<_ACEOF
  11226. #define EGG_VERSION $version_num
  11227. _ACEOF
  11228. case "$srcdir" in
  11229. [\\/]* | ?:[\\/]*)
  11230. MOD_UPDIR=""
  11231. ;;
  11232. *)
  11233. MOD_UPDIR="../"
  11234. ;;
  11235. esac
  11236. ac_config_commands="$ac_config_commands catch-make-rebuild"
  11237. files="src/Makefile.in src/compat/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"
  11238. for mf in $files; do
  11239. # Strip MF so we end up with the name of the file.
  11240. # echo "MF: $mf"
  11241. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11242. dirpart=`(dirname "$mf") 2>/dev/null ||
  11243. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11244. X"$mf" : 'X\(//\)[^/]' \| \
  11245. X"$mf" : 'X\(//\)$' \| \
  11246. X"$mf" : 'X\(/\)' \| \
  11247. . : '\(.\)' 2>/dev/null ||
  11248. echo X"$mf" |
  11249. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11250. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11251. /^X\(\/\/\)$/{ s//\1/; q; }
  11252. /^X\(\/\).*/{ s//\1/; q; }
  11253. s/.*/./; q'`
  11254. # echo "dirpart: $dirpart mf: $mf"
  11255. rm -rf "$dirpart/.deps/"
  11256. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11257. for file in `sed -n -e '
  11258. /^OBJS = .*\\\\$/ {
  11259. s/^OBJS = //
  11260. :loop
  11261. s/\\\\$//
  11262. p
  11263. n
  11264. /\\\\$/ b loop
  11265. p
  11266. }
  11267. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11268. do
  11269. base=`basename $file .o`
  11270. test -f "$dirpart/$base.c" || continue
  11271. # fdir=`AS_DIRNAME(["$file"])`
  11272. # AS_MKDIR_P([$dirpart/$fdir])
  11273. # echo "creating $dirpart/.deps/$base.Po"
  11274. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11275. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11276. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11277. done
  11278. done
  11279. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile"
  11280. cat >confcache <<\_ACEOF
  11281. # This file is a shell script that caches the results of configure
  11282. # tests run on this system so they can be shared between configure
  11283. # scripts and configure runs, see configure's option --config-cache.
  11284. # It is not useful on other systems. If it contains results you don't
  11285. # want to keep, you may remove or edit it.
  11286. #
  11287. # config.status only pays attention to the cache file if you give it
  11288. # the --recheck option to rerun configure.
  11289. #
  11290. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11291. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11292. # following values.
  11293. _ACEOF
  11294. # The following way of writing the cache mishandles newlines in values,
  11295. # but we know of no workaround that is simple, portable, and efficient.
  11296. # So, don't put newlines in cache variables' values.
  11297. # Ultrix sh set writes to stderr and can't be redirected directly,
  11298. # and sets the high bit in the cache file unless we assign to the vars.
  11299. {
  11300. (set) 2>&1 |
  11301. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11302. *ac_space=\ *)
  11303. # `set' does not quote correctly, so add quotes (double-quote
  11304. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11305. sed -n \
  11306. "s/'/'\\\\''/g;
  11307. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11308. ;;
  11309. *)
  11310. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11311. sed -n \
  11312. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11313. ;;
  11314. esac;
  11315. } |
  11316. sed '
  11317. t clear
  11318. : clear
  11319. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11320. t end
  11321. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11322. : end' >>confcache
  11323. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11324. if test -w $cache_file; then
  11325. test "x$cache_file" != "x/dev/null"
  11326. cat confcache >$cache_file
  11327. else
  11328. echo "not updating unwritable cache $cache_file"
  11329. fi
  11330. fi
  11331. rm -f confcache
  11332. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11333. # Let make expand exec_prefix.
  11334. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11335. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11336. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11337. # trailing colons and then remove the whole line if VPATH becomes empty
  11338. # (actually we leave an empty line to preserve line numbers).
  11339. if test "x$srcdir" = x.; then
  11340. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11341. s/:*\$(srcdir):*/:/;
  11342. s/:*\${srcdir}:*/:/;
  11343. s/:*@srcdir@:*/:/;
  11344. s/^\([^=]*=[ ]*\):*/\1/;
  11345. s/:*$//;
  11346. s/^[^=]*=[ ]*$//;
  11347. }'
  11348. fi
  11349. DEFS=-DHAVE_CONFIG_H
  11350. ac_libobjs=
  11351. ac_ltlibobjs=
  11352. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11353. # 1. Remove the extension, and $U if already installed.
  11354. ac_i=`echo "$ac_i" |
  11355. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11356. # 2. Add them.
  11357. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11358. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11359. done
  11360. LIBOBJS=$ac_libobjs
  11361. LTLIBOBJS=$ac_ltlibobjs
  11362. : ${CONFIG_STATUS=./config.status}
  11363. ac_clean_files_save=$ac_clean_files
  11364. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11365. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11366. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11367. cat >$CONFIG_STATUS <<_ACEOF
  11368. #! $SHELL
  11369. # Generated by $as_me.
  11370. # Run this file to recreate the current configuration.
  11371. # Compiler output produced by configure, useful for debugging
  11372. # configure, is in config.log if it exists.
  11373. debug=false
  11374. ac_cs_recheck=false
  11375. ac_cs_silent=false
  11376. SHELL=\${CONFIG_SHELL-$SHELL}
  11377. _ACEOF
  11378. cat >>$CONFIG_STATUS <<\_ACEOF
  11379. ## --------------------- ##
  11380. ## M4sh Initialization. ##
  11381. ## --------------------- ##
  11382. # Be Bourne compatible
  11383. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11384. emulate sh
  11385. NULLCMD=:
  11386. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11387. # is contrary to our usage. Disable this feature.
  11388. alias -g '${1+"$@"}'='"$@"'
  11389. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11390. set -o posix
  11391. fi
  11392. DUALCASE=1; export DUALCASE # for MKS sh
  11393. # Support unset when possible.
  11394. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11395. as_unset=unset
  11396. else
  11397. as_unset=false
  11398. fi
  11399. # Work around bugs in pre-3.0 UWIN ksh.
  11400. $as_unset ENV MAIL MAILPATH
  11401. PS1='$ '
  11402. PS2='> '
  11403. PS4='+ '
  11404. # NLS nuisances.
  11405. for as_var in \
  11406. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11407. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11408. LC_TELEPHONE LC_TIME
  11409. do
  11410. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11411. eval $as_var=C; export $as_var
  11412. else
  11413. $as_unset $as_var
  11414. fi
  11415. done
  11416. # Required to use basename.
  11417. if expr a : '\(a\)' >/dev/null 2>&1; then
  11418. as_expr=expr
  11419. else
  11420. as_expr=false
  11421. fi
  11422. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11423. as_basename=basename
  11424. else
  11425. as_basename=false
  11426. fi
  11427. # Name of the executable.
  11428. as_me=`$as_basename "$0" ||
  11429. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11430. X"$0" : 'X\(//\)$' \| \
  11431. X"$0" : 'X\(/\)$' \| \
  11432. . : '\(.\)' 2>/dev/null ||
  11433. echo X/"$0" |
  11434. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11435. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11436. /^X\/\(\/\).*/{ s//\1/; q; }
  11437. s/.*/./; q'`
  11438. # PATH needs CR, and LINENO needs CR and PATH.
  11439. # Avoid depending upon Character Ranges.
  11440. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11441. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11442. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11443. as_cr_digits='0123456789'
  11444. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11445. # The user is always right.
  11446. if test "${PATH_SEPARATOR+set}" != set; then
  11447. echo "#! /bin/sh" >conf$$.sh
  11448. echo "exit 0" >>conf$$.sh
  11449. chmod +x conf$$.sh
  11450. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11451. PATH_SEPARATOR=';'
  11452. else
  11453. PATH_SEPARATOR=:
  11454. fi
  11455. rm -f conf$$.sh
  11456. fi
  11457. as_lineno_1=$LINENO
  11458. as_lineno_2=$LINENO
  11459. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11460. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11461. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11462. # Find who we are. Look in the path if we contain no path at all
  11463. # relative or not.
  11464. case $0 in
  11465. *[\\/]* ) as_myself=$0 ;;
  11466. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11467. for as_dir in $PATH
  11468. do
  11469. IFS=$as_save_IFS
  11470. test -z "$as_dir" && as_dir=.
  11471. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11472. done
  11473. ;;
  11474. esac
  11475. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11476. # in which case we are not to be found in the path.
  11477. if test "x$as_myself" = x; then
  11478. as_myself=$0
  11479. fi
  11480. if test ! -f "$as_myself"; then
  11481. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11482. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11483. { (exit 1); exit 1; }; }
  11484. fi
  11485. case $CONFIG_SHELL in
  11486. '')
  11487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11488. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11489. do
  11490. IFS=$as_save_IFS
  11491. test -z "$as_dir" && as_dir=.
  11492. for as_base in sh bash ksh sh5; do
  11493. case $as_dir in
  11494. /*)
  11495. if ("$as_dir/$as_base" -c '
  11496. as_lineno_1=$LINENO
  11497. as_lineno_2=$LINENO
  11498. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11499. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11500. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11501. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11502. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11503. CONFIG_SHELL=$as_dir/$as_base
  11504. export CONFIG_SHELL
  11505. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11506. fi;;
  11507. esac
  11508. done
  11509. done
  11510. ;;
  11511. esac
  11512. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11513. # uniformly replaced by the line number. The first 'sed' inserts a
  11514. # line-number line before each line; the second 'sed' does the real
  11515. # work. The second script uses 'N' to pair each line-number line
  11516. # with the numbered line, and appends trailing '-' during
  11517. # substitution so that $LINENO is not a special case at line end.
  11518. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11519. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11520. sed '=' <$as_myself |
  11521. sed '
  11522. N
  11523. s,$,-,
  11524. : loop
  11525. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11526. t loop
  11527. s,-$,,
  11528. s,^['$as_cr_digits']*\n,,
  11529. ' >$as_me.lineno &&
  11530. chmod +x $as_me.lineno ||
  11531. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11532. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11533. { (exit 1); exit 1; }; }
  11534. # Don't try to exec as it changes $[0], causing all sort of problems
  11535. # (the dirname of $[0] is not the place where we might find the
  11536. # original and so on. Autoconf is especially sensible to this).
  11537. . ./$as_me.lineno
  11538. # Exit status is that of the last command.
  11539. exit
  11540. }
  11541. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11542. *c*,-n*) ECHO_N= ECHO_C='
  11543. ' ECHO_T=' ' ;;
  11544. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11545. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11546. esac
  11547. if expr a : '\(a\)' >/dev/null 2>&1; then
  11548. as_expr=expr
  11549. else
  11550. as_expr=false
  11551. fi
  11552. rm -f conf$$ conf$$.exe conf$$.file
  11553. echo >conf$$.file
  11554. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11555. # We could just check for DJGPP; but this test a) works b) is more generic
  11556. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11557. if test -f conf$$.exe; then
  11558. # Don't use ln at all; we don't have any links
  11559. as_ln_s='cp -p'
  11560. else
  11561. as_ln_s='ln -s'
  11562. fi
  11563. elif ln conf$$.file conf$$ 2>/dev/null; then
  11564. as_ln_s=ln
  11565. else
  11566. as_ln_s='cp -p'
  11567. fi
  11568. rm -f conf$$ conf$$.exe conf$$.file
  11569. if mkdir -p . 2>/dev/null; then
  11570. as_mkdir_p=:
  11571. else
  11572. test -d ./-p && rmdir ./-p
  11573. as_mkdir_p=false
  11574. fi
  11575. as_executable_p="test -f"
  11576. # Sed expression to map a string onto a valid CPP name.
  11577. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11578. # Sed expression to map a string onto a valid variable name.
  11579. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11580. # IFS
  11581. # We need space, tab and new line, in precisely that order.
  11582. as_nl='
  11583. '
  11584. IFS=" $as_nl"
  11585. # CDPATH.
  11586. $as_unset CDPATH
  11587. exec 6>&1
  11588. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11589. # report actual input values of CONFIG_FILES etc. instead of their
  11590. # values after options handling. Logging --version etc. is OK.
  11591. exec 5>>config.log
  11592. {
  11593. echo
  11594. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11595. ## Running $as_me. ##
  11596. _ASBOX
  11597. } >&5
  11598. cat >&5 <<_CSEOF
  11599. This file was extended by $as_me, which was
  11600. generated by GNU Autoconf 2.59. Invocation command line was
  11601. CONFIG_FILES = $CONFIG_FILES
  11602. CONFIG_HEADERS = $CONFIG_HEADERS
  11603. CONFIG_LINKS = $CONFIG_LINKS
  11604. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11605. $ $0 $@
  11606. _CSEOF
  11607. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11608. echo >&5
  11609. _ACEOF
  11610. # Files that config.status was made for.
  11611. if test -n "$ac_config_files"; then
  11612. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11613. fi
  11614. if test -n "$ac_config_headers"; then
  11615. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11616. fi
  11617. if test -n "$ac_config_links"; then
  11618. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11619. fi
  11620. if test -n "$ac_config_commands"; then
  11621. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11622. fi
  11623. cat >>$CONFIG_STATUS <<\_ACEOF
  11624. ac_cs_usage="\
  11625. \`$as_me' instantiates files from templates according to the
  11626. current configuration.
  11627. Usage: $0 [OPTIONS] [FILE]...
  11628. -h, --help print this help, then exit
  11629. -V, --version print version number, then exit
  11630. -q, --quiet do not print progress messages
  11631. -d, --debug don't remove temporary files
  11632. --recheck update $as_me by reconfiguring in the same conditions
  11633. --file=FILE[:TEMPLATE]
  11634. instantiate the configuration file FILE
  11635. --header=FILE[:TEMPLATE]
  11636. instantiate the configuration header FILE
  11637. Configuration files:
  11638. $config_files
  11639. Configuration headers:
  11640. $config_headers
  11641. Configuration commands:
  11642. $config_commands
  11643. Report bugs to <bug-autoconf@gnu.org>."
  11644. _ACEOF
  11645. cat >>$CONFIG_STATUS <<_ACEOF
  11646. ac_cs_version="\\
  11647. config.status
  11648. configured by $0, generated by GNU Autoconf 2.59,
  11649. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11650. Copyright (C) 2003 Free Software Foundation, Inc.
  11651. This config.status script is free software; the Free Software Foundation
  11652. gives unlimited permission to copy, distribute and modify it."
  11653. srcdir=$srcdir
  11654. _ACEOF
  11655. cat >>$CONFIG_STATUS <<\_ACEOF
  11656. # If no file are specified by the user, then we need to provide default
  11657. # value. By we need to know if files were specified by the user.
  11658. ac_need_defaults=:
  11659. while test $# != 0
  11660. do
  11661. case $1 in
  11662. --*=*)
  11663. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11664. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11665. ac_shift=:
  11666. ;;
  11667. -*)
  11668. ac_option=$1
  11669. ac_optarg=$2
  11670. ac_shift=shift
  11671. ;;
  11672. *) # This is not an option, so the user has probably given explicit
  11673. # arguments.
  11674. ac_option=$1
  11675. ac_need_defaults=false;;
  11676. esac
  11677. case $ac_option in
  11678. # Handling of the options.
  11679. _ACEOF
  11680. cat >>$CONFIG_STATUS <<\_ACEOF
  11681. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11682. ac_cs_recheck=: ;;
  11683. --version | --vers* | -V )
  11684. echo "$ac_cs_version"; exit 0 ;;
  11685. --he | --h)
  11686. # Conflict between --help and --header
  11687. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11688. Try \`$0 --help' for more information." >&5
  11689. echo "$as_me: error: ambiguous option: $1
  11690. Try \`$0 --help' for more information." >&2;}
  11691. { (exit 1); exit 1; }; };;
  11692. --help | --hel | -h )
  11693. echo "$ac_cs_usage"; exit 0 ;;
  11694. --debug | --d* | -d )
  11695. debug=: ;;
  11696. --file | --fil | --fi | --f )
  11697. $ac_shift
  11698. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11699. ac_need_defaults=false;;
  11700. --header | --heade | --head | --hea )
  11701. $ac_shift
  11702. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11703. ac_need_defaults=false;;
  11704. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11705. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11706. ac_cs_silent=: ;;
  11707. # This is an error.
  11708. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11709. Try \`$0 --help' for more information." >&5
  11710. echo "$as_me: error: unrecognized option: $1
  11711. Try \`$0 --help' for more information." >&2;}
  11712. { (exit 1); exit 1; }; } ;;
  11713. *) ac_config_targets="$ac_config_targets $1" ;;
  11714. esac
  11715. shift
  11716. done
  11717. ac_configure_extra_args=
  11718. if $ac_cs_silent; then
  11719. exec 6>/dev/null
  11720. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11721. fi
  11722. _ACEOF
  11723. cat >>$CONFIG_STATUS <<_ACEOF
  11724. if \$ac_cs_recheck; then
  11725. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11726. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11727. fi
  11728. _ACEOF
  11729. cat >>$CONFIG_STATUS <<_ACEOF
  11730. #
  11731. # INIT-COMMANDS section.
  11732. #
  11733. egg_tclinc="$TCLINC"
  11734. egg_tclincfn="$TCLINCFN"
  11735. _ACEOF
  11736. cat >>$CONFIG_STATUS <<\_ACEOF
  11737. for ac_config_target in $ac_config_targets
  11738. do
  11739. case "$ac_config_target" in
  11740. # Handling of arguments.
  11741. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11742. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11743. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11744. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11745. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  11746. "catch-make-rebuild" ) CONFIG_COMMANDS="$CONFIG_COMMANDS catch-make-rebuild" ;;
  11747. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11748. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11749. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11750. { (exit 1); exit 1; }; };;
  11751. esac
  11752. done
  11753. # If the user did not use the arguments to specify the items to instantiate,
  11754. # then the envvar interface is used. Set only those that are not.
  11755. # We use the long form for the default assignment because of an extremely
  11756. # bizarre bug on SunOS 4.1.3.
  11757. if $ac_need_defaults; then
  11758. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11759. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11760. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11761. fi
  11762. # Have a temporary directory for convenience. Make it in the build tree
  11763. # simply because there is no reason to put it here, and in addition,
  11764. # creating and moving files from /tmp can sometimes cause problems.
  11765. # Create a temporary directory, and hook for its removal unless debugging.
  11766. $debug ||
  11767. {
  11768. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11769. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11770. }
  11771. # Create a (secure) tmp directory for tmp files.
  11772. {
  11773. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11774. test -n "$tmp" && test -d "$tmp"
  11775. } ||
  11776. {
  11777. tmp=./confstat$$-$RANDOM
  11778. (umask 077 && mkdir $tmp)
  11779. } ||
  11780. {
  11781. echo "$me: cannot create a temporary directory in ." >&2
  11782. { (exit 1); exit 1; }
  11783. }
  11784. _ACEOF
  11785. cat >>$CONFIG_STATUS <<_ACEOF
  11786. #
  11787. # CONFIG_FILES section.
  11788. #
  11789. # No need to generate the scripts if there are no CONFIG_FILES.
  11790. # This happens for instance when ./config.status config.h
  11791. if test -n "\$CONFIG_FILES"; then
  11792. # Protect against being on the right side of a sed subst in config.status.
  11793. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11794. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11795. s,@SHELL@,$SHELL,;t t
  11796. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11797. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11798. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11799. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11800. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11801. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11802. s,@exec_prefix@,$exec_prefix,;t t
  11803. s,@prefix@,$prefix,;t t
  11804. s,@program_transform_name@,$program_transform_name,;t t
  11805. s,@bindir@,$bindir,;t t
  11806. s,@sbindir@,$sbindir,;t t
  11807. s,@libexecdir@,$libexecdir,;t t
  11808. s,@datadir@,$datadir,;t t
  11809. s,@sysconfdir@,$sysconfdir,;t t
  11810. s,@sharedstatedir@,$sharedstatedir,;t t
  11811. s,@localstatedir@,$localstatedir,;t t
  11812. s,@libdir@,$libdir,;t t
  11813. s,@includedir@,$includedir,;t t
  11814. s,@oldincludedir@,$oldincludedir,;t t
  11815. s,@infodir@,$infodir,;t t
  11816. s,@mandir@,$mandir,;t t
  11817. s,@build_alias@,$build_alias,;t t
  11818. s,@host_alias@,$host_alias,;t t
  11819. s,@target_alias@,$target_alias,;t t
  11820. s,@DEFS@,$DEFS,;t t
  11821. s,@ECHO_C@,$ECHO_C,;t t
  11822. s,@ECHO_N@,$ECHO_N,;t t
  11823. s,@ECHO_T@,$ECHO_T,;t t
  11824. s,@LIBS@,$LIBS,;t t
  11825. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11826. s,@CC@,$CC,;t t
  11827. s,@CFLAGS@,$CFLAGS,;t t
  11828. s,@LDFLAGS@,$LDFLAGS,;t t
  11829. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11830. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11831. s,@EXEEXT@,$EXEEXT,;t t
  11832. s,@OBJEXT@,$OBJEXT,;t t
  11833. s,@CPP@,$CPP,;t t
  11834. s,@EGREP@,$EGREP,;t t
  11835. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11836. s,@CCDEBUG@,$CCDEBUG,;t t
  11837. s,@SET_MAKE@,$SET_MAKE,;t t
  11838. s,@HEAD_1@,$HEAD_1,;t t
  11839. s,@STRIP@,$STRIP,;t t
  11840. s,@AWK@,$AWK,;t t
  11841. s,@BASENAME@,$BASENAME,;t t
  11842. s,@CCACHE@,$CCACHE,;t t
  11843. s,@DISTCC@,$DISTCC,;t t
  11844. s,@UNAME@,$UNAME,;t t
  11845. s,@ZLIB@,$ZLIB,;t t
  11846. s,@SSL@,$SSL,;t t
  11847. s,@LIBOBJS@,$LIBOBJS,;t t
  11848. s,@TCLLIB@,$TCLLIB,;t t
  11849. s,@TCLLIBFN@,$TCLLIBFN,;t t
  11850. s,@TCLINC@,$TCLINC,;t t
  11851. s,@TCLINCFN@,$TCLINCFN,;t t
  11852. s,@TCL_REQS@,$TCL_REQS,;t t
  11853. s,@TCL_LIBS@,$TCL_LIBS,;t t
  11854. s,@VERSION@,$VERSION,;t t
  11855. s,@NUMVER@,$NUMVER,;t t
  11856. s,@PACKNAME@,$PACKNAME,;t t
  11857. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11858. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11859. CEOF
  11860. _ACEOF
  11861. cat >>$CONFIG_STATUS <<\_ACEOF
  11862. # Split the substitutions into bite-sized pieces for seds with
  11863. # small command number limits, like on Digital OSF/1 and HP-UX.
  11864. ac_max_sed_lines=48
  11865. ac_sed_frag=1 # Number of current file.
  11866. ac_beg=1 # First line for current file.
  11867. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11868. ac_more_lines=:
  11869. ac_sed_cmds=
  11870. while $ac_more_lines; do
  11871. if test $ac_beg -gt 1; then
  11872. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11873. else
  11874. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11875. fi
  11876. if test ! -s $tmp/subs.frag; then
  11877. ac_more_lines=false
  11878. else
  11879. # The purpose of the label and of the branching condition is to
  11880. # speed up the sed processing (if there are no `@' at all, there
  11881. # is no need to browse any of the substitutions).
  11882. # These are the two extra sed commands mentioned above.
  11883. (echo ':t
  11884. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11885. if test -z "$ac_sed_cmds"; then
  11886. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11887. else
  11888. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11889. fi
  11890. ac_sed_frag=`expr $ac_sed_frag + 1`
  11891. ac_beg=$ac_end
  11892. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11893. fi
  11894. done
  11895. if test -z "$ac_sed_cmds"; then
  11896. ac_sed_cmds=cat
  11897. fi
  11898. fi # test -n "$CONFIG_FILES"
  11899. _ACEOF
  11900. cat >>$CONFIG_STATUS <<\_ACEOF
  11901. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11902. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11903. case $ac_file in
  11904. - | *:- | *:-:* ) # input from stdin
  11905. cat >$tmp/stdin
  11906. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11907. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11908. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11909. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11910. * ) ac_file_in=$ac_file.in ;;
  11911. esac
  11912. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11913. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11914. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11915. X"$ac_file" : 'X\(//\)[^/]' \| \
  11916. X"$ac_file" : 'X\(//\)$' \| \
  11917. X"$ac_file" : 'X\(/\)' \| \
  11918. . : '\(.\)' 2>/dev/null ||
  11919. echo X"$ac_file" |
  11920. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11921. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11922. /^X\(\/\/\)$/{ s//\1/; q; }
  11923. /^X\(\/\).*/{ s//\1/; q; }
  11924. s/.*/./; q'`
  11925. { if $as_mkdir_p; then
  11926. mkdir -p "$ac_dir"
  11927. else
  11928. as_dir="$ac_dir"
  11929. as_dirs=
  11930. while test ! -d "$as_dir"; do
  11931. as_dirs="$as_dir $as_dirs"
  11932. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11933. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11934. X"$as_dir" : 'X\(//\)[^/]' \| \
  11935. X"$as_dir" : 'X\(//\)$' \| \
  11936. X"$as_dir" : 'X\(/\)' \| \
  11937. . : '\(.\)' 2>/dev/null ||
  11938. echo X"$as_dir" |
  11939. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11940. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11941. /^X\(\/\/\)$/{ s//\1/; q; }
  11942. /^X\(\/\).*/{ s//\1/; q; }
  11943. s/.*/./; q'`
  11944. done
  11945. test ! -n "$as_dirs" || mkdir $as_dirs
  11946. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11947. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11948. { (exit 1); exit 1; }; }; }
  11949. ac_builddir=.
  11950. if test "$ac_dir" != .; then
  11951. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11952. # A "../" for each directory in $ac_dir_suffix.
  11953. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11954. else
  11955. ac_dir_suffix= ac_top_builddir=
  11956. fi
  11957. case $srcdir in
  11958. .) # No --srcdir option. We are building in place.
  11959. ac_srcdir=.
  11960. if test -z "$ac_top_builddir"; then
  11961. ac_top_srcdir=.
  11962. else
  11963. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11964. fi ;;
  11965. [\\/]* | ?:[\\/]* ) # Absolute path.
  11966. ac_srcdir=$srcdir$ac_dir_suffix;
  11967. ac_top_srcdir=$srcdir ;;
  11968. *) # Relative path.
  11969. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11970. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11971. esac
  11972. # Do not use `cd foo && pwd` to compute absolute paths, because
  11973. # the directories may not exist.
  11974. case `pwd` in
  11975. .) ac_abs_builddir="$ac_dir";;
  11976. *)
  11977. case "$ac_dir" in
  11978. .) ac_abs_builddir=`pwd`;;
  11979. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11980. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11981. esac;;
  11982. esac
  11983. case $ac_abs_builddir in
  11984. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11985. *)
  11986. case ${ac_top_builddir}. in
  11987. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11988. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11989. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11990. esac;;
  11991. esac
  11992. case $ac_abs_builddir in
  11993. .) ac_abs_srcdir=$ac_srcdir;;
  11994. *)
  11995. case $ac_srcdir in
  11996. .) ac_abs_srcdir=$ac_abs_builddir;;
  11997. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11998. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11999. esac;;
  12000. esac
  12001. case $ac_abs_builddir in
  12002. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12003. *)
  12004. case $ac_top_srcdir in
  12005. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12006. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12007. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12008. esac;;
  12009. esac
  12010. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12011. # use $as_me), people would be surprised to read:
  12012. # /* config.h. Generated by config.status. */
  12013. if test x"$ac_file" = x-; then
  12014. configure_input=
  12015. else
  12016. configure_input="$ac_file. "
  12017. fi
  12018. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12019. sed 's,.*/,,'` by configure."
  12020. # First look for the input files in the build tree, otherwise in the
  12021. # src tree.
  12022. ac_file_inputs=`IFS=:
  12023. for f in $ac_file_in; do
  12024. case $f in
  12025. -) echo $tmp/stdin ;;
  12026. [\\/$]*)
  12027. # Absolute (can't be DOS-style, as IFS=:)
  12028. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12029. echo "$as_me: error: cannot find input file: $f" >&2;}
  12030. { (exit 1); exit 1; }; }
  12031. echo "$f";;
  12032. *) # Relative
  12033. if test -f "$f"; then
  12034. # Build tree
  12035. echo "$f"
  12036. elif test -f "$srcdir/$f"; then
  12037. # Source tree
  12038. echo "$srcdir/$f"
  12039. else
  12040. # /dev/null tree
  12041. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12042. echo "$as_me: error: cannot find input file: $f" >&2;}
  12043. { (exit 1); exit 1; }; }
  12044. fi;;
  12045. esac
  12046. done` || { (exit 1); exit 1; }
  12047. if test x"$ac_file" != x-; then
  12048. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12049. echo "$as_me: creating $ac_file" >&6;}
  12050. rm -f "$ac_file"
  12051. fi
  12052. _ACEOF
  12053. cat >>$CONFIG_STATUS <<_ACEOF
  12054. sed "$ac_vpsub
  12055. $extrasub
  12056. _ACEOF
  12057. cat >>$CONFIG_STATUS <<\_ACEOF
  12058. :t
  12059. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12060. s,@configure_input@,$configure_input,;t t
  12061. s,@srcdir@,$ac_srcdir,;t t
  12062. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12063. s,@top_srcdir@,$ac_top_srcdir,;t t
  12064. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12065. s,@builddir@,$ac_builddir,;t t
  12066. s,@abs_builddir@,$ac_abs_builddir,;t t
  12067. s,@top_builddir@,$ac_top_builddir,;t t
  12068. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12069. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12070. rm -f $tmp/stdin
  12071. if test x"$ac_file" != x-; then
  12072. mv $tmp/out $ac_file
  12073. else
  12074. cat $tmp/out
  12075. rm -f $tmp/out
  12076. fi
  12077. done
  12078. _ACEOF
  12079. cat >>$CONFIG_STATUS <<\_ACEOF
  12080. #
  12081. # CONFIG_HEADER section.
  12082. #
  12083. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12084. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12085. #
  12086. # ac_d sets the value in "#define NAME VALUE" lines.
  12087. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12088. ac_dB='[ ].*$,\1#\2'
  12089. ac_dC=' '
  12090. ac_dD=',;t'
  12091. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12092. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12093. ac_uB='$,\1#\2define\3'
  12094. ac_uC=' '
  12095. ac_uD=',;t'
  12096. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12097. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12098. case $ac_file in
  12099. - | *:- | *:-:* ) # input from stdin
  12100. cat >$tmp/stdin
  12101. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12102. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12103. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12104. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12105. * ) ac_file_in=$ac_file.in ;;
  12106. esac
  12107. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12108. echo "$as_me: creating $ac_file" >&6;}
  12109. # First look for the input files in the build tree, otherwise in the
  12110. # src tree.
  12111. ac_file_inputs=`IFS=:
  12112. for f in $ac_file_in; do
  12113. case $f in
  12114. -) echo $tmp/stdin ;;
  12115. [\\/$]*)
  12116. # Absolute (can't be DOS-style, as IFS=:)
  12117. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12118. echo "$as_me: error: cannot find input file: $f" >&2;}
  12119. { (exit 1); exit 1; }; }
  12120. # Do quote $f, to prevent DOS paths from being IFS'd.
  12121. echo "$f";;
  12122. *) # Relative
  12123. if test -f "$f"; then
  12124. # Build tree
  12125. echo "$f"
  12126. elif test -f "$srcdir/$f"; then
  12127. # Source tree
  12128. echo "$srcdir/$f"
  12129. else
  12130. # /dev/null tree
  12131. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12132. echo "$as_me: error: cannot find input file: $f" >&2;}
  12133. { (exit 1); exit 1; }; }
  12134. fi;;
  12135. esac
  12136. done` || { (exit 1); exit 1; }
  12137. # Remove the trailing spaces.
  12138. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12139. _ACEOF
  12140. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12141. # `conftest.undefs', that substitutes the proper values into
  12142. # config.h.in to produce config.h. The first handles `#define'
  12143. # templates, and the second `#undef' templates.
  12144. # And first: Protect against being on the right side of a sed subst in
  12145. # config.status. Protect against being in an unquoted here document
  12146. # in config.status.
  12147. rm -f conftest.defines conftest.undefs
  12148. # Using a here document instead of a string reduces the quoting nightmare.
  12149. # Putting comments in sed scripts is not portable.
  12150. #
  12151. # `end' is used to avoid that the second main sed command (meant for
  12152. # 0-ary CPP macros) applies to n-ary macro definitions.
  12153. # See the Autoconf documentation for `clear'.
  12154. cat >confdef2sed.sed <<\_ACEOF
  12155. s/[\\&,]/\\&/g
  12156. s,[\\$`],\\&,g
  12157. t clear
  12158. : clear
  12159. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12160. t end
  12161. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12162. : end
  12163. _ACEOF
  12164. # If some macros were called several times there might be several times
  12165. # the same #defines, which is useless. Nevertheless, we may not want to
  12166. # sort them, since we want the *last* AC-DEFINE to be honored.
  12167. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12168. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12169. rm -f confdef2sed.sed
  12170. # This sed command replaces #undef with comments. This is necessary, for
  12171. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12172. # on some systems where configure will not decide to define it.
  12173. cat >>conftest.undefs <<\_ACEOF
  12174. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12175. _ACEOF
  12176. # Break up conftest.defines because some shells have a limit on the size
  12177. # of here documents, and old seds have small limits too (100 cmds).
  12178. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12179. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12180. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12181. echo ' :' >>$CONFIG_STATUS
  12182. rm -f conftest.tail
  12183. while grep . conftest.defines >/dev/null
  12184. do
  12185. # Write a limited-size here document to $tmp/defines.sed.
  12186. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12187. # Speed up: don't consider the non `#define' lines.
  12188. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12189. # Work around the forget-to-reset-the-flag bug.
  12190. echo 't clr' >>$CONFIG_STATUS
  12191. echo ': clr' >>$CONFIG_STATUS
  12192. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12193. echo 'CEOF
  12194. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12195. rm -f $tmp/in
  12196. mv $tmp/out $tmp/in
  12197. ' >>$CONFIG_STATUS
  12198. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12199. rm -f conftest.defines
  12200. mv conftest.tail conftest.defines
  12201. done
  12202. rm -f conftest.defines
  12203. echo ' fi # grep' >>$CONFIG_STATUS
  12204. echo >>$CONFIG_STATUS
  12205. # Break up conftest.undefs because some shells have a limit on the size
  12206. # of here documents, and old seds have small limits too (100 cmds).
  12207. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12208. rm -f conftest.tail
  12209. while grep . conftest.undefs >/dev/null
  12210. do
  12211. # Write a limited-size here document to $tmp/undefs.sed.
  12212. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12213. # Speed up: don't consider the non `#undef'
  12214. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12215. # Work around the forget-to-reset-the-flag bug.
  12216. echo 't clr' >>$CONFIG_STATUS
  12217. echo ': clr' >>$CONFIG_STATUS
  12218. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12219. echo 'CEOF
  12220. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12221. rm -f $tmp/in
  12222. mv $tmp/out $tmp/in
  12223. ' >>$CONFIG_STATUS
  12224. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12225. rm -f conftest.undefs
  12226. mv conftest.tail conftest.undefs
  12227. done
  12228. rm -f conftest.undefs
  12229. cat >>$CONFIG_STATUS <<\_ACEOF
  12230. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12231. # use $as_me), people would be surprised to read:
  12232. # /* config.h. Generated by config.status. */
  12233. if test x"$ac_file" = x-; then
  12234. echo "/* Generated by configure. */" >$tmp/config.h
  12235. else
  12236. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12237. fi
  12238. cat $tmp/in >>$tmp/config.h
  12239. rm -f $tmp/in
  12240. if test x"$ac_file" != x-; then
  12241. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12242. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12243. echo "$as_me: $ac_file is unchanged" >&6;}
  12244. else
  12245. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12246. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12247. X"$ac_file" : 'X\(//\)[^/]' \| \
  12248. X"$ac_file" : 'X\(//\)$' \| \
  12249. X"$ac_file" : 'X\(/\)' \| \
  12250. . : '\(.\)' 2>/dev/null ||
  12251. echo X"$ac_file" |
  12252. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12253. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12254. /^X\(\/\/\)$/{ s//\1/; q; }
  12255. /^X\(\/\).*/{ s//\1/; q; }
  12256. s/.*/./; q'`
  12257. { if $as_mkdir_p; then
  12258. mkdir -p "$ac_dir"
  12259. else
  12260. as_dir="$ac_dir"
  12261. as_dirs=
  12262. while test ! -d "$as_dir"; do
  12263. as_dirs="$as_dir $as_dirs"
  12264. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12265. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12266. X"$as_dir" : 'X\(//\)[^/]' \| \
  12267. X"$as_dir" : 'X\(//\)$' \| \
  12268. X"$as_dir" : 'X\(/\)' \| \
  12269. . : '\(.\)' 2>/dev/null ||
  12270. echo X"$as_dir" |
  12271. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12272. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12273. /^X\(\/\/\)$/{ s//\1/; q; }
  12274. /^X\(\/\).*/{ s//\1/; q; }
  12275. s/.*/./; q'`
  12276. done
  12277. test ! -n "$as_dirs" || mkdir $as_dirs
  12278. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12279. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12280. { (exit 1); exit 1; }; }; }
  12281. rm -f $ac_file
  12282. mv $tmp/config.h $ac_file
  12283. fi
  12284. else
  12285. cat $tmp/config.h
  12286. rm -f $tmp/config.h
  12287. fi
  12288. done
  12289. _ACEOF
  12290. cat >>$CONFIG_STATUS <<\_ACEOF
  12291. #
  12292. # CONFIG_COMMANDS section.
  12293. #
  12294. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12295. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12296. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12297. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12298. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12299. X"$ac_dest" : 'X\(//\)[^/]' \| \
  12300. X"$ac_dest" : 'X\(//\)$' \| \
  12301. X"$ac_dest" : 'X\(/\)' \| \
  12302. . : '\(.\)' 2>/dev/null ||
  12303. echo X"$ac_dest" |
  12304. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12305. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12306. /^X\(\/\/\)$/{ s//\1/; q; }
  12307. /^X\(\/\).*/{ s//\1/; q; }
  12308. s/.*/./; q'`
  12309. { if $as_mkdir_p; then
  12310. mkdir -p "$ac_dir"
  12311. else
  12312. as_dir="$ac_dir"
  12313. as_dirs=
  12314. while test ! -d "$as_dir"; do
  12315. as_dirs="$as_dir $as_dirs"
  12316. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12318. X"$as_dir" : 'X\(//\)[^/]' \| \
  12319. X"$as_dir" : 'X\(//\)$' \| \
  12320. X"$as_dir" : 'X\(/\)' \| \
  12321. . : '\(.\)' 2>/dev/null ||
  12322. echo X"$as_dir" |
  12323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12324. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12325. /^X\(\/\/\)$/{ s//\1/; q; }
  12326. /^X\(\/\).*/{ s//\1/; q; }
  12327. s/.*/./; q'`
  12328. done
  12329. test ! -n "$as_dirs" || mkdir $as_dirs
  12330. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12331. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12332. { (exit 1); exit 1; }; }; }
  12333. ac_builddir=.
  12334. if test "$ac_dir" != .; then
  12335. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12336. # A "../" for each directory in $ac_dir_suffix.
  12337. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12338. else
  12339. ac_dir_suffix= ac_top_builddir=
  12340. fi
  12341. case $srcdir in
  12342. .) # No --srcdir option. We are building in place.
  12343. ac_srcdir=.
  12344. if test -z "$ac_top_builddir"; then
  12345. ac_top_srcdir=.
  12346. else
  12347. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12348. fi ;;
  12349. [\\/]* | ?:[\\/]* ) # Absolute path.
  12350. ac_srcdir=$srcdir$ac_dir_suffix;
  12351. ac_top_srcdir=$srcdir ;;
  12352. *) # Relative path.
  12353. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12354. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12355. esac
  12356. # Do not use `cd foo && pwd` to compute absolute paths, because
  12357. # the directories may not exist.
  12358. case `pwd` in
  12359. .) ac_abs_builddir="$ac_dir";;
  12360. *)
  12361. case "$ac_dir" in
  12362. .) ac_abs_builddir=`pwd`;;
  12363. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12364. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12365. esac;;
  12366. esac
  12367. case $ac_abs_builddir in
  12368. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12369. *)
  12370. case ${ac_top_builddir}. in
  12371. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12372. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12373. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12374. esac;;
  12375. esac
  12376. case $ac_abs_builddir in
  12377. .) ac_abs_srcdir=$ac_srcdir;;
  12378. *)
  12379. case $ac_srcdir in
  12380. .) ac_abs_srcdir=$ac_abs_builddir;;
  12381. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12382. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12383. esac;;
  12384. esac
  12385. case $ac_abs_builddir in
  12386. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12387. *)
  12388. case $ac_top_srcdir in
  12389. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12390. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12391. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12392. esac;;
  12393. esac
  12394. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12395. echo "$as_me: executing $ac_dest commands" >&6;}
  12396. case $ac_dest in
  12397. replace-if-changed )
  12398. egg_replace_file="lush.h"
  12399. cat > conftest.out << EOF
  12400. /* Ignore me but do not erase me. I am a kludge. */
  12401. #include "${egg_tclinc}/${egg_tclincfn}"
  12402. EOF
  12403. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  12404. echo "lush.h is unchanged"
  12405. else
  12406. echo "creating lush.h"
  12407. mv conftest.out $egg_replace_file
  12408. fi
  12409. rm -f conftest.out
  12410. ;;
  12411. catch-make-rebuild )
  12412. if test -f .modules; then
  12413. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  12414. fi
  12415. ;;
  12416. esac
  12417. done
  12418. _ACEOF
  12419. cat >>$CONFIG_STATUS <<\_ACEOF
  12420. { (exit 0); exit 0; }
  12421. _ACEOF
  12422. chmod +x $CONFIG_STATUS
  12423. ac_clean_files=$ac_clean_files_save
  12424. # configure is writing to config.log, and then calls config.status.
  12425. # config.status does its own redirection, appending to config.log.
  12426. # Unfortunately, on DOS this fails, as config.log is still kept open
  12427. # by configure, so config.status won't be able to write to it; its
  12428. # output is simply discarded. So we exec the FD to /dev/null,
  12429. # effectively closing config.log, so it can be properly (re)opened and
  12430. # appended to by config.status. When coming back to configure, we
  12431. # need to make the FD available again.
  12432. if test "$no_create" != yes; then
  12433. ac_cs_success=:
  12434. ac_config_status_args=
  12435. test "$silent" = yes &&
  12436. ac_config_status_args="$ac_config_status_args --quiet"
  12437. exec 5>/dev/null
  12438. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12439. exec 5>>config.log
  12440. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12441. # would make configure fail if this is the last instruction.
  12442. $ac_cs_success || { (exit 1); exit 1; }
  12443. fi