configure 188 KB

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