configure 172 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003
  1. #! /bin/sh
  2. # From configure.in Revision: 13486 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23. # Support unset when possible.
  24. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  25. as_unset=unset
  26. else
  27. as_unset=false
  28. fi
  29. # Work around bugs in pre-3.0 UWIN ksh.
  30. $as_unset ENV MAIL MAILPATH
  31. PS1='$ '
  32. PS2='> '
  33. PS4='+ '
  34. # NLS nuisances.
  35. for as_var in \
  36. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  37. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  38. LC_TELEPHONE LC_TIME
  39. do
  40. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  41. eval $as_var=C; export $as_var
  42. else
  43. $as_unset $as_var
  44. fi
  45. done
  46. # Required to use basename.
  47. if expr a : '\(a\)' >/dev/null 2>&1; then
  48. as_expr=expr
  49. else
  50. as_expr=false
  51. fi
  52. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  53. as_basename=basename
  54. else
  55. as_basename=false
  56. fi
  57. # Name of the executable.
  58. as_me=`$as_basename "$0" ||
  59. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  60. X"$0" : 'X\(//\)$' \| \
  61. X"$0" : 'X\(/\)$' \| \
  62. . : '\(.\)' 2>/dev/null ||
  63. echo X/"$0" |
  64. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  65. /^X\/\(\/\/\)$/{ s//\1/; q; }
  66. /^X\/\(\/\).*/{ s//\1/; q; }
  67. s/.*/./; q'`
  68. # PATH needs CR, and LINENO needs CR and PATH.
  69. # Avoid depending upon Character Ranges.
  70. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  71. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  72. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  73. as_cr_digits='0123456789'
  74. as_cr_alnum=$as_cr_Letters$as_cr_digits
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77. echo "#! /bin/sh" >conf$$.sh
  78. echo "exit 0" >>conf$$.sh
  79. chmod +x conf$$.sh
  80. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  81. PATH_SEPARATOR=';'
  82. else
  83. PATH_SEPARATOR=:
  84. fi
  85. rm -f conf$$.sh
  86. fi
  87. as_lineno_1=$LINENO
  88. as_lineno_2=$LINENO
  89. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  90. test "x$as_lineno_1" != "x$as_lineno_2" &&
  91. test "x$as_lineno_3" = "x$as_lineno_2" || {
  92. # Find who we are. Look in the path if we contain no path at all
  93. # relative or not.
  94. case $0 in
  95. *[\\/]* ) as_myself=$0 ;;
  96. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97. for as_dir in $PATH
  98. do
  99. IFS=$as_save_IFS
  100. test -z "$as_dir" && as_dir=.
  101. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  102. done
  103. ;;
  104. esac
  105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  106. # in which case we are not to be found in the path.
  107. if test "x$as_myself" = x; then
  108. as_myself=$0
  109. fi
  110. if test ! -f "$as_myself"; then
  111. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  112. { (exit 1); exit 1; }; }
  113. fi
  114. case $CONFIG_SHELL in
  115. '')
  116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  117. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  118. do
  119. IFS=$as_save_IFS
  120. test -z "$as_dir" && as_dir=.
  121. for as_base in sh bash ksh sh5; do
  122. case $as_dir in
  123. /*)
  124. if ("$as_dir/$as_base" -c '
  125. as_lineno_1=$LINENO
  126. as_lineno_2=$LINENO
  127. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  128. test "x$as_lineno_1" != "x$as_lineno_2" &&
  129. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  130. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  131. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  132. CONFIG_SHELL=$as_dir/$as_base
  133. export CONFIG_SHELL
  134. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  135. fi;;
  136. esac
  137. done
  138. done
  139. ;;
  140. esac
  141. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  142. # uniformly replaced by the line number. The first 'sed' inserts a
  143. # line-number line before each line; the second 'sed' does the real
  144. # work. The second script uses 'N' to pair each line-number line
  145. # with the numbered line, and appends trailing '-' during
  146. # substitution so that $LINENO is not a special case at line end.
  147. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  148. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  149. sed '=' <$as_myself |
  150. sed '
  151. N
  152. s,$,-,
  153. : loop
  154. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  155. t loop
  156. s,-$,,
  157. s,^['$as_cr_digits']*\n,,
  158. ' >$as_me.lineno &&
  159. chmod +x $as_me.lineno ||
  160. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  161. { (exit 1); exit 1; }; }
  162. # Don't try to exec as it changes $[0], causing all sort of problems
  163. # (the dirname of $[0] is not the place where we might find the
  164. # original and so on. Autoconf is especially sensible to this).
  165. . ./$as_me.lineno
  166. # Exit status is that of the last command.
  167. exit
  168. }
  169. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  170. *c*,-n*) ECHO_N= ECHO_C='
  171. ' ECHO_T=' ' ;;
  172. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  173. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  174. esac
  175. if expr a : '\(a\)' >/dev/null 2>&1; then
  176. as_expr=expr
  177. else
  178. as_expr=false
  179. fi
  180. rm -f conf$$ conf$$.exe conf$$.file
  181. echo >conf$$.file
  182. if ln -s conf$$.file conf$$ 2>/dev/null; then
  183. # We could just check for DJGPP; but this test a) works b) is more generic
  184. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  185. if test -f conf$$.exe; then
  186. # Don't use ln at all; we don't have any links
  187. as_ln_s='cp -p'
  188. else
  189. as_ln_s='ln -s'
  190. fi
  191. elif ln conf$$.file conf$$ 2>/dev/null; then
  192. as_ln_s=ln
  193. else
  194. as_ln_s='cp -p'
  195. fi
  196. rm -f conf$$ conf$$.exe conf$$.file
  197. if mkdir -p . 2>/dev/null; then
  198. as_mkdir_p=:
  199. else
  200. test -d ./-p && rmdir ./-p
  201. as_mkdir_p=false
  202. fi
  203. as_executable_p="test -f"
  204. # Sed expression to map a string onto a valid CPP name.
  205. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  206. # Sed expression to map a string onto a valid variable name.
  207. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  208. # IFS
  209. # We need space, tab and new line, in precisely that order.
  210. as_nl='
  211. '
  212. IFS=" $as_nl"
  213. # CDPATH.
  214. $as_unset CDPATH
  215. # Name of the host.
  216. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  217. # so uname gets run too.
  218. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  219. exec 6>&1
  220. #
  221. # Initializations.
  222. #
  223. ac_default_prefix=/usr/local
  224. ac_config_libobj_dir=.
  225. cross_compiling=no
  226. subdirs=
  227. MFLAGS=
  228. MAKEFLAGS=
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. # Maximum number of lines to put in a shell here document.
  231. # This variable seems obsolete. It should probably be removed, and
  232. # only ac_max_sed_lines should be used.
  233. : ${ac_max_here_lines=38}
  234. # Identity of this package.
  235. PACKAGE_NAME=
  236. PACKAGE_TARNAME=
  237. PACKAGE_VERSION=
  238. PACKAGE_STRING=
  239. PACKAGE_BUGREPORT=
  240. ac_unique_file="eAthena"
  241. ac_unique_file="src/common/cbasetypes.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP MYSQL_CONFIG_HOME HAVE_MYSQL MYSQL_VERSION MYSQL_CFLAGS MYSQL_LIBS HAVE_PCRE PCRE_LIBS PCRE_CFLAGS DLLEXT LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CC_set=${CC+set}
  662. ac_env_CC_value=$CC
  663. ac_cv_env_CC_set=${CC+set}
  664. ac_cv_env_CC_value=$CC
  665. ac_env_CFLAGS_set=${CFLAGS+set}
  666. ac_env_CFLAGS_value=$CFLAGS
  667. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  668. ac_cv_env_CFLAGS_value=$CFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CPP_set=${CPP+set}
  678. ac_env_CPP_value=$CPP
  679. ac_cv_env_CPP_set=${CPP+set}
  680. ac_cv_env_CPP_value=$CPP
  681. #
  682. # Report the --help message.
  683. #
  684. if test "$ac_init_help" = "long"; then
  685. # Omit some internal or obsolete options to make the list less imposing.
  686. # This message is too long to be a string in the A/UX 3.1 sh.
  687. cat <<_ACEOF
  688. \`configure' configures this package to adapt to many kinds of systems.
  689. Usage: $0 [OPTION]... [VAR=VALUE]...
  690. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  691. VAR=VALUE. See below for descriptions of some of the useful variables.
  692. Defaults for the options are specified in brackets.
  693. Configuration:
  694. -h, --help display this help and exit
  695. --help=short display options specific to this package
  696. --help=recursive display the short help of all the included packages
  697. -V, --version display version information and exit
  698. -q, --quiet, --silent do not print \`checking...' messages
  699. --cache-file=FILE cache test results in FILE [disabled]
  700. -C, --config-cache alias for \`--cache-file=config.cache'
  701. -n, --no-create do not create output files
  702. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  703. _ACEOF
  704. cat <<_ACEOF
  705. Installation directories:
  706. --prefix=PREFIX install architecture-independent files in PREFIX
  707. [$ac_default_prefix]
  708. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  709. [PREFIX]
  710. By default, \`make install' will install all the files in
  711. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  712. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  713. for instance \`--prefix=\$HOME'.
  714. For better control, use the options below.
  715. Fine tuning of the installation directories:
  716. --bindir=DIR user executables [EPREFIX/bin]
  717. --sbindir=DIR system admin executables [EPREFIX/sbin]
  718. --libexecdir=DIR program executables [EPREFIX/libexec]
  719. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  720. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  721. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  722. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  723. --libdir=DIR object code libraries [EPREFIX/lib]
  724. --includedir=DIR C header files [PREFIX/include]
  725. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  726. --infodir=DIR info documentation [PREFIX/info]
  727. --mandir=DIR man documentation [PREFIX/man]
  728. _ACEOF
  729. cat <<\_ACEOF
  730. _ACEOF
  731. fi
  732. if test -n "$ac_init_help"; then
  733. cat <<\_ACEOF
  734. Optional Features:
  735. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  736. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  737. --enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc,
  738. gcollect, bcheck (defaults to builtin)
  739. --enable-packetver=ARG Sets the PACKETVER define of the map-server. (see
  740. src/map/clif.h)
  741. --enable-debug[=ARG]
  742. Compiles extra debug code. (disabled by default)
  743. (available options: yes, no, gdb)
  744. --enable-rdtsc Uses rdtsc as timing source (disabled by default)
  745. Enable it when you've timing issues. (For example:
  746. in conjunction with XEN or Other Virtualization
  747. mechanisms) Note: Please ensure that you've disabled
  748. dynamic CPU-Frequencys, such as power saving
  749. options. (On the most modern Dedicated Servers
  750. cpufreq is preconfigured, see your distribution's
  751. manual how to disable it)
  752. --enable-profiler=ARG Profilers: no, gprof (disabled by default)
  753. --enable-64bit Don't force 32 bit. (disabled by default) 64bit
  754. support is still being tested, not recommended for
  755. production servers.
  756. Optional Packages:
  757. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  758. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  759. --with-mysql[=ARG]
  760. use MySQL client library, optionally specify the
  761. path to the mysql_config executable (by default
  762. mysql is used if found)
  763. --with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using
  764. "mysql_config --include")
  765. --with-MYSQL_LIBS=ARG specify MYSQL_LIBS manually (instead of using
  766. "mysql_config --libs")
  767. --with-pcre[=ARG] use PCRE library, optionally specify the full path
  768. of pcre installation directory (by default pcre is
  769. used if found)
  770. --with-zlib=DIR root directory path of zlib installation (defaults
  771. to /usr/local or /usr if not found in /usr/local).
  772. Assumes that the header files are in DIR/include and
  773. the library files are in DIR/lib
  774. Some influential environment variables:
  775. CC C compiler command
  776. CFLAGS C compiler flags
  777. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  778. nonstandard directory <lib dir>
  779. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  780. headers in a nonstandard directory <include dir>
  781. CPP C preprocessor
  782. Use these variables to override the choices made by `configure' or to help
  783. it to find libraries and programs with nonstandard names/locations.
  784. _ACEOF
  785. fi
  786. if test "$ac_init_help" = "recursive"; then
  787. # If there are subdirs, report their specific --help.
  788. ac_popdir=`pwd`
  789. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  790. test -d $ac_dir || continue
  791. ac_builddir=.
  792. if test "$ac_dir" != .; then
  793. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  794. # A "../" for each directory in $ac_dir_suffix.
  795. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  796. else
  797. ac_dir_suffix= ac_top_builddir=
  798. fi
  799. case $srcdir in
  800. .) # No --srcdir option. We are building in place.
  801. ac_srcdir=.
  802. if test -z "$ac_top_builddir"; then
  803. ac_top_srcdir=.
  804. else
  805. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  806. fi ;;
  807. [\\/]* | ?:[\\/]* ) # Absolute path.
  808. ac_srcdir=$srcdir$ac_dir_suffix;
  809. ac_top_srcdir=$srcdir ;;
  810. *) # Relative path.
  811. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  812. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  813. esac
  814. # Do not use `cd foo && pwd` to compute absolute paths, because
  815. # the directories may not exist.
  816. case `pwd` in
  817. .) ac_abs_builddir="$ac_dir";;
  818. *)
  819. case "$ac_dir" in
  820. .) ac_abs_builddir=`pwd`;;
  821. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  822. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  823. esac;;
  824. esac
  825. case $ac_abs_builddir in
  826. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  827. *)
  828. case ${ac_top_builddir}. in
  829. .) ac_abs_top_builddir=$ac_abs_builddir;;
  830. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  831. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  832. esac;;
  833. esac
  834. case $ac_abs_builddir in
  835. .) ac_abs_srcdir=$ac_srcdir;;
  836. *)
  837. case $ac_srcdir in
  838. .) ac_abs_srcdir=$ac_abs_builddir;;
  839. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  840. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  841. esac;;
  842. esac
  843. case $ac_abs_builddir in
  844. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  845. *)
  846. case $ac_top_srcdir in
  847. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  848. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  849. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  850. esac;;
  851. esac
  852. cd $ac_dir
  853. # Check for guested configure; otherwise get Cygnus style configure.
  854. if test -f $ac_srcdir/configure.gnu; then
  855. echo
  856. $SHELL $ac_srcdir/configure.gnu --help=recursive
  857. elif test -f $ac_srcdir/configure; then
  858. echo
  859. $SHELL $ac_srcdir/configure --help=recursive
  860. elif test -f $ac_srcdir/configure.ac ||
  861. test -f $ac_srcdir/configure.in; then
  862. echo
  863. $ac_configure --help
  864. else
  865. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  866. fi
  867. cd $ac_popdir
  868. done
  869. fi
  870. test -n "$ac_init_help" && exit 0
  871. if $ac_init_version; then
  872. cat <<\_ACEOF
  873. Copyright (C) 2003 Free Software Foundation, Inc.
  874. This configure script is free software; the Free Software Foundation
  875. gives unlimited permission to copy, distribute and modify it.
  876. _ACEOF
  877. exit 0
  878. fi
  879. exec 5>config.log
  880. cat >&5 <<_ACEOF
  881. This file contains any messages produced by compilers while
  882. running configure, to aid debugging if configure makes a mistake.
  883. It was created by $as_me, which was
  884. generated by GNU Autoconf 2.59. Invocation command line was
  885. $ $0 $@
  886. _ACEOF
  887. {
  888. cat <<_ASUNAME
  889. ## --------- ##
  890. ## Platform. ##
  891. ## --------- ##
  892. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  893. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  894. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  895. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  896. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  897. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  898. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  899. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  900. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  901. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  902. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  903. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  904. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  905. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  906. _ASUNAME
  907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  908. for as_dir in $PATH
  909. do
  910. IFS=$as_save_IFS
  911. test -z "$as_dir" && as_dir=.
  912. echo "PATH: $as_dir"
  913. done
  914. } >&5
  915. cat >&5 <<_ACEOF
  916. ## ----------- ##
  917. ## Core tests. ##
  918. ## ----------- ##
  919. _ACEOF
  920. # Keep a trace of the command line.
  921. # Strip out --no-create and --no-recursion so they do not pile up.
  922. # Strip out --silent because we don't want to record it for future runs.
  923. # Also quote any args containing shell meta-characters.
  924. # Make two passes to allow for proper duplicate-argument suppression.
  925. ac_configure_args=
  926. ac_configure_args0=
  927. ac_configure_args1=
  928. ac_sep=
  929. ac_must_keep_next=false
  930. for ac_pass in 1 2
  931. do
  932. for ac_arg
  933. do
  934. case $ac_arg in
  935. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  936. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  937. | -silent | --silent | --silen | --sile | --sil)
  938. continue ;;
  939. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  940. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  941. esac
  942. case $ac_pass in
  943. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  944. 2)
  945. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  946. if test $ac_must_keep_next = true; then
  947. ac_must_keep_next=false # Got value, back to normal.
  948. else
  949. case $ac_arg in
  950. *=* | --config-cache | -C | -disable-* | --disable-* \
  951. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  952. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  953. | -with-* | --with-* | -without-* | --without-* | --x)
  954. case "$ac_configure_args0 " in
  955. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  956. esac
  957. ;;
  958. -* ) ac_must_keep_next=true ;;
  959. esac
  960. fi
  961. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  962. # Get rid of the leading space.
  963. ac_sep=" "
  964. ;;
  965. esac
  966. done
  967. done
  968. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  969. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  970. # When interrupted or exit'd, cleanup temporary files, and complete
  971. # config.log. We remove comments because anyway the quotes in there
  972. # would cause problems or look ugly.
  973. # WARNING: Be sure not to use single quotes in there, as some shells,
  974. # such as our DU 5.0 friend, will then `close' the trap.
  975. trap 'exit_status=$?
  976. # Save into config.log some information that might help in debugging.
  977. {
  978. echo
  979. cat <<\_ASBOX
  980. ## ---------------- ##
  981. ## Cache variables. ##
  982. ## ---------------- ##
  983. _ASBOX
  984. echo
  985. # The following way of writing the cache mishandles newlines in values,
  986. {
  987. (set) 2>&1 |
  988. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  989. *ac_space=\ *)
  990. sed -n \
  991. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  992. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  993. ;;
  994. *)
  995. sed -n \
  996. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  997. ;;
  998. esac;
  999. }
  1000. echo
  1001. cat <<\_ASBOX
  1002. ## ----------------- ##
  1003. ## Output variables. ##
  1004. ## ----------------- ##
  1005. _ASBOX
  1006. echo
  1007. for ac_var in $ac_subst_vars
  1008. do
  1009. eval ac_val=$`echo $ac_var`
  1010. echo "$ac_var='"'"'$ac_val'"'"'"
  1011. done | sort
  1012. echo
  1013. if test -n "$ac_subst_files"; then
  1014. cat <<\_ASBOX
  1015. ## ------------- ##
  1016. ## Output files. ##
  1017. ## ------------- ##
  1018. _ASBOX
  1019. echo
  1020. for ac_var in $ac_subst_files
  1021. do
  1022. eval ac_val=$`echo $ac_var`
  1023. echo "$ac_var='"'"'$ac_val'"'"'"
  1024. done | sort
  1025. echo
  1026. fi
  1027. if test -s confdefs.h; then
  1028. cat <<\_ASBOX
  1029. ## ----------- ##
  1030. ## confdefs.h. ##
  1031. ## ----------- ##
  1032. _ASBOX
  1033. echo
  1034. sed "/^$/d" confdefs.h | sort
  1035. echo
  1036. fi
  1037. test "$ac_signal" != 0 &&
  1038. echo "$as_me: caught signal $ac_signal"
  1039. echo "$as_me: exit $exit_status"
  1040. } >&5
  1041. rm -f core *.core &&
  1042. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1043. exit $exit_status
  1044. ' 0
  1045. for ac_signal in 1 2 13 15; do
  1046. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1047. done
  1048. ac_signal=0
  1049. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1050. rm -rf conftest* confdefs.h
  1051. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1052. echo >confdefs.h
  1053. # Predefined preprocessor variables.
  1054. cat >>confdefs.h <<_ACEOF
  1055. #define PACKAGE_NAME "$PACKAGE_NAME"
  1056. _ACEOF
  1057. cat >>confdefs.h <<_ACEOF
  1058. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1059. _ACEOF
  1060. cat >>confdefs.h <<_ACEOF
  1061. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1062. _ACEOF
  1063. cat >>confdefs.h <<_ACEOF
  1064. #define PACKAGE_STRING "$PACKAGE_STRING"
  1065. _ACEOF
  1066. cat >>confdefs.h <<_ACEOF
  1067. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1068. _ACEOF
  1069. # Let the site file select an alternate cache file if it wants to.
  1070. # Prefer explicitly selected file to automatically selected ones.
  1071. if test -z "$CONFIG_SITE"; then
  1072. if test "x$prefix" != xNONE; then
  1073. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1074. else
  1075. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1076. fi
  1077. fi
  1078. for ac_site_file in $CONFIG_SITE; do
  1079. if test -r "$ac_site_file"; then
  1080. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1081. echo "$as_me: loading site script $ac_site_file" >&6;}
  1082. sed 's/^/| /' "$ac_site_file" >&5
  1083. . "$ac_site_file"
  1084. fi
  1085. done
  1086. if test -r "$cache_file"; then
  1087. # Some versions of bash will fail to source /dev/null (special
  1088. # files actually), so we avoid doing that.
  1089. if test -f "$cache_file"; then
  1090. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1091. echo "$as_me: loading cache $cache_file" >&6;}
  1092. case $cache_file in
  1093. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1094. *) . ./$cache_file;;
  1095. esac
  1096. fi
  1097. else
  1098. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1099. echo "$as_me: creating cache $cache_file" >&6;}
  1100. >$cache_file
  1101. fi
  1102. # Check that the precious variables saved in the cache have kept the same
  1103. # value.
  1104. ac_cache_corrupted=false
  1105. for ac_var in `(set) 2>&1 |
  1106. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1107. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1108. eval ac_new_set=\$ac_env_${ac_var}_set
  1109. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1110. eval ac_new_val="\$ac_env_${ac_var}_value"
  1111. case $ac_old_set,$ac_new_set in
  1112. set,)
  1113. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1114. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1115. ac_cache_corrupted=: ;;
  1116. ,set)
  1117. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1118. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1119. ac_cache_corrupted=: ;;
  1120. ,);;
  1121. *)
  1122. if test "x$ac_old_val" != "x$ac_new_val"; then
  1123. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1124. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1125. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1126. echo "$as_me: former value: $ac_old_val" >&2;}
  1127. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1128. echo "$as_me: current value: $ac_new_val" >&2;}
  1129. ac_cache_corrupted=:
  1130. fi;;
  1131. esac
  1132. # Pass precious variables to config.status.
  1133. if test "$ac_new_set" = set; then
  1134. case $ac_new_val in
  1135. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1136. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1137. *) ac_arg=$ac_var=$ac_new_val ;;
  1138. esac
  1139. case " $ac_configure_args " in
  1140. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1141. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1142. esac
  1143. fi
  1144. done
  1145. if $ac_cache_corrupted; then
  1146. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1147. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1148. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1149. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1150. { (exit 1); exit 1; }; }
  1151. fi
  1152. ac_ext=c
  1153. ac_cpp='$CPP $CPPFLAGS'
  1154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1157. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  1158. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile src/ladmin/Makefile"
  1159. ac_config_files="$ac_config_files src/char_sql/Makefile src/txt-converter/Makefile"
  1160. ac_config_files="$ac_config_files src/map/Makefile src/plugins/Makefile src/tool/Makefile"
  1161. #
  1162. # Memory managers
  1163. #
  1164. # Check whether --enable-manager or --disable-manager was given.
  1165. if test "${enable_manager+set}" = set; then
  1166. enableval="$enable_manager"
  1167. enable_manager="$enableval"
  1168. case $enableval in
  1169. "no");;
  1170. "builtin");;
  1171. "memwatch");;
  1172. "dmalloc");;
  1173. "gcollect");;
  1174. "bcheck");;
  1175. *) { { echo "$as_me:$LINENO: error: unknown memory manager '$enableval'... stopping" >&5
  1176. echo "$as_me: error: unknown memory manager '$enableval'... stopping" >&2;}
  1177. { (exit 1); exit 1; }; };;
  1178. esac
  1179. else
  1180. enable_manager="builtin"
  1181. fi;
  1182. #
  1183. # packetver
  1184. #
  1185. # Check whether --enable-packetver or --disable-packetver was given.
  1186. if test "${enable_packetver+set}" = set; then
  1187. enableval="$enable_packetver"
  1188. enable_packetver="$enableval"
  1189. else
  1190. enable_packetver=""
  1191. fi;
  1192. #
  1193. # debug
  1194. #
  1195. # Check whether --enable-debug or --disable-debug was given.
  1196. if test "${enable_debug+set}" = set; then
  1197. enableval="$enable_debug"
  1198. enable_debug="$enableval"
  1199. case $enableval in
  1200. "no");;
  1201. "yes");;
  1202. "gdb");;
  1203. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-debug=$enableval... stopping" >&5
  1204. echo "$as_me: error: invalid argument --enable-debug=$enableval... stopping" >&2;}
  1205. { (exit 1); exit 1; }; };;
  1206. esac
  1207. else
  1208. enable_debug="no"
  1209. fi;
  1210. #
  1211. # RDTSC as Tick Source
  1212. #
  1213. # Check whether --enable-rdtsc or --disable-rdtsc was given.
  1214. if test "${enable_rdtsc+set}" = set; then
  1215. enableval="$enable_rdtsc"
  1216. enable_rdtsc=1
  1217. else
  1218. enable_rdtsc=0
  1219. fi;
  1220. #
  1221. # Profiler
  1222. #
  1223. # Check whether --enable-profiler or --disable-profiler was given.
  1224. if test "${enable_profiler+set}" = set; then
  1225. enableval="$enable_profiler"
  1226. enable_profiler="$enableval"
  1227. case $enableval in
  1228. "no");;
  1229. "gprof");;
  1230. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-profiler=$enableval... stopping" >&5
  1231. echo "$as_me: error: invalid argument --enable-profiler=$enableval... stopping" >&2;}
  1232. { (exit 1); exit 1; }; };;
  1233. esac
  1234. else
  1235. enable_profiler="no"
  1236. fi;
  1237. #
  1238. # 64bit
  1239. #
  1240. # Check whether --enable-64bit or --disable-64bit was given.
  1241. if test "${enable_64bit+set}" = set; then
  1242. enableval="$enable_64bit"
  1243. enable_64bit="$enableval"
  1244. case $enableval in
  1245. "no");;
  1246. "yes");;
  1247. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-64bit=$enableval... stopping" >&5
  1248. echo "$as_me: error: invalid argument --enable-64bit=$enableval... stopping" >&2;}
  1249. { (exit 1); exit 1; }; };;
  1250. esac
  1251. else
  1252. enable_64bit="no"
  1253. fi;
  1254. #
  1255. # Enable/disable MySql and optionally specify the path to mysql_config (optional library)
  1256. #
  1257. # Check whether --with-mysql or --without-mysql was given.
  1258. if test "${with_mysql+set}" = set; then
  1259. withval="$with_mysql"
  1260. if test "$withval" = "no" ; then
  1261. want_mysql="no"
  1262. else
  1263. want_mysql="yes"
  1264. require_mysql="yes"
  1265. if test "$withval" != "yes" ; then
  1266. if test ! -x "$withval" ; then
  1267. { { echo "$as_me:$LINENO: error: $withval is not an executable file" >&5
  1268. echo "$as_me: error: $withval is not an executable file" >&2;}
  1269. { (exit 1); exit 1; }; }
  1270. fi
  1271. MYSQL_CONFIG_HOME="$withval"
  1272. fi
  1273. fi
  1274. else
  1275. want_mysql="yes" require_mysql="no"
  1276. fi;
  1277. #
  1278. # Manual MYSQL_CFLAGS (optional)
  1279. #
  1280. # Check whether --with-MYSQL_CFLAGS or --without-MYSQL_CFLAGS was given.
  1281. if test "${with_MYSQL_CFLAGS+set}" = set; then
  1282. withval="$with_MYSQL_CFLAGS"
  1283. manual_MYSQL_CFLAGS="yes"
  1284. MYSQL_CFLAGS="$withval"
  1285. else
  1286. manual_MYSQL_CFLAGS="no"
  1287. fi;
  1288. #
  1289. # Manual MYSQL_LIBS (optional)
  1290. #
  1291. # Check whether --with-MYSQL_LIBS or --without-MYSQL_LIBS was given.
  1292. if test "${with_MYSQL_LIBS+set}" = set; then
  1293. withval="$with_MYSQL_LIBS"
  1294. manual_MYSQL_LIBS="yes"
  1295. MYSQL_LIBS="$withval"
  1296. else
  1297. manual_MYSQL_LIBS="no"
  1298. fi;
  1299. #
  1300. # Enable/disable PCRE and optionally specify the path (optional library)
  1301. #
  1302. # Check whether --with-pcre or --without-pcre was given.
  1303. if test "${with_pcre+set}" = set; then
  1304. withval="$with_pcre"
  1305. if test "$withval" = "no" ; then
  1306. want_pcre="no"
  1307. else
  1308. want_pcre="yes"
  1309. require_pcre="yes"
  1310. if test "$withval" != "yes" ; then
  1311. if test ! -d "$withval" ; then
  1312. { { echo "$as_me:$LINENO: error: $withval is not a directoy" >&5
  1313. echo "$as_me: error: $withval is not a directoy" >&2;}
  1314. { (exit 1); exit 1; }; }
  1315. fi
  1316. PCRE_HOME="$withval"
  1317. fi
  1318. fi
  1319. else
  1320. want_pcre="yes" require_pcre="no"
  1321. fi;
  1322. #
  1323. # Specify the path of the zlib library (required library)
  1324. #
  1325. # Check whether --with-zlib or --without-zlib was given.
  1326. if test "${with_zlib+set}" = set; then
  1327. withval="$with_zlib"
  1328. test -n "$withval" && ZLIB_HOME="$withval"
  1329. else
  1330. ZLIB_HOME=/usr/local
  1331. test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  1332. fi;
  1333. ###############################################################################
  1334. # Check for programs and types.
  1335. #
  1336. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1337. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1338. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1339. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1340. echo $ECHO_N "(cached) $ECHO_C" >&6
  1341. else
  1342. cat >conftest.make <<\_ACEOF
  1343. all:
  1344. @echo 'ac_maketemp="$(MAKE)"'
  1345. _ACEOF
  1346. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1347. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1348. if test -n "$ac_maketemp"; then
  1349. eval ac_cv_prog_make_${ac_make}_set=yes
  1350. else
  1351. eval ac_cv_prog_make_${ac_make}_set=no
  1352. fi
  1353. rm -f conftest.make
  1354. fi
  1355. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1356. echo "$as_me:$LINENO: result: yes" >&5
  1357. echo "${ECHO_T}yes" >&6
  1358. SET_MAKE=
  1359. else
  1360. echo "$as_me:$LINENO: result: no" >&5
  1361. echo "${ECHO_T}no" >&6
  1362. SET_MAKE="MAKE=${MAKE-make}"
  1363. fi
  1364. ac_ext=c
  1365. ac_cpp='$CPP $CPPFLAGS'
  1366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1369. if test -n "$ac_tool_prefix"; then
  1370. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1371. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1372. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1373. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1374. if test "${ac_cv_prog_CC+set}" = set; then
  1375. echo $ECHO_N "(cached) $ECHO_C" >&6
  1376. else
  1377. if test -n "$CC"; then
  1378. ac_cv_prog_CC="$CC" # Let the user override the test.
  1379. else
  1380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1381. for as_dir in $PATH
  1382. do
  1383. IFS=$as_save_IFS
  1384. test -z "$as_dir" && as_dir=.
  1385. for ac_exec_ext in '' $ac_executable_extensions; do
  1386. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1387. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1388. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1389. break 2
  1390. fi
  1391. done
  1392. done
  1393. fi
  1394. fi
  1395. CC=$ac_cv_prog_CC
  1396. if test -n "$CC"; then
  1397. echo "$as_me:$LINENO: result: $CC" >&5
  1398. echo "${ECHO_T}$CC" >&6
  1399. else
  1400. echo "$as_me:$LINENO: result: no" >&5
  1401. echo "${ECHO_T}no" >&6
  1402. fi
  1403. fi
  1404. if test -z "$ac_cv_prog_CC"; then
  1405. ac_ct_CC=$CC
  1406. # Extract the first word of "gcc", so it can be a program name with args.
  1407. set dummy gcc; ac_word=$2
  1408. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1409. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1410. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1411. echo $ECHO_N "(cached) $ECHO_C" >&6
  1412. else
  1413. if test -n "$ac_ct_CC"; then
  1414. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1415. else
  1416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1417. for as_dir in $PATH
  1418. do
  1419. IFS=$as_save_IFS
  1420. test -z "$as_dir" && as_dir=.
  1421. for ac_exec_ext in '' $ac_executable_extensions; do
  1422. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1423. ac_cv_prog_ac_ct_CC="gcc"
  1424. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1425. break 2
  1426. fi
  1427. done
  1428. done
  1429. fi
  1430. fi
  1431. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1432. if test -n "$ac_ct_CC"; then
  1433. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1434. echo "${ECHO_T}$ac_ct_CC" >&6
  1435. else
  1436. echo "$as_me:$LINENO: result: no" >&5
  1437. echo "${ECHO_T}no" >&6
  1438. fi
  1439. CC=$ac_ct_CC
  1440. else
  1441. CC="$ac_cv_prog_CC"
  1442. fi
  1443. if test -z "$CC"; then
  1444. if test -n "$ac_tool_prefix"; then
  1445. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1446. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1447. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1448. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1449. if test "${ac_cv_prog_CC+set}" = set; then
  1450. echo $ECHO_N "(cached) $ECHO_C" >&6
  1451. else
  1452. if test -n "$CC"; then
  1453. ac_cv_prog_CC="$CC" # Let the user override the test.
  1454. else
  1455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1456. for as_dir in $PATH
  1457. do
  1458. IFS=$as_save_IFS
  1459. test -z "$as_dir" && as_dir=.
  1460. for ac_exec_ext in '' $ac_executable_extensions; do
  1461. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1462. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1463. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1464. break 2
  1465. fi
  1466. done
  1467. done
  1468. fi
  1469. fi
  1470. CC=$ac_cv_prog_CC
  1471. if test -n "$CC"; then
  1472. echo "$as_me:$LINENO: result: $CC" >&5
  1473. echo "${ECHO_T}$CC" >&6
  1474. else
  1475. echo "$as_me:$LINENO: result: no" >&5
  1476. echo "${ECHO_T}no" >&6
  1477. fi
  1478. fi
  1479. if test -z "$ac_cv_prog_CC"; then
  1480. ac_ct_CC=$CC
  1481. # Extract the first word of "cc", so it can be a program name with args.
  1482. set dummy cc; ac_word=$2
  1483. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1484. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1485. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1486. echo $ECHO_N "(cached) $ECHO_C" >&6
  1487. else
  1488. if test -n "$ac_ct_CC"; then
  1489. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1490. else
  1491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1492. for as_dir in $PATH
  1493. do
  1494. IFS=$as_save_IFS
  1495. test -z "$as_dir" && as_dir=.
  1496. for ac_exec_ext in '' $ac_executable_extensions; do
  1497. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1498. ac_cv_prog_ac_ct_CC="cc"
  1499. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1500. break 2
  1501. fi
  1502. done
  1503. done
  1504. fi
  1505. fi
  1506. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1507. if test -n "$ac_ct_CC"; then
  1508. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1509. echo "${ECHO_T}$ac_ct_CC" >&6
  1510. else
  1511. echo "$as_me:$LINENO: result: no" >&5
  1512. echo "${ECHO_T}no" >&6
  1513. fi
  1514. CC=$ac_ct_CC
  1515. else
  1516. CC="$ac_cv_prog_CC"
  1517. fi
  1518. fi
  1519. if test -z "$CC"; then
  1520. # Extract the first word of "cc", so it can be a program name with args.
  1521. set dummy cc; ac_word=$2
  1522. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1523. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1524. if test "${ac_cv_prog_CC+set}" = set; then
  1525. echo $ECHO_N "(cached) $ECHO_C" >&6
  1526. else
  1527. if test -n "$CC"; then
  1528. ac_cv_prog_CC="$CC" # Let the user override the test.
  1529. else
  1530. ac_prog_rejected=no
  1531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1532. for as_dir in $PATH
  1533. do
  1534. IFS=$as_save_IFS
  1535. test -z "$as_dir" && as_dir=.
  1536. for ac_exec_ext in '' $ac_executable_extensions; do
  1537. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1538. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1539. ac_prog_rejected=yes
  1540. continue
  1541. fi
  1542. ac_cv_prog_CC="cc"
  1543. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1544. break 2
  1545. fi
  1546. done
  1547. done
  1548. if test $ac_prog_rejected = yes; then
  1549. # We found a bogon in the path, so make sure we never use it.
  1550. set dummy $ac_cv_prog_CC
  1551. shift
  1552. if test $# != 0; then
  1553. # We chose a different compiler from the bogus one.
  1554. # However, it has the same basename, so the bogon will be chosen
  1555. # first if we set CC to just the basename; use the full file name.
  1556. shift
  1557. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1558. fi
  1559. fi
  1560. fi
  1561. fi
  1562. CC=$ac_cv_prog_CC
  1563. if test -n "$CC"; then
  1564. echo "$as_me:$LINENO: result: $CC" >&5
  1565. echo "${ECHO_T}$CC" >&6
  1566. else
  1567. echo "$as_me:$LINENO: result: no" >&5
  1568. echo "${ECHO_T}no" >&6
  1569. fi
  1570. fi
  1571. if test -z "$CC"; then
  1572. if test -n "$ac_tool_prefix"; then
  1573. for ac_prog in cl
  1574. do
  1575. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1576. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1577. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1578. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1579. if test "${ac_cv_prog_CC+set}" = set; then
  1580. echo $ECHO_N "(cached) $ECHO_C" >&6
  1581. else
  1582. if test -n "$CC"; then
  1583. ac_cv_prog_CC="$CC" # Let the user override the test.
  1584. else
  1585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1586. for as_dir in $PATH
  1587. do
  1588. IFS=$as_save_IFS
  1589. test -z "$as_dir" && as_dir=.
  1590. for ac_exec_ext in '' $ac_executable_extensions; do
  1591. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1592. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1593. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1594. break 2
  1595. fi
  1596. done
  1597. done
  1598. fi
  1599. fi
  1600. CC=$ac_cv_prog_CC
  1601. if test -n "$CC"; then
  1602. echo "$as_me:$LINENO: result: $CC" >&5
  1603. echo "${ECHO_T}$CC" >&6
  1604. else
  1605. echo "$as_me:$LINENO: result: no" >&5
  1606. echo "${ECHO_T}no" >&6
  1607. fi
  1608. test -n "$CC" && break
  1609. done
  1610. fi
  1611. if test -z "$CC"; then
  1612. ac_ct_CC=$CC
  1613. for ac_prog in cl
  1614. do
  1615. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1616. set dummy $ac_prog; ac_word=$2
  1617. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1618. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1619. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1620. echo $ECHO_N "(cached) $ECHO_C" >&6
  1621. else
  1622. if test -n "$ac_ct_CC"; then
  1623. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1624. else
  1625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1626. for as_dir in $PATH
  1627. do
  1628. IFS=$as_save_IFS
  1629. test -z "$as_dir" && as_dir=.
  1630. for ac_exec_ext in '' $ac_executable_extensions; do
  1631. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1632. ac_cv_prog_ac_ct_CC="$ac_prog"
  1633. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1634. break 2
  1635. fi
  1636. done
  1637. done
  1638. fi
  1639. fi
  1640. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1641. if test -n "$ac_ct_CC"; then
  1642. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1643. echo "${ECHO_T}$ac_ct_CC" >&6
  1644. else
  1645. echo "$as_me:$LINENO: result: no" >&5
  1646. echo "${ECHO_T}no" >&6
  1647. fi
  1648. test -n "$ac_ct_CC" && break
  1649. done
  1650. CC=$ac_ct_CC
  1651. fi
  1652. fi
  1653. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1654. See \`config.log' for more details." >&5
  1655. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1656. See \`config.log' for more details." >&2;}
  1657. { (exit 1); exit 1; }; }
  1658. # Provide some information about the compiler.
  1659. echo "$as_me:$LINENO:" \
  1660. "checking for C compiler version" >&5
  1661. ac_compiler=`set X $ac_compile; echo $2`
  1662. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1663. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1664. ac_status=$?
  1665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1666. (exit $ac_status); }
  1667. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1668. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1669. ac_status=$?
  1670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1671. (exit $ac_status); }
  1672. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1673. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1674. ac_status=$?
  1675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1676. (exit $ac_status); }
  1677. cat >conftest.$ac_ext <<_ACEOF
  1678. /* confdefs.h. */
  1679. _ACEOF
  1680. cat confdefs.h >>conftest.$ac_ext
  1681. cat >>conftest.$ac_ext <<_ACEOF
  1682. /* end confdefs.h. */
  1683. int
  1684. main ()
  1685. {
  1686. ;
  1687. return 0;
  1688. }
  1689. _ACEOF
  1690. ac_clean_files_save=$ac_clean_files
  1691. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1692. # Try to create an executable without -o first, disregard a.out.
  1693. # It will help us diagnose broken compilers, and finding out an intuition
  1694. # of exeext.
  1695. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1696. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1697. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1698. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1699. (eval $ac_link_default) 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; then
  1703. # Find the output, starting from the most likely. This scheme is
  1704. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1705. # resort.
  1706. # Be careful to initialize this variable, since it used to be cached.
  1707. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1708. ac_cv_exeext=
  1709. # b.out is created by i960 compilers.
  1710. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1711. do
  1712. test -f "$ac_file" || continue
  1713. case $ac_file in
  1714. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1715. ;;
  1716. conftest.$ac_ext )
  1717. # This is the source file.
  1718. ;;
  1719. [ab].out )
  1720. # We found the default executable, but exeext='' is most
  1721. # certainly right.
  1722. break;;
  1723. *.* )
  1724. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1725. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1726. # but it would be cool to find out if it's true. Does anybody
  1727. # maintain Libtool? --akim.
  1728. export ac_cv_exeext
  1729. break;;
  1730. * )
  1731. break;;
  1732. esac
  1733. done
  1734. else
  1735. echo "$as_me: failed program was:" >&5
  1736. sed 's/^/| /' conftest.$ac_ext >&5
  1737. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1738. See \`config.log' for more details." >&5
  1739. echo "$as_me: error: C compiler cannot create executables
  1740. See \`config.log' for more details." >&2;}
  1741. { (exit 77); exit 77; }; }
  1742. fi
  1743. ac_exeext=$ac_cv_exeext
  1744. echo "$as_me:$LINENO: result: $ac_file" >&5
  1745. echo "${ECHO_T}$ac_file" >&6
  1746. # Check the compiler produces executables we can run. If not, either
  1747. # the compiler is broken, or we cross compile.
  1748. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1749. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1750. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1751. # If not cross compiling, check that we can run a simple program.
  1752. if test "$cross_compiling" != yes; then
  1753. if { ac_try='./$ac_file'
  1754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1755. (eval $ac_try) 2>&5
  1756. ac_status=$?
  1757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1758. (exit $ac_status); }; }; then
  1759. cross_compiling=no
  1760. else
  1761. if test "$cross_compiling" = maybe; then
  1762. cross_compiling=yes
  1763. else
  1764. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1765. If you meant to cross compile, use \`--host'.
  1766. See \`config.log' for more details." >&5
  1767. echo "$as_me: error: cannot run C compiled programs.
  1768. If you meant to cross compile, use \`--host'.
  1769. See \`config.log' for more details." >&2;}
  1770. { (exit 1); exit 1; }; }
  1771. fi
  1772. fi
  1773. fi
  1774. echo "$as_me:$LINENO: result: yes" >&5
  1775. echo "${ECHO_T}yes" >&6
  1776. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1777. ac_clean_files=$ac_clean_files_save
  1778. # Check the compiler produces executables we can run. If not, either
  1779. # the compiler is broken, or we cross compile.
  1780. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1781. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1782. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1783. echo "${ECHO_T}$cross_compiling" >&6
  1784. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1785. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1786. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1787. (eval $ac_link) 2>&5
  1788. ac_status=$?
  1789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1790. (exit $ac_status); }; then
  1791. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1792. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1793. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1794. # `rm'.
  1795. for ac_file in conftest.exe conftest conftest.*; do
  1796. test -f "$ac_file" || continue
  1797. case $ac_file in
  1798. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1799. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1800. export ac_cv_exeext
  1801. break;;
  1802. * ) break;;
  1803. esac
  1804. done
  1805. else
  1806. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1807. See \`config.log' for more details." >&5
  1808. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1809. See \`config.log' for more details." >&2;}
  1810. { (exit 1); exit 1; }; }
  1811. fi
  1812. rm -f conftest$ac_cv_exeext
  1813. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1814. echo "${ECHO_T}$ac_cv_exeext" >&6
  1815. rm -f conftest.$ac_ext
  1816. EXEEXT=$ac_cv_exeext
  1817. ac_exeext=$EXEEXT
  1818. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1819. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1820. if test "${ac_cv_objext+set}" = set; then
  1821. echo $ECHO_N "(cached) $ECHO_C" >&6
  1822. else
  1823. cat >conftest.$ac_ext <<_ACEOF
  1824. /* confdefs.h. */
  1825. _ACEOF
  1826. cat confdefs.h >>conftest.$ac_ext
  1827. cat >>conftest.$ac_ext <<_ACEOF
  1828. /* end confdefs.h. */
  1829. int
  1830. main ()
  1831. {
  1832. ;
  1833. return 0;
  1834. }
  1835. _ACEOF
  1836. rm -f conftest.o conftest.obj
  1837. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1838. (eval $ac_compile) 2>&5
  1839. ac_status=$?
  1840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1841. (exit $ac_status); }; then
  1842. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1843. case $ac_file in
  1844. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1845. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1846. break;;
  1847. esac
  1848. done
  1849. else
  1850. echo "$as_me: failed program was:" >&5
  1851. sed 's/^/| /' conftest.$ac_ext >&5
  1852. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1853. See \`config.log' for more details." >&5
  1854. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1855. See \`config.log' for more details." >&2;}
  1856. { (exit 1); exit 1; }; }
  1857. fi
  1858. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1859. fi
  1860. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1861. echo "${ECHO_T}$ac_cv_objext" >&6
  1862. OBJEXT=$ac_cv_objext
  1863. ac_objext=$OBJEXT
  1864. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1865. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1866. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1867. echo $ECHO_N "(cached) $ECHO_C" >&6
  1868. else
  1869. cat >conftest.$ac_ext <<_ACEOF
  1870. /* confdefs.h. */
  1871. _ACEOF
  1872. cat confdefs.h >>conftest.$ac_ext
  1873. cat >>conftest.$ac_ext <<_ACEOF
  1874. /* end confdefs.h. */
  1875. int
  1876. main ()
  1877. {
  1878. #ifndef __GNUC__
  1879. choke me
  1880. #endif
  1881. ;
  1882. return 0;
  1883. }
  1884. _ACEOF
  1885. rm -f conftest.$ac_objext
  1886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1887. (eval $ac_compile) 2>conftest.er1
  1888. ac_status=$?
  1889. grep -v '^ *+' conftest.er1 >conftest.err
  1890. rm -f conftest.er1
  1891. cat conftest.err >&5
  1892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1893. (exit $ac_status); } &&
  1894. { ac_try='test -z "$ac_c_werror_flag"
  1895. || test ! -s conftest.err'
  1896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1897. (eval $ac_try) 2>&5
  1898. ac_status=$?
  1899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1900. (exit $ac_status); }; } &&
  1901. { ac_try='test -s conftest.$ac_objext'
  1902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1903. (eval $ac_try) 2>&5
  1904. ac_status=$?
  1905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1906. (exit $ac_status); }; }; then
  1907. ac_compiler_gnu=yes
  1908. else
  1909. echo "$as_me: failed program was:" >&5
  1910. sed 's/^/| /' conftest.$ac_ext >&5
  1911. ac_compiler_gnu=no
  1912. fi
  1913. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1914. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1915. fi
  1916. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1917. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1918. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1919. ac_test_CFLAGS=${CFLAGS+set}
  1920. ac_save_CFLAGS=$CFLAGS
  1921. CFLAGS="-g"
  1922. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1923. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1924. if test "${ac_cv_prog_cc_g+set}" = set; then
  1925. echo $ECHO_N "(cached) $ECHO_C" >&6
  1926. else
  1927. cat >conftest.$ac_ext <<_ACEOF
  1928. /* confdefs.h. */
  1929. _ACEOF
  1930. cat confdefs.h >>conftest.$ac_ext
  1931. cat >>conftest.$ac_ext <<_ACEOF
  1932. /* end confdefs.h. */
  1933. int
  1934. main ()
  1935. {
  1936. ;
  1937. return 0;
  1938. }
  1939. _ACEOF
  1940. rm -f conftest.$ac_objext
  1941. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1942. (eval $ac_compile) 2>conftest.er1
  1943. ac_status=$?
  1944. grep -v '^ *+' conftest.er1 >conftest.err
  1945. rm -f conftest.er1
  1946. cat conftest.err >&5
  1947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1948. (exit $ac_status); } &&
  1949. { ac_try='test -z "$ac_c_werror_flag"
  1950. || test ! -s conftest.err'
  1951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1952. (eval $ac_try) 2>&5
  1953. ac_status=$?
  1954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1955. (exit $ac_status); }; } &&
  1956. { ac_try='test -s conftest.$ac_objext'
  1957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1958. (eval $ac_try) 2>&5
  1959. ac_status=$?
  1960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1961. (exit $ac_status); }; }; then
  1962. ac_cv_prog_cc_g=yes
  1963. else
  1964. echo "$as_me: failed program was:" >&5
  1965. sed 's/^/| /' conftest.$ac_ext >&5
  1966. ac_cv_prog_cc_g=no
  1967. fi
  1968. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1969. fi
  1970. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1971. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1972. if test "$ac_test_CFLAGS" = set; then
  1973. CFLAGS=$ac_save_CFLAGS
  1974. elif test $ac_cv_prog_cc_g = yes; then
  1975. if test "$GCC" = yes; then
  1976. CFLAGS="-g -O2"
  1977. else
  1978. CFLAGS="-g"
  1979. fi
  1980. else
  1981. if test "$GCC" = yes; then
  1982. CFLAGS="-O2"
  1983. else
  1984. CFLAGS=
  1985. fi
  1986. fi
  1987. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1988. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1989. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1990. echo $ECHO_N "(cached) $ECHO_C" >&6
  1991. else
  1992. ac_cv_prog_cc_stdc=no
  1993. ac_save_CC=$CC
  1994. cat >conftest.$ac_ext <<_ACEOF
  1995. /* confdefs.h. */
  1996. _ACEOF
  1997. cat confdefs.h >>conftest.$ac_ext
  1998. cat >>conftest.$ac_ext <<_ACEOF
  1999. /* end confdefs.h. */
  2000. #include <stdarg.h>
  2001. #include <stdio.h>
  2002. #include <sys/types.h>
  2003. #include <sys/stat.h>
  2004. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2005. struct buf { int x; };
  2006. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2007. static char *e (p, i)
  2008. char **p;
  2009. int i;
  2010. {
  2011. return p[i];
  2012. }
  2013. static char *f (char * (*g) (char **, int), char **p, ...)
  2014. {
  2015. char *s;
  2016. va_list v;
  2017. va_start (v,p);
  2018. s = g (p, va_arg (v,int));
  2019. va_end (v);
  2020. return s;
  2021. }
  2022. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2023. function prototypes and stuff, but not '\xHH' hex character constants.
  2024. These don't provoke an error unfortunately, instead are silently treated
  2025. as 'x'. The following induces an error, until -std1 is added to get
  2026. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2027. array size at least. It's necessary to write '\x00'==0 to get something
  2028. that's true only with -std1. */
  2029. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2030. int test (int i, double x);
  2031. struct s1 {int (*f) (int a);};
  2032. struct s2 {int (*f) (double a);};
  2033. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2034. int argc;
  2035. char **argv;
  2036. int
  2037. main ()
  2038. {
  2039. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2040. ;
  2041. return 0;
  2042. }
  2043. _ACEOF
  2044. # Don't try gcc -ansi; that turns off useful extensions and
  2045. # breaks some systems' header files.
  2046. # AIX -qlanglvl=ansi
  2047. # Ultrix and OSF/1 -std1
  2048. # HP-UX 10.20 and later -Ae
  2049. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2050. # SVR4 -Xc -D__EXTENSIONS__
  2051. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2052. do
  2053. CC="$ac_save_CC $ac_arg"
  2054. rm -f conftest.$ac_objext
  2055. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2056. (eval $ac_compile) 2>conftest.er1
  2057. ac_status=$?
  2058. grep -v '^ *+' conftest.er1 >conftest.err
  2059. rm -f conftest.er1
  2060. cat conftest.err >&5
  2061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2062. (exit $ac_status); } &&
  2063. { ac_try='test -z "$ac_c_werror_flag"
  2064. || test ! -s conftest.err'
  2065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2066. (eval $ac_try) 2>&5
  2067. ac_status=$?
  2068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2069. (exit $ac_status); }; } &&
  2070. { ac_try='test -s conftest.$ac_objext'
  2071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2072. (eval $ac_try) 2>&5
  2073. ac_status=$?
  2074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2075. (exit $ac_status); }; }; then
  2076. ac_cv_prog_cc_stdc=$ac_arg
  2077. break
  2078. else
  2079. echo "$as_me: failed program was:" >&5
  2080. sed 's/^/| /' conftest.$ac_ext >&5
  2081. fi
  2082. rm -f conftest.err conftest.$ac_objext
  2083. done
  2084. rm -f conftest.$ac_ext conftest.$ac_objext
  2085. CC=$ac_save_CC
  2086. fi
  2087. case "x$ac_cv_prog_cc_stdc" in
  2088. x|xno)
  2089. echo "$as_me:$LINENO: result: none needed" >&5
  2090. echo "${ECHO_T}none needed" >&6 ;;
  2091. *)
  2092. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2093. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2094. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2095. esac
  2096. # Some people use a C++ compiler to compile C. Since we use `exit',
  2097. # in C++ we need to declare it. In case someone uses the same compiler
  2098. # for both compiling C and C++ we need to have the C++ compiler decide
  2099. # the declaration of exit, since it's the most demanding environment.
  2100. cat >conftest.$ac_ext <<_ACEOF
  2101. #ifndef __cplusplus
  2102. choke me
  2103. #endif
  2104. _ACEOF
  2105. rm -f conftest.$ac_objext
  2106. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2107. (eval $ac_compile) 2>conftest.er1
  2108. ac_status=$?
  2109. grep -v '^ *+' conftest.er1 >conftest.err
  2110. rm -f conftest.er1
  2111. cat conftest.err >&5
  2112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2113. (exit $ac_status); } &&
  2114. { ac_try='test -z "$ac_c_werror_flag"
  2115. || test ! -s conftest.err'
  2116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2117. (eval $ac_try) 2>&5
  2118. ac_status=$?
  2119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2120. (exit $ac_status); }; } &&
  2121. { ac_try='test -s conftest.$ac_objext'
  2122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2123. (eval $ac_try) 2>&5
  2124. ac_status=$?
  2125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2126. (exit $ac_status); }; }; then
  2127. for ac_declaration in \
  2128. '' \
  2129. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2130. 'extern "C" void std::exit (int); using std::exit;' \
  2131. 'extern "C" void exit (int) throw ();' \
  2132. 'extern "C" void exit (int);' \
  2133. 'void exit (int);'
  2134. do
  2135. cat >conftest.$ac_ext <<_ACEOF
  2136. /* confdefs.h. */
  2137. _ACEOF
  2138. cat confdefs.h >>conftest.$ac_ext
  2139. cat >>conftest.$ac_ext <<_ACEOF
  2140. /* end confdefs.h. */
  2141. $ac_declaration
  2142. #include <stdlib.h>
  2143. int
  2144. main ()
  2145. {
  2146. exit (42);
  2147. ;
  2148. return 0;
  2149. }
  2150. _ACEOF
  2151. rm -f conftest.$ac_objext
  2152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2153. (eval $ac_compile) 2>conftest.er1
  2154. ac_status=$?
  2155. grep -v '^ *+' conftest.er1 >conftest.err
  2156. rm -f conftest.er1
  2157. cat conftest.err >&5
  2158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2159. (exit $ac_status); } &&
  2160. { ac_try='test -z "$ac_c_werror_flag"
  2161. || test ! -s conftest.err'
  2162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2163. (eval $ac_try) 2>&5
  2164. ac_status=$?
  2165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2166. (exit $ac_status); }; } &&
  2167. { ac_try='test -s conftest.$ac_objext'
  2168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2169. (eval $ac_try) 2>&5
  2170. ac_status=$?
  2171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2172. (exit $ac_status); }; }; then
  2173. :
  2174. else
  2175. echo "$as_me: failed program was:" >&5
  2176. sed 's/^/| /' conftest.$ac_ext >&5
  2177. continue
  2178. fi
  2179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2180. cat >conftest.$ac_ext <<_ACEOF
  2181. /* confdefs.h. */
  2182. _ACEOF
  2183. cat confdefs.h >>conftest.$ac_ext
  2184. cat >>conftest.$ac_ext <<_ACEOF
  2185. /* end confdefs.h. */
  2186. $ac_declaration
  2187. int
  2188. main ()
  2189. {
  2190. exit (42);
  2191. ;
  2192. return 0;
  2193. }
  2194. _ACEOF
  2195. rm -f conftest.$ac_objext
  2196. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2197. (eval $ac_compile) 2>conftest.er1
  2198. ac_status=$?
  2199. grep -v '^ *+' conftest.er1 >conftest.err
  2200. rm -f conftest.er1
  2201. cat conftest.err >&5
  2202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2203. (exit $ac_status); } &&
  2204. { ac_try='test -z "$ac_c_werror_flag"
  2205. || test ! -s conftest.err'
  2206. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2207. (eval $ac_try) 2>&5
  2208. ac_status=$?
  2209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2210. (exit $ac_status); }; } &&
  2211. { ac_try='test -s conftest.$ac_objext'
  2212. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2213. (eval $ac_try) 2>&5
  2214. ac_status=$?
  2215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2216. (exit $ac_status); }; }; then
  2217. break
  2218. else
  2219. echo "$as_me: failed program was:" >&5
  2220. sed 's/^/| /' conftest.$ac_ext >&5
  2221. fi
  2222. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2223. done
  2224. rm -f conftest*
  2225. if test -n "$ac_declaration"; then
  2226. echo '#ifdef __cplusplus' >>confdefs.h
  2227. echo $ac_declaration >>confdefs.h
  2228. echo '#endif' >>confdefs.h
  2229. fi
  2230. else
  2231. echo "$as_me: failed program was:" >&5
  2232. sed 's/^/| /' conftest.$ac_ext >&5
  2233. fi
  2234. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2235. ac_ext=c
  2236. ac_cpp='$CPP $CPPFLAGS'
  2237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2240. ac_ext=c
  2241. ac_cpp='$CPP $CPPFLAGS'
  2242. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2243. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2244. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2245. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2246. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2247. # On Suns, sometimes $CPP names a directory.
  2248. if test -n "$CPP" && test -d "$CPP"; then
  2249. CPP=
  2250. fi
  2251. if test -z "$CPP"; then
  2252. if test "${ac_cv_prog_CPP+set}" = set; then
  2253. echo $ECHO_N "(cached) $ECHO_C" >&6
  2254. else
  2255. # Double quotes because CPP needs to be expanded
  2256. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2257. do
  2258. ac_preproc_ok=false
  2259. for ac_c_preproc_warn_flag in '' yes
  2260. do
  2261. # Use a header file that comes with gcc, so configuring glibc
  2262. # with a fresh cross-compiler works.
  2263. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2264. # <limits.h> exists even on freestanding compilers.
  2265. # On the NeXT, cc -E runs the code through the compiler's parser,
  2266. # not just through cpp. "Syntax error" is here to catch this case.
  2267. cat >conftest.$ac_ext <<_ACEOF
  2268. /* confdefs.h. */
  2269. _ACEOF
  2270. cat confdefs.h >>conftest.$ac_ext
  2271. cat >>conftest.$ac_ext <<_ACEOF
  2272. /* end confdefs.h. */
  2273. #ifdef __STDC__
  2274. # include <limits.h>
  2275. #else
  2276. # include <assert.h>
  2277. #endif
  2278. Syntax error
  2279. _ACEOF
  2280. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2281. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2282. ac_status=$?
  2283. grep -v '^ *+' conftest.er1 >conftest.err
  2284. rm -f conftest.er1
  2285. cat conftest.err >&5
  2286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2287. (exit $ac_status); } >/dev/null; then
  2288. if test -s conftest.err; then
  2289. ac_cpp_err=$ac_c_preproc_warn_flag
  2290. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2291. else
  2292. ac_cpp_err=
  2293. fi
  2294. else
  2295. ac_cpp_err=yes
  2296. fi
  2297. if test -z "$ac_cpp_err"; then
  2298. :
  2299. else
  2300. echo "$as_me: failed program was:" >&5
  2301. sed 's/^/| /' conftest.$ac_ext >&5
  2302. # Broken: fails on valid input.
  2303. continue
  2304. fi
  2305. rm -f conftest.err conftest.$ac_ext
  2306. # OK, works on sane cases. Now check whether non-existent headers
  2307. # can be detected and how.
  2308. cat >conftest.$ac_ext <<_ACEOF
  2309. /* confdefs.h. */
  2310. _ACEOF
  2311. cat confdefs.h >>conftest.$ac_ext
  2312. cat >>conftest.$ac_ext <<_ACEOF
  2313. /* end confdefs.h. */
  2314. #include <ac_nonexistent.h>
  2315. _ACEOF
  2316. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2317. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2318. ac_status=$?
  2319. grep -v '^ *+' conftest.er1 >conftest.err
  2320. rm -f conftest.er1
  2321. cat conftest.err >&5
  2322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2323. (exit $ac_status); } >/dev/null; then
  2324. if test -s conftest.err; then
  2325. ac_cpp_err=$ac_c_preproc_warn_flag
  2326. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2327. else
  2328. ac_cpp_err=
  2329. fi
  2330. else
  2331. ac_cpp_err=yes
  2332. fi
  2333. if test -z "$ac_cpp_err"; then
  2334. # Broken: success on invalid input.
  2335. continue
  2336. else
  2337. echo "$as_me: failed program was:" >&5
  2338. sed 's/^/| /' conftest.$ac_ext >&5
  2339. # Passes both tests.
  2340. ac_preproc_ok=:
  2341. break
  2342. fi
  2343. rm -f conftest.err conftest.$ac_ext
  2344. done
  2345. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2346. rm -f conftest.err conftest.$ac_ext
  2347. if $ac_preproc_ok; then
  2348. break
  2349. fi
  2350. done
  2351. ac_cv_prog_CPP=$CPP
  2352. fi
  2353. CPP=$ac_cv_prog_CPP
  2354. else
  2355. ac_cv_prog_CPP=$CPP
  2356. fi
  2357. echo "$as_me:$LINENO: result: $CPP" >&5
  2358. echo "${ECHO_T}$CPP" >&6
  2359. ac_preproc_ok=false
  2360. for ac_c_preproc_warn_flag in '' yes
  2361. do
  2362. # Use a header file that comes with gcc, so configuring glibc
  2363. # with a fresh cross-compiler works.
  2364. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2365. # <limits.h> exists even on freestanding compilers.
  2366. # On the NeXT, cc -E runs the code through the compiler's parser,
  2367. # not just through cpp. "Syntax error" is here to catch this case.
  2368. cat >conftest.$ac_ext <<_ACEOF
  2369. /* confdefs.h. */
  2370. _ACEOF
  2371. cat confdefs.h >>conftest.$ac_ext
  2372. cat >>conftest.$ac_ext <<_ACEOF
  2373. /* end confdefs.h. */
  2374. #ifdef __STDC__
  2375. # include <limits.h>
  2376. #else
  2377. # include <assert.h>
  2378. #endif
  2379. Syntax error
  2380. _ACEOF
  2381. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2382. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2383. ac_status=$?
  2384. grep -v '^ *+' conftest.er1 >conftest.err
  2385. rm -f conftest.er1
  2386. cat conftest.err >&5
  2387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2388. (exit $ac_status); } >/dev/null; then
  2389. if test -s conftest.err; then
  2390. ac_cpp_err=$ac_c_preproc_warn_flag
  2391. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2392. else
  2393. ac_cpp_err=
  2394. fi
  2395. else
  2396. ac_cpp_err=yes
  2397. fi
  2398. if test -z "$ac_cpp_err"; then
  2399. :
  2400. else
  2401. echo "$as_me: failed program was:" >&5
  2402. sed 's/^/| /' conftest.$ac_ext >&5
  2403. # Broken: fails on valid input.
  2404. continue
  2405. fi
  2406. rm -f conftest.err conftest.$ac_ext
  2407. # OK, works on sane cases. Now check whether non-existent headers
  2408. # can be detected and how.
  2409. cat >conftest.$ac_ext <<_ACEOF
  2410. /* confdefs.h. */
  2411. _ACEOF
  2412. cat confdefs.h >>conftest.$ac_ext
  2413. cat >>conftest.$ac_ext <<_ACEOF
  2414. /* end confdefs.h. */
  2415. #include <ac_nonexistent.h>
  2416. _ACEOF
  2417. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2418. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2419. ac_status=$?
  2420. grep -v '^ *+' conftest.er1 >conftest.err
  2421. rm -f conftest.er1
  2422. cat conftest.err >&5
  2423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2424. (exit $ac_status); } >/dev/null; then
  2425. if test -s conftest.err; then
  2426. ac_cpp_err=$ac_c_preproc_warn_flag
  2427. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2428. else
  2429. ac_cpp_err=
  2430. fi
  2431. else
  2432. ac_cpp_err=yes
  2433. fi
  2434. if test -z "$ac_cpp_err"; then
  2435. # Broken: success on invalid input.
  2436. continue
  2437. else
  2438. echo "$as_me: failed program was:" >&5
  2439. sed 's/^/| /' conftest.$ac_ext >&5
  2440. # Passes both tests.
  2441. ac_preproc_ok=:
  2442. break
  2443. fi
  2444. rm -f conftest.err conftest.$ac_ext
  2445. done
  2446. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2447. rm -f conftest.err conftest.$ac_ext
  2448. if $ac_preproc_ok; then
  2449. :
  2450. else
  2451. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2452. See \`config.log' for more details." >&5
  2453. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2454. See \`config.log' for more details." >&2;}
  2455. { (exit 1); exit 1; }; }
  2456. fi
  2457. ac_ext=c
  2458. ac_cpp='$CPP $CPPFLAGS'
  2459. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2460. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2461. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2462. ac_ext=c
  2463. ac_cpp='$CPP $CPPFLAGS'
  2464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2467. CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  2468. CPPFLAGS="$CPPFLAGS -I../common"
  2469. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  2470. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  2471. if test "${ac_cv_c_bigendian+set}" = set; then
  2472. echo $ECHO_N "(cached) $ECHO_C" >&6
  2473. else
  2474. # See if sys/param.h defines the BYTE_ORDER macro.
  2475. cat >conftest.$ac_ext <<_ACEOF
  2476. /* confdefs.h. */
  2477. _ACEOF
  2478. cat confdefs.h >>conftest.$ac_ext
  2479. cat >>conftest.$ac_ext <<_ACEOF
  2480. /* end confdefs.h. */
  2481. #include <sys/types.h>
  2482. #include <sys/param.h>
  2483. int
  2484. main ()
  2485. {
  2486. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2487. bogus endian macros
  2488. #endif
  2489. ;
  2490. return 0;
  2491. }
  2492. _ACEOF
  2493. rm -f conftest.$ac_objext
  2494. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2495. (eval $ac_compile) 2>conftest.er1
  2496. ac_status=$?
  2497. grep -v '^ *+' conftest.er1 >conftest.err
  2498. rm -f conftest.er1
  2499. cat conftest.err >&5
  2500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2501. (exit $ac_status); } &&
  2502. { ac_try='test -z "$ac_c_werror_flag"
  2503. || test ! -s conftest.err'
  2504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2505. (eval $ac_try) 2>&5
  2506. ac_status=$?
  2507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2508. (exit $ac_status); }; } &&
  2509. { ac_try='test -s conftest.$ac_objext'
  2510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2511. (eval $ac_try) 2>&5
  2512. ac_status=$?
  2513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2514. (exit $ac_status); }; }; then
  2515. # It does; now see whether it defined to BIG_ENDIAN or not.
  2516. cat >conftest.$ac_ext <<_ACEOF
  2517. /* confdefs.h. */
  2518. _ACEOF
  2519. cat confdefs.h >>conftest.$ac_ext
  2520. cat >>conftest.$ac_ext <<_ACEOF
  2521. /* end confdefs.h. */
  2522. #include <sys/types.h>
  2523. #include <sys/param.h>
  2524. int
  2525. main ()
  2526. {
  2527. #if BYTE_ORDER != BIG_ENDIAN
  2528. not big endian
  2529. #endif
  2530. ;
  2531. return 0;
  2532. }
  2533. _ACEOF
  2534. rm -f conftest.$ac_objext
  2535. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2536. (eval $ac_compile) 2>conftest.er1
  2537. ac_status=$?
  2538. grep -v '^ *+' conftest.er1 >conftest.err
  2539. rm -f conftest.er1
  2540. cat conftest.err >&5
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); } &&
  2543. { ac_try='test -z "$ac_c_werror_flag"
  2544. || test ! -s conftest.err'
  2545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2546. (eval $ac_try) 2>&5
  2547. ac_status=$?
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); }; } &&
  2550. { ac_try='test -s conftest.$ac_objext'
  2551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2552. (eval $ac_try) 2>&5
  2553. ac_status=$?
  2554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2555. (exit $ac_status); }; }; then
  2556. ac_cv_c_bigendian=yes
  2557. else
  2558. echo "$as_me: failed program was:" >&5
  2559. sed 's/^/| /' conftest.$ac_ext >&5
  2560. ac_cv_c_bigendian=no
  2561. fi
  2562. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2563. else
  2564. echo "$as_me: failed program was:" >&5
  2565. sed 's/^/| /' conftest.$ac_ext >&5
  2566. # It does not; compile a test program.
  2567. if test "$cross_compiling" = yes; then
  2568. # try to guess the endianness by grepping values into an object file
  2569. ac_cv_c_bigendian=unknown
  2570. cat >conftest.$ac_ext <<_ACEOF
  2571. /* confdefs.h. */
  2572. _ACEOF
  2573. cat confdefs.h >>conftest.$ac_ext
  2574. cat >>conftest.$ac_ext <<_ACEOF
  2575. /* end confdefs.h. */
  2576. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  2577. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  2578. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  2579. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  2580. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  2581. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  2582. int
  2583. main ()
  2584. {
  2585. _ascii (); _ebcdic ();
  2586. ;
  2587. return 0;
  2588. }
  2589. _ACEOF
  2590. rm -f conftest.$ac_objext
  2591. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2592. (eval $ac_compile) 2>conftest.er1
  2593. ac_status=$?
  2594. grep -v '^ *+' conftest.er1 >conftest.err
  2595. rm -f conftest.er1
  2596. cat conftest.err >&5
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); } &&
  2599. { ac_try='test -z "$ac_c_werror_flag"
  2600. || test ! -s conftest.err'
  2601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2602. (eval $ac_try) 2>&5
  2603. ac_status=$?
  2604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2605. (exit $ac_status); }; } &&
  2606. { ac_try='test -s conftest.$ac_objext'
  2607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2608. (eval $ac_try) 2>&5
  2609. ac_status=$?
  2610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2611. (exit $ac_status); }; }; then
  2612. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  2613. ac_cv_c_bigendian=yes
  2614. fi
  2615. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  2616. if test "$ac_cv_c_bigendian" = unknown; then
  2617. ac_cv_c_bigendian=no
  2618. else
  2619. # finding both strings is unlikely to happen, but who knows?
  2620. ac_cv_c_bigendian=unknown
  2621. fi
  2622. fi
  2623. else
  2624. echo "$as_me: failed program was:" >&5
  2625. sed 's/^/| /' conftest.$ac_ext >&5
  2626. fi
  2627. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2628. else
  2629. cat >conftest.$ac_ext <<_ACEOF
  2630. /* confdefs.h. */
  2631. _ACEOF
  2632. cat confdefs.h >>conftest.$ac_ext
  2633. cat >>conftest.$ac_ext <<_ACEOF
  2634. /* end confdefs.h. */
  2635. int
  2636. main ()
  2637. {
  2638. /* Are we little or big endian? From Harbison&Steele. */
  2639. union
  2640. {
  2641. long l;
  2642. char c[sizeof (long)];
  2643. } u;
  2644. u.l = 1;
  2645. exit (u.c[sizeof (long) - 1] == 1);
  2646. }
  2647. _ACEOF
  2648. rm -f conftest$ac_exeext
  2649. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2650. (eval $ac_link) 2>&5
  2651. ac_status=$?
  2652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2653. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2655. (eval $ac_try) 2>&5
  2656. ac_status=$?
  2657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2658. (exit $ac_status); }; }; then
  2659. ac_cv_c_bigendian=no
  2660. else
  2661. echo "$as_me: program exited with status $ac_status" >&5
  2662. echo "$as_me: failed program was:" >&5
  2663. sed 's/^/| /' conftest.$ac_ext >&5
  2664. ( exit $ac_status )
  2665. ac_cv_c_bigendian=yes
  2666. fi
  2667. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2668. fi
  2669. fi
  2670. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2671. fi
  2672. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  2673. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  2674. case $ac_cv_c_bigendian in
  2675. yes)
  2676. { { echo "$as_me:$LINENO: error: bigendian is not supported... stopping" >&5
  2677. echo "$as_me: error: bigendian is not supported... stopping" >&2;}
  2678. { (exit 1); exit 1; }; } ;;
  2679. no)
  2680. ;;
  2681. *)
  2682. { echo "$as_me:$LINENO: WARNING: unable to determine endianess, only little endian is supported" >&5
  2683. echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  2684. ;;
  2685. esac
  2686. if test "$enable_64bit" = "no" ; then
  2687. echo "$as_me:$LINENO: checking whether pointers can be stored in ints (old code)" >&5
  2688. echo $ECHO_N "checking whether pointers can be stored in ints (old code)... $ECHO_C" >&6
  2689. pointers_fit_in_ints="no"
  2690. cat >conftest.$ac_ext <<_ACEOF
  2691. /* confdefs.h. */
  2692. _ACEOF
  2693. cat confdefs.h >>conftest.$ac_ext
  2694. cat >>conftest.$ac_ext <<_ACEOF
  2695. /* end confdefs.h. */
  2696. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
  2697. int
  2698. main ()
  2699. {
  2700. ;
  2701. return 0;
  2702. }
  2703. _ACEOF
  2704. rm -f conftest.$ac_objext
  2705. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2706. (eval $ac_compile) 2>conftest.er1
  2707. ac_status=$?
  2708. grep -v '^ *+' conftest.er1 >conftest.err
  2709. rm -f conftest.er1
  2710. cat conftest.err >&5
  2711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2712. (exit $ac_status); } &&
  2713. { ac_try='test -z "$ac_c_werror_flag"
  2714. || test ! -s conftest.err'
  2715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2716. (eval $ac_try) 2>&5
  2717. ac_status=$?
  2718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2719. (exit $ac_status); }; } &&
  2720. { ac_try='test -s conftest.$ac_objext'
  2721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2722. (eval $ac_try) 2>&5
  2723. ac_status=$?
  2724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2725. (exit $ac_status); }; }; then
  2726. pointers_fit_in_ints="yes"
  2727. else
  2728. echo "$as_me: failed program was:" >&5
  2729. sed 's/^/| /' conftest.$ac_ext >&5
  2730. fi
  2731. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2732. if test "$pointers_fit_in_ints" = "no" ; then
  2733. CFLAGS="$CFLAGS -m32"
  2734. LDFLAGS="$LDFLAGS -m32"
  2735. cat >conftest.$ac_ext <<_ACEOF
  2736. /* confdefs.h. */
  2737. _ACEOF
  2738. cat confdefs.h >>conftest.$ac_ext
  2739. cat >>conftest.$ac_ext <<_ACEOF
  2740. /* end confdefs.h. */
  2741. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];
  2742. int
  2743. main ()
  2744. {
  2745. ;
  2746. return 0;
  2747. }
  2748. _ACEOF
  2749. rm -f conftest.$ac_objext
  2750. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2751. (eval $ac_compile) 2>conftest.er1
  2752. ac_status=$?
  2753. grep -v '^ *+' conftest.er1 >conftest.err
  2754. rm -f conftest.er1
  2755. cat conftest.err >&5
  2756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2757. (exit $ac_status); } &&
  2758. { ac_try='test -z "$ac_c_werror_flag"
  2759. || test ! -s conftest.err'
  2760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2761. (eval $ac_try) 2>&5
  2762. ac_status=$?
  2763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2764. (exit $ac_status); }; } &&
  2765. { ac_try='test -s conftest.$ac_objext'
  2766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2767. (eval $ac_try) 2>&5
  2768. ac_status=$?
  2769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2770. (exit $ac_status); }; }; then
  2771. pointers_fit_in_ints="yes (with -m32)"
  2772. else
  2773. echo "$as_me: failed program was:" >&5
  2774. sed 's/^/| /' conftest.$ac_ext >&5
  2775. fi
  2776. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2777. fi
  2778. echo "$as_me:$LINENO: result: $pointers_fit_in_ints" >&5
  2779. echo "${ECHO_T}$pointers_fit_in_ints" >&6
  2780. if test "$pointers_fit_in_ints" = "no" ; then
  2781. { { echo "$as_me:$LINENO: error: pointers cannot be stored in ints, required for old code... stopping" >&5
  2782. echo "$as_me: error: pointers cannot be stored in ints, required for old code... stopping" >&2;}
  2783. { (exit 1); exit 1; }; }
  2784. fi
  2785. fi
  2786. echo "$as_me:$LINENO: checking whether $CC supports -Wno-unused-parameter" >&5
  2787. echo $ECHO_N "checking whether $CC supports -Wno-unused-parameter... $ECHO_C" >&6
  2788. OLD_CFLAGS="$CFLAGS"
  2789. CFLAGS="$CFLAGS -Wno-unused-parameter"
  2790. cat >conftest.$ac_ext <<_ACEOF
  2791. int foo;
  2792. _ACEOF
  2793. rm -f conftest.$ac_objext
  2794. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2795. (eval $ac_compile) 2>conftest.er1
  2796. ac_status=$?
  2797. grep -v '^ *+' conftest.er1 >conftest.err
  2798. rm -f conftest.er1
  2799. cat conftest.err >&5
  2800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2801. (exit $ac_status); } &&
  2802. { ac_try='test -z "$ac_c_werror_flag"
  2803. || test ! -s conftest.err'
  2804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2805. (eval $ac_try) 2>&5
  2806. ac_status=$?
  2807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2808. (exit $ac_status); }; } &&
  2809. { ac_try='test -s conftest.$ac_objext'
  2810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2811. (eval $ac_try) 2>&5
  2812. ac_status=$?
  2813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2814. (exit $ac_status); }; }; then
  2815. echo "$as_me:$LINENO: result: yes" >&5
  2816. echo "${ECHO_T}yes" >&6
  2817. else
  2818. echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. echo "$as_me:$LINENO: result: no" >&5
  2821. echo "${ECHO_T}no" >&6
  2822. CFLAGS="$OLD_CFLAGS"
  2823. fi
  2824. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2825. echo "$as_me:$LINENO: checking whether $CC supports -Wno-pointer-sign" >&5
  2826. echo $ECHO_N "checking whether $CC supports -Wno-pointer-sign... $ECHO_C" >&6
  2827. OLD_CFLAGS="$CFLAGS"
  2828. CFLAGS="$CFLAGS -Wno-pointer-sign"
  2829. cat >conftest.$ac_ext <<_ACEOF
  2830. int foo;
  2831. _ACEOF
  2832. rm -f conftest.$ac_objext
  2833. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2834. (eval $ac_compile) 2>conftest.er1
  2835. ac_status=$?
  2836. grep -v '^ *+' conftest.er1 >conftest.err
  2837. rm -f conftest.er1
  2838. cat conftest.err >&5
  2839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2840. (exit $ac_status); } &&
  2841. { ac_try='test -z "$ac_c_werror_flag"
  2842. || test ! -s conftest.err'
  2843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2844. (eval $ac_try) 2>&5
  2845. ac_status=$?
  2846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2847. (exit $ac_status); }; } &&
  2848. { ac_try='test -s conftest.$ac_objext'
  2849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2850. (eval $ac_try) 2>&5
  2851. ac_status=$?
  2852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2853. (exit $ac_status); }; }; then
  2854. echo "$as_me:$LINENO: result: yes" >&5
  2855. echo "${ECHO_T}yes" >&6
  2856. else
  2857. echo "$as_me: failed program was:" >&5
  2858. sed 's/^/| /' conftest.$ac_ext >&5
  2859. echo "$as_me:$LINENO: result: no" >&5
  2860. echo "${ECHO_T}no" >&6
  2861. CFLAGS="$OLD_CFLAGS"
  2862. fi
  2863. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2864. echo "$as_me:$LINENO: checking whether $CC supports -Wno-switch" >&5
  2865. echo $ECHO_N "checking whether $CC supports -Wno-switch... $ECHO_C" >&6
  2866. OLD_CFLAGS="$CFLAGS"
  2867. CFLAGS="$CFLAGS -Wno-switch"
  2868. cat >conftest.$ac_ext <<_ACEOF
  2869. int foo;
  2870. _ACEOF
  2871. rm -f conftest.$ac_objext
  2872. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2873. (eval $ac_compile) 2>conftest.er1
  2874. ac_status=$?
  2875. grep -v '^ *+' conftest.er1 >conftest.err
  2876. rm -f conftest.er1
  2877. cat conftest.err >&5
  2878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2879. (exit $ac_status); } &&
  2880. { ac_try='test -z "$ac_c_werror_flag"
  2881. || test ! -s conftest.err'
  2882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2883. (eval $ac_try) 2>&5
  2884. ac_status=$?
  2885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2886. (exit $ac_status); }; } &&
  2887. { ac_try='test -s conftest.$ac_objext'
  2888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2889. (eval $ac_try) 2>&5
  2890. ac_status=$?
  2891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2892. (exit $ac_status); }; }; then
  2893. echo "$as_me:$LINENO: result: yes" >&5
  2894. echo "${ECHO_T}yes" >&6
  2895. else
  2896. echo "$as_me: failed program was:" >&5
  2897. sed 's/^/| /' conftest.$ac_ext >&5
  2898. echo "$as_me:$LINENO: result: no" >&5
  2899. echo "${ECHO_T}no" >&6
  2900. CFLAGS="$OLD_CFLAGS"
  2901. fi
  2902. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2903. ###############################################################################
  2904. # Check for libraries and header files.
  2905. #
  2906. #
  2907. # setrlimit - used to set the socket limit
  2908. #
  2909. echo "$as_me:$LINENO: checking for setrlimit" >&5
  2910. echo $ECHO_N "checking for setrlimit... $ECHO_C" >&6
  2911. if test "${ac_cv_func_setrlimit+set}" = set; then
  2912. echo $ECHO_N "(cached) $ECHO_C" >&6
  2913. else
  2914. cat >conftest.$ac_ext <<_ACEOF
  2915. /* confdefs.h. */
  2916. _ACEOF
  2917. cat confdefs.h >>conftest.$ac_ext
  2918. cat >>conftest.$ac_ext <<_ACEOF
  2919. /* end confdefs.h. */
  2920. /* Define setrlimit to an innocuous variant, in case <limits.h> declares setrlimit.
  2921. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2922. #define setrlimit innocuous_setrlimit
  2923. /* System header to define __stub macros and hopefully few prototypes,
  2924. which can conflict with char setrlimit (); below.
  2925. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2926. <limits.h> exists even on freestanding compilers. */
  2927. #ifdef __STDC__
  2928. # include <limits.h>
  2929. #else
  2930. # include <assert.h>
  2931. #endif
  2932. #undef setrlimit
  2933. /* Override any gcc2 internal prototype to avoid an error. */
  2934. #ifdef __cplusplus
  2935. extern "C"
  2936. {
  2937. #endif
  2938. /* We use char because int might match the return type of a gcc2
  2939. builtin and then its argument prototype would still apply. */
  2940. char setrlimit ();
  2941. /* The GNU C library defines this for functions which it implements
  2942. to always fail with ENOSYS. Some functions are actually named
  2943. something starting with __ and the normal name is an alias. */
  2944. #if defined (__stub_setrlimit) || defined (__stub___setrlimit)
  2945. choke me
  2946. #else
  2947. char (*f) () = setrlimit;
  2948. #endif
  2949. #ifdef __cplusplus
  2950. }
  2951. #endif
  2952. int
  2953. main ()
  2954. {
  2955. return f != setrlimit;
  2956. ;
  2957. return 0;
  2958. }
  2959. _ACEOF
  2960. rm -f conftest.$ac_objext conftest$ac_exeext
  2961. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2962. (eval $ac_link) 2>conftest.er1
  2963. ac_status=$?
  2964. grep -v '^ *+' conftest.er1 >conftest.err
  2965. rm -f conftest.er1
  2966. cat conftest.err >&5
  2967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2968. (exit $ac_status); } &&
  2969. { ac_try='test -z "$ac_c_werror_flag"
  2970. || test ! -s conftest.err'
  2971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2972. (eval $ac_try) 2>&5
  2973. ac_status=$?
  2974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2975. (exit $ac_status); }; } &&
  2976. { ac_try='test -s conftest$ac_exeext'
  2977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2978. (eval $ac_try) 2>&5
  2979. ac_status=$?
  2980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2981. (exit $ac_status); }; }; then
  2982. ac_cv_func_setrlimit=yes
  2983. else
  2984. echo "$as_me: failed program was:" >&5
  2985. sed 's/^/| /' conftest.$ac_ext >&5
  2986. ac_cv_func_setrlimit=no
  2987. fi
  2988. rm -f conftest.err conftest.$ac_objext \
  2989. conftest$ac_exeext conftest.$ac_ext
  2990. fi
  2991. echo "$as_me:$LINENO: result: $ac_cv_func_setrlimit" >&5
  2992. echo "${ECHO_T}$ac_cv_func_setrlimit" >&6
  2993. if test $ac_cv_func_setrlimit = yes; then
  2994. CFLAGS="$CFLAGS -DHAVE_SETRLIMIT"
  2995. fi
  2996. #
  2997. # Memory manager
  2998. #
  2999. case $enable_manager in
  3000. "no")
  3001. CFLAGS="$CFLAGS -DNO_MEMMGR"
  3002. ;;
  3003. "builtin")
  3004. # enabled by default
  3005. ;;
  3006. "memwatch")
  3007. CFLAGS="$CFLAGS -DMEMWATCH"
  3008. echo "$as_me:$LINENO: checking for egrep" >&5
  3009. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3010. if test "${ac_cv_prog_egrep+set}" = set; then
  3011. echo $ECHO_N "(cached) $ECHO_C" >&6
  3012. else
  3013. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3014. then ac_cv_prog_egrep='grep -E'
  3015. else ac_cv_prog_egrep='egrep'
  3016. fi
  3017. fi
  3018. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3019. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3020. EGREP=$ac_cv_prog_egrep
  3021. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3022. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3023. if test "${ac_cv_header_stdc+set}" = set; then
  3024. echo $ECHO_N "(cached) $ECHO_C" >&6
  3025. else
  3026. cat >conftest.$ac_ext <<_ACEOF
  3027. /* confdefs.h. */
  3028. _ACEOF
  3029. cat confdefs.h >>conftest.$ac_ext
  3030. cat >>conftest.$ac_ext <<_ACEOF
  3031. /* end confdefs.h. */
  3032. #include <stdlib.h>
  3033. #include <stdarg.h>
  3034. #include <string.h>
  3035. #include <float.h>
  3036. int
  3037. main ()
  3038. {
  3039. ;
  3040. return 0;
  3041. }
  3042. _ACEOF
  3043. rm -f conftest.$ac_objext
  3044. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3045. (eval $ac_compile) 2>conftest.er1
  3046. ac_status=$?
  3047. grep -v '^ *+' conftest.er1 >conftest.err
  3048. rm -f conftest.er1
  3049. cat conftest.err >&5
  3050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3051. (exit $ac_status); } &&
  3052. { ac_try='test -z "$ac_c_werror_flag"
  3053. || test ! -s conftest.err'
  3054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3055. (eval $ac_try) 2>&5
  3056. ac_status=$?
  3057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3058. (exit $ac_status); }; } &&
  3059. { ac_try='test -s conftest.$ac_objext'
  3060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3061. (eval $ac_try) 2>&5
  3062. ac_status=$?
  3063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3064. (exit $ac_status); }; }; then
  3065. ac_cv_header_stdc=yes
  3066. else
  3067. echo "$as_me: failed program was:" >&5
  3068. sed 's/^/| /' conftest.$ac_ext >&5
  3069. ac_cv_header_stdc=no
  3070. fi
  3071. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3072. if test $ac_cv_header_stdc = yes; then
  3073. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3074. cat >conftest.$ac_ext <<_ACEOF
  3075. /* confdefs.h. */
  3076. _ACEOF
  3077. cat confdefs.h >>conftest.$ac_ext
  3078. cat >>conftest.$ac_ext <<_ACEOF
  3079. /* end confdefs.h. */
  3080. #include <string.h>
  3081. _ACEOF
  3082. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3083. $EGREP "memchr" >/dev/null 2>&1; then
  3084. :
  3085. else
  3086. ac_cv_header_stdc=no
  3087. fi
  3088. rm -f conftest*
  3089. fi
  3090. if test $ac_cv_header_stdc = yes; then
  3091. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3092. cat >conftest.$ac_ext <<_ACEOF
  3093. /* confdefs.h. */
  3094. _ACEOF
  3095. cat confdefs.h >>conftest.$ac_ext
  3096. cat >>conftest.$ac_ext <<_ACEOF
  3097. /* end confdefs.h. */
  3098. #include <stdlib.h>
  3099. _ACEOF
  3100. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3101. $EGREP "free" >/dev/null 2>&1; then
  3102. :
  3103. else
  3104. ac_cv_header_stdc=no
  3105. fi
  3106. rm -f conftest*
  3107. fi
  3108. if test $ac_cv_header_stdc = yes; then
  3109. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3110. if test "$cross_compiling" = yes; then
  3111. :
  3112. else
  3113. cat >conftest.$ac_ext <<_ACEOF
  3114. /* confdefs.h. */
  3115. _ACEOF
  3116. cat confdefs.h >>conftest.$ac_ext
  3117. cat >>conftest.$ac_ext <<_ACEOF
  3118. /* end confdefs.h. */
  3119. #include <ctype.h>
  3120. #if ((' ' & 0x0FF) == 0x020)
  3121. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3122. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3123. #else
  3124. # define ISLOWER(c) \
  3125. (('a' <= (c) && (c) <= 'i') \
  3126. || ('j' <= (c) && (c) <= 'r') \
  3127. || ('s' <= (c) && (c) <= 'z'))
  3128. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3129. #endif
  3130. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3131. int
  3132. main ()
  3133. {
  3134. int i;
  3135. for (i = 0; i < 256; i++)
  3136. if (XOR (islower (i), ISLOWER (i))
  3137. || toupper (i) != TOUPPER (i))
  3138. exit(2);
  3139. exit (0);
  3140. }
  3141. _ACEOF
  3142. rm -f conftest$ac_exeext
  3143. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3144. (eval $ac_link) 2>&5
  3145. ac_status=$?
  3146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3147. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3149. (eval $ac_try) 2>&5
  3150. ac_status=$?
  3151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3152. (exit $ac_status); }; }; then
  3153. :
  3154. else
  3155. echo "$as_me: program exited with status $ac_status" >&5
  3156. echo "$as_me: failed program was:" >&5
  3157. sed 's/^/| /' conftest.$ac_ext >&5
  3158. ( exit $ac_status )
  3159. ac_cv_header_stdc=no
  3160. fi
  3161. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3162. fi
  3163. fi
  3164. fi
  3165. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3166. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3167. if test $ac_cv_header_stdc = yes; then
  3168. cat >>confdefs.h <<\_ACEOF
  3169. #define STDC_HEADERS 1
  3170. _ACEOF
  3171. fi
  3172. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3173. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3174. inttypes.h stdint.h unistd.h
  3175. do
  3176. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3177. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3178. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3179. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3180. echo $ECHO_N "(cached) $ECHO_C" >&6
  3181. else
  3182. cat >conftest.$ac_ext <<_ACEOF
  3183. /* confdefs.h. */
  3184. _ACEOF
  3185. cat confdefs.h >>conftest.$ac_ext
  3186. cat >>conftest.$ac_ext <<_ACEOF
  3187. /* end confdefs.h. */
  3188. $ac_includes_default
  3189. #include <$ac_header>
  3190. _ACEOF
  3191. rm -f conftest.$ac_objext
  3192. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3193. (eval $ac_compile) 2>conftest.er1
  3194. ac_status=$?
  3195. grep -v '^ *+' conftest.er1 >conftest.err
  3196. rm -f conftest.er1
  3197. cat conftest.err >&5
  3198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3199. (exit $ac_status); } &&
  3200. { ac_try='test -z "$ac_c_werror_flag"
  3201. || test ! -s conftest.err'
  3202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3203. (eval $ac_try) 2>&5
  3204. ac_status=$?
  3205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3206. (exit $ac_status); }; } &&
  3207. { ac_try='test -s conftest.$ac_objext'
  3208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3209. (eval $ac_try) 2>&5
  3210. ac_status=$?
  3211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3212. (exit $ac_status); }; }; then
  3213. eval "$as_ac_Header=yes"
  3214. else
  3215. echo "$as_me: failed program was:" >&5
  3216. sed 's/^/| /' conftest.$ac_ext >&5
  3217. eval "$as_ac_Header=no"
  3218. fi
  3219. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3220. fi
  3221. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3222. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3223. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3224. cat >>confdefs.h <<_ACEOF
  3225. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3226. _ACEOF
  3227. fi
  3228. done
  3229. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3230. echo "$as_me:$LINENO: checking for memwatch.h" >&5
  3231. echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6
  3232. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3233. echo $ECHO_N "(cached) $ECHO_C" >&6
  3234. fi
  3235. echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5
  3236. echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6
  3237. else
  3238. # Is the header compilable?
  3239. echo "$as_me:$LINENO: checking memwatch.h usability" >&5
  3240. echo $ECHO_N "checking memwatch.h usability... $ECHO_C" >&6
  3241. cat >conftest.$ac_ext <<_ACEOF
  3242. /* confdefs.h. */
  3243. _ACEOF
  3244. cat confdefs.h >>conftest.$ac_ext
  3245. cat >>conftest.$ac_ext <<_ACEOF
  3246. /* end confdefs.h. */
  3247. $ac_includes_default
  3248. #include <memwatch.h>
  3249. _ACEOF
  3250. rm -f conftest.$ac_objext
  3251. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3252. (eval $ac_compile) 2>conftest.er1
  3253. ac_status=$?
  3254. grep -v '^ *+' conftest.er1 >conftest.err
  3255. rm -f conftest.er1
  3256. cat conftest.err >&5
  3257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3258. (exit $ac_status); } &&
  3259. { ac_try='test -z "$ac_c_werror_flag"
  3260. || test ! -s conftest.err'
  3261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3262. (eval $ac_try) 2>&5
  3263. ac_status=$?
  3264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3265. (exit $ac_status); }; } &&
  3266. { ac_try='test -s conftest.$ac_objext'
  3267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3268. (eval $ac_try) 2>&5
  3269. ac_status=$?
  3270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3271. (exit $ac_status); }; }; then
  3272. ac_header_compiler=yes
  3273. else
  3274. echo "$as_me: failed program was:" >&5
  3275. sed 's/^/| /' conftest.$ac_ext >&5
  3276. ac_header_compiler=no
  3277. fi
  3278. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3279. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3280. echo "${ECHO_T}$ac_header_compiler" >&6
  3281. # Is the header present?
  3282. echo "$as_me:$LINENO: checking memwatch.h presence" >&5
  3283. echo $ECHO_N "checking memwatch.h presence... $ECHO_C" >&6
  3284. cat >conftest.$ac_ext <<_ACEOF
  3285. /* confdefs.h. */
  3286. _ACEOF
  3287. cat confdefs.h >>conftest.$ac_ext
  3288. cat >>conftest.$ac_ext <<_ACEOF
  3289. /* end confdefs.h. */
  3290. #include <memwatch.h>
  3291. _ACEOF
  3292. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3293. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3294. ac_status=$?
  3295. grep -v '^ *+' conftest.er1 >conftest.err
  3296. rm -f conftest.er1
  3297. cat conftest.err >&5
  3298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3299. (exit $ac_status); } >/dev/null; then
  3300. if test -s conftest.err; then
  3301. ac_cpp_err=$ac_c_preproc_warn_flag
  3302. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3303. else
  3304. ac_cpp_err=
  3305. fi
  3306. else
  3307. ac_cpp_err=yes
  3308. fi
  3309. if test -z "$ac_cpp_err"; then
  3310. ac_header_preproc=yes
  3311. else
  3312. echo "$as_me: failed program was:" >&5
  3313. sed 's/^/| /' conftest.$ac_ext >&5
  3314. ac_header_preproc=no
  3315. fi
  3316. rm -f conftest.err conftest.$ac_ext
  3317. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3318. echo "${ECHO_T}$ac_header_preproc" >&6
  3319. # So? What about this header?
  3320. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3321. yes:no: )
  3322. { echo "$as_me:$LINENO: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3323. echo "$as_me: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3324. { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the compiler's result" >&5
  3325. echo "$as_me: WARNING: memwatch.h: proceeding with the compiler's result" >&2;}
  3326. ac_header_preproc=yes
  3327. ;;
  3328. no:yes:* )
  3329. { echo "$as_me:$LINENO: WARNING: memwatch.h: present but cannot be compiled" >&5
  3330. echo "$as_me: WARNING: memwatch.h: present but cannot be compiled" >&2;}
  3331. { echo "$as_me:$LINENO: WARNING: memwatch.h: check for missing prerequisite headers?" >&5
  3332. echo "$as_me: WARNING: memwatch.h: check for missing prerequisite headers?" >&2;}
  3333. { echo "$as_me:$LINENO: WARNING: memwatch.h: see the Autoconf documentation" >&5
  3334. echo "$as_me: WARNING: memwatch.h: see the Autoconf documentation" >&2;}
  3335. { echo "$as_me:$LINENO: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&5
  3336. echo "$as_me: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3337. { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the preprocessor's result" >&5
  3338. echo "$as_me: WARNING: memwatch.h: proceeding with the preprocessor's result" >&2;}
  3339. { echo "$as_me:$LINENO: WARNING: memwatch.h: in the future, the compiler will take precedence" >&5
  3340. echo "$as_me: WARNING: memwatch.h: in the future, the compiler will take precedence" >&2;}
  3341. (
  3342. cat <<\_ASBOX
  3343. ## ------------------------------------------ ##
  3344. ## Report this to the AC_PACKAGE_NAME lists. ##
  3345. ## ------------------------------------------ ##
  3346. _ASBOX
  3347. ) |
  3348. sed "s/^/$as_me: WARNING: /" >&2
  3349. ;;
  3350. esac
  3351. echo "$as_me:$LINENO: checking for memwatch.h" >&5
  3352. echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6
  3353. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3354. echo $ECHO_N "(cached) $ECHO_C" >&6
  3355. else
  3356. ac_cv_header_memwatch_h=$ac_header_preproc
  3357. fi
  3358. echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5
  3359. echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6
  3360. fi
  3361. if test $ac_cv_header_memwatch_h = yes; then
  3362. :
  3363. else
  3364. { { echo "$as_me:$LINENO: error: memwatch header not found... stopping" >&5
  3365. echo "$as_me: error: memwatch header not found... stopping" >&2;}
  3366. { (exit 1); exit 1; }; }
  3367. fi
  3368. ;;
  3369. "dmalloc")
  3370. CFLAGS="$CFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK"
  3371. LIBS="$LIBS -ldmalloc"
  3372. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3373. echo "$as_me:$LINENO: checking for dmalloc.h" >&5
  3374. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
  3375. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3376. echo $ECHO_N "(cached) $ECHO_C" >&6
  3377. fi
  3378. echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
  3379. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
  3380. else
  3381. # Is the header compilable?
  3382. echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
  3383. echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6
  3384. cat >conftest.$ac_ext <<_ACEOF
  3385. /* confdefs.h. */
  3386. _ACEOF
  3387. cat confdefs.h >>conftest.$ac_ext
  3388. cat >>conftest.$ac_ext <<_ACEOF
  3389. /* end confdefs.h. */
  3390. $ac_includes_default
  3391. #include <dmalloc.h>
  3392. _ACEOF
  3393. rm -f conftest.$ac_objext
  3394. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3395. (eval $ac_compile) 2>conftest.er1
  3396. ac_status=$?
  3397. grep -v '^ *+' conftest.er1 >conftest.err
  3398. rm -f conftest.er1
  3399. cat conftest.err >&5
  3400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3401. (exit $ac_status); } &&
  3402. { ac_try='test -z "$ac_c_werror_flag"
  3403. || test ! -s conftest.err'
  3404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3405. (eval $ac_try) 2>&5
  3406. ac_status=$?
  3407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408. (exit $ac_status); }; } &&
  3409. { ac_try='test -s conftest.$ac_objext'
  3410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3411. (eval $ac_try) 2>&5
  3412. ac_status=$?
  3413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3414. (exit $ac_status); }; }; then
  3415. ac_header_compiler=yes
  3416. else
  3417. echo "$as_me: failed program was:" >&5
  3418. sed 's/^/| /' conftest.$ac_ext >&5
  3419. ac_header_compiler=no
  3420. fi
  3421. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3422. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3423. echo "${ECHO_T}$ac_header_compiler" >&6
  3424. # Is the header present?
  3425. echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
  3426. echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6
  3427. cat >conftest.$ac_ext <<_ACEOF
  3428. /* confdefs.h. */
  3429. _ACEOF
  3430. cat confdefs.h >>conftest.$ac_ext
  3431. cat >>conftest.$ac_ext <<_ACEOF
  3432. /* end confdefs.h. */
  3433. #include <dmalloc.h>
  3434. _ACEOF
  3435. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3436. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3437. ac_status=$?
  3438. grep -v '^ *+' conftest.er1 >conftest.err
  3439. rm -f conftest.er1
  3440. cat conftest.err >&5
  3441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3442. (exit $ac_status); } >/dev/null; then
  3443. if test -s conftest.err; then
  3444. ac_cpp_err=$ac_c_preproc_warn_flag
  3445. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3446. else
  3447. ac_cpp_err=
  3448. fi
  3449. else
  3450. ac_cpp_err=yes
  3451. fi
  3452. if test -z "$ac_cpp_err"; then
  3453. ac_header_preproc=yes
  3454. else
  3455. echo "$as_me: failed program was:" >&5
  3456. sed 's/^/| /' conftest.$ac_ext >&5
  3457. ac_header_preproc=no
  3458. fi
  3459. rm -f conftest.err conftest.$ac_ext
  3460. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3461. echo "${ECHO_T}$ac_header_preproc" >&6
  3462. # So? What about this header?
  3463. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3464. yes:no: )
  3465. { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3466. echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3467. { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
  3468. echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
  3469. ac_header_preproc=yes
  3470. ;;
  3471. no:yes:* )
  3472. { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5
  3473. echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;}
  3474. { echo "$as_me:$LINENO: WARNING: dmalloc.h: check for missing prerequisite headers?" >&5
  3475. echo "$as_me: WARNING: dmalloc.h: check for missing prerequisite headers?" >&2;}
  3476. { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5
  3477. echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;}
  3478. { echo "$as_me:$LINENO: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&5
  3479. echo "$as_me: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3480. { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5
  3481. echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;}
  3482. { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5
  3483. echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;}
  3484. (
  3485. cat <<\_ASBOX
  3486. ## ------------------------------------------ ##
  3487. ## Report this to the AC_PACKAGE_NAME lists. ##
  3488. ## ------------------------------------------ ##
  3489. _ASBOX
  3490. ) |
  3491. sed "s/^/$as_me: WARNING: /" >&2
  3492. ;;
  3493. esac
  3494. echo "$as_me:$LINENO: checking for dmalloc.h" >&5
  3495. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
  3496. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3497. echo $ECHO_N "(cached) $ECHO_C" >&6
  3498. else
  3499. ac_cv_header_dmalloc_h=$ac_header_preproc
  3500. fi
  3501. echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
  3502. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
  3503. fi
  3504. if test $ac_cv_header_dmalloc_h = yes; then
  3505. :
  3506. else
  3507. { { echo "$as_me:$LINENO: error: dmalloc header not found... stopping" >&5
  3508. echo "$as_me: error: dmalloc header not found... stopping" >&2;}
  3509. { (exit 1); exit 1; }; }
  3510. fi
  3511. ;;
  3512. "gcollect")
  3513. CFLAGS="$CFLAGS -DGCOLLECT"
  3514. LIBS="$LIBS -lgc"
  3515. if test "${ac_cv_header_gc_h+set}" = set; then
  3516. echo "$as_me:$LINENO: checking for gc.h" >&5
  3517. echo $ECHO_N "checking for gc.h... $ECHO_C" >&6
  3518. if test "${ac_cv_header_gc_h+set}" = set; then
  3519. echo $ECHO_N "(cached) $ECHO_C" >&6
  3520. fi
  3521. echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
  3522. echo "${ECHO_T}$ac_cv_header_gc_h" >&6
  3523. else
  3524. # Is the header compilable?
  3525. echo "$as_me:$LINENO: checking gc.h usability" >&5
  3526. echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6
  3527. cat >conftest.$ac_ext <<_ACEOF
  3528. /* confdefs.h. */
  3529. _ACEOF
  3530. cat confdefs.h >>conftest.$ac_ext
  3531. cat >>conftest.$ac_ext <<_ACEOF
  3532. /* end confdefs.h. */
  3533. $ac_includes_default
  3534. #include <gc.h>
  3535. _ACEOF
  3536. rm -f conftest.$ac_objext
  3537. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3538. (eval $ac_compile) 2>conftest.er1
  3539. ac_status=$?
  3540. grep -v '^ *+' conftest.er1 >conftest.err
  3541. rm -f conftest.er1
  3542. cat conftest.err >&5
  3543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3544. (exit $ac_status); } &&
  3545. { ac_try='test -z "$ac_c_werror_flag"
  3546. || test ! -s conftest.err'
  3547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3548. (eval $ac_try) 2>&5
  3549. ac_status=$?
  3550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3551. (exit $ac_status); }; } &&
  3552. { ac_try='test -s conftest.$ac_objext'
  3553. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3554. (eval $ac_try) 2>&5
  3555. ac_status=$?
  3556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3557. (exit $ac_status); }; }; then
  3558. ac_header_compiler=yes
  3559. else
  3560. echo "$as_me: failed program was:" >&5
  3561. sed 's/^/| /' conftest.$ac_ext >&5
  3562. ac_header_compiler=no
  3563. fi
  3564. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3565. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3566. echo "${ECHO_T}$ac_header_compiler" >&6
  3567. # Is the header present?
  3568. echo "$as_me:$LINENO: checking gc.h presence" >&5
  3569. echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6
  3570. cat >conftest.$ac_ext <<_ACEOF
  3571. /* confdefs.h. */
  3572. _ACEOF
  3573. cat confdefs.h >>conftest.$ac_ext
  3574. cat >>conftest.$ac_ext <<_ACEOF
  3575. /* end confdefs.h. */
  3576. #include <gc.h>
  3577. _ACEOF
  3578. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3579. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3580. ac_status=$?
  3581. grep -v '^ *+' conftest.er1 >conftest.err
  3582. rm -f conftest.er1
  3583. cat conftest.err >&5
  3584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3585. (exit $ac_status); } >/dev/null; then
  3586. if test -s conftest.err; then
  3587. ac_cpp_err=$ac_c_preproc_warn_flag
  3588. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3589. else
  3590. ac_cpp_err=
  3591. fi
  3592. else
  3593. ac_cpp_err=yes
  3594. fi
  3595. if test -z "$ac_cpp_err"; then
  3596. ac_header_preproc=yes
  3597. else
  3598. echo "$as_me: failed program was:" >&5
  3599. sed 's/^/| /' conftest.$ac_ext >&5
  3600. ac_header_preproc=no
  3601. fi
  3602. rm -f conftest.err conftest.$ac_ext
  3603. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3604. echo "${ECHO_T}$ac_header_preproc" >&6
  3605. # So? What about this header?
  3606. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3607. yes:no: )
  3608. { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3609. echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3610. { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5
  3611. echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;}
  3612. ac_header_preproc=yes
  3613. ;;
  3614. no:yes:* )
  3615. { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5
  3616. echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;}
  3617. { echo "$as_me:$LINENO: WARNING: gc.h: check for missing prerequisite headers?" >&5
  3618. echo "$as_me: WARNING: gc.h: check for missing prerequisite headers?" >&2;}
  3619. { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5
  3620. echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;}
  3621. { echo "$as_me:$LINENO: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&5
  3622. echo "$as_me: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3623. { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5
  3624. echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;}
  3625. { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5
  3626. echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;}
  3627. (
  3628. cat <<\_ASBOX
  3629. ## ------------------------------------------ ##
  3630. ## Report this to the AC_PACKAGE_NAME lists. ##
  3631. ## ------------------------------------------ ##
  3632. _ASBOX
  3633. ) |
  3634. sed "s/^/$as_me: WARNING: /" >&2
  3635. ;;
  3636. esac
  3637. echo "$as_me:$LINENO: checking for gc.h" >&5
  3638. echo $ECHO_N "checking for gc.h... $ECHO_C" >&6
  3639. if test "${ac_cv_header_gc_h+set}" = set; then
  3640. echo $ECHO_N "(cached) $ECHO_C" >&6
  3641. else
  3642. ac_cv_header_gc_h=$ac_header_preproc
  3643. fi
  3644. echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
  3645. echo "${ECHO_T}$ac_cv_header_gc_h" >&6
  3646. fi
  3647. if test $ac_cv_header_gc_h = yes; then
  3648. :
  3649. else
  3650. { { echo "$as_me:$LINENO: error: gcollect header not found... stopping" >&5
  3651. echo "$as_me: error: gcollect header not found... stopping" >&2;}
  3652. { (exit 1); exit 1; }; }
  3653. fi
  3654. ;;
  3655. "bcheck")
  3656. CFLAGS="$CFLAGS -DBCHECK"
  3657. ;;
  3658. esac
  3659. #
  3660. # Packetver
  3661. #
  3662. if test -n "$enable_packetver" ; then
  3663. CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
  3664. fi
  3665. #
  3666. # Debug
  3667. #
  3668. case $enable_debug in
  3669. "no")
  3670. # default value
  3671. CFLAGS="$CFLAGS -Wno-unused -Wno-parentheses"
  3672. ;;
  3673. "yes")
  3674. CFLAGS="$CFLAGS -g -DDEBUG"
  3675. ;;
  3676. "gdb")
  3677. CFLAGS="$CFLAGS -ggdb -DDEBUG"
  3678. ;;
  3679. esac
  3680. #
  3681. # RDTSC
  3682. #
  3683. case $enable_rdtsc in
  3684. 0)
  3685. #default value
  3686. ;;
  3687. 1)
  3688. CFLAGS="$CFLAGS -DENABLE_RDTSC"
  3689. ;;
  3690. esac
  3691. #
  3692. # Profiler
  3693. #
  3694. case $enable_profiler in
  3695. "no")
  3696. # default value
  3697. ;;
  3698. "gprof")
  3699. CFLAGS="$CFLAGS -pg"
  3700. LDFLAGS="$LDFLAGS -pg"
  3701. ;;
  3702. esac
  3703. #
  3704. # zlib library (required)
  3705. #
  3706. if test -n "${ZLIB_HOME}" ; then
  3707. LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  3708. CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  3709. fi
  3710. echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
  3711. echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
  3712. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
  3713. echo $ECHO_N "(cached) $ECHO_C" >&6
  3714. else
  3715. ac_check_lib_save_LIBS=$LIBS
  3716. LIBS="-lz $LIBS"
  3717. cat >conftest.$ac_ext <<_ACEOF
  3718. /* confdefs.h. */
  3719. _ACEOF
  3720. cat confdefs.h >>conftest.$ac_ext
  3721. cat >>conftest.$ac_ext <<_ACEOF
  3722. /* end confdefs.h. */
  3723. /* Override any gcc2 internal prototype to avoid an error. */
  3724. #ifdef __cplusplus
  3725. extern "C"
  3726. #endif
  3727. /* We use char because int might match the return type of a gcc2
  3728. builtin and then its argument prototype would still apply. */
  3729. char inflateEnd ();
  3730. int
  3731. main ()
  3732. {
  3733. inflateEnd ();
  3734. ;
  3735. return 0;
  3736. }
  3737. _ACEOF
  3738. rm -f conftest.$ac_objext conftest$ac_exeext
  3739. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3740. (eval $ac_link) 2>conftest.er1
  3741. ac_status=$?
  3742. grep -v '^ *+' conftest.er1 >conftest.err
  3743. rm -f conftest.er1
  3744. cat conftest.err >&5
  3745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3746. (exit $ac_status); } &&
  3747. { ac_try='test -z "$ac_c_werror_flag"
  3748. || test ! -s conftest.err'
  3749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3750. (eval $ac_try) 2>&5
  3751. ac_status=$?
  3752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3753. (exit $ac_status); }; } &&
  3754. { ac_try='test -s conftest$ac_exeext'
  3755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3756. (eval $ac_try) 2>&5
  3757. ac_status=$?
  3758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3759. (exit $ac_status); }; }; then
  3760. ac_cv_lib_z_inflateEnd=yes
  3761. else
  3762. echo "$as_me: failed program was:" >&5
  3763. sed 's/^/| /' conftest.$ac_ext >&5
  3764. ac_cv_lib_z_inflateEnd=no
  3765. fi
  3766. rm -f conftest.err conftest.$ac_objext \
  3767. conftest$ac_exeext conftest.$ac_ext
  3768. LIBS=$ac_check_lib_save_LIBS
  3769. fi
  3770. echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
  3771. echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
  3772. if test $ac_cv_lib_z_inflateEnd = yes; then
  3773. cat >>confdefs.h <<_ACEOF
  3774. #define HAVE_LIBZ 1
  3775. _ACEOF
  3776. LIBS="-lz $LIBS"
  3777. else
  3778. { { echo "$as_me:$LINENO: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" >&5
  3779. echo "$as_me: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  3780. { (exit 1); exit 1; }; }
  3781. fi
  3782. if test "${ac_cv_header_zlib_h+set}" = set; then
  3783. echo "$as_me:$LINENO: checking for zlib.h" >&5
  3784. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  3785. if test "${ac_cv_header_zlib_h+set}" = set; then
  3786. echo $ECHO_N "(cached) $ECHO_C" >&6
  3787. fi
  3788. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  3789. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  3790. else
  3791. # Is the header compilable?
  3792. echo "$as_me:$LINENO: checking zlib.h usability" >&5
  3793. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
  3794. cat >conftest.$ac_ext <<_ACEOF
  3795. /* confdefs.h. */
  3796. _ACEOF
  3797. cat confdefs.h >>conftest.$ac_ext
  3798. cat >>conftest.$ac_ext <<_ACEOF
  3799. /* end confdefs.h. */
  3800. $ac_includes_default
  3801. #include <zlib.h>
  3802. _ACEOF
  3803. rm -f conftest.$ac_objext
  3804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3805. (eval $ac_compile) 2>conftest.er1
  3806. ac_status=$?
  3807. grep -v '^ *+' conftest.er1 >conftest.err
  3808. rm -f conftest.er1
  3809. cat conftest.err >&5
  3810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3811. (exit $ac_status); } &&
  3812. { ac_try='test -z "$ac_c_werror_flag"
  3813. || test ! -s conftest.err'
  3814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3815. (eval $ac_try) 2>&5
  3816. ac_status=$?
  3817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3818. (exit $ac_status); }; } &&
  3819. { ac_try='test -s conftest.$ac_objext'
  3820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3821. (eval $ac_try) 2>&5
  3822. ac_status=$?
  3823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3824. (exit $ac_status); }; }; then
  3825. ac_header_compiler=yes
  3826. else
  3827. echo "$as_me: failed program was:" >&5
  3828. sed 's/^/| /' conftest.$ac_ext >&5
  3829. ac_header_compiler=no
  3830. fi
  3831. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3832. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3833. echo "${ECHO_T}$ac_header_compiler" >&6
  3834. # Is the header present?
  3835. echo "$as_me:$LINENO: checking zlib.h presence" >&5
  3836. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
  3837. cat >conftest.$ac_ext <<_ACEOF
  3838. /* confdefs.h. */
  3839. _ACEOF
  3840. cat confdefs.h >>conftest.$ac_ext
  3841. cat >>conftest.$ac_ext <<_ACEOF
  3842. /* end confdefs.h. */
  3843. #include <zlib.h>
  3844. _ACEOF
  3845. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3846. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3847. ac_status=$?
  3848. grep -v '^ *+' conftest.er1 >conftest.err
  3849. rm -f conftest.er1
  3850. cat conftest.err >&5
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); } >/dev/null; then
  3853. if test -s conftest.err; then
  3854. ac_cpp_err=$ac_c_preproc_warn_flag
  3855. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3856. else
  3857. ac_cpp_err=
  3858. fi
  3859. else
  3860. ac_cpp_err=yes
  3861. fi
  3862. if test -z "$ac_cpp_err"; then
  3863. ac_header_preproc=yes
  3864. else
  3865. echo "$as_me: failed program was:" >&5
  3866. sed 's/^/| /' conftest.$ac_ext >&5
  3867. ac_header_preproc=no
  3868. fi
  3869. rm -f conftest.err conftest.$ac_ext
  3870. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3871. echo "${ECHO_T}$ac_header_preproc" >&6
  3872. # So? What about this header?
  3873. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3874. yes:no: )
  3875. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3876. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3877. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  3878. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  3879. ac_header_preproc=yes
  3880. ;;
  3881. no:yes:* )
  3882. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  3883. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  3884. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  3885. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  3886. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  3887. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  3888. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  3889. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3890. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  3891. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  3892. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  3893. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  3894. (
  3895. cat <<\_ASBOX
  3896. ## ------------------------------------------ ##
  3897. ## Report this to the AC_PACKAGE_NAME lists. ##
  3898. ## ------------------------------------------ ##
  3899. _ASBOX
  3900. ) |
  3901. sed "s/^/$as_me: WARNING: /" >&2
  3902. ;;
  3903. esac
  3904. echo "$as_me:$LINENO: checking for zlib.h" >&5
  3905. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  3906. if test "${ac_cv_header_zlib_h+set}" = set; then
  3907. echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. else
  3909. ac_cv_header_zlib_h=$ac_header_preproc
  3910. fi
  3911. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  3912. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  3913. fi
  3914. if test $ac_cv_header_zlib_h = yes; then
  3915. :
  3916. else
  3917. { { echo "$as_me:$LINENO: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  3918. echo "$as_me: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  3919. { (exit 1); exit 1; }; }
  3920. fi
  3921. #
  3922. # math library (required)
  3923. #
  3924. echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
  3925. echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
  3926. if test "${ac_cv_lib_m_sqrt+set}" = set; then
  3927. echo $ECHO_N "(cached) $ECHO_C" >&6
  3928. else
  3929. ac_check_lib_save_LIBS=$LIBS
  3930. LIBS="-lm $LIBS"
  3931. cat >conftest.$ac_ext <<_ACEOF
  3932. /* confdefs.h. */
  3933. _ACEOF
  3934. cat confdefs.h >>conftest.$ac_ext
  3935. cat >>conftest.$ac_ext <<_ACEOF
  3936. /* end confdefs.h. */
  3937. /* Override any gcc2 internal prototype to avoid an error. */
  3938. #ifdef __cplusplus
  3939. extern "C"
  3940. #endif
  3941. /* We use char because int might match the return type of a gcc2
  3942. builtin and then its argument prototype would still apply. */
  3943. char sqrt ();
  3944. int
  3945. main ()
  3946. {
  3947. sqrt ();
  3948. ;
  3949. return 0;
  3950. }
  3951. _ACEOF
  3952. rm -f conftest.$ac_objext conftest$ac_exeext
  3953. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3954. (eval $ac_link) 2>conftest.er1
  3955. ac_status=$?
  3956. grep -v '^ *+' conftest.er1 >conftest.err
  3957. rm -f conftest.er1
  3958. cat conftest.err >&5
  3959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3960. (exit $ac_status); } &&
  3961. { ac_try='test -z "$ac_c_werror_flag"
  3962. || test ! -s conftest.err'
  3963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3964. (eval $ac_try) 2>&5
  3965. ac_status=$?
  3966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); }; } &&
  3968. { ac_try='test -s conftest$ac_exeext'
  3969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3970. (eval $ac_try) 2>&5
  3971. ac_status=$?
  3972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3973. (exit $ac_status); }; }; then
  3974. ac_cv_lib_m_sqrt=yes
  3975. else
  3976. echo "$as_me: failed program was:" >&5
  3977. sed 's/^/| /' conftest.$ac_ext >&5
  3978. ac_cv_lib_m_sqrt=no
  3979. fi
  3980. rm -f conftest.err conftest.$ac_objext \
  3981. conftest$ac_exeext conftest.$ac_ext
  3982. LIBS=$ac_check_lib_save_LIBS
  3983. fi
  3984. echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
  3985. echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
  3986. if test $ac_cv_lib_m_sqrt = yes; then
  3987. cat >>confdefs.h <<_ACEOF
  3988. #define HAVE_LIBM 1
  3989. _ACEOF
  3990. LIBS="-lm $LIBS"
  3991. else
  3992. { { echo "$as_me:$LINENO: error: math library not found... stopping" >&5
  3993. echo "$as_me: error: math library not found... stopping" >&2;}
  3994. { (exit 1); exit 1; }; }
  3995. fi
  3996. #
  3997. # clock_gettime (rt on Debian)
  3998. #
  3999. echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
  4000. echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
  4001. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
  4002. echo $ECHO_N "(cached) $ECHO_C" >&6
  4003. else
  4004. ac_check_lib_save_LIBS=$LIBS
  4005. LIBS="-lrt $LIBS"
  4006. cat >conftest.$ac_ext <<_ACEOF
  4007. /* confdefs.h. */
  4008. _ACEOF
  4009. cat confdefs.h >>conftest.$ac_ext
  4010. cat >>conftest.$ac_ext <<_ACEOF
  4011. /* end confdefs.h. */
  4012. /* Override any gcc2 internal prototype to avoid an error. */
  4013. #ifdef __cplusplus
  4014. extern "C"
  4015. #endif
  4016. /* We use char because int might match the return type of a gcc2
  4017. builtin and then its argument prototype would still apply. */
  4018. char clock_gettime ();
  4019. int
  4020. main ()
  4021. {
  4022. clock_gettime ();
  4023. ;
  4024. return 0;
  4025. }
  4026. _ACEOF
  4027. rm -f conftest.$ac_objext conftest$ac_exeext
  4028. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4029. (eval $ac_link) 2>conftest.er1
  4030. ac_status=$?
  4031. grep -v '^ *+' conftest.er1 >conftest.err
  4032. rm -f conftest.er1
  4033. cat conftest.err >&5
  4034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4035. (exit $ac_status); } &&
  4036. { ac_try='test -z "$ac_c_werror_flag"
  4037. || test ! -s conftest.err'
  4038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4039. (eval $ac_try) 2>&5
  4040. ac_status=$?
  4041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4042. (exit $ac_status); }; } &&
  4043. { ac_try='test -s conftest$ac_exeext'
  4044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4045. (eval $ac_try) 2>&5
  4046. ac_status=$?
  4047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4048. (exit $ac_status); }; }; then
  4049. ac_cv_lib_rt_clock_gettime=yes
  4050. else
  4051. echo "$as_me: failed program was:" >&5
  4052. sed 's/^/| /' conftest.$ac_ext >&5
  4053. ac_cv_lib_rt_clock_gettime=no
  4054. fi
  4055. rm -f conftest.err conftest.$ac_objext \
  4056. conftest$ac_exeext conftest.$ac_ext
  4057. LIBS=$ac_check_lib_save_LIBS
  4058. fi
  4059. echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
  4060. echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
  4061. if test $ac_cv_lib_rt_clock_gettime = yes; then
  4062. cat >>confdefs.h <<_ACEOF
  4063. #define HAVE_LIBRT 1
  4064. _ACEOF
  4065. LIBS="-lrt $LIBS"
  4066. fi
  4067. #
  4068. # MySQL library (optional)
  4069. #
  4070. if test "$want_mysql" = "no" ; then
  4071. MYSQL_VERSION=""
  4072. MYSQL_CFLAGS=""
  4073. MYSQL_LIBS=""
  4074. { echo "$as_me:$LINENO: ignoring MySQL (optional)" >&5
  4075. echo "$as_me: ignoring MySQL (optional)" >&6;}
  4076. else
  4077. if test -z "$MYSQL_CONFIG_HOME"; then
  4078. # Extract the first word of "mysql_config", so it can be a program name with args.
  4079. set dummy mysql_config; ac_word=$2
  4080. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4081. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4082. if test "${ac_cv_path_MYSQL_CONFIG_HOME+set}" = set; then
  4083. echo $ECHO_N "(cached) $ECHO_C" >&6
  4084. else
  4085. case $MYSQL_CONFIG_HOME in
  4086. [\\/]* | ?:[\\/]*)
  4087. ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  4088. ;;
  4089. *)
  4090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4091. for as_dir in $PATH
  4092. do
  4093. IFS=$as_save_IFS
  4094. test -z "$as_dir" && as_dir=.
  4095. for ac_exec_ext in '' $ac_executable_extensions; do
  4096. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4097. ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  4098. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4099. break 2
  4100. fi
  4101. done
  4102. done
  4103. test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  4104. ;;
  4105. esac
  4106. fi
  4107. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  4108. if test -n "$MYSQL_CONFIG_HOME"; then
  4109. echo "$as_me:$LINENO: result: $MYSQL_CONFIG_HOME" >&5
  4110. echo "${ECHO_T}$MYSQL_CONFIG_HOME" >&6
  4111. else
  4112. echo "$as_me:$LINENO: result: no" >&5
  4113. echo "${ECHO_T}no" >&6
  4114. fi
  4115. fi
  4116. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  4117. MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  4118. if test "$manual_MYSQL_CFLAGS" = "no" ; then
  4119. MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`"
  4120. fi
  4121. if test "$manual_MYSQL_LIBS" = "no" ; then
  4122. MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  4123. fi
  4124. else
  4125. MYSQL_VERSION="unknown"
  4126. fi
  4127. MYSQL_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $MYSQL_LIBS"
  4128. MYSQL_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
  4129. echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
  4130. echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
  4131. if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
  4132. echo $ECHO_N "(cached) $ECHO_C" >&6
  4133. else
  4134. ac_check_lib_save_LIBS=$LIBS
  4135. LIBS="-lmysqlclient $LIBS"
  4136. cat >conftest.$ac_ext <<_ACEOF
  4137. /* confdefs.h. */
  4138. _ACEOF
  4139. cat confdefs.h >>conftest.$ac_ext
  4140. cat >>conftest.$ac_ext <<_ACEOF
  4141. /* end confdefs.h. */
  4142. /* Override any gcc2 internal prototype to avoid an error. */
  4143. #ifdef __cplusplus
  4144. extern "C"
  4145. #endif
  4146. /* We use char because int might match the return type of a gcc2
  4147. builtin and then its argument prototype would still apply. */
  4148. char mysql_init ();
  4149. int
  4150. main ()
  4151. {
  4152. mysql_init ();
  4153. ;
  4154. return 0;
  4155. }
  4156. _ACEOF
  4157. rm -f conftest.$ac_objext conftest$ac_exeext
  4158. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4159. (eval $ac_link) 2>conftest.er1
  4160. ac_status=$?
  4161. grep -v '^ *+' conftest.er1 >conftest.err
  4162. rm -f conftest.er1
  4163. cat conftest.err >&5
  4164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4165. (exit $ac_status); } &&
  4166. { ac_try='test -z "$ac_c_werror_flag"
  4167. || test ! -s conftest.err'
  4168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4169. (eval $ac_try) 2>&5
  4170. ac_status=$?
  4171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4172. (exit $ac_status); }; } &&
  4173. { ac_try='test -s conftest$ac_exeext'
  4174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4175. (eval $ac_try) 2>&5
  4176. ac_status=$?
  4177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4178. (exit $ac_status); }; }; then
  4179. ac_cv_lib_mysqlclient_mysql_init=yes
  4180. else
  4181. echo "$as_me: failed program was:" >&5
  4182. sed 's/^/| /' conftest.$ac_ext >&5
  4183. ac_cv_lib_mysqlclient_mysql_init=no
  4184. fi
  4185. rm -f conftest.err conftest.$ac_objext \
  4186. conftest$ac_exeext conftest.$ac_ext
  4187. LIBS=$ac_check_lib_save_LIBS
  4188. fi
  4189. echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
  4190. echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
  4191. if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
  4192. HAVE_MYSQL="yes"
  4193. fi
  4194. if test "${ac_cv_header_mysql_h+set}" = set; then
  4195. echo "$as_me:$LINENO: checking for mysql.h" >&5
  4196. echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
  4197. if test "${ac_cv_header_mysql_h+set}" = set; then
  4198. echo $ECHO_N "(cached) $ECHO_C" >&6
  4199. fi
  4200. echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
  4201. echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
  4202. else
  4203. # Is the header compilable?
  4204. echo "$as_me:$LINENO: checking mysql.h usability" >&5
  4205. echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
  4206. cat >conftest.$ac_ext <<_ACEOF
  4207. /* confdefs.h. */
  4208. _ACEOF
  4209. cat confdefs.h >>conftest.$ac_ext
  4210. cat >>conftest.$ac_ext <<_ACEOF
  4211. /* end confdefs.h. */
  4212. $ac_includes_default
  4213. #include <mysql.h>
  4214. _ACEOF
  4215. rm -f conftest.$ac_objext
  4216. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4217. (eval $ac_compile) 2>conftest.er1
  4218. ac_status=$?
  4219. grep -v '^ *+' conftest.er1 >conftest.err
  4220. rm -f conftest.er1
  4221. cat conftest.err >&5
  4222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); } &&
  4224. { ac_try='test -z "$ac_c_werror_flag"
  4225. || test ! -s conftest.err'
  4226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4227. (eval $ac_try) 2>&5
  4228. ac_status=$?
  4229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4230. (exit $ac_status); }; } &&
  4231. { ac_try='test -s conftest.$ac_objext'
  4232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4233. (eval $ac_try) 2>&5
  4234. ac_status=$?
  4235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4236. (exit $ac_status); }; }; then
  4237. ac_header_compiler=yes
  4238. else
  4239. echo "$as_me: failed program was:" >&5
  4240. sed 's/^/| /' conftest.$ac_ext >&5
  4241. ac_header_compiler=no
  4242. fi
  4243. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4244. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4245. echo "${ECHO_T}$ac_header_compiler" >&6
  4246. # Is the header present?
  4247. echo "$as_me:$LINENO: checking mysql.h presence" >&5
  4248. echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
  4249. cat >conftest.$ac_ext <<_ACEOF
  4250. /* confdefs.h. */
  4251. _ACEOF
  4252. cat confdefs.h >>conftest.$ac_ext
  4253. cat >>conftest.$ac_ext <<_ACEOF
  4254. /* end confdefs.h. */
  4255. #include <mysql.h>
  4256. _ACEOF
  4257. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4258. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4259. ac_status=$?
  4260. grep -v '^ *+' conftest.er1 >conftest.err
  4261. rm -f conftest.er1
  4262. cat conftest.err >&5
  4263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4264. (exit $ac_status); } >/dev/null; then
  4265. if test -s conftest.err; then
  4266. ac_cpp_err=$ac_c_preproc_warn_flag
  4267. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4268. else
  4269. ac_cpp_err=
  4270. fi
  4271. else
  4272. ac_cpp_err=yes
  4273. fi
  4274. if test -z "$ac_cpp_err"; then
  4275. ac_header_preproc=yes
  4276. else
  4277. echo "$as_me: failed program was:" >&5
  4278. sed 's/^/| /' conftest.$ac_ext >&5
  4279. ac_header_preproc=no
  4280. fi
  4281. rm -f conftest.err conftest.$ac_ext
  4282. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4283. echo "${ECHO_T}$ac_header_preproc" >&6
  4284. # So? What about this header?
  4285. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4286. yes:no: )
  4287. { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4288. echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4289. { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
  4290. echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
  4291. ac_header_preproc=yes
  4292. ;;
  4293. no:yes:* )
  4294. { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
  4295. echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
  4296. { echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5
  4297. echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;}
  4298. { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
  4299. echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
  4300. { echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5
  4301. echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4302. { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
  4303. echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
  4304. { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
  4305. echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
  4306. (
  4307. cat <<\_ASBOX
  4308. ## ------------------------------------------ ##
  4309. ## Report this to the AC_PACKAGE_NAME lists. ##
  4310. ## ------------------------------------------ ##
  4311. _ASBOX
  4312. ) |
  4313. sed "s/^/$as_me: WARNING: /" >&2
  4314. ;;
  4315. esac
  4316. echo "$as_me:$LINENO: checking for mysql.h" >&5
  4317. echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
  4318. if test "${ac_cv_header_mysql_h+set}" = set; then
  4319. echo $ECHO_N "(cached) $ECHO_C" >&6
  4320. else
  4321. ac_cv_header_mysql_h=$ac_header_preproc
  4322. fi
  4323. echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
  4324. echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
  4325. fi
  4326. if test $ac_cv_header_mysql_h = yes; then
  4327. :
  4328. else
  4329. HAVE_MYSQL=""
  4330. fi
  4331. CPPFLAGS="$MYSQL_OLD_CPPFLAGS"
  4332. LDFLAGS="$MYSQL_OLD_LDFLAGS"
  4333. echo "$as_me:$LINENO: checking MySQL library (optional)" >&5
  4334. echo $ECHO_N "checking MySQL library (optional)... $ECHO_C" >&6
  4335. if test "$HAVE_MYSQL" = "yes" ; then
  4336. echo "$as_me:$LINENO: result: yes ($MYSQL_VERSION)" >&5
  4337. echo "${ECHO_T}yes ($MYSQL_VERSION)" >&6
  4338. else
  4339. echo "$as_me:$LINENO: result: no" >&5
  4340. echo "${ECHO_T}no" >&6
  4341. if test "$require_mysql" = "yes" ; then
  4342. { { echo "$as_me:$LINENO: error: MySQL not found or incompatible (requested)" >&5
  4343. echo "$as_me: error: MySQL not found or incompatible (requested)" >&2;}
  4344. { (exit 1); exit 1; }; }
  4345. else
  4346. { echo "$as_me:$LINENO: disabling MySQL (optional)" >&5
  4347. echo "$as_me: disabling MySQL (optional)" >&6;}
  4348. MYSQL_VERSION=""
  4349. MYSQL_CFLAGS=""
  4350. MYSQL_LIBS=""
  4351. fi
  4352. fi
  4353. fi
  4354. #
  4355. # PCRE library (optional)
  4356. #
  4357. ##TODO PCRE version
  4358. PCRE_LIBS=""
  4359. PCRE_CFLAGS=""
  4360. if test "$want_pcre" = "no" ; then
  4361. { echo "$as_me:$LINENO: ignoring PCRE (optional)" >&5
  4362. echo "$as_me: ignoring PCRE (optional)" >&6;}
  4363. else
  4364. if test -z "$PCRE_HOME" ; then
  4365. echo "$as_me:$LINENO: checking for pcre_study in -lpcre" >&5
  4366. echo $ECHO_N "checking for pcre_study in -lpcre... $ECHO_C" >&6
  4367. if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then
  4368. echo $ECHO_N "(cached) $ECHO_C" >&6
  4369. else
  4370. ac_check_lib_save_LIBS=$LIBS
  4371. LIBS="-lpcre $LIBS"
  4372. cat >conftest.$ac_ext <<_ACEOF
  4373. /* confdefs.h. */
  4374. _ACEOF
  4375. cat confdefs.h >>conftest.$ac_ext
  4376. cat >>conftest.$ac_ext <<_ACEOF
  4377. /* end confdefs.h. */
  4378. /* Override any gcc2 internal prototype to avoid an error. */
  4379. #ifdef __cplusplus
  4380. extern "C"
  4381. #endif
  4382. /* We use char because int might match the return type of a gcc2
  4383. builtin and then its argument prototype would still apply. */
  4384. char pcre_study ();
  4385. int
  4386. main ()
  4387. {
  4388. pcre_study ();
  4389. ;
  4390. return 0;
  4391. }
  4392. _ACEOF
  4393. rm -f conftest.$ac_objext conftest$ac_exeext
  4394. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4395. (eval $ac_link) 2>conftest.er1
  4396. ac_status=$?
  4397. grep -v '^ *+' conftest.er1 >conftest.err
  4398. rm -f conftest.er1
  4399. cat conftest.err >&5
  4400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4401. (exit $ac_status); } &&
  4402. { ac_try='test -z "$ac_c_werror_flag"
  4403. || test ! -s conftest.err'
  4404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4405. (eval $ac_try) 2>&5
  4406. ac_status=$?
  4407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4408. (exit $ac_status); }; } &&
  4409. { ac_try='test -s conftest$ac_exeext'
  4410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4411. (eval $ac_try) 2>&5
  4412. ac_status=$?
  4413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4414. (exit $ac_status); }; }; then
  4415. ac_cv_lib_pcre_pcre_study=yes
  4416. else
  4417. echo "$as_me: failed program was:" >&5
  4418. sed 's/^/| /' conftest.$ac_ext >&5
  4419. ac_cv_lib_pcre_pcre_study=no
  4420. fi
  4421. rm -f conftest.err conftest.$ac_objext \
  4422. conftest$ac_exeext conftest.$ac_ext
  4423. LIBS=$ac_check_lib_save_LIBS
  4424. fi
  4425. echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_study" >&5
  4426. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_study" >&6
  4427. if test $ac_cv_lib_pcre_pcre_study = yes; then
  4428. HAVE_PCRE="yes"
  4429. fi
  4430. if test "$HAVE_PCRE" = "yes" ; then
  4431. PCRE_LIBS="-lpcre"
  4432. fi
  4433. else
  4434. PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  4435. PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  4436. echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
  4437. echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
  4438. if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
  4439. echo $ECHO_N "(cached) $ECHO_C" >&6
  4440. else
  4441. ac_check_lib_save_LIBS=$LIBS
  4442. LIBS="-lpcre $LIBS"
  4443. cat >conftest.$ac_ext <<_ACEOF
  4444. /* confdefs.h. */
  4445. _ACEOF
  4446. cat confdefs.h >>conftest.$ac_ext
  4447. cat >>conftest.$ac_ext <<_ACEOF
  4448. /* end confdefs.h. */
  4449. /* Override any gcc2 internal prototype to avoid an error. */
  4450. #ifdef __cplusplus
  4451. extern "C"
  4452. #endif
  4453. /* We use char because int might match the return type of a gcc2
  4454. builtin and then its argument prototype would still apply. */
  4455. char pcre_compile ();
  4456. int
  4457. main ()
  4458. {
  4459. pcre_compile ();
  4460. ;
  4461. return 0;
  4462. }
  4463. _ACEOF
  4464. rm -f conftest.$ac_objext conftest$ac_exeext
  4465. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4466. (eval $ac_link) 2>conftest.er1
  4467. ac_status=$?
  4468. grep -v '^ *+' conftest.er1 >conftest.err
  4469. rm -f conftest.er1
  4470. cat conftest.err >&5
  4471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4472. (exit $ac_status); } &&
  4473. { ac_try='test -z "$ac_c_werror_flag"
  4474. || test ! -s conftest.err'
  4475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4476. (eval $ac_try) 2>&5
  4477. ac_status=$?
  4478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4479. (exit $ac_status); }; } &&
  4480. { ac_try='test -s conftest$ac_exeext'
  4481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4482. (eval $ac_try) 2>&5
  4483. ac_status=$?
  4484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4485. (exit $ac_status); }; }; then
  4486. ac_cv_lib_pcre_pcre_compile=yes
  4487. else
  4488. echo "$as_me: failed program was:" >&5
  4489. sed 's/^/| /' conftest.$ac_ext >&5
  4490. ac_cv_lib_pcre_pcre_compile=no
  4491. fi
  4492. rm -f conftest.err conftest.$ac_objext \
  4493. conftest$ac_exeext conftest.$ac_ext
  4494. LIBS=$ac_check_lib_save_LIBS
  4495. fi
  4496. echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
  4497. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
  4498. if test $ac_cv_lib_pcre_pcre_compile = yes; then
  4499. HAVE_PCRE="yes"
  4500. fi
  4501. CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  4502. LDFLAGS="$PCRE_OLD_LDFLAGS"
  4503. if test "$HAVE_PCRE" = "yes" ; then
  4504. PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  4505. test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  4506. fi
  4507. fi
  4508. echo "$as_me:$LINENO: checking PCRE library (optional)" >&5
  4509. echo $ECHO_N "checking PCRE library (optional)... $ECHO_C" >&6
  4510. if test "$HAVE_PCRE" = "yes" ; then
  4511. echo "$as_me:$LINENO: result: yes" >&5
  4512. echo "${ECHO_T}yes" >&6
  4513. else
  4514. echo "$as_me:$LINENO: result: no" >&5
  4515. echo "${ECHO_T}no" >&6
  4516. if test "$require_pcre" = "yes" ; then
  4517. { { echo "$as_me:$LINENO: error: PCRE not found or incompatible (requested)" >&5
  4518. echo "$as_me: error: PCRE not found or incompatible (requested)" >&2;}
  4519. { (exit 1); exit 1; }; }
  4520. else
  4521. { echo "$as_me:$LINENO: disabling PCRE (optional)" >&5
  4522. echo "$as_me: disabling PCRE (optional)" >&6;}
  4523. fi
  4524. fi
  4525. fi
  4526. #
  4527. # Host specific stuff
  4528. #
  4529. echo "$as_me:$LINENO: checking host OS" >&5
  4530. echo $ECHO_N "checking host OS... $ECHO_C" >&6
  4531. host_os="`uname`"
  4532. echo "$as_me:$LINENO: result: $host_os" >&5
  4533. echo "${ECHO_T}$host_os" >&6
  4534. fd_setsize=""
  4535. DLLEXT=".so"
  4536. case $host_os in
  4537. Solaris* )
  4538. LIBS="$LIBS -lsocket -lnsl -ldl"
  4539. ;;
  4540. Linux* )
  4541. LIBS="$LIBS -ldl"
  4542. ;;
  4543. FreeBSD*)
  4544. CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  4545. ;;
  4546. NetBSD*)
  4547. CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  4548. ;;
  4549. CYGWIN*)
  4550. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  4551. fd_setsize="done"
  4552. DLLEXT=".dll"
  4553. ;;
  4554. esac
  4555. echo "$as_me:$LINENO: checking for MinGW" >&5
  4556. echo $ECHO_N "checking for MinGW... $ECHO_C" >&6
  4557. if test -n "`$CC --version | grep -i mingw`" ; then
  4558. echo "$as_me:$LINENO: result: yes" >&5
  4559. echo "${ECHO_T}yes" >&6
  4560. CPPFLAGS="$CPPFLAGS -DMINGW"
  4561. if test -z "$fd_setsize" ; then
  4562. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  4563. fi
  4564. LIBS="$LIBS -lws2_32"
  4565. else
  4566. echo "$as_me:$LINENO: result: no" >&5
  4567. echo "${ECHO_T}no" >&6
  4568. fi
  4569. ###############################################################################
  4570. cat >confcache <<\_ACEOF
  4571. # This file is a shell script that caches the results of configure
  4572. # tests run on this system so they can be shared between configure
  4573. # scripts and configure runs, see configure's option --config-cache.
  4574. # It is not useful on other systems. If it contains results you don't
  4575. # want to keep, you may remove or edit it.
  4576. #
  4577. # config.status only pays attention to the cache file if you give it
  4578. # the --recheck option to rerun configure.
  4579. #
  4580. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4581. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4582. # following values.
  4583. _ACEOF
  4584. # The following way of writing the cache mishandles newlines in values,
  4585. # but we know of no workaround that is simple, portable, and efficient.
  4586. # So, don't put newlines in cache variables' values.
  4587. # Ultrix sh set writes to stderr and can't be redirected directly,
  4588. # and sets the high bit in the cache file unless we assign to the vars.
  4589. {
  4590. (set) 2>&1 |
  4591. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4592. *ac_space=\ *)
  4593. # `set' does not quote correctly, so add quotes (double-quote
  4594. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4595. sed -n \
  4596. "s/'/'\\\\''/g;
  4597. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4598. ;;
  4599. *)
  4600. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4601. sed -n \
  4602. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4603. ;;
  4604. esac;
  4605. } |
  4606. sed '
  4607. t clear
  4608. : clear
  4609. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4610. t end
  4611. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4612. : end' >>confcache
  4613. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4614. if test -w $cache_file; then
  4615. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  4616. cat confcache >$cache_file
  4617. else
  4618. echo "not updating unwritable cache $cache_file"
  4619. fi
  4620. fi
  4621. rm -f confcache
  4622. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4623. # Let make expand exec_prefix.
  4624. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4625. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4626. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4627. # trailing colons and then remove the whole line if VPATH becomes empty
  4628. # (actually we leave an empty line to preserve line numbers).
  4629. if test "x$srcdir" = x.; then
  4630. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4631. s/:*\$(srcdir):*/:/;
  4632. s/:*\${srcdir}:*/:/;
  4633. s/:*@srcdir@:*/:/;
  4634. s/^\([^=]*=[ ]*\):*/\1/;
  4635. s/:*$//;
  4636. s/^[^=]*=[ ]*$//;
  4637. }'
  4638. fi
  4639. # Transform confdefs.h into DEFS.
  4640. # Protect against shell expansion while executing Makefile rules.
  4641. # Protect against Makefile macro expansion.
  4642. #
  4643. # If the first sed substitution is executed (which looks for macros that
  4644. # take arguments), then we branch to the quote section. Otherwise,
  4645. # look for a macro that doesn't take arguments.
  4646. cat >confdef2opt.sed <<\_ACEOF
  4647. t clear
  4648. : clear
  4649. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
  4650. t quote
  4651. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
  4652. t quote
  4653. d
  4654. : quote
  4655. s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
  4656. s,\[,\\&,g
  4657. s,\],\\&,g
  4658. s,\$,$$,g
  4659. p
  4660. _ACEOF
  4661. # We use echo to avoid assuming a particular line-breaking character.
  4662. # The extra dot is to prevent the shell from consuming trailing
  4663. # line-breaks from the sub-command output. A line-break within
  4664. # single-quotes doesn't work because, if this script is created in a
  4665. # platform that uses two characters for line-breaks (e.g., DOS), tr
  4666. # would break.
  4667. ac_LF_and_DOT=`echo; echo .`
  4668. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  4669. rm -f confdef2opt.sed
  4670. ac_libobjs=
  4671. ac_ltlibobjs=
  4672. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4673. # 1. Remove the extension, and $U if already installed.
  4674. ac_i=`echo "$ac_i" |
  4675. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  4676. # 2. Add them.
  4677. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  4678. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  4679. done
  4680. LIBOBJS=$ac_libobjs
  4681. LTLIBOBJS=$ac_ltlibobjs
  4682. : ${CONFIG_STATUS=./config.status}
  4683. ac_clean_files_save=$ac_clean_files
  4684. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4685. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4686. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4687. cat >$CONFIG_STATUS <<_ACEOF
  4688. #! $SHELL
  4689. # Generated by $as_me.
  4690. # Run this file to recreate the current configuration.
  4691. # Compiler output produced by configure, useful for debugging
  4692. # configure, is in config.log if it exists.
  4693. debug=false
  4694. ac_cs_recheck=false
  4695. ac_cs_silent=false
  4696. SHELL=\${CONFIG_SHELL-$SHELL}
  4697. _ACEOF
  4698. cat >>$CONFIG_STATUS <<\_ACEOF
  4699. ## --------------------- ##
  4700. ## M4sh Initialization. ##
  4701. ## --------------------- ##
  4702. # Be Bourne compatible
  4703. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4704. emulate sh
  4705. NULLCMD=:
  4706. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4707. # is contrary to our usage. Disable this feature.
  4708. alias -g '${1+"$@"}'='"$@"'
  4709. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  4710. set -o posix
  4711. fi
  4712. DUALCASE=1; export DUALCASE # for MKS sh
  4713. # Support unset when possible.
  4714. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4715. as_unset=unset
  4716. else
  4717. as_unset=false
  4718. fi
  4719. # Work around bugs in pre-3.0 UWIN ksh.
  4720. $as_unset ENV MAIL MAILPATH
  4721. PS1='$ '
  4722. PS2='> '
  4723. PS4='+ '
  4724. # NLS nuisances.
  4725. for as_var in \
  4726. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4727. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4728. LC_TELEPHONE LC_TIME
  4729. do
  4730. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4731. eval $as_var=C; export $as_var
  4732. else
  4733. $as_unset $as_var
  4734. fi
  4735. done
  4736. # Required to use basename.
  4737. if expr a : '\(a\)' >/dev/null 2>&1; then
  4738. as_expr=expr
  4739. else
  4740. as_expr=false
  4741. fi
  4742. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  4743. as_basename=basename
  4744. else
  4745. as_basename=false
  4746. fi
  4747. # Name of the executable.
  4748. as_me=`$as_basename "$0" ||
  4749. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4750. X"$0" : 'X\(//\)$' \| \
  4751. X"$0" : 'X\(/\)$' \| \
  4752. . : '\(.\)' 2>/dev/null ||
  4753. echo X/"$0" |
  4754. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  4755. /^X\/\(\/\/\)$/{ s//\1/; q; }
  4756. /^X\/\(\/\).*/{ s//\1/; q; }
  4757. s/.*/./; q'`
  4758. # PATH needs CR, and LINENO needs CR and PATH.
  4759. # Avoid depending upon Character Ranges.
  4760. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4761. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4762. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4763. as_cr_digits='0123456789'
  4764. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4765. # The user is always right.
  4766. if test "${PATH_SEPARATOR+set}" != set; then
  4767. echo "#! /bin/sh" >conf$$.sh
  4768. echo "exit 0" >>conf$$.sh
  4769. chmod +x conf$$.sh
  4770. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4771. PATH_SEPARATOR=';'
  4772. else
  4773. PATH_SEPARATOR=:
  4774. fi
  4775. rm -f conf$$.sh
  4776. fi
  4777. as_lineno_1=$LINENO
  4778. as_lineno_2=$LINENO
  4779. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4780. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4781. test "x$as_lineno_3" = "x$as_lineno_2" || {
  4782. # Find who we are. Look in the path if we contain no path at all
  4783. # relative or not.
  4784. case $0 in
  4785. *[\\/]* ) as_myself=$0 ;;
  4786. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4787. for as_dir in $PATH
  4788. do
  4789. IFS=$as_save_IFS
  4790. test -z "$as_dir" && as_dir=.
  4791. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4792. done
  4793. ;;
  4794. esac
  4795. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4796. # in which case we are not to be found in the path.
  4797. if test "x$as_myself" = x; then
  4798. as_myself=$0
  4799. fi
  4800. if test ! -f "$as_myself"; then
  4801. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  4802. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  4803. { (exit 1); exit 1; }; }
  4804. fi
  4805. case $CONFIG_SHELL in
  4806. '')
  4807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4808. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  4809. do
  4810. IFS=$as_save_IFS
  4811. test -z "$as_dir" && as_dir=.
  4812. for as_base in sh bash ksh sh5; do
  4813. case $as_dir in
  4814. /*)
  4815. if ("$as_dir/$as_base" -c '
  4816. as_lineno_1=$LINENO
  4817. as_lineno_2=$LINENO
  4818. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4819. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4820. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  4821. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  4822. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  4823. CONFIG_SHELL=$as_dir/$as_base
  4824. export CONFIG_SHELL
  4825. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  4826. fi;;
  4827. esac
  4828. done
  4829. done
  4830. ;;
  4831. esac
  4832. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4833. # uniformly replaced by the line number. The first 'sed' inserts a
  4834. # line-number line before each line; the second 'sed' does the real
  4835. # work. The second script uses 'N' to pair each line-number line
  4836. # with the numbered line, and appends trailing '-' during
  4837. # substitution so that $LINENO is not a special case at line end.
  4838. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4839. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  4840. sed '=' <$as_myself |
  4841. sed '
  4842. N
  4843. s,$,-,
  4844. : loop
  4845. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  4846. t loop
  4847. s,-$,,
  4848. s,^['$as_cr_digits']*\n,,
  4849. ' >$as_me.lineno &&
  4850. chmod +x $as_me.lineno ||
  4851. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  4852. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  4853. { (exit 1); exit 1; }; }
  4854. # Don't try to exec as it changes $[0], causing all sort of problems
  4855. # (the dirname of $[0] is not the place where we might find the
  4856. # original and so on. Autoconf is especially sensible to this).
  4857. . ./$as_me.lineno
  4858. # Exit status is that of the last command.
  4859. exit
  4860. }
  4861. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  4862. *c*,-n*) ECHO_N= ECHO_C='
  4863. ' ECHO_T=' ' ;;
  4864. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  4865. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  4866. esac
  4867. if expr a : '\(a\)' >/dev/null 2>&1; then
  4868. as_expr=expr
  4869. else
  4870. as_expr=false
  4871. fi
  4872. rm -f conf$$ conf$$.exe conf$$.file
  4873. echo >conf$$.file
  4874. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4875. # We could just check for DJGPP; but this test a) works b) is more generic
  4876. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  4877. if test -f conf$$.exe; then
  4878. # Don't use ln at all; we don't have any links
  4879. as_ln_s='cp -p'
  4880. else
  4881. as_ln_s='ln -s'
  4882. fi
  4883. elif ln conf$$.file conf$$ 2>/dev/null; then
  4884. as_ln_s=ln
  4885. else
  4886. as_ln_s='cp -p'
  4887. fi
  4888. rm -f conf$$ conf$$.exe conf$$.file
  4889. if mkdir -p . 2>/dev/null; then
  4890. as_mkdir_p=:
  4891. else
  4892. test -d ./-p && rmdir ./-p
  4893. as_mkdir_p=false
  4894. fi
  4895. as_executable_p="test -f"
  4896. # Sed expression to map a string onto a valid CPP name.
  4897. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4898. # Sed expression to map a string onto a valid variable name.
  4899. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4900. # IFS
  4901. # We need space, tab and new line, in precisely that order.
  4902. as_nl='
  4903. '
  4904. IFS=" $as_nl"
  4905. # CDPATH.
  4906. $as_unset CDPATH
  4907. exec 6>&1
  4908. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  4909. # report actual input values of CONFIG_FILES etc. instead of their
  4910. # values after options handling. Logging --version etc. is OK.
  4911. exec 5>>config.log
  4912. {
  4913. echo
  4914. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4915. ## Running $as_me. ##
  4916. _ASBOX
  4917. } >&5
  4918. cat >&5 <<_CSEOF
  4919. This file was extended by $as_me, which was
  4920. generated by GNU Autoconf 2.59. Invocation command line was
  4921. CONFIG_FILES = $CONFIG_FILES
  4922. CONFIG_HEADERS = $CONFIG_HEADERS
  4923. CONFIG_LINKS = $CONFIG_LINKS
  4924. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4925. $ $0 $@
  4926. _CSEOF
  4927. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  4928. echo >&5
  4929. _ACEOF
  4930. # Files that config.status was made for.
  4931. if test -n "$ac_config_files"; then
  4932. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  4933. fi
  4934. if test -n "$ac_config_headers"; then
  4935. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  4936. fi
  4937. if test -n "$ac_config_links"; then
  4938. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  4939. fi
  4940. if test -n "$ac_config_commands"; then
  4941. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  4942. fi
  4943. cat >>$CONFIG_STATUS <<\_ACEOF
  4944. ac_cs_usage="\
  4945. \`$as_me' instantiates files from templates according to the
  4946. current configuration.
  4947. Usage: $0 [OPTIONS] [FILE]...
  4948. -h, --help print this help, then exit
  4949. -V, --version print version number, then exit
  4950. -q, --quiet do not print progress messages
  4951. -d, --debug don't remove temporary files
  4952. --recheck update $as_me by reconfiguring in the same conditions
  4953. --file=FILE[:TEMPLATE]
  4954. instantiate the configuration file FILE
  4955. Configuration files:
  4956. $config_files
  4957. Report bugs to <bug-autoconf@gnu.org>."
  4958. _ACEOF
  4959. cat >>$CONFIG_STATUS <<_ACEOF
  4960. ac_cs_version="\\
  4961. config.status
  4962. configured by $0, generated by GNU Autoconf 2.59,
  4963. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  4964. Copyright (C) 2003 Free Software Foundation, Inc.
  4965. This config.status script is free software; the Free Software Foundation
  4966. gives unlimited permission to copy, distribute and modify it."
  4967. srcdir=$srcdir
  4968. _ACEOF
  4969. cat >>$CONFIG_STATUS <<\_ACEOF
  4970. # If no file are specified by the user, then we need to provide default
  4971. # value. By we need to know if files were specified by the user.
  4972. ac_need_defaults=:
  4973. while test $# != 0
  4974. do
  4975. case $1 in
  4976. --*=*)
  4977. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  4978. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  4979. ac_shift=:
  4980. ;;
  4981. -*)
  4982. ac_option=$1
  4983. ac_optarg=$2
  4984. ac_shift=shift
  4985. ;;
  4986. *) # This is not an option, so the user has probably given explicit
  4987. # arguments.
  4988. ac_option=$1
  4989. ac_need_defaults=false;;
  4990. esac
  4991. case $ac_option in
  4992. # Handling of the options.
  4993. _ACEOF
  4994. cat >>$CONFIG_STATUS <<\_ACEOF
  4995. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4996. ac_cs_recheck=: ;;
  4997. --version | --vers* | -V )
  4998. echo "$ac_cs_version"; exit 0 ;;
  4999. --he | --h)
  5000. # Conflict between --help and --header
  5001. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  5002. Try \`$0 --help' for more information." >&5
  5003. echo "$as_me: error: ambiguous option: $1
  5004. Try \`$0 --help' for more information." >&2;}
  5005. { (exit 1); exit 1; }; };;
  5006. --help | --hel | -h )
  5007. echo "$ac_cs_usage"; exit 0 ;;
  5008. --debug | --d* | -d )
  5009. debug=: ;;
  5010. --file | --fil | --fi | --f )
  5011. $ac_shift
  5012. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5013. ac_need_defaults=false;;
  5014. --header | --heade | --head | --hea )
  5015. $ac_shift
  5016. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5017. ac_need_defaults=false;;
  5018. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5019. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5020. ac_cs_silent=: ;;
  5021. # This is an error.
  5022. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  5023. Try \`$0 --help' for more information." >&5
  5024. echo "$as_me: error: unrecognized option: $1
  5025. Try \`$0 --help' for more information." >&2;}
  5026. { (exit 1); exit 1; }; } ;;
  5027. *) ac_config_targets="$ac_config_targets $1" ;;
  5028. esac
  5029. shift
  5030. done
  5031. ac_configure_extra_args=
  5032. if $ac_cs_silent; then
  5033. exec 6>/dev/null
  5034. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5035. fi
  5036. _ACEOF
  5037. cat >>$CONFIG_STATUS <<_ACEOF
  5038. if \$ac_cs_recheck; then
  5039. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5040. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5041. fi
  5042. _ACEOF
  5043. cat >>$CONFIG_STATUS <<\_ACEOF
  5044. for ac_config_target in $ac_config_targets
  5045. do
  5046. case "$ac_config_target" in
  5047. # Handling of arguments.
  5048. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5049. "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  5050. "src/char/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  5051. "src/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  5052. "src/ladmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ladmin/Makefile" ;;
  5053. "src/char_sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/char_sql/Makefile" ;;
  5054. "src/txt-converter/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/txt-converter/Makefile" ;;
  5055. "src/map/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  5056. "src/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
  5057. "src/tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  5058. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5059. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5060. { (exit 1); exit 1; }; };;
  5061. esac
  5062. done
  5063. # If the user did not use the arguments to specify the items to instantiate,
  5064. # then the envvar interface is used. Set only those that are not.
  5065. # We use the long form for the default assignment because of an extremely
  5066. # bizarre bug on SunOS 4.1.3.
  5067. if $ac_need_defaults; then
  5068. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5069. fi
  5070. # Have a temporary directory for convenience. Make it in the build tree
  5071. # simply because there is no reason to put it here, and in addition,
  5072. # creating and moving files from /tmp can sometimes cause problems.
  5073. # Create a temporary directory, and hook for its removal unless debugging.
  5074. $debug ||
  5075. {
  5076. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  5077. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5078. }
  5079. # Create a (secure) tmp directory for tmp files.
  5080. {
  5081. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  5082. test -n "$tmp" && test -d "$tmp"
  5083. } ||
  5084. {
  5085. tmp=./confstat$$-$RANDOM
  5086. (umask 077 && mkdir $tmp)
  5087. } ||
  5088. {
  5089. echo "$me: cannot create a temporary directory in ." >&2
  5090. { (exit 1); exit 1; }
  5091. }
  5092. _ACEOF
  5093. cat >>$CONFIG_STATUS <<_ACEOF
  5094. #
  5095. # CONFIG_FILES section.
  5096. #
  5097. # No need to generate the scripts if there are no CONFIG_FILES.
  5098. # This happens for instance when ./config.status config.h
  5099. if test -n "\$CONFIG_FILES"; then
  5100. # Protect against being on the right side of a sed subst in config.status.
  5101. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  5102. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  5103. s,@SHELL@,$SHELL,;t t
  5104. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  5105. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  5106. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  5107. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  5108. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  5109. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  5110. s,@exec_prefix@,$exec_prefix,;t t
  5111. s,@prefix@,$prefix,;t t
  5112. s,@program_transform_name@,$program_transform_name,;t t
  5113. s,@bindir@,$bindir,;t t
  5114. s,@sbindir@,$sbindir,;t t
  5115. s,@libexecdir@,$libexecdir,;t t
  5116. s,@datadir@,$datadir,;t t
  5117. s,@sysconfdir@,$sysconfdir,;t t
  5118. s,@sharedstatedir@,$sharedstatedir,;t t
  5119. s,@localstatedir@,$localstatedir,;t t
  5120. s,@libdir@,$libdir,;t t
  5121. s,@includedir@,$includedir,;t t
  5122. s,@oldincludedir@,$oldincludedir,;t t
  5123. s,@infodir@,$infodir,;t t
  5124. s,@mandir@,$mandir,;t t
  5125. s,@build_alias@,$build_alias,;t t
  5126. s,@host_alias@,$host_alias,;t t
  5127. s,@target_alias@,$target_alias,;t t
  5128. s,@DEFS@,$DEFS,;t t
  5129. s,@ECHO_C@,$ECHO_C,;t t
  5130. s,@ECHO_N@,$ECHO_N,;t t
  5131. s,@ECHO_T@,$ECHO_T,;t t
  5132. s,@LIBS@,$LIBS,;t t
  5133. s,@SET_MAKE@,$SET_MAKE,;t t
  5134. s,@CC@,$CC,;t t
  5135. s,@CFLAGS@,$CFLAGS,;t t
  5136. s,@LDFLAGS@,$LDFLAGS,;t t
  5137. s,@CPPFLAGS@,$CPPFLAGS,;t t
  5138. s,@ac_ct_CC@,$ac_ct_CC,;t t
  5139. s,@EXEEXT@,$EXEEXT,;t t
  5140. s,@OBJEXT@,$OBJEXT,;t t
  5141. s,@CPP@,$CPP,;t t
  5142. s,@EGREP@,$EGREP,;t t
  5143. s,@MYSQL_CONFIG_HOME@,$MYSQL_CONFIG_HOME,;t t
  5144. s,@HAVE_MYSQL@,$HAVE_MYSQL,;t t
  5145. s,@MYSQL_VERSION@,$MYSQL_VERSION,;t t
  5146. s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
  5147. s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
  5148. s,@HAVE_PCRE@,$HAVE_PCRE,;t t
  5149. s,@PCRE_LIBS@,$PCRE_LIBS,;t t
  5150. s,@PCRE_CFLAGS@,$PCRE_CFLAGS,;t t
  5151. s,@DLLEXT@,$DLLEXT,;t t
  5152. s,@LIBOBJS@,$LIBOBJS,;t t
  5153. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  5154. CEOF
  5155. _ACEOF
  5156. cat >>$CONFIG_STATUS <<\_ACEOF
  5157. # Split the substitutions into bite-sized pieces for seds with
  5158. # small command number limits, like on Digital OSF/1 and HP-UX.
  5159. ac_max_sed_lines=48
  5160. ac_sed_frag=1 # Number of current file.
  5161. ac_beg=1 # First line for current file.
  5162. ac_end=$ac_max_sed_lines # Line after last line for current file.
  5163. ac_more_lines=:
  5164. ac_sed_cmds=
  5165. while $ac_more_lines; do
  5166. if test $ac_beg -gt 1; then
  5167. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5168. else
  5169. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5170. fi
  5171. if test ! -s $tmp/subs.frag; then
  5172. ac_more_lines=false
  5173. else
  5174. # The purpose of the label and of the branching condition is to
  5175. # speed up the sed processing (if there are no `@' at all, there
  5176. # is no need to browse any of the substitutions).
  5177. # These are the two extra sed commands mentioned above.
  5178. (echo ':t
  5179. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  5180. if test -z "$ac_sed_cmds"; then
  5181. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  5182. else
  5183. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  5184. fi
  5185. ac_sed_frag=`expr $ac_sed_frag + 1`
  5186. ac_beg=$ac_end
  5187. ac_end=`expr $ac_end + $ac_max_sed_lines`
  5188. fi
  5189. done
  5190. if test -z "$ac_sed_cmds"; then
  5191. ac_sed_cmds=cat
  5192. fi
  5193. fi # test -n "$CONFIG_FILES"
  5194. _ACEOF
  5195. cat >>$CONFIG_STATUS <<\_ACEOF
  5196. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  5197. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5198. case $ac_file in
  5199. - | *:- | *:-:* ) # input from stdin
  5200. cat >$tmp/stdin
  5201. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5202. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5203. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5204. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5205. * ) ac_file_in=$ac_file.in ;;
  5206. esac
  5207. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  5208. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5209. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5210. X"$ac_file" : 'X\(//\)[^/]' \| \
  5211. X"$ac_file" : 'X\(//\)$' \| \
  5212. X"$ac_file" : 'X\(/\)' \| \
  5213. . : '\(.\)' 2>/dev/null ||
  5214. echo X"$ac_file" |
  5215. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5216. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5217. /^X\(\/\/\)$/{ s//\1/; q; }
  5218. /^X\(\/\).*/{ s//\1/; q; }
  5219. s/.*/./; q'`
  5220. { if $as_mkdir_p; then
  5221. mkdir -p "$ac_dir"
  5222. else
  5223. as_dir="$ac_dir"
  5224. as_dirs=
  5225. while test ! -d "$as_dir"; do
  5226. as_dirs="$as_dir $as_dirs"
  5227. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5228. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5229. X"$as_dir" : 'X\(//\)[^/]' \| \
  5230. X"$as_dir" : 'X\(//\)$' \| \
  5231. X"$as_dir" : 'X\(/\)' \| \
  5232. . : '\(.\)' 2>/dev/null ||
  5233. echo X"$as_dir" |
  5234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5235. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5236. /^X\(\/\/\)$/{ s//\1/; q; }
  5237. /^X\(\/\).*/{ s//\1/; q; }
  5238. s/.*/./; q'`
  5239. done
  5240. test ! -n "$as_dirs" || mkdir $as_dirs
  5241. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  5242. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  5243. { (exit 1); exit 1; }; }; }
  5244. ac_builddir=.
  5245. if test "$ac_dir" != .; then
  5246. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5247. # A "../" for each directory in $ac_dir_suffix.
  5248. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  5249. else
  5250. ac_dir_suffix= ac_top_builddir=
  5251. fi
  5252. case $srcdir in
  5253. .) # No --srcdir option. We are building in place.
  5254. ac_srcdir=.
  5255. if test -z "$ac_top_builddir"; then
  5256. ac_top_srcdir=.
  5257. else
  5258. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  5259. fi ;;
  5260. [\\/]* | ?:[\\/]* ) # Absolute path.
  5261. ac_srcdir=$srcdir$ac_dir_suffix;
  5262. ac_top_srcdir=$srcdir ;;
  5263. *) # Relative path.
  5264. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  5265. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  5266. esac
  5267. # Do not use `cd foo && pwd` to compute absolute paths, because
  5268. # the directories may not exist.
  5269. case `pwd` in
  5270. .) ac_abs_builddir="$ac_dir";;
  5271. *)
  5272. case "$ac_dir" in
  5273. .) ac_abs_builddir=`pwd`;;
  5274. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  5275. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  5276. esac;;
  5277. esac
  5278. case $ac_abs_builddir in
  5279. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  5280. *)
  5281. case ${ac_top_builddir}. in
  5282. .) ac_abs_top_builddir=$ac_abs_builddir;;
  5283. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  5284. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  5285. esac;;
  5286. esac
  5287. case $ac_abs_builddir in
  5288. .) ac_abs_srcdir=$ac_srcdir;;
  5289. *)
  5290. case $ac_srcdir in
  5291. .) ac_abs_srcdir=$ac_abs_builddir;;
  5292. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  5293. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  5294. esac;;
  5295. esac
  5296. case $ac_abs_builddir in
  5297. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  5298. *)
  5299. case $ac_top_srcdir in
  5300. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  5301. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  5302. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  5303. esac;;
  5304. esac
  5305. if test x"$ac_file" != x-; then
  5306. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5307. echo "$as_me: creating $ac_file" >&6;}
  5308. rm -f "$ac_file"
  5309. fi
  5310. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5311. # use $as_me), people would be surprised to read:
  5312. # /* config.h. Generated by config.status. */
  5313. if test x"$ac_file" = x-; then
  5314. configure_input=
  5315. else
  5316. configure_input="$ac_file. "
  5317. fi
  5318. configure_input=$configure_input"Generated from `echo $ac_file_in |
  5319. sed 's,.*/,,'` by configure."
  5320. # First look for the input files in the build tree, otherwise in the
  5321. # src tree.
  5322. ac_file_inputs=`IFS=:
  5323. for f in $ac_file_in; do
  5324. case $f in
  5325. -) echo $tmp/stdin ;;
  5326. [\\/$]*)
  5327. # Absolute (can't be DOS-style, as IFS=:)
  5328. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5329. echo "$as_me: error: cannot find input file: $f" >&2;}
  5330. { (exit 1); exit 1; }; }
  5331. echo "$f";;
  5332. *) # Relative
  5333. if test -f "$f"; then
  5334. # Build tree
  5335. echo "$f"
  5336. elif test -f "$srcdir/$f"; then
  5337. # Source tree
  5338. echo "$srcdir/$f"
  5339. else
  5340. # /dev/null tree
  5341. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5342. echo "$as_me: error: cannot find input file: $f" >&2;}
  5343. { (exit 1); exit 1; }; }
  5344. fi;;
  5345. esac
  5346. done` || { (exit 1); exit 1; }
  5347. _ACEOF
  5348. cat >>$CONFIG_STATUS <<_ACEOF
  5349. sed "$ac_vpsub
  5350. $extrasub
  5351. _ACEOF
  5352. cat >>$CONFIG_STATUS <<\_ACEOF
  5353. :t
  5354. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5355. s,@configure_input@,$configure_input,;t t
  5356. s,@srcdir@,$ac_srcdir,;t t
  5357. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  5358. s,@top_srcdir@,$ac_top_srcdir,;t t
  5359. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  5360. s,@builddir@,$ac_builddir,;t t
  5361. s,@abs_builddir@,$ac_abs_builddir,;t t
  5362. s,@top_builddir@,$ac_top_builddir,;t t
  5363. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  5364. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  5365. rm -f $tmp/stdin
  5366. if test x"$ac_file" != x-; then
  5367. mv $tmp/out $ac_file
  5368. else
  5369. cat $tmp/out
  5370. rm -f $tmp/out
  5371. fi
  5372. done
  5373. _ACEOF
  5374. cat >>$CONFIG_STATUS <<\_ACEOF
  5375. { (exit 0); exit 0; }
  5376. _ACEOF
  5377. chmod +x $CONFIG_STATUS
  5378. ac_clean_files=$ac_clean_files_save
  5379. # configure is writing to config.log, and then calls config.status.
  5380. # config.status does its own redirection, appending to config.log.
  5381. # Unfortunately, on DOS this fails, as config.log is still kept open
  5382. # by configure, so config.status won't be able to write to it; its
  5383. # output is simply discarded. So we exec the FD to /dev/null,
  5384. # effectively closing config.log, so it can be properly (re)opened and
  5385. # appended to by config.status. When coming back to configure, we
  5386. # need to make the FD available again.
  5387. if test "$no_create" != yes; then
  5388. ac_cs_success=:
  5389. ac_config_status_args=
  5390. test "$silent" = yes &&
  5391. ac_config_status_args="$ac_config_status_args --quiet"
  5392. exec 5>/dev/null
  5393. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5394. exec 5>>config.log
  5395. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5396. # would make configure fail if this is the last instruction.
  5397. $ac_cs_success || { (exit 1); exit 1; }
  5398. fi