configure 157 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466
  1. #! /bin/sh
  2. # From configure.in Revision: 11952.
  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-mapregsql Makes map-wide script variables be saved to SQL
  740. instead of TXT files in the sql map-server. (defauts
  741. to no)
  742. --enable-debug Compiles in debug mode. (defauts to no)
  743. Optional Packages:
  744. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  745. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  746. --with-mysql[=ARG]
  747. use MySQL client library, optionally specify the
  748. path to the mysql_config executable (by default
  749. mysql is used if found)
  750. --with-pcre[=ARG] use PCRE library, optionally specify the full path
  751. of pcre installation directory (by default pcre is
  752. used if found)
  753. --with-zlib=DIR root directory path of zlib installation (defaults
  754. to /usr/local or /usr if not found in /usr/local)
  755. Some influential environment variables:
  756. CC C compiler command
  757. CFLAGS C compiler flags
  758. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  759. nonstandard directory <lib dir>
  760. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  761. headers in a nonstandard directory <include dir>
  762. CPP C preprocessor
  763. Use these variables to override the choices made by `configure' or to help
  764. it to find libraries and programs with nonstandard names/locations.
  765. _ACEOF
  766. fi
  767. if test "$ac_init_help" = "recursive"; then
  768. # If there are subdirs, report their specific --help.
  769. ac_popdir=`pwd`
  770. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  771. test -d $ac_dir || continue
  772. ac_builddir=.
  773. if test "$ac_dir" != .; then
  774. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  775. # A "../" for each directory in $ac_dir_suffix.
  776. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  777. else
  778. ac_dir_suffix= ac_top_builddir=
  779. fi
  780. case $srcdir in
  781. .) # No --srcdir option. We are building in place.
  782. ac_srcdir=.
  783. if test -z "$ac_top_builddir"; then
  784. ac_top_srcdir=.
  785. else
  786. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  787. fi ;;
  788. [\\/]* | ?:[\\/]* ) # Absolute path.
  789. ac_srcdir=$srcdir$ac_dir_suffix;
  790. ac_top_srcdir=$srcdir ;;
  791. *) # Relative path.
  792. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  793. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  794. esac
  795. # Do not use `cd foo && pwd` to compute absolute paths, because
  796. # the directories may not exist.
  797. case `pwd` in
  798. .) ac_abs_builddir="$ac_dir";;
  799. *)
  800. case "$ac_dir" in
  801. .) ac_abs_builddir=`pwd`;;
  802. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  803. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  804. esac;;
  805. esac
  806. case $ac_abs_builddir in
  807. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  808. *)
  809. case ${ac_top_builddir}. in
  810. .) ac_abs_top_builddir=$ac_abs_builddir;;
  811. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  812. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  813. esac;;
  814. esac
  815. case $ac_abs_builddir in
  816. .) ac_abs_srcdir=$ac_srcdir;;
  817. *)
  818. case $ac_srcdir in
  819. .) ac_abs_srcdir=$ac_abs_builddir;;
  820. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  821. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  822. esac;;
  823. esac
  824. case $ac_abs_builddir in
  825. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  826. *)
  827. case $ac_top_srcdir in
  828. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  829. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  830. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  831. esac;;
  832. esac
  833. cd $ac_dir
  834. # Check for guested configure; otherwise get Cygnus style configure.
  835. if test -f $ac_srcdir/configure.gnu; then
  836. echo
  837. $SHELL $ac_srcdir/configure.gnu --help=recursive
  838. elif test -f $ac_srcdir/configure; then
  839. echo
  840. $SHELL $ac_srcdir/configure --help=recursive
  841. elif test -f $ac_srcdir/configure.ac ||
  842. test -f $ac_srcdir/configure.in; then
  843. echo
  844. $ac_configure --help
  845. else
  846. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  847. fi
  848. cd $ac_popdir
  849. done
  850. fi
  851. test -n "$ac_init_help" && exit 0
  852. if $ac_init_version; then
  853. cat <<\_ACEOF
  854. Copyright (C) 2003 Free Software Foundation, Inc.
  855. This configure script is free software; the Free Software Foundation
  856. gives unlimited permission to copy, distribute and modify it.
  857. _ACEOF
  858. exit 0
  859. fi
  860. exec 5>config.log
  861. cat >&5 <<_ACEOF
  862. This file contains any messages produced by compilers while
  863. running configure, to aid debugging if configure makes a mistake.
  864. It was created by $as_me, which was
  865. generated by GNU Autoconf 2.59. Invocation command line was
  866. $ $0 $@
  867. _ACEOF
  868. {
  869. cat <<_ASUNAME
  870. ## --------- ##
  871. ## Platform. ##
  872. ## --------- ##
  873. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  874. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  875. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  876. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  877. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  878. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  879. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  880. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  881. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  882. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  883. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  884. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  885. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  886. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  887. _ASUNAME
  888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  889. for as_dir in $PATH
  890. do
  891. IFS=$as_save_IFS
  892. test -z "$as_dir" && as_dir=.
  893. echo "PATH: $as_dir"
  894. done
  895. } >&5
  896. cat >&5 <<_ACEOF
  897. ## ----------- ##
  898. ## Core tests. ##
  899. ## ----------- ##
  900. _ACEOF
  901. # Keep a trace of the command line.
  902. # Strip out --no-create and --no-recursion so they do not pile up.
  903. # Strip out --silent because we don't want to record it for future runs.
  904. # Also quote any args containing shell meta-characters.
  905. # Make two passes to allow for proper duplicate-argument suppression.
  906. ac_configure_args=
  907. ac_configure_args0=
  908. ac_configure_args1=
  909. ac_sep=
  910. ac_must_keep_next=false
  911. for ac_pass in 1 2
  912. do
  913. for ac_arg
  914. do
  915. case $ac_arg in
  916. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  917. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  918. | -silent | --silent | --silen | --sile | --sil)
  919. continue ;;
  920. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  921. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  922. esac
  923. case $ac_pass in
  924. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  925. 2)
  926. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  927. if test $ac_must_keep_next = true; then
  928. ac_must_keep_next=false # Got value, back to normal.
  929. else
  930. case $ac_arg in
  931. *=* | --config-cache | -C | -disable-* | --disable-* \
  932. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  933. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  934. | -with-* | --with-* | -without-* | --without-* | --x)
  935. case "$ac_configure_args0 " in
  936. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  937. esac
  938. ;;
  939. -* ) ac_must_keep_next=true ;;
  940. esac
  941. fi
  942. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  943. # Get rid of the leading space.
  944. ac_sep=" "
  945. ;;
  946. esac
  947. done
  948. done
  949. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  950. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  951. # When interrupted or exit'd, cleanup temporary files, and complete
  952. # config.log. We remove comments because anyway the quotes in there
  953. # would cause problems or look ugly.
  954. # WARNING: Be sure not to use single quotes in there, as some shells,
  955. # such as our DU 5.0 friend, will then `close' the trap.
  956. trap 'exit_status=$?
  957. # Save into config.log some information that might help in debugging.
  958. {
  959. echo
  960. cat <<\_ASBOX
  961. ## ---------------- ##
  962. ## Cache variables. ##
  963. ## ---------------- ##
  964. _ASBOX
  965. echo
  966. # The following way of writing the cache mishandles newlines in values,
  967. {
  968. (set) 2>&1 |
  969. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  970. *ac_space=\ *)
  971. sed -n \
  972. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  973. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  974. ;;
  975. *)
  976. sed -n \
  977. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  978. ;;
  979. esac;
  980. }
  981. echo
  982. cat <<\_ASBOX
  983. ## ----------------- ##
  984. ## Output variables. ##
  985. ## ----------------- ##
  986. _ASBOX
  987. echo
  988. for ac_var in $ac_subst_vars
  989. do
  990. eval ac_val=$`echo $ac_var`
  991. echo "$ac_var='"'"'$ac_val'"'"'"
  992. done | sort
  993. echo
  994. if test -n "$ac_subst_files"; then
  995. cat <<\_ASBOX
  996. ## ------------- ##
  997. ## Output files. ##
  998. ## ------------- ##
  999. _ASBOX
  1000. echo
  1001. for ac_var in $ac_subst_files
  1002. do
  1003. eval ac_val=$`echo $ac_var`
  1004. echo "$ac_var='"'"'$ac_val'"'"'"
  1005. done | sort
  1006. echo
  1007. fi
  1008. if test -s confdefs.h; then
  1009. cat <<\_ASBOX
  1010. ## ----------- ##
  1011. ## confdefs.h. ##
  1012. ## ----------- ##
  1013. _ASBOX
  1014. echo
  1015. sed "/^$/d" confdefs.h | sort
  1016. echo
  1017. fi
  1018. test "$ac_signal" != 0 &&
  1019. echo "$as_me: caught signal $ac_signal"
  1020. echo "$as_me: exit $exit_status"
  1021. } >&5
  1022. rm -f core *.core &&
  1023. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1024. exit $exit_status
  1025. ' 0
  1026. for ac_signal in 1 2 13 15; do
  1027. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1028. done
  1029. ac_signal=0
  1030. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1031. rm -rf conftest* confdefs.h
  1032. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1033. echo >confdefs.h
  1034. # Predefined preprocessor variables.
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_NAME "$PACKAGE_NAME"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1040. _ACEOF
  1041. cat >>confdefs.h <<_ACEOF
  1042. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1043. _ACEOF
  1044. cat >>confdefs.h <<_ACEOF
  1045. #define PACKAGE_STRING "$PACKAGE_STRING"
  1046. _ACEOF
  1047. cat >>confdefs.h <<_ACEOF
  1048. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1049. _ACEOF
  1050. # Let the site file select an alternate cache file if it wants to.
  1051. # Prefer explicitly selected file to automatically selected ones.
  1052. if test -z "$CONFIG_SITE"; then
  1053. if test "x$prefix" != xNONE; then
  1054. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1055. else
  1056. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1057. fi
  1058. fi
  1059. for ac_site_file in $CONFIG_SITE; do
  1060. if test -r "$ac_site_file"; then
  1061. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1062. echo "$as_me: loading site script $ac_site_file" >&6;}
  1063. sed 's/^/| /' "$ac_site_file" >&5
  1064. . "$ac_site_file"
  1065. fi
  1066. done
  1067. if test -r "$cache_file"; then
  1068. # Some versions of bash will fail to source /dev/null (special
  1069. # files actually), so we avoid doing that.
  1070. if test -f "$cache_file"; then
  1071. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1072. echo "$as_me: loading cache $cache_file" >&6;}
  1073. case $cache_file in
  1074. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1075. *) . ./$cache_file;;
  1076. esac
  1077. fi
  1078. else
  1079. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1080. echo "$as_me: creating cache $cache_file" >&6;}
  1081. >$cache_file
  1082. fi
  1083. # Check that the precious variables saved in the cache have kept the same
  1084. # value.
  1085. ac_cache_corrupted=false
  1086. for ac_var in `(set) 2>&1 |
  1087. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1088. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1089. eval ac_new_set=\$ac_env_${ac_var}_set
  1090. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1091. eval ac_new_val="\$ac_env_${ac_var}_value"
  1092. case $ac_old_set,$ac_new_set in
  1093. set,)
  1094. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1095. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1096. ac_cache_corrupted=: ;;
  1097. ,set)
  1098. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1099. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1100. ac_cache_corrupted=: ;;
  1101. ,);;
  1102. *)
  1103. if test "x$ac_old_val" != "x$ac_new_val"; then
  1104. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1105. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1106. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1107. echo "$as_me: former value: $ac_old_val" >&2;}
  1108. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1109. echo "$as_me: current value: $ac_new_val" >&2;}
  1110. ac_cache_corrupted=:
  1111. fi;;
  1112. esac
  1113. # Pass precious variables to config.status.
  1114. if test "$ac_new_set" = set; then
  1115. case $ac_new_val in
  1116. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1117. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1118. *) ac_arg=$ac_var=$ac_new_val ;;
  1119. esac
  1120. case " $ac_configure_args " in
  1121. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1122. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1123. esac
  1124. fi
  1125. done
  1126. if $ac_cache_corrupted; then
  1127. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1128. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1129. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1130. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1131. { (exit 1); exit 1; }; }
  1132. fi
  1133. ac_ext=c
  1134. ac_cpp='$CPP $CPPFLAGS'
  1135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1138. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  1139. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile src/ladmin/Makefile"
  1140. ac_config_files="$ac_config_files src/char_sql/Makefile src/login_sql/Makefile src/txt-converter/Makefile"
  1141. ac_config_files="$ac_config_files src/map/Makefile src/plugins/Makefile src/tool/Makefile"
  1142. #
  1143. # Memory managers
  1144. #
  1145. # Check whether --enable-manager or --disable-manager was given.
  1146. if test "${enable_manager+set}" = set; then
  1147. enableval="$enable_manager"
  1148. enable_manager="$enableval"
  1149. case $enableval in
  1150. "no");;
  1151. "builtin");;
  1152. "memwatch");;
  1153. "dmalloc");;
  1154. "gcollect");;
  1155. "bcheck");;
  1156. *) { { echo "$as_me:$LINENO: error: unknown memory manager '$enable_manager'... stopping" >&5
  1157. echo "$as_me: error: unknown memory manager '$enable_manager'... stopping" >&2;}
  1158. { (exit 1); exit 1; }; };;
  1159. esac
  1160. else
  1161. enable_manager="builtin"
  1162. fi;
  1163. #
  1164. # mapregsql
  1165. #
  1166. # Check whether --enable-mapregsql or --disable-mapregsql was given.
  1167. if test "${enable_mapregsql+set}" = set; then
  1168. enableval="$enable_mapregsql"
  1169. enable_mapregsql="$enableval"
  1170. case $enableval in
  1171. no);;
  1172. yes);;
  1173. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-mapregsql=$enable_mapregsql... stopping" >&5
  1174. echo "$as_me: error: invalid argument --enable-mapregsql=$enable_mapregsql... stopping" >&2;}
  1175. { (exit 1); exit 1; }; };;
  1176. esac
  1177. else
  1178. enable_mapregsql="no"
  1179. fi;
  1180. #
  1181. # debug
  1182. #
  1183. # Check whether --enable-debug or --disable-debug was given.
  1184. if test "${enable_debug+set}" = set; then
  1185. enableval="$enable_debug"
  1186. enable_debug="$enableval"
  1187. case $enableval in
  1188. no);;
  1189. yes);;
  1190. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-debug=$enable_mapregsql... stopping" >&5
  1191. echo "$as_me: error: invalid argument --enable-debug=$enable_mapregsql... stopping" >&2;}
  1192. { (exit 1); exit 1; }; };;
  1193. esac
  1194. else
  1195. enable_debug="no"
  1196. fi;
  1197. #
  1198. # Enable/disable MySql and optionally specify the path to mysql_config (optional library)
  1199. #
  1200. # Check whether --with-mysql or --without-mysql was given.
  1201. if test "${with_mysql+set}" = set; then
  1202. withval="$with_mysql"
  1203. if test "$withval" = "no" ; then
  1204. want_mysql="no"
  1205. else
  1206. want_mysql="yes"
  1207. require_mysql="yes"
  1208. if test "$withval" != "yes" ; then
  1209. if test ! -x "$withval" ; then
  1210. { { echo "$as_me:$LINENO: error: $withval is not an executable file" >&5
  1211. echo "$as_me: error: $withval is not an executable file" >&2;}
  1212. { (exit 1); exit 1; }; }
  1213. fi
  1214. MYSQL_CONFIG_HOME="$withval"
  1215. fi
  1216. fi
  1217. else
  1218. want_mysql="yes" require_mysql="no"
  1219. fi;
  1220. #
  1221. # Enable/disable PCRE and optionally specify the path (optional library)
  1222. #
  1223. # Check whether --with-pcre or --without-pcre was given.
  1224. if test "${with_pcre+set}" = set; then
  1225. withval="$with_pcre"
  1226. if test "$withval" = "no" ; then
  1227. want_pcre="no"
  1228. else
  1229. want_pcre="yes"
  1230. require_pcre="yes"
  1231. if test "$withval" != "yes" ; then
  1232. if test ! -d "$withval" ; then
  1233. { { echo "$as_me:$LINENO: error: $withval is not a directoy" >&5
  1234. echo "$as_me: error: $withval is not a directoy" >&2;}
  1235. { (exit 1); exit 1; }; }
  1236. fi
  1237. PCRE_HOME="$withval"
  1238. fi
  1239. fi
  1240. else
  1241. want_pcre="yes" require_pcre="no"
  1242. fi;
  1243. #
  1244. # Specify the path of the zlib library (required library)
  1245. #
  1246. # Check whether --with-zlib or --without-zlib was given.
  1247. if test "${with_zlib+set}" = set; then
  1248. withval="$with_zlib"
  1249. test -n "$withval" && ZLIB_HOME="$withval"
  1250. else
  1251. ZLIB_HOME=/usr/local
  1252. test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  1253. fi;
  1254. ###############################################################################
  1255. # Check for programs and types.
  1256. #
  1257. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1258. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1259. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1260. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1261. echo $ECHO_N "(cached) $ECHO_C" >&6
  1262. else
  1263. cat >conftest.make <<\_ACEOF
  1264. all:
  1265. @echo 'ac_maketemp="$(MAKE)"'
  1266. _ACEOF
  1267. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1268. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1269. if test -n "$ac_maketemp"; then
  1270. eval ac_cv_prog_make_${ac_make}_set=yes
  1271. else
  1272. eval ac_cv_prog_make_${ac_make}_set=no
  1273. fi
  1274. rm -f conftest.make
  1275. fi
  1276. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1277. echo "$as_me:$LINENO: result: yes" >&5
  1278. echo "${ECHO_T}yes" >&6
  1279. SET_MAKE=
  1280. else
  1281. echo "$as_me:$LINENO: result: no" >&5
  1282. echo "${ECHO_T}no" >&6
  1283. SET_MAKE="MAKE=${MAKE-make}"
  1284. fi
  1285. ac_ext=c
  1286. ac_cpp='$CPP $CPPFLAGS'
  1287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1290. if test -n "$ac_tool_prefix"; then
  1291. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1292. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1293. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1294. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1295. if test "${ac_cv_prog_CC+set}" = set; then
  1296. echo $ECHO_N "(cached) $ECHO_C" >&6
  1297. else
  1298. if test -n "$CC"; then
  1299. ac_cv_prog_CC="$CC" # Let the user override the test.
  1300. else
  1301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1302. for as_dir in $PATH
  1303. do
  1304. IFS=$as_save_IFS
  1305. test -z "$as_dir" && as_dir=.
  1306. for ac_exec_ext in '' $ac_executable_extensions; do
  1307. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1308. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1309. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1310. break 2
  1311. fi
  1312. done
  1313. done
  1314. fi
  1315. fi
  1316. CC=$ac_cv_prog_CC
  1317. if test -n "$CC"; then
  1318. echo "$as_me:$LINENO: result: $CC" >&5
  1319. echo "${ECHO_T}$CC" >&6
  1320. else
  1321. echo "$as_me:$LINENO: result: no" >&5
  1322. echo "${ECHO_T}no" >&6
  1323. fi
  1324. fi
  1325. if test -z "$ac_cv_prog_CC"; then
  1326. ac_ct_CC=$CC
  1327. # Extract the first word of "gcc", so it can be a program name with args.
  1328. set dummy gcc; ac_word=$2
  1329. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1330. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1331. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1332. echo $ECHO_N "(cached) $ECHO_C" >&6
  1333. else
  1334. if test -n "$ac_ct_CC"; then
  1335. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1336. else
  1337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1338. for as_dir in $PATH
  1339. do
  1340. IFS=$as_save_IFS
  1341. test -z "$as_dir" && as_dir=.
  1342. for ac_exec_ext in '' $ac_executable_extensions; do
  1343. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1344. ac_cv_prog_ac_ct_CC="gcc"
  1345. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1346. break 2
  1347. fi
  1348. done
  1349. done
  1350. fi
  1351. fi
  1352. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1353. if test -n "$ac_ct_CC"; then
  1354. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1355. echo "${ECHO_T}$ac_ct_CC" >&6
  1356. else
  1357. echo "$as_me:$LINENO: result: no" >&5
  1358. echo "${ECHO_T}no" >&6
  1359. fi
  1360. CC=$ac_ct_CC
  1361. else
  1362. CC="$ac_cv_prog_CC"
  1363. fi
  1364. if test -z "$CC"; then
  1365. if test -n "$ac_tool_prefix"; then
  1366. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1367. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1368. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1369. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1370. if test "${ac_cv_prog_CC+set}" = set; then
  1371. echo $ECHO_N "(cached) $ECHO_C" >&6
  1372. else
  1373. if test -n "$CC"; then
  1374. ac_cv_prog_CC="$CC" # Let the user override the test.
  1375. else
  1376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1377. for as_dir in $PATH
  1378. do
  1379. IFS=$as_save_IFS
  1380. test -z "$as_dir" && as_dir=.
  1381. for ac_exec_ext in '' $ac_executable_extensions; do
  1382. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1383. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1384. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1385. break 2
  1386. fi
  1387. done
  1388. done
  1389. fi
  1390. fi
  1391. CC=$ac_cv_prog_CC
  1392. if test -n "$CC"; then
  1393. echo "$as_me:$LINENO: result: $CC" >&5
  1394. echo "${ECHO_T}$CC" >&6
  1395. else
  1396. echo "$as_me:$LINENO: result: no" >&5
  1397. echo "${ECHO_T}no" >&6
  1398. fi
  1399. fi
  1400. if test -z "$ac_cv_prog_CC"; then
  1401. ac_ct_CC=$CC
  1402. # Extract the first word of "cc", so it can be a program name with args.
  1403. set dummy cc; ac_word=$2
  1404. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1405. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1406. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1407. echo $ECHO_N "(cached) $ECHO_C" >&6
  1408. else
  1409. if test -n "$ac_ct_CC"; then
  1410. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1411. else
  1412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1413. for as_dir in $PATH
  1414. do
  1415. IFS=$as_save_IFS
  1416. test -z "$as_dir" && as_dir=.
  1417. for ac_exec_ext in '' $ac_executable_extensions; do
  1418. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1419. ac_cv_prog_ac_ct_CC="cc"
  1420. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1421. break 2
  1422. fi
  1423. done
  1424. done
  1425. fi
  1426. fi
  1427. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1428. if test -n "$ac_ct_CC"; then
  1429. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1430. echo "${ECHO_T}$ac_ct_CC" >&6
  1431. else
  1432. echo "$as_me:$LINENO: result: no" >&5
  1433. echo "${ECHO_T}no" >&6
  1434. fi
  1435. CC=$ac_ct_CC
  1436. else
  1437. CC="$ac_cv_prog_CC"
  1438. fi
  1439. fi
  1440. if test -z "$CC"; then
  1441. # Extract the first word of "cc", so it can be a program name with args.
  1442. set dummy cc; ac_word=$2
  1443. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1444. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1445. if test "${ac_cv_prog_CC+set}" = set; then
  1446. echo $ECHO_N "(cached) $ECHO_C" >&6
  1447. else
  1448. if test -n "$CC"; then
  1449. ac_cv_prog_CC="$CC" # Let the user override the test.
  1450. else
  1451. ac_prog_rejected=no
  1452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1453. for as_dir in $PATH
  1454. do
  1455. IFS=$as_save_IFS
  1456. test -z "$as_dir" && as_dir=.
  1457. for ac_exec_ext in '' $ac_executable_extensions; do
  1458. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1459. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1460. ac_prog_rejected=yes
  1461. continue
  1462. fi
  1463. ac_cv_prog_CC="cc"
  1464. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1465. break 2
  1466. fi
  1467. done
  1468. done
  1469. if test $ac_prog_rejected = yes; then
  1470. # We found a bogon in the path, so make sure we never use it.
  1471. set dummy $ac_cv_prog_CC
  1472. shift
  1473. if test $# != 0; then
  1474. # We chose a different compiler from the bogus one.
  1475. # However, it has the same basename, so the bogon will be chosen
  1476. # first if we set CC to just the basename; use the full file name.
  1477. shift
  1478. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1479. fi
  1480. fi
  1481. fi
  1482. fi
  1483. CC=$ac_cv_prog_CC
  1484. if test -n "$CC"; then
  1485. echo "$as_me:$LINENO: result: $CC" >&5
  1486. echo "${ECHO_T}$CC" >&6
  1487. else
  1488. echo "$as_me:$LINENO: result: no" >&5
  1489. echo "${ECHO_T}no" >&6
  1490. fi
  1491. fi
  1492. if test -z "$CC"; then
  1493. if test -n "$ac_tool_prefix"; then
  1494. for ac_prog in cl
  1495. do
  1496. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1497. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1498. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1499. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1500. if test "${ac_cv_prog_CC+set}" = set; then
  1501. echo $ECHO_N "(cached) $ECHO_C" >&6
  1502. else
  1503. if test -n "$CC"; then
  1504. ac_cv_prog_CC="$CC" # Let the user override the test.
  1505. else
  1506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1507. for as_dir in $PATH
  1508. do
  1509. IFS=$as_save_IFS
  1510. test -z "$as_dir" && as_dir=.
  1511. for ac_exec_ext in '' $ac_executable_extensions; do
  1512. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1513. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1514. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1515. break 2
  1516. fi
  1517. done
  1518. done
  1519. fi
  1520. fi
  1521. CC=$ac_cv_prog_CC
  1522. if test -n "$CC"; then
  1523. echo "$as_me:$LINENO: result: $CC" >&5
  1524. echo "${ECHO_T}$CC" >&6
  1525. else
  1526. echo "$as_me:$LINENO: result: no" >&5
  1527. echo "${ECHO_T}no" >&6
  1528. fi
  1529. test -n "$CC" && break
  1530. done
  1531. fi
  1532. if test -z "$CC"; then
  1533. ac_ct_CC=$CC
  1534. for ac_prog in cl
  1535. do
  1536. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1537. set dummy $ac_prog; ac_word=$2
  1538. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1539. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1540. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1541. echo $ECHO_N "(cached) $ECHO_C" >&6
  1542. else
  1543. if test -n "$ac_ct_CC"; then
  1544. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1545. else
  1546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1547. for as_dir in $PATH
  1548. do
  1549. IFS=$as_save_IFS
  1550. test -z "$as_dir" && as_dir=.
  1551. for ac_exec_ext in '' $ac_executable_extensions; do
  1552. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1553. ac_cv_prog_ac_ct_CC="$ac_prog"
  1554. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1555. break 2
  1556. fi
  1557. done
  1558. done
  1559. fi
  1560. fi
  1561. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1562. if test -n "$ac_ct_CC"; then
  1563. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1564. echo "${ECHO_T}$ac_ct_CC" >&6
  1565. else
  1566. echo "$as_me:$LINENO: result: no" >&5
  1567. echo "${ECHO_T}no" >&6
  1568. fi
  1569. test -n "$ac_ct_CC" && break
  1570. done
  1571. CC=$ac_ct_CC
  1572. fi
  1573. fi
  1574. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1575. See \`config.log' for more details." >&5
  1576. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1577. See \`config.log' for more details." >&2;}
  1578. { (exit 1); exit 1; }; }
  1579. # Provide some information about the compiler.
  1580. echo "$as_me:$LINENO:" \
  1581. "checking for C compiler version" >&5
  1582. ac_compiler=`set X $ac_compile; echo $2`
  1583. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1584. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1587. (exit $ac_status); }
  1588. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1589. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1590. ac_status=$?
  1591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1592. (exit $ac_status); }
  1593. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1594. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1595. ac_status=$?
  1596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1597. (exit $ac_status); }
  1598. cat >conftest.$ac_ext <<_ACEOF
  1599. /* confdefs.h. */
  1600. _ACEOF
  1601. cat confdefs.h >>conftest.$ac_ext
  1602. cat >>conftest.$ac_ext <<_ACEOF
  1603. /* end confdefs.h. */
  1604. int
  1605. main ()
  1606. {
  1607. ;
  1608. return 0;
  1609. }
  1610. _ACEOF
  1611. ac_clean_files_save=$ac_clean_files
  1612. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1613. # Try to create an executable without -o first, disregard a.out.
  1614. # It will help us diagnose broken compilers, and finding out an intuition
  1615. # of exeext.
  1616. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1617. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1618. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1619. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1620. (eval $ac_link_default) 2>&5
  1621. ac_status=$?
  1622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1623. (exit $ac_status); }; then
  1624. # Find the output, starting from the most likely. This scheme is
  1625. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1626. # resort.
  1627. # Be careful to initialize this variable, since it used to be cached.
  1628. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1629. ac_cv_exeext=
  1630. # b.out is created by i960 compilers.
  1631. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1632. do
  1633. test -f "$ac_file" || continue
  1634. case $ac_file in
  1635. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1636. ;;
  1637. conftest.$ac_ext )
  1638. # This is the source file.
  1639. ;;
  1640. [ab].out )
  1641. # We found the default executable, but exeext='' is most
  1642. # certainly right.
  1643. break;;
  1644. *.* )
  1645. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1646. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1647. # but it would be cool to find out if it's true. Does anybody
  1648. # maintain Libtool? --akim.
  1649. export ac_cv_exeext
  1650. break;;
  1651. * )
  1652. break;;
  1653. esac
  1654. done
  1655. else
  1656. echo "$as_me: failed program was:" >&5
  1657. sed 's/^/| /' conftest.$ac_ext >&5
  1658. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1659. See \`config.log' for more details." >&5
  1660. echo "$as_me: error: C compiler cannot create executables
  1661. See \`config.log' for more details." >&2;}
  1662. { (exit 77); exit 77; }; }
  1663. fi
  1664. ac_exeext=$ac_cv_exeext
  1665. echo "$as_me:$LINENO: result: $ac_file" >&5
  1666. echo "${ECHO_T}$ac_file" >&6
  1667. # Check the compiler produces executables we can run. If not, either
  1668. # the compiler is broken, or we cross compile.
  1669. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1670. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1671. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1672. # If not cross compiling, check that we can run a simple program.
  1673. if test "$cross_compiling" != yes; then
  1674. if { ac_try='./$ac_file'
  1675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1676. (eval $ac_try) 2>&5
  1677. ac_status=$?
  1678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1679. (exit $ac_status); }; }; then
  1680. cross_compiling=no
  1681. else
  1682. if test "$cross_compiling" = maybe; then
  1683. cross_compiling=yes
  1684. else
  1685. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1686. If you meant to cross compile, use \`--host'.
  1687. See \`config.log' for more details." >&5
  1688. echo "$as_me: error: cannot run C compiled programs.
  1689. If you meant to cross compile, use \`--host'.
  1690. See \`config.log' for more details." >&2;}
  1691. { (exit 1); exit 1; }; }
  1692. fi
  1693. fi
  1694. fi
  1695. echo "$as_me:$LINENO: result: yes" >&5
  1696. echo "${ECHO_T}yes" >&6
  1697. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1698. ac_clean_files=$ac_clean_files_save
  1699. # Check the compiler produces executables we can run. If not, either
  1700. # the compiler is broken, or we cross compile.
  1701. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1702. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1703. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1704. echo "${ECHO_T}$cross_compiling" >&6
  1705. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1706. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1707. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1708. (eval $ac_link) 2>&5
  1709. ac_status=$?
  1710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1711. (exit $ac_status); }; then
  1712. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1713. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1714. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1715. # `rm'.
  1716. for ac_file in conftest.exe conftest conftest.*; do
  1717. test -f "$ac_file" || continue
  1718. case $ac_file in
  1719. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1720. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1721. export ac_cv_exeext
  1722. break;;
  1723. * ) break;;
  1724. esac
  1725. done
  1726. else
  1727. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1728. See \`config.log' for more details." >&5
  1729. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1730. See \`config.log' for more details." >&2;}
  1731. { (exit 1); exit 1; }; }
  1732. fi
  1733. rm -f conftest$ac_cv_exeext
  1734. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1735. echo "${ECHO_T}$ac_cv_exeext" >&6
  1736. rm -f conftest.$ac_ext
  1737. EXEEXT=$ac_cv_exeext
  1738. ac_exeext=$EXEEXT
  1739. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1740. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1741. if test "${ac_cv_objext+set}" = set; then
  1742. echo $ECHO_N "(cached) $ECHO_C" >&6
  1743. else
  1744. cat >conftest.$ac_ext <<_ACEOF
  1745. /* confdefs.h. */
  1746. _ACEOF
  1747. cat confdefs.h >>conftest.$ac_ext
  1748. cat >>conftest.$ac_ext <<_ACEOF
  1749. /* end confdefs.h. */
  1750. int
  1751. main ()
  1752. {
  1753. ;
  1754. return 0;
  1755. }
  1756. _ACEOF
  1757. rm -f conftest.o conftest.obj
  1758. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1759. (eval $ac_compile) 2>&5
  1760. ac_status=$?
  1761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1762. (exit $ac_status); }; then
  1763. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1764. case $ac_file in
  1765. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1766. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1767. break;;
  1768. esac
  1769. done
  1770. else
  1771. echo "$as_me: failed program was:" >&5
  1772. sed 's/^/| /' conftest.$ac_ext >&5
  1773. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1774. See \`config.log' for more details." >&5
  1775. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1776. See \`config.log' for more details." >&2;}
  1777. { (exit 1); exit 1; }; }
  1778. fi
  1779. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1780. fi
  1781. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1782. echo "${ECHO_T}$ac_cv_objext" >&6
  1783. OBJEXT=$ac_cv_objext
  1784. ac_objext=$OBJEXT
  1785. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1786. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1787. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1788. echo $ECHO_N "(cached) $ECHO_C" >&6
  1789. else
  1790. cat >conftest.$ac_ext <<_ACEOF
  1791. /* confdefs.h. */
  1792. _ACEOF
  1793. cat confdefs.h >>conftest.$ac_ext
  1794. cat >>conftest.$ac_ext <<_ACEOF
  1795. /* end confdefs.h. */
  1796. int
  1797. main ()
  1798. {
  1799. #ifndef __GNUC__
  1800. choke me
  1801. #endif
  1802. ;
  1803. return 0;
  1804. }
  1805. _ACEOF
  1806. rm -f conftest.$ac_objext
  1807. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1808. (eval $ac_compile) 2>conftest.er1
  1809. ac_status=$?
  1810. grep -v '^ *+' conftest.er1 >conftest.err
  1811. rm -f conftest.er1
  1812. cat conftest.err >&5
  1813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1814. (exit $ac_status); } &&
  1815. { ac_try='test -z "$ac_c_werror_flag"
  1816. || test ! -s conftest.err'
  1817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1818. (eval $ac_try) 2>&5
  1819. ac_status=$?
  1820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1821. (exit $ac_status); }; } &&
  1822. { ac_try='test -s conftest.$ac_objext'
  1823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1824. (eval $ac_try) 2>&5
  1825. ac_status=$?
  1826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1827. (exit $ac_status); }; }; then
  1828. ac_compiler_gnu=yes
  1829. else
  1830. echo "$as_me: failed program was:" >&5
  1831. sed 's/^/| /' conftest.$ac_ext >&5
  1832. ac_compiler_gnu=no
  1833. fi
  1834. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1836. fi
  1837. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1838. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1839. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1840. ac_test_CFLAGS=${CFLAGS+set}
  1841. ac_save_CFLAGS=$CFLAGS
  1842. CFLAGS="-g"
  1843. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1844. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1845. if test "${ac_cv_prog_cc_g+set}" = set; then
  1846. echo $ECHO_N "(cached) $ECHO_C" >&6
  1847. else
  1848. cat >conftest.$ac_ext <<_ACEOF
  1849. /* confdefs.h. */
  1850. _ACEOF
  1851. cat confdefs.h >>conftest.$ac_ext
  1852. cat >>conftest.$ac_ext <<_ACEOF
  1853. /* end confdefs.h. */
  1854. int
  1855. main ()
  1856. {
  1857. ;
  1858. return 0;
  1859. }
  1860. _ACEOF
  1861. rm -f conftest.$ac_objext
  1862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1863. (eval $ac_compile) 2>conftest.er1
  1864. ac_status=$?
  1865. grep -v '^ *+' conftest.er1 >conftest.err
  1866. rm -f conftest.er1
  1867. cat conftest.err >&5
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); } &&
  1870. { ac_try='test -z "$ac_c_werror_flag"
  1871. || test ! -s conftest.err'
  1872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1873. (eval $ac_try) 2>&5
  1874. ac_status=$?
  1875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1876. (exit $ac_status); }; } &&
  1877. { ac_try='test -s conftest.$ac_objext'
  1878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1879. (eval $ac_try) 2>&5
  1880. ac_status=$?
  1881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1882. (exit $ac_status); }; }; then
  1883. ac_cv_prog_cc_g=yes
  1884. else
  1885. echo "$as_me: failed program was:" >&5
  1886. sed 's/^/| /' conftest.$ac_ext >&5
  1887. ac_cv_prog_cc_g=no
  1888. fi
  1889. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. fi
  1891. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1892. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1893. if test "$ac_test_CFLAGS" = set; then
  1894. CFLAGS=$ac_save_CFLAGS
  1895. elif test $ac_cv_prog_cc_g = yes; then
  1896. if test "$GCC" = yes; then
  1897. CFLAGS="-g -O2"
  1898. else
  1899. CFLAGS="-g"
  1900. fi
  1901. else
  1902. if test "$GCC" = yes; then
  1903. CFLAGS="-O2"
  1904. else
  1905. CFLAGS=
  1906. fi
  1907. fi
  1908. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1909. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1910. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1911. echo $ECHO_N "(cached) $ECHO_C" >&6
  1912. else
  1913. ac_cv_prog_cc_stdc=no
  1914. ac_save_CC=$CC
  1915. cat >conftest.$ac_ext <<_ACEOF
  1916. /* confdefs.h. */
  1917. _ACEOF
  1918. cat confdefs.h >>conftest.$ac_ext
  1919. cat >>conftest.$ac_ext <<_ACEOF
  1920. /* end confdefs.h. */
  1921. #include <stdarg.h>
  1922. #include <stdio.h>
  1923. #include <sys/types.h>
  1924. #include <sys/stat.h>
  1925. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1926. struct buf { int x; };
  1927. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1928. static char *e (p, i)
  1929. char **p;
  1930. int i;
  1931. {
  1932. return p[i];
  1933. }
  1934. static char *f (char * (*g) (char **, int), char **p, ...)
  1935. {
  1936. char *s;
  1937. va_list v;
  1938. va_start (v,p);
  1939. s = g (p, va_arg (v,int));
  1940. va_end (v);
  1941. return s;
  1942. }
  1943. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1944. function prototypes and stuff, but not '\xHH' hex character constants.
  1945. These don't provoke an error unfortunately, instead are silently treated
  1946. as 'x'. The following induces an error, until -std1 is added to get
  1947. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1948. array size at least. It's necessary to write '\x00'==0 to get something
  1949. that's true only with -std1. */
  1950. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1951. int test (int i, double x);
  1952. struct s1 {int (*f) (int a);};
  1953. struct s2 {int (*f) (double a);};
  1954. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1955. int argc;
  1956. char **argv;
  1957. int
  1958. main ()
  1959. {
  1960. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1961. ;
  1962. return 0;
  1963. }
  1964. _ACEOF
  1965. # Don't try gcc -ansi; that turns off useful extensions and
  1966. # breaks some systems' header files.
  1967. # AIX -qlanglvl=ansi
  1968. # Ultrix and OSF/1 -std1
  1969. # HP-UX 10.20 and later -Ae
  1970. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1971. # SVR4 -Xc -D__EXTENSIONS__
  1972. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1973. do
  1974. CC="$ac_save_CC $ac_arg"
  1975. rm -f conftest.$ac_objext
  1976. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1977. (eval $ac_compile) 2>conftest.er1
  1978. ac_status=$?
  1979. grep -v '^ *+' conftest.er1 >conftest.err
  1980. rm -f conftest.er1
  1981. cat conftest.err >&5
  1982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1983. (exit $ac_status); } &&
  1984. { ac_try='test -z "$ac_c_werror_flag"
  1985. || test ! -s conftest.err'
  1986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1987. (eval $ac_try) 2>&5
  1988. ac_status=$?
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); }; } &&
  1991. { ac_try='test -s conftest.$ac_objext'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; }; then
  1997. ac_cv_prog_cc_stdc=$ac_arg
  1998. break
  1999. else
  2000. echo "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. fi
  2003. rm -f conftest.err conftest.$ac_objext
  2004. done
  2005. rm -f conftest.$ac_ext conftest.$ac_objext
  2006. CC=$ac_save_CC
  2007. fi
  2008. case "x$ac_cv_prog_cc_stdc" in
  2009. x|xno)
  2010. echo "$as_me:$LINENO: result: none needed" >&5
  2011. echo "${ECHO_T}none needed" >&6 ;;
  2012. *)
  2013. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2014. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2015. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2016. esac
  2017. # Some people use a C++ compiler to compile C. Since we use `exit',
  2018. # in C++ we need to declare it. In case someone uses the same compiler
  2019. # for both compiling C and C++ we need to have the C++ compiler decide
  2020. # the declaration of exit, since it's the most demanding environment.
  2021. cat >conftest.$ac_ext <<_ACEOF
  2022. #ifndef __cplusplus
  2023. choke me
  2024. #endif
  2025. _ACEOF
  2026. rm -f conftest.$ac_objext
  2027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2028. (eval $ac_compile) 2>conftest.er1
  2029. ac_status=$?
  2030. grep -v '^ *+' conftest.er1 >conftest.err
  2031. rm -f conftest.er1
  2032. cat conftest.err >&5
  2033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2034. (exit $ac_status); } &&
  2035. { ac_try='test -z "$ac_c_werror_flag"
  2036. || test ! -s conftest.err'
  2037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2038. (eval $ac_try) 2>&5
  2039. ac_status=$?
  2040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2041. (exit $ac_status); }; } &&
  2042. { ac_try='test -s conftest.$ac_objext'
  2043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2044. (eval $ac_try) 2>&5
  2045. ac_status=$?
  2046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2047. (exit $ac_status); }; }; then
  2048. for ac_declaration in \
  2049. '' \
  2050. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2051. 'extern "C" void std::exit (int); using std::exit;' \
  2052. 'extern "C" void exit (int) throw ();' \
  2053. 'extern "C" void exit (int);' \
  2054. 'void exit (int);'
  2055. do
  2056. cat >conftest.$ac_ext <<_ACEOF
  2057. /* confdefs.h. */
  2058. _ACEOF
  2059. cat confdefs.h >>conftest.$ac_ext
  2060. cat >>conftest.$ac_ext <<_ACEOF
  2061. /* end confdefs.h. */
  2062. $ac_declaration
  2063. #include <stdlib.h>
  2064. int
  2065. main ()
  2066. {
  2067. exit (42);
  2068. ;
  2069. return 0;
  2070. }
  2071. _ACEOF
  2072. rm -f conftest.$ac_objext
  2073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2074. (eval $ac_compile) 2>conftest.er1
  2075. ac_status=$?
  2076. grep -v '^ *+' conftest.er1 >conftest.err
  2077. rm -f conftest.er1
  2078. cat conftest.err >&5
  2079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2080. (exit $ac_status); } &&
  2081. { ac_try='test -z "$ac_c_werror_flag"
  2082. || test ! -s conftest.err'
  2083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2084. (eval $ac_try) 2>&5
  2085. ac_status=$?
  2086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2087. (exit $ac_status); }; } &&
  2088. { ac_try='test -s conftest.$ac_objext'
  2089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2090. (eval $ac_try) 2>&5
  2091. ac_status=$?
  2092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2093. (exit $ac_status); }; }; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. continue
  2099. fi
  2100. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2101. cat >conftest.$ac_ext <<_ACEOF
  2102. /* confdefs.h. */
  2103. _ACEOF
  2104. cat confdefs.h >>conftest.$ac_ext
  2105. cat >>conftest.$ac_ext <<_ACEOF
  2106. /* end confdefs.h. */
  2107. $ac_declaration
  2108. int
  2109. main ()
  2110. {
  2111. exit (42);
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. rm -f conftest.$ac_objext
  2117. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2118. (eval $ac_compile) 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } &&
  2125. { ac_try='test -z "$ac_c_werror_flag"
  2126. || test ! -s conftest.err'
  2127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2128. (eval $ac_try) 2>&5
  2129. ac_status=$?
  2130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2131. (exit $ac_status); }; } &&
  2132. { ac_try='test -s conftest.$ac_objext'
  2133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2134. (eval $ac_try) 2>&5
  2135. ac_status=$?
  2136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2137. (exit $ac_status); }; }; then
  2138. break
  2139. else
  2140. echo "$as_me: failed program was:" >&5
  2141. sed 's/^/| /' conftest.$ac_ext >&5
  2142. fi
  2143. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2144. done
  2145. rm -f conftest*
  2146. if test -n "$ac_declaration"; then
  2147. echo '#ifdef __cplusplus' >>confdefs.h
  2148. echo $ac_declaration >>confdefs.h
  2149. echo '#endif' >>confdefs.h
  2150. fi
  2151. else
  2152. echo "$as_me: failed program was:" >&5
  2153. sed 's/^/| /' conftest.$ac_ext >&5
  2154. fi
  2155. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2156. ac_ext=c
  2157. ac_cpp='$CPP $CPPFLAGS'
  2158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2161. ac_ext=c
  2162. ac_cpp='$CPP $CPPFLAGS'
  2163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2166. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2167. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2168. # On Suns, sometimes $CPP names a directory.
  2169. if test -n "$CPP" && test -d "$CPP"; then
  2170. CPP=
  2171. fi
  2172. if test -z "$CPP"; then
  2173. if test "${ac_cv_prog_CPP+set}" = set; then
  2174. echo $ECHO_N "(cached) $ECHO_C" >&6
  2175. else
  2176. # Double quotes because CPP needs to be expanded
  2177. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2178. do
  2179. ac_preproc_ok=false
  2180. for ac_c_preproc_warn_flag in '' yes
  2181. do
  2182. # Use a header file that comes with gcc, so configuring glibc
  2183. # with a fresh cross-compiler works.
  2184. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2185. # <limits.h> exists even on freestanding compilers.
  2186. # On the NeXT, cc -E runs the code through the compiler's parser,
  2187. # not just through cpp. "Syntax error" is here to catch this case.
  2188. cat >conftest.$ac_ext <<_ACEOF
  2189. /* confdefs.h. */
  2190. _ACEOF
  2191. cat confdefs.h >>conftest.$ac_ext
  2192. cat >>conftest.$ac_ext <<_ACEOF
  2193. /* end confdefs.h. */
  2194. #ifdef __STDC__
  2195. # include <limits.h>
  2196. #else
  2197. # include <assert.h>
  2198. #endif
  2199. Syntax error
  2200. _ACEOF
  2201. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2202. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2203. ac_status=$?
  2204. grep -v '^ *+' conftest.er1 >conftest.err
  2205. rm -f conftest.er1
  2206. cat conftest.err >&5
  2207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2208. (exit $ac_status); } >/dev/null; then
  2209. if test -s conftest.err; then
  2210. ac_cpp_err=$ac_c_preproc_warn_flag
  2211. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2212. else
  2213. ac_cpp_err=
  2214. fi
  2215. else
  2216. ac_cpp_err=yes
  2217. fi
  2218. if test -z "$ac_cpp_err"; then
  2219. :
  2220. else
  2221. echo "$as_me: failed program was:" >&5
  2222. sed 's/^/| /' conftest.$ac_ext >&5
  2223. # Broken: fails on valid input.
  2224. continue
  2225. fi
  2226. rm -f conftest.err conftest.$ac_ext
  2227. # OK, works on sane cases. Now check whether non-existent headers
  2228. # can be detected and how.
  2229. cat >conftest.$ac_ext <<_ACEOF
  2230. /* confdefs.h. */
  2231. _ACEOF
  2232. cat confdefs.h >>conftest.$ac_ext
  2233. cat >>conftest.$ac_ext <<_ACEOF
  2234. /* end confdefs.h. */
  2235. #include <ac_nonexistent.h>
  2236. _ACEOF
  2237. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2238. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2239. ac_status=$?
  2240. grep -v '^ *+' conftest.er1 >conftest.err
  2241. rm -f conftest.er1
  2242. cat conftest.err >&5
  2243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2244. (exit $ac_status); } >/dev/null; then
  2245. if test -s conftest.err; then
  2246. ac_cpp_err=$ac_c_preproc_warn_flag
  2247. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2248. else
  2249. ac_cpp_err=
  2250. fi
  2251. else
  2252. ac_cpp_err=yes
  2253. fi
  2254. if test -z "$ac_cpp_err"; then
  2255. # Broken: success on invalid input.
  2256. continue
  2257. else
  2258. echo "$as_me: failed program was:" >&5
  2259. sed 's/^/| /' conftest.$ac_ext >&5
  2260. # Passes both tests.
  2261. ac_preproc_ok=:
  2262. break
  2263. fi
  2264. rm -f conftest.err conftest.$ac_ext
  2265. done
  2266. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2267. rm -f conftest.err conftest.$ac_ext
  2268. if $ac_preproc_ok; then
  2269. break
  2270. fi
  2271. done
  2272. ac_cv_prog_CPP=$CPP
  2273. fi
  2274. CPP=$ac_cv_prog_CPP
  2275. else
  2276. ac_cv_prog_CPP=$CPP
  2277. fi
  2278. echo "$as_me:$LINENO: result: $CPP" >&5
  2279. echo "${ECHO_T}$CPP" >&6
  2280. ac_preproc_ok=false
  2281. for ac_c_preproc_warn_flag in '' yes
  2282. do
  2283. # Use a header file that comes with gcc, so configuring glibc
  2284. # with a fresh cross-compiler works.
  2285. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2286. # <limits.h> exists even on freestanding compilers.
  2287. # On the NeXT, cc -E runs the code through the compiler's parser,
  2288. # not just through cpp. "Syntax error" is here to catch this case.
  2289. cat >conftest.$ac_ext <<_ACEOF
  2290. /* confdefs.h. */
  2291. _ACEOF
  2292. cat confdefs.h >>conftest.$ac_ext
  2293. cat >>conftest.$ac_ext <<_ACEOF
  2294. /* end confdefs.h. */
  2295. #ifdef __STDC__
  2296. # include <limits.h>
  2297. #else
  2298. # include <assert.h>
  2299. #endif
  2300. Syntax error
  2301. _ACEOF
  2302. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2303. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2304. ac_status=$?
  2305. grep -v '^ *+' conftest.er1 >conftest.err
  2306. rm -f conftest.er1
  2307. cat conftest.err >&5
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); } >/dev/null; then
  2310. if test -s conftest.err; then
  2311. ac_cpp_err=$ac_c_preproc_warn_flag
  2312. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2313. else
  2314. ac_cpp_err=
  2315. fi
  2316. else
  2317. ac_cpp_err=yes
  2318. fi
  2319. if test -z "$ac_cpp_err"; then
  2320. :
  2321. else
  2322. echo "$as_me: failed program was:" >&5
  2323. sed 's/^/| /' conftest.$ac_ext >&5
  2324. # Broken: fails on valid input.
  2325. continue
  2326. fi
  2327. rm -f conftest.err conftest.$ac_ext
  2328. # OK, works on sane cases. Now check whether non-existent headers
  2329. # can be detected and how.
  2330. cat >conftest.$ac_ext <<_ACEOF
  2331. /* confdefs.h. */
  2332. _ACEOF
  2333. cat confdefs.h >>conftest.$ac_ext
  2334. cat >>conftest.$ac_ext <<_ACEOF
  2335. /* end confdefs.h. */
  2336. #include <ac_nonexistent.h>
  2337. _ACEOF
  2338. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2339. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2340. ac_status=$?
  2341. grep -v '^ *+' conftest.er1 >conftest.err
  2342. rm -f conftest.er1
  2343. cat conftest.err >&5
  2344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2345. (exit $ac_status); } >/dev/null; then
  2346. if test -s conftest.err; then
  2347. ac_cpp_err=$ac_c_preproc_warn_flag
  2348. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2349. else
  2350. ac_cpp_err=
  2351. fi
  2352. else
  2353. ac_cpp_err=yes
  2354. fi
  2355. if test -z "$ac_cpp_err"; then
  2356. # Broken: success on invalid input.
  2357. continue
  2358. else
  2359. echo "$as_me: failed program was:" >&5
  2360. sed 's/^/| /' conftest.$ac_ext >&5
  2361. # Passes both tests.
  2362. ac_preproc_ok=:
  2363. break
  2364. fi
  2365. rm -f conftest.err conftest.$ac_ext
  2366. done
  2367. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2368. rm -f conftest.err conftest.$ac_ext
  2369. if $ac_preproc_ok; then
  2370. :
  2371. else
  2372. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2373. See \`config.log' for more details." >&5
  2374. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2375. See \`config.log' for more details." >&2;}
  2376. { (exit 1); exit 1; }; }
  2377. fi
  2378. ac_ext=c
  2379. ac_cpp='$CPP $CPPFLAGS'
  2380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2383. ac_ext=c
  2384. ac_cpp='$CPP $CPPFLAGS'
  2385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2388. CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  2389. CPPFLAGS="$CPPFLAGS -I../common"
  2390. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  2391. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  2392. if test "${ac_cv_c_bigendian+set}" = set; then
  2393. echo $ECHO_N "(cached) $ECHO_C" >&6
  2394. else
  2395. # See if sys/param.h defines the BYTE_ORDER macro.
  2396. cat >conftest.$ac_ext <<_ACEOF
  2397. /* confdefs.h. */
  2398. _ACEOF
  2399. cat confdefs.h >>conftest.$ac_ext
  2400. cat >>conftest.$ac_ext <<_ACEOF
  2401. /* end confdefs.h. */
  2402. #include <sys/types.h>
  2403. #include <sys/param.h>
  2404. int
  2405. main ()
  2406. {
  2407. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2408. bogus endian macros
  2409. #endif
  2410. ;
  2411. return 0;
  2412. }
  2413. _ACEOF
  2414. rm -f conftest.$ac_objext
  2415. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2416. (eval $ac_compile) 2>conftest.er1
  2417. ac_status=$?
  2418. grep -v '^ *+' conftest.er1 >conftest.err
  2419. rm -f conftest.er1
  2420. cat conftest.err >&5
  2421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2422. (exit $ac_status); } &&
  2423. { ac_try='test -z "$ac_c_werror_flag"
  2424. || test ! -s conftest.err'
  2425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2426. (eval $ac_try) 2>&5
  2427. ac_status=$?
  2428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2429. (exit $ac_status); }; } &&
  2430. { ac_try='test -s conftest.$ac_objext'
  2431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2432. (eval $ac_try) 2>&5
  2433. ac_status=$?
  2434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2435. (exit $ac_status); }; }; then
  2436. # It does; now see whether it defined to BIG_ENDIAN or not.
  2437. cat >conftest.$ac_ext <<_ACEOF
  2438. /* confdefs.h. */
  2439. _ACEOF
  2440. cat confdefs.h >>conftest.$ac_ext
  2441. cat >>conftest.$ac_ext <<_ACEOF
  2442. /* end confdefs.h. */
  2443. #include <sys/types.h>
  2444. #include <sys/param.h>
  2445. int
  2446. main ()
  2447. {
  2448. #if BYTE_ORDER != BIG_ENDIAN
  2449. not big endian
  2450. #endif
  2451. ;
  2452. return 0;
  2453. }
  2454. _ACEOF
  2455. rm -f conftest.$ac_objext
  2456. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2457. (eval $ac_compile) 2>conftest.er1
  2458. ac_status=$?
  2459. grep -v '^ *+' conftest.er1 >conftest.err
  2460. rm -f conftest.er1
  2461. cat conftest.err >&5
  2462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2463. (exit $ac_status); } &&
  2464. { ac_try='test -z "$ac_c_werror_flag"
  2465. || test ! -s conftest.err'
  2466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2467. (eval $ac_try) 2>&5
  2468. ac_status=$?
  2469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2470. (exit $ac_status); }; } &&
  2471. { ac_try='test -s conftest.$ac_objext'
  2472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2473. (eval $ac_try) 2>&5
  2474. ac_status=$?
  2475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2476. (exit $ac_status); }; }; then
  2477. ac_cv_c_bigendian=yes
  2478. else
  2479. echo "$as_me: failed program was:" >&5
  2480. sed 's/^/| /' conftest.$ac_ext >&5
  2481. ac_cv_c_bigendian=no
  2482. fi
  2483. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2484. else
  2485. echo "$as_me: failed program was:" >&5
  2486. sed 's/^/| /' conftest.$ac_ext >&5
  2487. # It does not; compile a test program.
  2488. if test "$cross_compiling" = yes; then
  2489. # try to guess the endianness by grepping values into an object file
  2490. ac_cv_c_bigendian=unknown
  2491. cat >conftest.$ac_ext <<_ACEOF
  2492. /* confdefs.h. */
  2493. _ACEOF
  2494. cat confdefs.h >>conftest.$ac_ext
  2495. cat >>conftest.$ac_ext <<_ACEOF
  2496. /* end confdefs.h. */
  2497. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  2498. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  2499. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  2500. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  2501. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  2502. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  2503. int
  2504. main ()
  2505. {
  2506. _ascii (); _ebcdic ();
  2507. ;
  2508. return 0;
  2509. }
  2510. _ACEOF
  2511. rm -f conftest.$ac_objext
  2512. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2513. (eval $ac_compile) 2>conftest.er1
  2514. ac_status=$?
  2515. grep -v '^ *+' conftest.er1 >conftest.err
  2516. rm -f conftest.er1
  2517. cat conftest.err >&5
  2518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2519. (exit $ac_status); } &&
  2520. { ac_try='test -z "$ac_c_werror_flag"
  2521. || test ! -s conftest.err'
  2522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2523. (eval $ac_try) 2>&5
  2524. ac_status=$?
  2525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2526. (exit $ac_status); }; } &&
  2527. { ac_try='test -s conftest.$ac_objext'
  2528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2529. (eval $ac_try) 2>&5
  2530. ac_status=$?
  2531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2532. (exit $ac_status); }; }; then
  2533. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  2534. ac_cv_c_bigendian=yes
  2535. fi
  2536. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  2537. if test "$ac_cv_c_bigendian" = unknown; then
  2538. ac_cv_c_bigendian=no
  2539. else
  2540. # finding both strings is unlikely to happen, but who knows?
  2541. ac_cv_c_bigendian=unknown
  2542. fi
  2543. fi
  2544. else
  2545. echo "$as_me: failed program was:" >&5
  2546. sed 's/^/| /' conftest.$ac_ext >&5
  2547. fi
  2548. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2549. else
  2550. cat >conftest.$ac_ext <<_ACEOF
  2551. /* confdefs.h. */
  2552. _ACEOF
  2553. cat confdefs.h >>conftest.$ac_ext
  2554. cat >>conftest.$ac_ext <<_ACEOF
  2555. /* end confdefs.h. */
  2556. int
  2557. main ()
  2558. {
  2559. /* Are we little or big endian? From Harbison&Steele. */
  2560. union
  2561. {
  2562. long l;
  2563. char c[sizeof (long)];
  2564. } u;
  2565. u.l = 1;
  2566. exit (u.c[sizeof (long) - 1] == 1);
  2567. }
  2568. _ACEOF
  2569. rm -f conftest$ac_exeext
  2570. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2571. (eval $ac_link) 2>&5
  2572. ac_status=$?
  2573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2574. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2576. (eval $ac_try) 2>&5
  2577. ac_status=$?
  2578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2579. (exit $ac_status); }; }; then
  2580. ac_cv_c_bigendian=no
  2581. else
  2582. echo "$as_me: program exited with status $ac_status" >&5
  2583. echo "$as_me: failed program was:" >&5
  2584. sed 's/^/| /' conftest.$ac_ext >&5
  2585. ( exit $ac_status )
  2586. ac_cv_c_bigendian=yes
  2587. fi
  2588. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2589. fi
  2590. fi
  2591. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2592. fi
  2593. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  2594. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  2595. case $ac_cv_c_bigendian in
  2596. yes)
  2597. { { echo "$as_me:$LINENO: error: bigendian is not supported... stopping" >&5
  2598. echo "$as_me: error: bigendian is not supported... stopping" >&2;}
  2599. { (exit 1); exit 1; }; } ;;
  2600. no)
  2601. ;;
  2602. *)
  2603. { echo "$as_me:$LINENO: WARNING: unable to determine endianess, only little endian is supported" >&5
  2604. echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  2605. ;;
  2606. esac
  2607. echo "$as_me:$LINENO: checking whether pointers can be stored in ints (old code)" >&5
  2608. echo $ECHO_N "checking whether pointers can be stored in ints (old code)... $ECHO_C" >&6
  2609. pointers_fit_in_ints="no"
  2610. cat >conftest.$ac_ext <<_ACEOF
  2611. /* confdefs.h. */
  2612. _ACEOF
  2613. cat confdefs.h >>conftest.$ac_ext
  2614. cat >>conftest.$ac_ext <<_ACEOF
  2615. /* end confdefs.h. */
  2616. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
  2617. int
  2618. main ()
  2619. {
  2620. ;
  2621. return 0;
  2622. }
  2623. _ACEOF
  2624. rm -f conftest.$ac_objext
  2625. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2626. (eval $ac_compile) 2>conftest.er1
  2627. ac_status=$?
  2628. grep -v '^ *+' conftest.er1 >conftest.err
  2629. rm -f conftest.er1
  2630. cat conftest.err >&5
  2631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. (exit $ac_status); } &&
  2633. { ac_try='test -z "$ac_c_werror_flag"
  2634. || test ! -s conftest.err'
  2635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2636. (eval $ac_try) 2>&5
  2637. ac_status=$?
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); }; } &&
  2640. { ac_try='test -s conftest.$ac_objext'
  2641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2642. (eval $ac_try) 2>&5
  2643. ac_status=$?
  2644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2645. (exit $ac_status); }; }; then
  2646. pointers_fit_in_ints="yes"
  2647. else
  2648. echo "$as_me: failed program was:" >&5
  2649. sed 's/^/| /' conftest.$ac_ext >&5
  2650. fi
  2651. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2652. if test "$pointers_fit_in_ints" = "no" ; then
  2653. CFLAGS="$CFLAGS -m32"
  2654. LDFLAGS="$LDFLAGS -m32"
  2655. cat >conftest.$ac_ext <<_ACEOF
  2656. /* confdefs.h. */
  2657. _ACEOF
  2658. cat confdefs.h >>conftest.$ac_ext
  2659. cat >>conftest.$ac_ext <<_ACEOF
  2660. /* end confdefs.h. */
  2661. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];
  2662. int
  2663. main ()
  2664. {
  2665. ;
  2666. return 0;
  2667. }
  2668. _ACEOF
  2669. rm -f conftest.$ac_objext
  2670. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2671. (eval $ac_compile) 2>conftest.er1
  2672. ac_status=$?
  2673. grep -v '^ *+' conftest.er1 >conftest.err
  2674. rm -f conftest.er1
  2675. cat conftest.err >&5
  2676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2677. (exit $ac_status); } &&
  2678. { ac_try='test -z "$ac_c_werror_flag"
  2679. || test ! -s conftest.err'
  2680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2681. (eval $ac_try) 2>&5
  2682. ac_status=$?
  2683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2684. (exit $ac_status); }; } &&
  2685. { ac_try='test -s conftest.$ac_objext'
  2686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2687. (eval $ac_try) 2>&5
  2688. ac_status=$?
  2689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690. (exit $ac_status); }; }; then
  2691. pointers_fit_in_ints="yes (with -m32)"
  2692. else
  2693. echo "$as_me: failed program was:" >&5
  2694. sed 's/^/| /' conftest.$ac_ext >&5
  2695. fi
  2696. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2697. fi
  2698. echo "$as_me:$LINENO: result: $pointers_fit_in_ints" >&5
  2699. echo "${ECHO_T}$pointers_fit_in_ints" >&6
  2700. if test "$pointers_fit_in_ints" = "no" ; then
  2701. { { echo "$as_me:$LINENO: error: pointers cannot be stored in ints, required for old code... stopping" >&5
  2702. echo "$as_me: error: pointers cannot be stored in ints, required for old code... stopping" >&2;}
  2703. { (exit 1); exit 1; }; }
  2704. fi
  2705. echo "$as_me:$LINENO: checking whether $CC supports -Wno-unused-parameter" >&5
  2706. echo $ECHO_N "checking whether $CC supports -Wno-unused-parameter... $ECHO_C" >&6
  2707. OLD_CFLAGS="$CFLAGS"
  2708. CFLAGS="$CFLAGS -Wno-unused-parameter"
  2709. cat >conftest.$ac_ext <<_ACEOF
  2710. int foo;
  2711. _ACEOF
  2712. rm -f conftest.$ac_objext
  2713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2714. (eval $ac_compile) 2>conftest.er1
  2715. ac_status=$?
  2716. grep -v '^ *+' conftest.er1 >conftest.err
  2717. rm -f conftest.er1
  2718. cat conftest.err >&5
  2719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2720. (exit $ac_status); } &&
  2721. { ac_try='test -z "$ac_c_werror_flag"
  2722. || test ! -s conftest.err'
  2723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2724. (eval $ac_try) 2>&5
  2725. ac_status=$?
  2726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2727. (exit $ac_status); }; } &&
  2728. { ac_try='test -s conftest.$ac_objext'
  2729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2730. (eval $ac_try) 2>&5
  2731. ac_status=$?
  2732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2733. (exit $ac_status); }; }; then
  2734. echo "$as_me:$LINENO: result: yes" >&5
  2735. echo "${ECHO_T}yes" >&6
  2736. else
  2737. echo "$as_me: failed program was:" >&5
  2738. sed 's/^/| /' conftest.$ac_ext >&5
  2739. echo "$as_me:$LINENO: result: no" >&5
  2740. echo "${ECHO_T}no" >&6
  2741. CFLAGS="$OLD_CFLAGS"
  2742. fi
  2743. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2744. echo "$as_me:$LINENO: checking whether $CC supports -Wno-pointer-sign" >&5
  2745. echo $ECHO_N "checking whether $CC supports -Wno-pointer-sign... $ECHO_C" >&6
  2746. OLD_CFLAGS="$CFLAGS"
  2747. CFLAGS="$CFLAGS -Wno-pointer-sign"
  2748. cat >conftest.$ac_ext <<_ACEOF
  2749. int foo;
  2750. _ACEOF
  2751. rm -f conftest.$ac_objext
  2752. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2753. (eval $ac_compile) 2>conftest.er1
  2754. ac_status=$?
  2755. grep -v '^ *+' conftest.er1 >conftest.err
  2756. rm -f conftest.er1
  2757. cat conftest.err >&5
  2758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2759. (exit $ac_status); } &&
  2760. { ac_try='test -z "$ac_c_werror_flag"
  2761. || test ! -s conftest.err'
  2762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2763. (eval $ac_try) 2>&5
  2764. ac_status=$?
  2765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2766. (exit $ac_status); }; } &&
  2767. { ac_try='test -s conftest.$ac_objext'
  2768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2769. (eval $ac_try) 2>&5
  2770. ac_status=$?
  2771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2772. (exit $ac_status); }; }; then
  2773. echo "$as_me:$LINENO: result: yes" >&5
  2774. echo "${ECHO_T}yes" >&6
  2775. else
  2776. echo "$as_me: failed program was:" >&5
  2777. sed 's/^/| /' conftest.$ac_ext >&5
  2778. echo "$as_me:$LINENO: result: no" >&5
  2779. echo "${ECHO_T}no" >&6
  2780. CFLAGS="$OLD_CFLAGS"
  2781. fi
  2782. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2783. echo "$as_me:$LINENO: checking whether $CC supports -Wno-switch" >&5
  2784. echo $ECHO_N "checking whether $CC supports -Wno-switch... $ECHO_C" >&6
  2785. OLD_CFLAGS="$CFLAGS"
  2786. CFLAGS="$CFLAGS -Wno-switch"
  2787. cat >conftest.$ac_ext <<_ACEOF
  2788. int foo;
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2792. (eval $ac_compile) 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } &&
  2799. { ac_try='test -z "$ac_c_werror_flag"
  2800. || test ! -s conftest.err'
  2801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2802. (eval $ac_try) 2>&5
  2803. ac_status=$?
  2804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2805. (exit $ac_status); }; } &&
  2806. { ac_try='test -s conftest.$ac_objext'
  2807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2808. (eval $ac_try) 2>&5
  2809. ac_status=$?
  2810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); }; }; then
  2812. echo "$as_me:$LINENO: result: yes" >&5
  2813. echo "${ECHO_T}yes" >&6
  2814. else
  2815. echo "$as_me: failed program was:" >&5
  2816. sed 's/^/| /' conftest.$ac_ext >&5
  2817. echo "$as_me:$LINENO: result: no" >&5
  2818. echo "${ECHO_T}no" >&6
  2819. CFLAGS="$OLD_CFLAGS"
  2820. fi
  2821. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2822. ###############################################################################
  2823. # Check for libraries and header files.
  2824. #
  2825. #
  2826. # Memory manager
  2827. #
  2828. case $enableval in
  2829. "no")
  2830. CFLAGS="$CFLAGS -DNO_MEMMGR"
  2831. ;;
  2832. "builtin")
  2833. # enabled by default
  2834. ;;
  2835. "memwatch")
  2836. CFLAGS="$CFLAGS -DMEMWATCH"
  2837. echo "$as_me:$LINENO: checking for egrep" >&5
  2838. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2839. if test "${ac_cv_prog_egrep+set}" = set; then
  2840. echo $ECHO_N "(cached) $ECHO_C" >&6
  2841. else
  2842. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2843. then ac_cv_prog_egrep='grep -E'
  2844. else ac_cv_prog_egrep='egrep'
  2845. fi
  2846. fi
  2847. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2848. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2849. EGREP=$ac_cv_prog_egrep
  2850. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2851. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2852. if test "${ac_cv_header_stdc+set}" = set; then
  2853. echo $ECHO_N "(cached) $ECHO_C" >&6
  2854. else
  2855. cat >conftest.$ac_ext <<_ACEOF
  2856. /* confdefs.h. */
  2857. _ACEOF
  2858. cat confdefs.h >>conftest.$ac_ext
  2859. cat >>conftest.$ac_ext <<_ACEOF
  2860. /* end confdefs.h. */
  2861. #include <stdlib.h>
  2862. #include <stdarg.h>
  2863. #include <string.h>
  2864. #include <float.h>
  2865. int
  2866. main ()
  2867. {
  2868. ;
  2869. return 0;
  2870. }
  2871. _ACEOF
  2872. rm -f conftest.$ac_objext
  2873. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2874. (eval $ac_compile) 2>conftest.er1
  2875. ac_status=$?
  2876. grep -v '^ *+' conftest.er1 >conftest.err
  2877. rm -f conftest.er1
  2878. cat conftest.err >&5
  2879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2880. (exit $ac_status); } &&
  2881. { ac_try='test -z "$ac_c_werror_flag"
  2882. || test ! -s conftest.err'
  2883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2884. (eval $ac_try) 2>&5
  2885. ac_status=$?
  2886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887. (exit $ac_status); }; } &&
  2888. { ac_try='test -s conftest.$ac_objext'
  2889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2890. (eval $ac_try) 2>&5
  2891. ac_status=$?
  2892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893. (exit $ac_status); }; }; then
  2894. ac_cv_header_stdc=yes
  2895. else
  2896. echo "$as_me: failed program was:" >&5
  2897. sed 's/^/| /' conftest.$ac_ext >&5
  2898. ac_cv_header_stdc=no
  2899. fi
  2900. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2901. if test $ac_cv_header_stdc = yes; then
  2902. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2903. cat >conftest.$ac_ext <<_ACEOF
  2904. /* confdefs.h. */
  2905. _ACEOF
  2906. cat confdefs.h >>conftest.$ac_ext
  2907. cat >>conftest.$ac_ext <<_ACEOF
  2908. /* end confdefs.h. */
  2909. #include <string.h>
  2910. _ACEOF
  2911. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2912. $EGREP "memchr" >/dev/null 2>&1; then
  2913. :
  2914. else
  2915. ac_cv_header_stdc=no
  2916. fi
  2917. rm -f conftest*
  2918. fi
  2919. if test $ac_cv_header_stdc = yes; then
  2920. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2921. cat >conftest.$ac_ext <<_ACEOF
  2922. /* confdefs.h. */
  2923. _ACEOF
  2924. cat confdefs.h >>conftest.$ac_ext
  2925. cat >>conftest.$ac_ext <<_ACEOF
  2926. /* end confdefs.h. */
  2927. #include <stdlib.h>
  2928. _ACEOF
  2929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2930. $EGREP "free" >/dev/null 2>&1; then
  2931. :
  2932. else
  2933. ac_cv_header_stdc=no
  2934. fi
  2935. rm -f conftest*
  2936. fi
  2937. if test $ac_cv_header_stdc = yes; then
  2938. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2939. if test "$cross_compiling" = yes; then
  2940. :
  2941. else
  2942. cat >conftest.$ac_ext <<_ACEOF
  2943. /* confdefs.h. */
  2944. _ACEOF
  2945. cat confdefs.h >>conftest.$ac_ext
  2946. cat >>conftest.$ac_ext <<_ACEOF
  2947. /* end confdefs.h. */
  2948. #include <ctype.h>
  2949. #if ((' ' & 0x0FF) == 0x020)
  2950. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2951. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2952. #else
  2953. # define ISLOWER(c) \
  2954. (('a' <= (c) && (c) <= 'i') \
  2955. || ('j' <= (c) && (c) <= 'r') \
  2956. || ('s' <= (c) && (c) <= 'z'))
  2957. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2958. #endif
  2959. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2960. int
  2961. main ()
  2962. {
  2963. int i;
  2964. for (i = 0; i < 256; i++)
  2965. if (XOR (islower (i), ISLOWER (i))
  2966. || toupper (i) != TOUPPER (i))
  2967. exit(2);
  2968. exit (0);
  2969. }
  2970. _ACEOF
  2971. rm -f conftest$ac_exeext
  2972. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2973. (eval $ac_link) 2>&5
  2974. ac_status=$?
  2975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2976. (exit $ac_status); } && { ac_try='./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. :
  2983. else
  2984. echo "$as_me: program exited with status $ac_status" >&5
  2985. echo "$as_me: failed program was:" >&5
  2986. sed 's/^/| /' conftest.$ac_ext >&5
  2987. ( exit $ac_status )
  2988. ac_cv_header_stdc=no
  2989. fi
  2990. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2991. fi
  2992. fi
  2993. fi
  2994. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2995. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2996. if test $ac_cv_header_stdc = yes; then
  2997. cat >>confdefs.h <<\_ACEOF
  2998. #define STDC_HEADERS 1
  2999. _ACEOF
  3000. fi
  3001. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3002. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3003. inttypes.h stdint.h unistd.h
  3004. do
  3005. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3006. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3007. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3008. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3009. echo $ECHO_N "(cached) $ECHO_C" >&6
  3010. else
  3011. cat >conftest.$ac_ext <<_ACEOF
  3012. /* confdefs.h. */
  3013. _ACEOF
  3014. cat confdefs.h >>conftest.$ac_ext
  3015. cat >>conftest.$ac_ext <<_ACEOF
  3016. /* end confdefs.h. */
  3017. $ac_includes_default
  3018. #include <$ac_header>
  3019. _ACEOF
  3020. rm -f conftest.$ac_objext
  3021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3022. (eval $ac_compile) 2>conftest.er1
  3023. ac_status=$?
  3024. grep -v '^ *+' conftest.er1 >conftest.err
  3025. rm -f conftest.er1
  3026. cat conftest.err >&5
  3027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3028. (exit $ac_status); } &&
  3029. { ac_try='test -z "$ac_c_werror_flag"
  3030. || test ! -s conftest.err'
  3031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3032. (eval $ac_try) 2>&5
  3033. ac_status=$?
  3034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3035. (exit $ac_status); }; } &&
  3036. { ac_try='test -s conftest.$ac_objext'
  3037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3038. (eval $ac_try) 2>&5
  3039. ac_status=$?
  3040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3041. (exit $ac_status); }; }; then
  3042. eval "$as_ac_Header=yes"
  3043. else
  3044. echo "$as_me: failed program was:" >&5
  3045. sed 's/^/| /' conftest.$ac_ext >&5
  3046. eval "$as_ac_Header=no"
  3047. fi
  3048. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3049. fi
  3050. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3051. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3052. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3053. cat >>confdefs.h <<_ACEOF
  3054. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3055. _ACEOF
  3056. fi
  3057. done
  3058. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3059. echo "$as_me:$LINENO: checking for memwatch.h" >&5
  3060. echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6
  3061. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3062. echo $ECHO_N "(cached) $ECHO_C" >&6
  3063. fi
  3064. echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5
  3065. echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6
  3066. else
  3067. # Is the header compilable?
  3068. echo "$as_me:$LINENO: checking memwatch.h usability" >&5
  3069. echo $ECHO_N "checking memwatch.h usability... $ECHO_C" >&6
  3070. cat >conftest.$ac_ext <<_ACEOF
  3071. /* confdefs.h. */
  3072. _ACEOF
  3073. cat confdefs.h >>conftest.$ac_ext
  3074. cat >>conftest.$ac_ext <<_ACEOF
  3075. /* end confdefs.h. */
  3076. $ac_includes_default
  3077. #include <memwatch.h>
  3078. _ACEOF
  3079. rm -f conftest.$ac_objext
  3080. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3081. (eval $ac_compile) 2>conftest.er1
  3082. ac_status=$?
  3083. grep -v '^ *+' conftest.er1 >conftest.err
  3084. rm -f conftest.er1
  3085. cat conftest.err >&5
  3086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3087. (exit $ac_status); } &&
  3088. { ac_try='test -z "$ac_c_werror_flag"
  3089. || test ! -s conftest.err'
  3090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3091. (eval $ac_try) 2>&5
  3092. ac_status=$?
  3093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3094. (exit $ac_status); }; } &&
  3095. { ac_try='test -s conftest.$ac_objext'
  3096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3097. (eval $ac_try) 2>&5
  3098. ac_status=$?
  3099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3100. (exit $ac_status); }; }; then
  3101. ac_header_compiler=yes
  3102. else
  3103. echo "$as_me: failed program was:" >&5
  3104. sed 's/^/| /' conftest.$ac_ext >&5
  3105. ac_header_compiler=no
  3106. fi
  3107. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3108. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3109. echo "${ECHO_T}$ac_header_compiler" >&6
  3110. # Is the header present?
  3111. echo "$as_me:$LINENO: checking memwatch.h presence" >&5
  3112. echo $ECHO_N "checking memwatch.h presence... $ECHO_C" >&6
  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 <memwatch.h>
  3120. _ACEOF
  3121. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3122. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3123. ac_status=$?
  3124. grep -v '^ *+' conftest.er1 >conftest.err
  3125. rm -f conftest.er1
  3126. cat conftest.err >&5
  3127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3128. (exit $ac_status); } >/dev/null; then
  3129. if test -s conftest.err; then
  3130. ac_cpp_err=$ac_c_preproc_warn_flag
  3131. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3132. else
  3133. ac_cpp_err=
  3134. fi
  3135. else
  3136. ac_cpp_err=yes
  3137. fi
  3138. if test -z "$ac_cpp_err"; then
  3139. ac_header_preproc=yes
  3140. else
  3141. echo "$as_me: failed program was:" >&5
  3142. sed 's/^/| /' conftest.$ac_ext >&5
  3143. ac_header_preproc=no
  3144. fi
  3145. rm -f conftest.err conftest.$ac_ext
  3146. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3147. echo "${ECHO_T}$ac_header_preproc" >&6
  3148. # So? What about this header?
  3149. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3150. yes:no: )
  3151. { echo "$as_me:$LINENO: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3152. echo "$as_me: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3153. { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the compiler's result" >&5
  3154. echo "$as_me: WARNING: memwatch.h: proceeding with the compiler's result" >&2;}
  3155. ac_header_preproc=yes
  3156. ;;
  3157. no:yes:* )
  3158. { echo "$as_me:$LINENO: WARNING: memwatch.h: present but cannot be compiled" >&5
  3159. echo "$as_me: WARNING: memwatch.h: present but cannot be compiled" >&2;}
  3160. { echo "$as_me:$LINENO: WARNING: memwatch.h: check for missing prerequisite headers?" >&5
  3161. echo "$as_me: WARNING: memwatch.h: check for missing prerequisite headers?" >&2;}
  3162. { echo "$as_me:$LINENO: WARNING: memwatch.h: see the Autoconf documentation" >&5
  3163. echo "$as_me: WARNING: memwatch.h: see the Autoconf documentation" >&2;}
  3164. { echo "$as_me:$LINENO: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&5
  3165. echo "$as_me: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3166. { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the preprocessor's result" >&5
  3167. echo "$as_me: WARNING: memwatch.h: proceeding with the preprocessor's result" >&2;}
  3168. { echo "$as_me:$LINENO: WARNING: memwatch.h: in the future, the compiler will take precedence" >&5
  3169. echo "$as_me: WARNING: memwatch.h: in the future, the compiler will take precedence" >&2;}
  3170. (
  3171. cat <<\_ASBOX
  3172. ## ------------------------------------------ ##
  3173. ## Report this to the AC_PACKAGE_NAME lists. ##
  3174. ## ------------------------------------------ ##
  3175. _ASBOX
  3176. ) |
  3177. sed "s/^/$as_me: WARNING: /" >&2
  3178. ;;
  3179. esac
  3180. echo "$as_me:$LINENO: checking for memwatch.h" >&5
  3181. echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6
  3182. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3183. echo $ECHO_N "(cached) $ECHO_C" >&6
  3184. else
  3185. ac_cv_header_memwatch_h=$ac_header_preproc
  3186. fi
  3187. echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5
  3188. echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6
  3189. fi
  3190. if test $ac_cv_header_memwatch_h = yes; then
  3191. :
  3192. else
  3193. { { echo "$as_me:$LINENO: error: memwatch header not found... stopping" >&5
  3194. echo "$as_me: error: memwatch header not found... stopping" >&2;}
  3195. { (exit 1); exit 1; }; }
  3196. fi
  3197. ;;
  3198. "dmalloc")
  3199. CFLAGS="$CFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK"
  3200. LIBS="$LIBS -ldmalloc"
  3201. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3202. echo "$as_me:$LINENO: checking for dmalloc.h" >&5
  3203. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
  3204. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3205. echo $ECHO_N "(cached) $ECHO_C" >&6
  3206. fi
  3207. echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
  3208. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
  3209. else
  3210. # Is the header compilable?
  3211. echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
  3212. echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6
  3213. cat >conftest.$ac_ext <<_ACEOF
  3214. /* confdefs.h. */
  3215. _ACEOF
  3216. cat confdefs.h >>conftest.$ac_ext
  3217. cat >>conftest.$ac_ext <<_ACEOF
  3218. /* end confdefs.h. */
  3219. $ac_includes_default
  3220. #include <dmalloc.h>
  3221. _ACEOF
  3222. rm -f conftest.$ac_objext
  3223. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3224. (eval $ac_compile) 2>conftest.er1
  3225. ac_status=$?
  3226. grep -v '^ *+' conftest.er1 >conftest.err
  3227. rm -f conftest.er1
  3228. cat conftest.err >&5
  3229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3230. (exit $ac_status); } &&
  3231. { ac_try='test -z "$ac_c_werror_flag"
  3232. || test ! -s conftest.err'
  3233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3234. (eval $ac_try) 2>&5
  3235. ac_status=$?
  3236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3237. (exit $ac_status); }; } &&
  3238. { ac_try='test -s conftest.$ac_objext'
  3239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3240. (eval $ac_try) 2>&5
  3241. ac_status=$?
  3242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3243. (exit $ac_status); }; }; then
  3244. ac_header_compiler=yes
  3245. else
  3246. echo "$as_me: failed program was:" >&5
  3247. sed 's/^/| /' conftest.$ac_ext >&5
  3248. ac_header_compiler=no
  3249. fi
  3250. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3251. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3252. echo "${ECHO_T}$ac_header_compiler" >&6
  3253. # Is the header present?
  3254. echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
  3255. echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6
  3256. cat >conftest.$ac_ext <<_ACEOF
  3257. /* confdefs.h. */
  3258. _ACEOF
  3259. cat confdefs.h >>conftest.$ac_ext
  3260. cat >>conftest.$ac_ext <<_ACEOF
  3261. /* end confdefs.h. */
  3262. #include <dmalloc.h>
  3263. _ACEOF
  3264. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3265. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3266. ac_status=$?
  3267. grep -v '^ *+' conftest.er1 >conftest.err
  3268. rm -f conftest.er1
  3269. cat conftest.err >&5
  3270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3271. (exit $ac_status); } >/dev/null; then
  3272. if test -s conftest.err; then
  3273. ac_cpp_err=$ac_c_preproc_warn_flag
  3274. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3275. else
  3276. ac_cpp_err=
  3277. fi
  3278. else
  3279. ac_cpp_err=yes
  3280. fi
  3281. if test -z "$ac_cpp_err"; then
  3282. ac_header_preproc=yes
  3283. else
  3284. echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. ac_header_preproc=no
  3287. fi
  3288. rm -f conftest.err conftest.$ac_ext
  3289. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3290. echo "${ECHO_T}$ac_header_preproc" >&6
  3291. # So? What about this header?
  3292. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3293. yes:no: )
  3294. { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3295. echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3296. { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
  3297. echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
  3298. ac_header_preproc=yes
  3299. ;;
  3300. no:yes:* )
  3301. { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5
  3302. echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;}
  3303. { echo "$as_me:$LINENO: WARNING: dmalloc.h: check for missing prerequisite headers?" >&5
  3304. echo "$as_me: WARNING: dmalloc.h: check for missing prerequisite headers?" >&2;}
  3305. { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5
  3306. echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;}
  3307. { echo "$as_me:$LINENO: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&5
  3308. echo "$as_me: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3309. { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5
  3310. echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;}
  3311. { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5
  3312. echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;}
  3313. (
  3314. cat <<\_ASBOX
  3315. ## ------------------------------------------ ##
  3316. ## Report this to the AC_PACKAGE_NAME lists. ##
  3317. ## ------------------------------------------ ##
  3318. _ASBOX
  3319. ) |
  3320. sed "s/^/$as_me: WARNING: /" >&2
  3321. ;;
  3322. esac
  3323. echo "$as_me:$LINENO: checking for dmalloc.h" >&5
  3324. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
  3325. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3326. echo $ECHO_N "(cached) $ECHO_C" >&6
  3327. else
  3328. ac_cv_header_dmalloc_h=$ac_header_preproc
  3329. fi
  3330. echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
  3331. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
  3332. fi
  3333. if test $ac_cv_header_dmalloc_h = yes; then
  3334. :
  3335. else
  3336. { { echo "$as_me:$LINENO: error: dmalloc header not found... stopping" >&5
  3337. echo "$as_me: error: dmalloc header not found... stopping" >&2;}
  3338. { (exit 1); exit 1; }; }
  3339. fi
  3340. ;;
  3341. "gcollect")
  3342. CFLAGS="$CFLAGS -DGCOLLECT"
  3343. LIBS="$LIBS -lgc"
  3344. if test "${ac_cv_header_gc_h+set}" = set; then
  3345. echo "$as_me:$LINENO: checking for gc.h" >&5
  3346. echo $ECHO_N "checking for gc.h... $ECHO_C" >&6
  3347. if test "${ac_cv_header_gc_h+set}" = set; then
  3348. echo $ECHO_N "(cached) $ECHO_C" >&6
  3349. fi
  3350. echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
  3351. echo "${ECHO_T}$ac_cv_header_gc_h" >&6
  3352. else
  3353. # Is the header compilable?
  3354. echo "$as_me:$LINENO: checking gc.h usability" >&5
  3355. echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6
  3356. cat >conftest.$ac_ext <<_ACEOF
  3357. /* confdefs.h. */
  3358. _ACEOF
  3359. cat confdefs.h >>conftest.$ac_ext
  3360. cat >>conftest.$ac_ext <<_ACEOF
  3361. /* end confdefs.h. */
  3362. $ac_includes_default
  3363. #include <gc.h>
  3364. _ACEOF
  3365. rm -f conftest.$ac_objext
  3366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3367. (eval $ac_compile) 2>conftest.er1
  3368. ac_status=$?
  3369. grep -v '^ *+' conftest.er1 >conftest.err
  3370. rm -f conftest.er1
  3371. cat conftest.err >&5
  3372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3373. (exit $ac_status); } &&
  3374. { ac_try='test -z "$ac_c_werror_flag"
  3375. || test ! -s conftest.err'
  3376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3377. (eval $ac_try) 2>&5
  3378. ac_status=$?
  3379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3380. (exit $ac_status); }; } &&
  3381. { ac_try='test -s conftest.$ac_objext'
  3382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3383. (eval $ac_try) 2>&5
  3384. ac_status=$?
  3385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386. (exit $ac_status); }; }; then
  3387. ac_header_compiler=yes
  3388. else
  3389. echo "$as_me: failed program was:" >&5
  3390. sed 's/^/| /' conftest.$ac_ext >&5
  3391. ac_header_compiler=no
  3392. fi
  3393. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3394. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3395. echo "${ECHO_T}$ac_header_compiler" >&6
  3396. # Is the header present?
  3397. echo "$as_me:$LINENO: checking gc.h presence" >&5
  3398. echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6
  3399. cat >conftest.$ac_ext <<_ACEOF
  3400. /* confdefs.h. */
  3401. _ACEOF
  3402. cat confdefs.h >>conftest.$ac_ext
  3403. cat >>conftest.$ac_ext <<_ACEOF
  3404. /* end confdefs.h. */
  3405. #include <gc.h>
  3406. _ACEOF
  3407. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3408. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3409. ac_status=$?
  3410. grep -v '^ *+' conftest.er1 >conftest.err
  3411. rm -f conftest.er1
  3412. cat conftest.err >&5
  3413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3414. (exit $ac_status); } >/dev/null; then
  3415. if test -s conftest.err; then
  3416. ac_cpp_err=$ac_c_preproc_warn_flag
  3417. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3418. else
  3419. ac_cpp_err=
  3420. fi
  3421. else
  3422. ac_cpp_err=yes
  3423. fi
  3424. if test -z "$ac_cpp_err"; then
  3425. ac_header_preproc=yes
  3426. else
  3427. echo "$as_me: failed program was:" >&5
  3428. sed 's/^/| /' conftest.$ac_ext >&5
  3429. ac_header_preproc=no
  3430. fi
  3431. rm -f conftest.err conftest.$ac_ext
  3432. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3433. echo "${ECHO_T}$ac_header_preproc" >&6
  3434. # So? What about this header?
  3435. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3436. yes:no: )
  3437. { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3438. echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3439. { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5
  3440. echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;}
  3441. ac_header_preproc=yes
  3442. ;;
  3443. no:yes:* )
  3444. { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5
  3445. echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;}
  3446. { echo "$as_me:$LINENO: WARNING: gc.h: check for missing prerequisite headers?" >&5
  3447. echo "$as_me: WARNING: gc.h: check for missing prerequisite headers?" >&2;}
  3448. { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5
  3449. echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;}
  3450. { echo "$as_me:$LINENO: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&5
  3451. echo "$as_me: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3452. { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5
  3453. echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;}
  3454. { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5
  3455. echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;}
  3456. (
  3457. cat <<\_ASBOX
  3458. ## ------------------------------------------ ##
  3459. ## Report this to the AC_PACKAGE_NAME lists. ##
  3460. ## ------------------------------------------ ##
  3461. _ASBOX
  3462. ) |
  3463. sed "s/^/$as_me: WARNING: /" >&2
  3464. ;;
  3465. esac
  3466. echo "$as_me:$LINENO: checking for gc.h" >&5
  3467. echo $ECHO_N "checking for gc.h... $ECHO_C" >&6
  3468. if test "${ac_cv_header_gc_h+set}" = set; then
  3469. echo $ECHO_N "(cached) $ECHO_C" >&6
  3470. else
  3471. ac_cv_header_gc_h=$ac_header_preproc
  3472. fi
  3473. echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
  3474. echo "${ECHO_T}$ac_cv_header_gc_h" >&6
  3475. fi
  3476. if test $ac_cv_header_gc_h = yes; then
  3477. :
  3478. else
  3479. { { echo "$as_me:$LINENO: error: gcollect header not found... stopping" >&5
  3480. echo "$as_me: error: gcollect header not found... stopping" >&2;}
  3481. { (exit 1); exit 1; }; }
  3482. fi
  3483. ;;
  3484. "bcheck")
  3485. CFLAGS="$CFLAGS -DBCHECK"
  3486. ;;
  3487. esac
  3488. #
  3489. # Mapregsql
  3490. #
  3491. if test "$enable_mapregsql" = "yes" ; then
  3492. CFLAGS="$CFLAGS -DMAPREGSQL"
  3493. fi
  3494. #
  3495. # Debug
  3496. #
  3497. if test "$enable_debug" = "yes" ; then
  3498. CFLAGS="$CFLAGS -DDEBUG"
  3499. fi
  3500. #
  3501. # MySQL library (optional)
  3502. #
  3503. MYSQL_VERSION=""
  3504. MYSQL_CFLAGS=""
  3505. MYSQL_LIBS=""
  3506. if test "$want_mysql" = "no" ; then
  3507. { echo "$as_me:$LINENO: ignoring MySQL (optional)" >&5
  3508. echo "$as_me: ignoring MySQL (optional)" >&6;}
  3509. else
  3510. if test -z "$MYSQL_CONFIG_HOME"; then
  3511. # Extract the first word of "mysql_config", so it can be a program name with args.
  3512. set dummy mysql_config; ac_word=$2
  3513. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3514. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3515. if test "${ac_cv_path_MYSQL_CONFIG_HOME+set}" = set; then
  3516. echo $ECHO_N "(cached) $ECHO_C" >&6
  3517. else
  3518. case $MYSQL_CONFIG_HOME in
  3519. [\\/]* | ?:[\\/]*)
  3520. ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  3521. ;;
  3522. *)
  3523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3524. for as_dir in $PATH
  3525. do
  3526. IFS=$as_save_IFS
  3527. test -z "$as_dir" && as_dir=.
  3528. for ac_exec_ext in '' $ac_executable_extensions; do
  3529. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3530. ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  3531. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3532. break 2
  3533. fi
  3534. done
  3535. done
  3536. test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  3537. ;;
  3538. esac
  3539. fi
  3540. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  3541. if test -n "$MYSQL_CONFIG_HOME"; then
  3542. echo "$as_me:$LINENO: result: $MYSQL_CONFIG_HOME" >&5
  3543. echo "${ECHO_T}$MYSQL_CONFIG_HOME" >&6
  3544. else
  3545. echo "$as_me:$LINENO: result: no" >&5
  3546. echo "${ECHO_T}no" >&6
  3547. fi
  3548. fi
  3549. echo "$as_me:$LINENO: checking MySQL library (optional)" >&5
  3550. echo $ECHO_N "checking MySQL library (optional)... $ECHO_C" >&6
  3551. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  3552. HAVE_MYSQL="yes"
  3553. MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  3554. MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`"
  3555. MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  3556. echo "$as_me:$LINENO: result: yes ($MYSQL_VERSION)" >&5
  3557. echo "${ECHO_T}yes ($MYSQL_VERSION)" >&6
  3558. if test -n "`$MYSQL_CONFIG_HOME --cflags | grep -i '\-m64'`"; then
  3559. { { echo "$as_me:$LINENO: error: $MYSQL_CONFIG_HOME reported a 64 bit MySQL, please specify a 32bit version with --with-mysql=<path to mysql_config>... stopping" >&5
  3560. echo "$as_me: error: $MYSQL_CONFIG_HOME reported a 64 bit MySQL, please specify a 32bit version with --with-mysql=<path to mysql_config>... stopping" >&2;}
  3561. { (exit 1); exit 1; }; }
  3562. fi
  3563. else
  3564. echo "$as_me:$LINENO: result: no" >&5
  3565. echo "${ECHO_T}no" >&6
  3566. if test "$require_mysql" = "yes" ; then
  3567. { { echo "$as_me:$LINENO: error: MySQL not found (requested)" >&5
  3568. echo "$as_me: error: MySQL not found (requested)" >&2;}
  3569. { (exit 1); exit 1; }; }
  3570. else
  3571. { echo "$as_me:$LINENO: disabling MySQL (optional)" >&5
  3572. echo "$as_me: disabling MySQL (optional)" >&6;}
  3573. fi
  3574. fi
  3575. fi
  3576. #
  3577. # PCRE library (optional)
  3578. #
  3579. ##TODO PCRE version
  3580. PCRE_LIBS=""
  3581. PCRE_CFLAGS=""
  3582. if test "$want_pcre" = "no" ; then
  3583. { echo "$as_me:$LINENO: ignoring PCRE (optional)" >&5
  3584. echo "$as_me: ignoring PCRE (optional)" >&6;}
  3585. else
  3586. if test -z "$PCRE_HOME" ; then
  3587. echo "$as_me:$LINENO: checking for pcre_study in -lpcre" >&5
  3588. echo $ECHO_N "checking for pcre_study in -lpcre... $ECHO_C" >&6
  3589. if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then
  3590. echo $ECHO_N "(cached) $ECHO_C" >&6
  3591. else
  3592. ac_check_lib_save_LIBS=$LIBS
  3593. LIBS="-lpcre $LIBS"
  3594. cat >conftest.$ac_ext <<_ACEOF
  3595. /* confdefs.h. */
  3596. _ACEOF
  3597. cat confdefs.h >>conftest.$ac_ext
  3598. cat >>conftest.$ac_ext <<_ACEOF
  3599. /* end confdefs.h. */
  3600. /* Override any gcc2 internal prototype to avoid an error. */
  3601. #ifdef __cplusplus
  3602. extern "C"
  3603. #endif
  3604. /* We use char because int might match the return type of a gcc2
  3605. builtin and then its argument prototype would still apply. */
  3606. char pcre_study ();
  3607. int
  3608. main ()
  3609. {
  3610. pcre_study ();
  3611. ;
  3612. return 0;
  3613. }
  3614. _ACEOF
  3615. rm -f conftest.$ac_objext conftest$ac_exeext
  3616. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3617. (eval $ac_link) 2>conftest.er1
  3618. ac_status=$?
  3619. grep -v '^ *+' conftest.er1 >conftest.err
  3620. rm -f conftest.er1
  3621. cat conftest.err >&5
  3622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3623. (exit $ac_status); } &&
  3624. { ac_try='test -z "$ac_c_werror_flag"
  3625. || test ! -s conftest.err'
  3626. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3627. (eval $ac_try) 2>&5
  3628. ac_status=$?
  3629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3630. (exit $ac_status); }; } &&
  3631. { ac_try='test -s conftest$ac_exeext'
  3632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3633. (eval $ac_try) 2>&5
  3634. ac_status=$?
  3635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3636. (exit $ac_status); }; }; then
  3637. ac_cv_lib_pcre_pcre_study=yes
  3638. else
  3639. echo "$as_me: failed program was:" >&5
  3640. sed 's/^/| /' conftest.$ac_ext >&5
  3641. ac_cv_lib_pcre_pcre_study=no
  3642. fi
  3643. rm -f conftest.err conftest.$ac_objext \
  3644. conftest$ac_exeext conftest.$ac_ext
  3645. LIBS=$ac_check_lib_save_LIBS
  3646. fi
  3647. echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_study" >&5
  3648. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_study" >&6
  3649. if test $ac_cv_lib_pcre_pcre_study = yes; then
  3650. HAVE_PCRE="yes"
  3651. fi
  3652. if test "$HAVE_PCRE" = "yes" ; then
  3653. PCRE_LIBS="-lpcre"
  3654. fi
  3655. else
  3656. PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  3657. PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  3658. echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
  3659. echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
  3660. if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
  3661. echo $ECHO_N "(cached) $ECHO_C" >&6
  3662. else
  3663. ac_check_lib_save_LIBS=$LIBS
  3664. LIBS="-lpcre $LIBS"
  3665. cat >conftest.$ac_ext <<_ACEOF
  3666. /* confdefs.h. */
  3667. _ACEOF
  3668. cat confdefs.h >>conftest.$ac_ext
  3669. cat >>conftest.$ac_ext <<_ACEOF
  3670. /* end confdefs.h. */
  3671. /* Override any gcc2 internal prototype to avoid an error. */
  3672. #ifdef __cplusplus
  3673. extern "C"
  3674. #endif
  3675. /* We use char because int might match the return type of a gcc2
  3676. builtin and then its argument prototype would still apply. */
  3677. char pcre_compile ();
  3678. int
  3679. main ()
  3680. {
  3681. pcre_compile ();
  3682. ;
  3683. return 0;
  3684. }
  3685. _ACEOF
  3686. rm -f conftest.$ac_objext conftest$ac_exeext
  3687. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3688. (eval $ac_link) 2>conftest.er1
  3689. ac_status=$?
  3690. grep -v '^ *+' conftest.er1 >conftest.err
  3691. rm -f conftest.er1
  3692. cat conftest.err >&5
  3693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3694. (exit $ac_status); } &&
  3695. { ac_try='test -z "$ac_c_werror_flag"
  3696. || test ! -s conftest.err'
  3697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3698. (eval $ac_try) 2>&5
  3699. ac_status=$?
  3700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3701. (exit $ac_status); }; } &&
  3702. { ac_try='test -s conftest$ac_exeext'
  3703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3704. (eval $ac_try) 2>&5
  3705. ac_status=$?
  3706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3707. (exit $ac_status); }; }; then
  3708. ac_cv_lib_pcre_pcre_compile=yes
  3709. else
  3710. echo "$as_me: failed program was:" >&5
  3711. sed 's/^/| /' conftest.$ac_ext >&5
  3712. ac_cv_lib_pcre_pcre_compile=no
  3713. fi
  3714. rm -f conftest.err conftest.$ac_objext \
  3715. conftest$ac_exeext conftest.$ac_ext
  3716. LIBS=$ac_check_lib_save_LIBS
  3717. fi
  3718. echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
  3719. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
  3720. if test $ac_cv_lib_pcre_pcre_compile = yes; then
  3721. HAVE_PCRE="yes"
  3722. fi
  3723. CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  3724. LDFLAGS="$PCRE_OLD_LDFLAGS"
  3725. if test "$HAVE_PCRE" = "yes" ; then
  3726. PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  3727. test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  3728. fi
  3729. fi
  3730. echo "$as_me:$LINENO: checking PCRE library (optional)" >&5
  3731. echo $ECHO_N "checking PCRE library (optional)... $ECHO_C" >&6
  3732. if test "$HAVE_PCRE" = "yes" ; then
  3733. echo "$as_me:$LINENO: result: yes" >&5
  3734. echo "${ECHO_T}yes" >&6
  3735. else
  3736. echo "$as_me:$LINENO: result: no" >&5
  3737. echo "${ECHO_T}no" >&6
  3738. if test "$require_pcre" = "yes" ; then
  3739. { { echo "$as_me:$LINENO: error: PCRE not found (requested)" >&5
  3740. echo "$as_me: error: PCRE not found (requested)" >&2;}
  3741. { (exit 1); exit 1; }; }
  3742. else
  3743. { echo "$as_me:$LINENO: disabling PCRE (optional)" >&5
  3744. echo "$as_me: disabling PCRE (optional)" >&6;}
  3745. fi
  3746. fi
  3747. fi
  3748. #
  3749. # zlib library (required)
  3750. #
  3751. if test -n "${ZLIB_HOME}" ; then
  3752. LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  3753. CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  3754. fi
  3755. echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
  3756. echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
  3757. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
  3758. echo $ECHO_N "(cached) $ECHO_C" >&6
  3759. else
  3760. ac_check_lib_save_LIBS=$LIBS
  3761. LIBS="-lz $LIBS"
  3762. cat >conftest.$ac_ext <<_ACEOF
  3763. /* confdefs.h. */
  3764. _ACEOF
  3765. cat confdefs.h >>conftest.$ac_ext
  3766. cat >>conftest.$ac_ext <<_ACEOF
  3767. /* end confdefs.h. */
  3768. /* Override any gcc2 internal prototype to avoid an error. */
  3769. #ifdef __cplusplus
  3770. extern "C"
  3771. #endif
  3772. /* We use char because int might match the return type of a gcc2
  3773. builtin and then its argument prototype would still apply. */
  3774. char inflateEnd ();
  3775. int
  3776. main ()
  3777. {
  3778. inflateEnd ();
  3779. ;
  3780. return 0;
  3781. }
  3782. _ACEOF
  3783. rm -f conftest.$ac_objext conftest$ac_exeext
  3784. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3785. (eval $ac_link) 2>conftest.er1
  3786. ac_status=$?
  3787. grep -v '^ *+' conftest.er1 >conftest.err
  3788. rm -f conftest.er1
  3789. cat conftest.err >&5
  3790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3791. (exit $ac_status); } &&
  3792. { ac_try='test -z "$ac_c_werror_flag"
  3793. || test ! -s conftest.err'
  3794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3795. (eval $ac_try) 2>&5
  3796. ac_status=$?
  3797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3798. (exit $ac_status); }; } &&
  3799. { ac_try='test -s conftest$ac_exeext'
  3800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3801. (eval $ac_try) 2>&5
  3802. ac_status=$?
  3803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3804. (exit $ac_status); }; }; then
  3805. ac_cv_lib_z_inflateEnd=yes
  3806. else
  3807. echo "$as_me: failed program was:" >&5
  3808. sed 's/^/| /' conftest.$ac_ext >&5
  3809. ac_cv_lib_z_inflateEnd=no
  3810. fi
  3811. rm -f conftest.err conftest.$ac_objext \
  3812. conftest$ac_exeext conftest.$ac_ext
  3813. LIBS=$ac_check_lib_save_LIBS
  3814. fi
  3815. echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
  3816. echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
  3817. if test $ac_cv_lib_z_inflateEnd = yes; then
  3818. cat >>confdefs.h <<_ACEOF
  3819. #define HAVE_LIBZ 1
  3820. _ACEOF
  3821. LIBS="-lz $LIBS"
  3822. else
  3823. { { echo "$as_me:$LINENO: error: zlib library not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  3824. echo "$as_me: error: zlib library not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  3825. { (exit 1); exit 1; }; }
  3826. fi
  3827. if test "${ac_cv_header_zlib_h+set}" = set; then
  3828. echo "$as_me:$LINENO: checking for zlib.h" >&5
  3829. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  3830. if test "${ac_cv_header_zlib_h+set}" = set; then
  3831. echo $ECHO_N "(cached) $ECHO_C" >&6
  3832. fi
  3833. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  3834. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  3835. else
  3836. # Is the header compilable?
  3837. echo "$as_me:$LINENO: checking zlib.h usability" >&5
  3838. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
  3839. cat >conftest.$ac_ext <<_ACEOF
  3840. /* confdefs.h. */
  3841. _ACEOF
  3842. cat confdefs.h >>conftest.$ac_ext
  3843. cat >>conftest.$ac_ext <<_ACEOF
  3844. /* end confdefs.h. */
  3845. $ac_includes_default
  3846. #include <zlib.h>
  3847. _ACEOF
  3848. rm -f conftest.$ac_objext
  3849. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3850. (eval $ac_compile) 2>conftest.er1
  3851. ac_status=$?
  3852. grep -v '^ *+' conftest.er1 >conftest.err
  3853. rm -f conftest.er1
  3854. cat conftest.err >&5
  3855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3856. (exit $ac_status); } &&
  3857. { ac_try='test -z "$ac_c_werror_flag"
  3858. || test ! -s conftest.err'
  3859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3860. (eval $ac_try) 2>&5
  3861. ac_status=$?
  3862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3863. (exit $ac_status); }; } &&
  3864. { ac_try='test -s conftest.$ac_objext'
  3865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3866. (eval $ac_try) 2>&5
  3867. ac_status=$?
  3868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3869. (exit $ac_status); }; }; then
  3870. ac_header_compiler=yes
  3871. else
  3872. echo "$as_me: failed program was:" >&5
  3873. sed 's/^/| /' conftest.$ac_ext >&5
  3874. ac_header_compiler=no
  3875. fi
  3876. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3877. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3878. echo "${ECHO_T}$ac_header_compiler" >&6
  3879. # Is the header present?
  3880. echo "$as_me:$LINENO: checking zlib.h presence" >&5
  3881. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
  3882. cat >conftest.$ac_ext <<_ACEOF
  3883. /* confdefs.h. */
  3884. _ACEOF
  3885. cat confdefs.h >>conftest.$ac_ext
  3886. cat >>conftest.$ac_ext <<_ACEOF
  3887. /* end confdefs.h. */
  3888. #include <zlib.h>
  3889. _ACEOF
  3890. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3891. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3892. ac_status=$?
  3893. grep -v '^ *+' conftest.er1 >conftest.err
  3894. rm -f conftest.er1
  3895. cat conftest.err >&5
  3896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3897. (exit $ac_status); } >/dev/null; then
  3898. if test -s conftest.err; then
  3899. ac_cpp_err=$ac_c_preproc_warn_flag
  3900. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3901. else
  3902. ac_cpp_err=
  3903. fi
  3904. else
  3905. ac_cpp_err=yes
  3906. fi
  3907. if test -z "$ac_cpp_err"; then
  3908. ac_header_preproc=yes
  3909. else
  3910. echo "$as_me: failed program was:" >&5
  3911. sed 's/^/| /' conftest.$ac_ext >&5
  3912. ac_header_preproc=no
  3913. fi
  3914. rm -f conftest.err conftest.$ac_ext
  3915. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3916. echo "${ECHO_T}$ac_header_preproc" >&6
  3917. # So? What about this header?
  3918. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3919. yes:no: )
  3920. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3921. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3922. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  3923. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  3924. ac_header_preproc=yes
  3925. ;;
  3926. no:yes:* )
  3927. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  3928. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  3929. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  3930. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  3931. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  3932. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  3933. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  3934. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3935. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  3936. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  3937. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  3938. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  3939. (
  3940. cat <<\_ASBOX
  3941. ## ------------------------------------------ ##
  3942. ## Report this to the AC_PACKAGE_NAME lists. ##
  3943. ## ------------------------------------------ ##
  3944. _ASBOX
  3945. ) |
  3946. sed "s/^/$as_me: WARNING: /" >&2
  3947. ;;
  3948. esac
  3949. echo "$as_me:$LINENO: checking for zlib.h" >&5
  3950. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  3951. if test "${ac_cv_header_zlib_h+set}" = set; then
  3952. echo $ECHO_N "(cached) $ECHO_C" >&6
  3953. else
  3954. ac_cv_header_zlib_h=$ac_header_preproc
  3955. fi
  3956. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  3957. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  3958. fi
  3959. if test $ac_cv_header_zlib_h = yes; then
  3960. :
  3961. else
  3962. { { echo "$as_me:$LINENO: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  3963. echo "$as_me: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  3964. { (exit 1); exit 1; }; }
  3965. fi
  3966. #
  3967. # math library (required)
  3968. #
  3969. echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
  3970. echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
  3971. if test "${ac_cv_lib_m_sqrt+set}" = set; then
  3972. echo $ECHO_N "(cached) $ECHO_C" >&6
  3973. else
  3974. ac_check_lib_save_LIBS=$LIBS
  3975. LIBS="-lm $LIBS"
  3976. cat >conftest.$ac_ext <<_ACEOF
  3977. /* confdefs.h. */
  3978. _ACEOF
  3979. cat confdefs.h >>conftest.$ac_ext
  3980. cat >>conftest.$ac_ext <<_ACEOF
  3981. /* end confdefs.h. */
  3982. /* Override any gcc2 internal prototype to avoid an error. */
  3983. #ifdef __cplusplus
  3984. extern "C"
  3985. #endif
  3986. /* We use char because int might match the return type of a gcc2
  3987. builtin and then its argument prototype would still apply. */
  3988. char sqrt ();
  3989. int
  3990. main ()
  3991. {
  3992. sqrt ();
  3993. ;
  3994. return 0;
  3995. }
  3996. _ACEOF
  3997. rm -f conftest.$ac_objext conftest$ac_exeext
  3998. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3999. (eval $ac_link) 2>conftest.er1
  4000. ac_status=$?
  4001. grep -v '^ *+' conftest.er1 >conftest.err
  4002. rm -f conftest.er1
  4003. cat conftest.err >&5
  4004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4005. (exit $ac_status); } &&
  4006. { ac_try='test -z "$ac_c_werror_flag"
  4007. || test ! -s conftest.err'
  4008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4009. (eval $ac_try) 2>&5
  4010. ac_status=$?
  4011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4012. (exit $ac_status); }; } &&
  4013. { ac_try='test -s conftest$ac_exeext'
  4014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4015. (eval $ac_try) 2>&5
  4016. ac_status=$?
  4017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4018. (exit $ac_status); }; }; then
  4019. ac_cv_lib_m_sqrt=yes
  4020. else
  4021. echo "$as_me: failed program was:" >&5
  4022. sed 's/^/| /' conftest.$ac_ext >&5
  4023. ac_cv_lib_m_sqrt=no
  4024. fi
  4025. rm -f conftest.err conftest.$ac_objext \
  4026. conftest$ac_exeext conftest.$ac_ext
  4027. LIBS=$ac_check_lib_save_LIBS
  4028. fi
  4029. echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
  4030. echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
  4031. if test $ac_cv_lib_m_sqrt = yes; then
  4032. cat >>confdefs.h <<_ACEOF
  4033. #define HAVE_LIBM 1
  4034. _ACEOF
  4035. LIBS="-lm $LIBS"
  4036. else
  4037. { { echo "$as_me:$LINENO: error: math library not found... stopping" >&5
  4038. echo "$as_me: error: math library not found... stopping" >&2;}
  4039. { (exit 1); exit 1; }; }
  4040. fi
  4041. #
  4042. # Host specific stuff
  4043. #
  4044. echo "$as_me:$LINENO: checking host OS" >&5
  4045. echo $ECHO_N "checking host OS... $ECHO_C" >&6
  4046. host_os="`uname`"
  4047. echo "$as_me:$LINENO: result: $host_os" >&5
  4048. echo "${ECHO_T}$host_os" >&6
  4049. fd_setsize=""
  4050. DLLEXT=".so"
  4051. case $host_os in
  4052. Solaris* )
  4053. LIBS="$LIBS -lsocket -lnsl -ldl"
  4054. ;;
  4055. Linux* )
  4056. LIBS="$LIBS -ldl"
  4057. ;;
  4058. FreeBSD*)
  4059. CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  4060. ;;
  4061. NetBSD*)
  4062. CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  4063. ;;
  4064. CYGWIN*)
  4065. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  4066. fd_setsize="done"
  4067. DLLEXT=".dll"
  4068. ;;
  4069. esac
  4070. echo "$as_me:$LINENO: checking for MinGW" >&5
  4071. echo $ECHO_N "checking for MinGW... $ECHO_C" >&6
  4072. if test -n "`$CC --version | grep -i mingw`" ; then
  4073. echo "$as_me:$LINENO: result: yes" >&5
  4074. echo "${ECHO_T}yes" >&6
  4075. CPPFLAGS="$CPPFLAGS -DMINGW"
  4076. if test -z "$fd_setsize" ; then
  4077. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  4078. fi
  4079. LIBS="$LIBS -lws2_32"
  4080. else
  4081. echo "$as_me:$LINENO: result: no" >&5
  4082. echo "${ECHO_T}no" >&6
  4083. fi
  4084. ###############################################################################
  4085. cat >confcache <<\_ACEOF
  4086. # This file is a shell script that caches the results of configure
  4087. # tests run on this system so they can be shared between configure
  4088. # scripts and configure runs, see configure's option --config-cache.
  4089. # It is not useful on other systems. If it contains results you don't
  4090. # want to keep, you may remove or edit it.
  4091. #
  4092. # config.status only pays attention to the cache file if you give it
  4093. # the --recheck option to rerun configure.
  4094. #
  4095. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4096. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4097. # following values.
  4098. _ACEOF
  4099. # The following way of writing the cache mishandles newlines in values,
  4100. # but we know of no workaround that is simple, portable, and efficient.
  4101. # So, don't put newlines in cache variables' values.
  4102. # Ultrix sh set writes to stderr and can't be redirected directly,
  4103. # and sets the high bit in the cache file unless we assign to the vars.
  4104. {
  4105. (set) 2>&1 |
  4106. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4107. *ac_space=\ *)
  4108. # `set' does not quote correctly, so add quotes (double-quote
  4109. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4110. sed -n \
  4111. "s/'/'\\\\''/g;
  4112. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4113. ;;
  4114. *)
  4115. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4116. sed -n \
  4117. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4118. ;;
  4119. esac;
  4120. } |
  4121. sed '
  4122. t clear
  4123. : clear
  4124. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4125. t end
  4126. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4127. : end' >>confcache
  4128. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4129. if test -w $cache_file; then
  4130. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  4131. cat confcache >$cache_file
  4132. else
  4133. echo "not updating unwritable cache $cache_file"
  4134. fi
  4135. fi
  4136. rm -f confcache
  4137. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4138. # Let make expand exec_prefix.
  4139. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4140. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4141. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4142. # trailing colons and then remove the whole line if VPATH becomes empty
  4143. # (actually we leave an empty line to preserve line numbers).
  4144. if test "x$srcdir" = x.; then
  4145. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4146. s/:*\$(srcdir):*/:/;
  4147. s/:*\${srcdir}:*/:/;
  4148. s/:*@srcdir@:*/:/;
  4149. s/^\([^=]*=[ ]*\):*/\1/;
  4150. s/:*$//;
  4151. s/^[^=]*=[ ]*$//;
  4152. }'
  4153. fi
  4154. # Transform confdefs.h into DEFS.
  4155. # Protect against shell expansion while executing Makefile rules.
  4156. # Protect against Makefile macro expansion.
  4157. #
  4158. # If the first sed substitution is executed (which looks for macros that
  4159. # take arguments), then we branch to the quote section. Otherwise,
  4160. # look for a macro that doesn't take arguments.
  4161. cat >confdef2opt.sed <<\_ACEOF
  4162. t clear
  4163. : clear
  4164. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
  4165. t quote
  4166. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
  4167. t quote
  4168. d
  4169. : quote
  4170. s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
  4171. s,\[,\\&,g
  4172. s,\],\\&,g
  4173. s,\$,$$,g
  4174. p
  4175. _ACEOF
  4176. # We use echo to avoid assuming a particular line-breaking character.
  4177. # The extra dot is to prevent the shell from consuming trailing
  4178. # line-breaks from the sub-command output. A line-break within
  4179. # single-quotes doesn't work because, if this script is created in a
  4180. # platform that uses two characters for line-breaks (e.g., DOS), tr
  4181. # would break.
  4182. ac_LF_and_DOT=`echo; echo .`
  4183. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  4184. rm -f confdef2opt.sed
  4185. ac_libobjs=
  4186. ac_ltlibobjs=
  4187. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4188. # 1. Remove the extension, and $U if already installed.
  4189. ac_i=`echo "$ac_i" |
  4190. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  4191. # 2. Add them.
  4192. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  4193. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  4194. done
  4195. LIBOBJS=$ac_libobjs
  4196. LTLIBOBJS=$ac_ltlibobjs
  4197. : ${CONFIG_STATUS=./config.status}
  4198. ac_clean_files_save=$ac_clean_files
  4199. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4200. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4201. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4202. cat >$CONFIG_STATUS <<_ACEOF
  4203. #! $SHELL
  4204. # Generated by $as_me.
  4205. # Run this file to recreate the current configuration.
  4206. # Compiler output produced by configure, useful for debugging
  4207. # configure, is in config.log if it exists.
  4208. debug=false
  4209. ac_cs_recheck=false
  4210. ac_cs_silent=false
  4211. SHELL=\${CONFIG_SHELL-$SHELL}
  4212. _ACEOF
  4213. cat >>$CONFIG_STATUS <<\_ACEOF
  4214. ## --------------------- ##
  4215. ## M4sh Initialization. ##
  4216. ## --------------------- ##
  4217. # Be Bourne compatible
  4218. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4219. emulate sh
  4220. NULLCMD=:
  4221. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4222. # is contrary to our usage. Disable this feature.
  4223. alias -g '${1+"$@"}'='"$@"'
  4224. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  4225. set -o posix
  4226. fi
  4227. DUALCASE=1; export DUALCASE # for MKS sh
  4228. # Support unset when possible.
  4229. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4230. as_unset=unset
  4231. else
  4232. as_unset=false
  4233. fi
  4234. # Work around bugs in pre-3.0 UWIN ksh.
  4235. $as_unset ENV MAIL MAILPATH
  4236. PS1='$ '
  4237. PS2='> '
  4238. PS4='+ '
  4239. # NLS nuisances.
  4240. for as_var in \
  4241. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4242. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4243. LC_TELEPHONE LC_TIME
  4244. do
  4245. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4246. eval $as_var=C; export $as_var
  4247. else
  4248. $as_unset $as_var
  4249. fi
  4250. done
  4251. # Required to use basename.
  4252. if expr a : '\(a\)' >/dev/null 2>&1; then
  4253. as_expr=expr
  4254. else
  4255. as_expr=false
  4256. fi
  4257. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  4258. as_basename=basename
  4259. else
  4260. as_basename=false
  4261. fi
  4262. # Name of the executable.
  4263. as_me=`$as_basename "$0" ||
  4264. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4265. X"$0" : 'X\(//\)$' \| \
  4266. X"$0" : 'X\(/\)$' \| \
  4267. . : '\(.\)' 2>/dev/null ||
  4268. echo X/"$0" |
  4269. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  4270. /^X\/\(\/\/\)$/{ s//\1/; q; }
  4271. /^X\/\(\/\).*/{ s//\1/; q; }
  4272. s/.*/./; q'`
  4273. # PATH needs CR, and LINENO needs CR and PATH.
  4274. # Avoid depending upon Character Ranges.
  4275. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4276. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4277. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4278. as_cr_digits='0123456789'
  4279. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4280. # The user is always right.
  4281. if test "${PATH_SEPARATOR+set}" != set; then
  4282. echo "#! /bin/sh" >conf$$.sh
  4283. echo "exit 0" >>conf$$.sh
  4284. chmod +x conf$$.sh
  4285. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4286. PATH_SEPARATOR=';'
  4287. else
  4288. PATH_SEPARATOR=:
  4289. fi
  4290. rm -f conf$$.sh
  4291. fi
  4292. as_lineno_1=$LINENO
  4293. as_lineno_2=$LINENO
  4294. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4295. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4296. test "x$as_lineno_3" = "x$as_lineno_2" || {
  4297. # Find who we are. Look in the path if we contain no path at all
  4298. # relative or not.
  4299. case $0 in
  4300. *[\\/]* ) as_myself=$0 ;;
  4301. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4302. for as_dir in $PATH
  4303. do
  4304. IFS=$as_save_IFS
  4305. test -z "$as_dir" && as_dir=.
  4306. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4307. done
  4308. ;;
  4309. esac
  4310. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4311. # in which case we are not to be found in the path.
  4312. if test "x$as_myself" = x; then
  4313. as_myself=$0
  4314. fi
  4315. if test ! -f "$as_myself"; then
  4316. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  4317. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  4318. { (exit 1); exit 1; }; }
  4319. fi
  4320. case $CONFIG_SHELL in
  4321. '')
  4322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4323. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  4324. do
  4325. IFS=$as_save_IFS
  4326. test -z "$as_dir" && as_dir=.
  4327. for as_base in sh bash ksh sh5; do
  4328. case $as_dir in
  4329. /*)
  4330. if ("$as_dir/$as_base" -c '
  4331. as_lineno_1=$LINENO
  4332. as_lineno_2=$LINENO
  4333. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4334. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4335. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  4336. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  4337. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  4338. CONFIG_SHELL=$as_dir/$as_base
  4339. export CONFIG_SHELL
  4340. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  4341. fi;;
  4342. esac
  4343. done
  4344. done
  4345. ;;
  4346. esac
  4347. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4348. # uniformly replaced by the line number. The first 'sed' inserts a
  4349. # line-number line before each line; the second 'sed' does the real
  4350. # work. The second script uses 'N' to pair each line-number line
  4351. # with the numbered line, and appends trailing '-' during
  4352. # substitution so that $LINENO is not a special case at line end.
  4353. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4354. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  4355. sed '=' <$as_myself |
  4356. sed '
  4357. N
  4358. s,$,-,
  4359. : loop
  4360. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  4361. t loop
  4362. s,-$,,
  4363. s,^['$as_cr_digits']*\n,,
  4364. ' >$as_me.lineno &&
  4365. chmod +x $as_me.lineno ||
  4366. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  4367. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  4368. { (exit 1); exit 1; }; }
  4369. # Don't try to exec as it changes $[0], causing all sort of problems
  4370. # (the dirname of $[0] is not the place where we might find the
  4371. # original and so on. Autoconf is especially sensible to this).
  4372. . ./$as_me.lineno
  4373. # Exit status is that of the last command.
  4374. exit
  4375. }
  4376. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  4377. *c*,-n*) ECHO_N= ECHO_C='
  4378. ' ECHO_T=' ' ;;
  4379. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  4380. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  4381. esac
  4382. if expr a : '\(a\)' >/dev/null 2>&1; then
  4383. as_expr=expr
  4384. else
  4385. as_expr=false
  4386. fi
  4387. rm -f conf$$ conf$$.exe conf$$.file
  4388. echo >conf$$.file
  4389. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4390. # We could just check for DJGPP; but this test a) works b) is more generic
  4391. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  4392. if test -f conf$$.exe; then
  4393. # Don't use ln at all; we don't have any links
  4394. as_ln_s='cp -p'
  4395. else
  4396. as_ln_s='ln -s'
  4397. fi
  4398. elif ln conf$$.file conf$$ 2>/dev/null; then
  4399. as_ln_s=ln
  4400. else
  4401. as_ln_s='cp -p'
  4402. fi
  4403. rm -f conf$$ conf$$.exe conf$$.file
  4404. if mkdir -p . 2>/dev/null; then
  4405. as_mkdir_p=:
  4406. else
  4407. test -d ./-p && rmdir ./-p
  4408. as_mkdir_p=false
  4409. fi
  4410. as_executable_p="test -f"
  4411. # Sed expression to map a string onto a valid CPP name.
  4412. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4413. # Sed expression to map a string onto a valid variable name.
  4414. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4415. # IFS
  4416. # We need space, tab and new line, in precisely that order.
  4417. as_nl='
  4418. '
  4419. IFS=" $as_nl"
  4420. # CDPATH.
  4421. $as_unset CDPATH
  4422. exec 6>&1
  4423. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  4424. # report actual input values of CONFIG_FILES etc. instead of their
  4425. # values after options handling. Logging --version etc. is OK.
  4426. exec 5>>config.log
  4427. {
  4428. echo
  4429. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4430. ## Running $as_me. ##
  4431. _ASBOX
  4432. } >&5
  4433. cat >&5 <<_CSEOF
  4434. This file was extended by $as_me, which was
  4435. generated by GNU Autoconf 2.59. Invocation command line was
  4436. CONFIG_FILES = $CONFIG_FILES
  4437. CONFIG_HEADERS = $CONFIG_HEADERS
  4438. CONFIG_LINKS = $CONFIG_LINKS
  4439. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4440. $ $0 $@
  4441. _CSEOF
  4442. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  4443. echo >&5
  4444. _ACEOF
  4445. # Files that config.status was made for.
  4446. if test -n "$ac_config_files"; then
  4447. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  4448. fi
  4449. if test -n "$ac_config_headers"; then
  4450. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  4451. fi
  4452. if test -n "$ac_config_links"; then
  4453. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  4454. fi
  4455. if test -n "$ac_config_commands"; then
  4456. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  4457. fi
  4458. cat >>$CONFIG_STATUS <<\_ACEOF
  4459. ac_cs_usage="\
  4460. \`$as_me' instantiates files from templates according to the
  4461. current configuration.
  4462. Usage: $0 [OPTIONS] [FILE]...
  4463. -h, --help print this help, then exit
  4464. -V, --version print version number, then exit
  4465. -q, --quiet do not print progress messages
  4466. -d, --debug don't remove temporary files
  4467. --recheck update $as_me by reconfiguring in the same conditions
  4468. --file=FILE[:TEMPLATE]
  4469. instantiate the configuration file FILE
  4470. Configuration files:
  4471. $config_files
  4472. Report bugs to <bug-autoconf@gnu.org>."
  4473. _ACEOF
  4474. cat >>$CONFIG_STATUS <<_ACEOF
  4475. ac_cs_version="\\
  4476. config.status
  4477. configured by $0, generated by GNU Autoconf 2.59,
  4478. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  4479. Copyright (C) 2003 Free Software Foundation, Inc.
  4480. This config.status script is free software; the Free Software Foundation
  4481. gives unlimited permission to copy, distribute and modify it."
  4482. srcdir=$srcdir
  4483. _ACEOF
  4484. cat >>$CONFIG_STATUS <<\_ACEOF
  4485. # If no file are specified by the user, then we need to provide default
  4486. # value. By we need to know if files were specified by the user.
  4487. ac_need_defaults=:
  4488. while test $# != 0
  4489. do
  4490. case $1 in
  4491. --*=*)
  4492. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  4493. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  4494. ac_shift=:
  4495. ;;
  4496. -*)
  4497. ac_option=$1
  4498. ac_optarg=$2
  4499. ac_shift=shift
  4500. ;;
  4501. *) # This is not an option, so the user has probably given explicit
  4502. # arguments.
  4503. ac_option=$1
  4504. ac_need_defaults=false;;
  4505. esac
  4506. case $ac_option in
  4507. # Handling of the options.
  4508. _ACEOF
  4509. cat >>$CONFIG_STATUS <<\_ACEOF
  4510. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4511. ac_cs_recheck=: ;;
  4512. --version | --vers* | -V )
  4513. echo "$ac_cs_version"; exit 0 ;;
  4514. --he | --h)
  4515. # Conflict between --help and --header
  4516. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  4517. Try \`$0 --help' for more information." >&5
  4518. echo "$as_me: error: ambiguous option: $1
  4519. Try \`$0 --help' for more information." >&2;}
  4520. { (exit 1); exit 1; }; };;
  4521. --help | --hel | -h )
  4522. echo "$ac_cs_usage"; exit 0 ;;
  4523. --debug | --d* | -d )
  4524. debug=: ;;
  4525. --file | --fil | --fi | --f )
  4526. $ac_shift
  4527. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4528. ac_need_defaults=false;;
  4529. --header | --heade | --head | --hea )
  4530. $ac_shift
  4531. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  4532. ac_need_defaults=false;;
  4533. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4534. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4535. ac_cs_silent=: ;;
  4536. # This is an error.
  4537. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  4538. Try \`$0 --help' for more information." >&5
  4539. echo "$as_me: error: unrecognized option: $1
  4540. Try \`$0 --help' for more information." >&2;}
  4541. { (exit 1); exit 1; }; } ;;
  4542. *) ac_config_targets="$ac_config_targets $1" ;;
  4543. esac
  4544. shift
  4545. done
  4546. ac_configure_extra_args=
  4547. if $ac_cs_silent; then
  4548. exec 6>/dev/null
  4549. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4550. fi
  4551. _ACEOF
  4552. cat >>$CONFIG_STATUS <<_ACEOF
  4553. if \$ac_cs_recheck; then
  4554. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4555. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4556. fi
  4557. _ACEOF
  4558. cat >>$CONFIG_STATUS <<\_ACEOF
  4559. for ac_config_target in $ac_config_targets
  4560. do
  4561. case "$ac_config_target" in
  4562. # Handling of arguments.
  4563. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4564. "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  4565. "src/char/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  4566. "src/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  4567. "src/ladmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ladmin/Makefile" ;;
  4568. "src/char_sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/char_sql/Makefile" ;;
  4569. "src/login_sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/login_sql/Makefile" ;;
  4570. "src/txt-converter/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/txt-converter/Makefile" ;;
  4571. "src/map/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  4572. "src/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
  4573. "src/tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  4574. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4575. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4576. { (exit 1); exit 1; }; };;
  4577. esac
  4578. done
  4579. # If the user did not use the arguments to specify the items to instantiate,
  4580. # then the envvar interface is used. Set only those that are not.
  4581. # We use the long form for the default assignment because of an extremely
  4582. # bizarre bug on SunOS 4.1.3.
  4583. if $ac_need_defaults; then
  4584. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4585. fi
  4586. # Have a temporary directory for convenience. Make it in the build tree
  4587. # simply because there is no reason to put it here, and in addition,
  4588. # creating and moving files from /tmp can sometimes cause problems.
  4589. # Create a temporary directory, and hook for its removal unless debugging.
  4590. $debug ||
  4591. {
  4592. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  4593. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4594. }
  4595. # Create a (secure) tmp directory for tmp files.
  4596. {
  4597. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  4598. test -n "$tmp" && test -d "$tmp"
  4599. } ||
  4600. {
  4601. tmp=./confstat$$-$RANDOM
  4602. (umask 077 && mkdir $tmp)
  4603. } ||
  4604. {
  4605. echo "$me: cannot create a temporary directory in ." >&2
  4606. { (exit 1); exit 1; }
  4607. }
  4608. _ACEOF
  4609. cat >>$CONFIG_STATUS <<_ACEOF
  4610. #
  4611. # CONFIG_FILES section.
  4612. #
  4613. # No need to generate the scripts if there are no CONFIG_FILES.
  4614. # This happens for instance when ./config.status config.h
  4615. if test -n "\$CONFIG_FILES"; then
  4616. # Protect against being on the right side of a sed subst in config.status.
  4617. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  4618. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  4619. s,@SHELL@,$SHELL,;t t
  4620. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  4621. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  4622. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  4623. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  4624. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  4625. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  4626. s,@exec_prefix@,$exec_prefix,;t t
  4627. s,@prefix@,$prefix,;t t
  4628. s,@program_transform_name@,$program_transform_name,;t t
  4629. s,@bindir@,$bindir,;t t
  4630. s,@sbindir@,$sbindir,;t t
  4631. s,@libexecdir@,$libexecdir,;t t
  4632. s,@datadir@,$datadir,;t t
  4633. s,@sysconfdir@,$sysconfdir,;t t
  4634. s,@sharedstatedir@,$sharedstatedir,;t t
  4635. s,@localstatedir@,$localstatedir,;t t
  4636. s,@libdir@,$libdir,;t t
  4637. s,@includedir@,$includedir,;t t
  4638. s,@oldincludedir@,$oldincludedir,;t t
  4639. s,@infodir@,$infodir,;t t
  4640. s,@mandir@,$mandir,;t t
  4641. s,@build_alias@,$build_alias,;t t
  4642. s,@host_alias@,$host_alias,;t t
  4643. s,@target_alias@,$target_alias,;t t
  4644. s,@DEFS@,$DEFS,;t t
  4645. s,@ECHO_C@,$ECHO_C,;t t
  4646. s,@ECHO_N@,$ECHO_N,;t t
  4647. s,@ECHO_T@,$ECHO_T,;t t
  4648. s,@LIBS@,$LIBS,;t t
  4649. s,@SET_MAKE@,$SET_MAKE,;t t
  4650. s,@CC@,$CC,;t t
  4651. s,@CFLAGS@,$CFLAGS,;t t
  4652. s,@LDFLAGS@,$LDFLAGS,;t t
  4653. s,@CPPFLAGS@,$CPPFLAGS,;t t
  4654. s,@ac_ct_CC@,$ac_ct_CC,;t t
  4655. s,@EXEEXT@,$EXEEXT,;t t
  4656. s,@OBJEXT@,$OBJEXT,;t t
  4657. s,@CPP@,$CPP,;t t
  4658. s,@EGREP@,$EGREP,;t t
  4659. s,@MYSQL_CONFIG_HOME@,$MYSQL_CONFIG_HOME,;t t
  4660. s,@HAVE_MYSQL@,$HAVE_MYSQL,;t t
  4661. s,@MYSQL_VERSION@,$MYSQL_VERSION,;t t
  4662. s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
  4663. s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
  4664. s,@HAVE_PCRE@,$HAVE_PCRE,;t t
  4665. s,@PCRE_LIBS@,$PCRE_LIBS,;t t
  4666. s,@PCRE_CFLAGS@,$PCRE_CFLAGS,;t t
  4667. s,@DLLEXT@,$DLLEXT,;t t
  4668. s,@LIBOBJS@,$LIBOBJS,;t t
  4669. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  4670. CEOF
  4671. _ACEOF
  4672. cat >>$CONFIG_STATUS <<\_ACEOF
  4673. # Split the substitutions into bite-sized pieces for seds with
  4674. # small command number limits, like on Digital OSF/1 and HP-UX.
  4675. ac_max_sed_lines=48
  4676. ac_sed_frag=1 # Number of current file.
  4677. ac_beg=1 # First line for current file.
  4678. ac_end=$ac_max_sed_lines # Line after last line for current file.
  4679. ac_more_lines=:
  4680. ac_sed_cmds=
  4681. while $ac_more_lines; do
  4682. if test $ac_beg -gt 1; then
  4683. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4684. else
  4685. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4686. fi
  4687. if test ! -s $tmp/subs.frag; then
  4688. ac_more_lines=false
  4689. else
  4690. # The purpose of the label and of the branching condition is to
  4691. # speed up the sed processing (if there are no `@' at all, there
  4692. # is no need to browse any of the substitutions).
  4693. # These are the two extra sed commands mentioned above.
  4694. (echo ':t
  4695. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  4696. if test -z "$ac_sed_cmds"; then
  4697. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  4698. else
  4699. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  4700. fi
  4701. ac_sed_frag=`expr $ac_sed_frag + 1`
  4702. ac_beg=$ac_end
  4703. ac_end=`expr $ac_end + $ac_max_sed_lines`
  4704. fi
  4705. done
  4706. if test -z "$ac_sed_cmds"; then
  4707. ac_sed_cmds=cat
  4708. fi
  4709. fi # test -n "$CONFIG_FILES"
  4710. _ACEOF
  4711. cat >>$CONFIG_STATUS <<\_ACEOF
  4712. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  4713. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4714. case $ac_file in
  4715. - | *:- | *:-:* ) # input from stdin
  4716. cat >$tmp/stdin
  4717. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4718. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4719. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4720. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4721. * ) ac_file_in=$ac_file.in ;;
  4722. esac
  4723. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  4724. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  4725. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4726. X"$ac_file" : 'X\(//\)[^/]' \| \
  4727. X"$ac_file" : 'X\(//\)$' \| \
  4728. X"$ac_file" : 'X\(/\)' \| \
  4729. . : '\(.\)' 2>/dev/null ||
  4730. echo X"$ac_file" |
  4731. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4732. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4733. /^X\(\/\/\)$/{ s//\1/; q; }
  4734. /^X\(\/\).*/{ s//\1/; q; }
  4735. s/.*/./; q'`
  4736. { if $as_mkdir_p; then
  4737. mkdir -p "$ac_dir"
  4738. else
  4739. as_dir="$ac_dir"
  4740. as_dirs=
  4741. while test ! -d "$as_dir"; do
  4742. as_dirs="$as_dir $as_dirs"
  4743. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  4744. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4745. X"$as_dir" : 'X\(//\)[^/]' \| \
  4746. X"$as_dir" : 'X\(//\)$' \| \
  4747. X"$as_dir" : 'X\(/\)' \| \
  4748. . : '\(.\)' 2>/dev/null ||
  4749. echo X"$as_dir" |
  4750. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4751. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4752. /^X\(\/\/\)$/{ s//\1/; q; }
  4753. /^X\(\/\).*/{ s//\1/; q; }
  4754. s/.*/./; q'`
  4755. done
  4756. test ! -n "$as_dirs" || mkdir $as_dirs
  4757. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  4758. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  4759. { (exit 1); exit 1; }; }; }
  4760. ac_builddir=.
  4761. if test "$ac_dir" != .; then
  4762. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4763. # A "../" for each directory in $ac_dir_suffix.
  4764. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  4765. else
  4766. ac_dir_suffix= ac_top_builddir=
  4767. fi
  4768. case $srcdir in
  4769. .) # No --srcdir option. We are building in place.
  4770. ac_srcdir=.
  4771. if test -z "$ac_top_builddir"; then
  4772. ac_top_srcdir=.
  4773. else
  4774. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  4775. fi ;;
  4776. [\\/]* | ?:[\\/]* ) # Absolute path.
  4777. ac_srcdir=$srcdir$ac_dir_suffix;
  4778. ac_top_srcdir=$srcdir ;;
  4779. *) # Relative path.
  4780. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  4781. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  4782. esac
  4783. # Do not use `cd foo && pwd` to compute absolute paths, because
  4784. # the directories may not exist.
  4785. case `pwd` in
  4786. .) ac_abs_builddir="$ac_dir";;
  4787. *)
  4788. case "$ac_dir" in
  4789. .) ac_abs_builddir=`pwd`;;
  4790. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  4791. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  4792. esac;;
  4793. esac
  4794. case $ac_abs_builddir in
  4795. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  4796. *)
  4797. case ${ac_top_builddir}. in
  4798. .) ac_abs_top_builddir=$ac_abs_builddir;;
  4799. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  4800. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  4801. esac;;
  4802. esac
  4803. case $ac_abs_builddir in
  4804. .) ac_abs_srcdir=$ac_srcdir;;
  4805. *)
  4806. case $ac_srcdir in
  4807. .) ac_abs_srcdir=$ac_abs_builddir;;
  4808. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  4809. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  4810. esac;;
  4811. esac
  4812. case $ac_abs_builddir in
  4813. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  4814. *)
  4815. case $ac_top_srcdir in
  4816. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  4817. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  4818. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  4819. esac;;
  4820. esac
  4821. if test x"$ac_file" != x-; then
  4822. { echo "$as_me:$LINENO: creating $ac_file" >&5
  4823. echo "$as_me: creating $ac_file" >&6;}
  4824. rm -f "$ac_file"
  4825. fi
  4826. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4827. # use $as_me), people would be surprised to read:
  4828. # /* config.h. Generated by config.status. */
  4829. if test x"$ac_file" = x-; then
  4830. configure_input=
  4831. else
  4832. configure_input="$ac_file. "
  4833. fi
  4834. configure_input=$configure_input"Generated from `echo $ac_file_in |
  4835. sed 's,.*/,,'` by configure."
  4836. # First look for the input files in the build tree, otherwise in the
  4837. # src tree.
  4838. ac_file_inputs=`IFS=:
  4839. for f in $ac_file_in; do
  4840. case $f in
  4841. -) echo $tmp/stdin ;;
  4842. [\\/$]*)
  4843. # Absolute (can't be DOS-style, as IFS=:)
  4844. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4845. echo "$as_me: error: cannot find input file: $f" >&2;}
  4846. { (exit 1); exit 1; }; }
  4847. echo "$f";;
  4848. *) # Relative
  4849. if test -f "$f"; then
  4850. # Build tree
  4851. echo "$f"
  4852. elif test -f "$srcdir/$f"; then
  4853. # Source tree
  4854. echo "$srcdir/$f"
  4855. else
  4856. # /dev/null tree
  4857. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4858. echo "$as_me: error: cannot find input file: $f" >&2;}
  4859. { (exit 1); exit 1; }; }
  4860. fi;;
  4861. esac
  4862. done` || { (exit 1); exit 1; }
  4863. _ACEOF
  4864. cat >>$CONFIG_STATUS <<_ACEOF
  4865. sed "$ac_vpsub
  4866. $extrasub
  4867. _ACEOF
  4868. cat >>$CONFIG_STATUS <<\_ACEOF
  4869. :t
  4870. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4871. s,@configure_input@,$configure_input,;t t
  4872. s,@srcdir@,$ac_srcdir,;t t
  4873. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  4874. s,@top_srcdir@,$ac_top_srcdir,;t t
  4875. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  4876. s,@builddir@,$ac_builddir,;t t
  4877. s,@abs_builddir@,$ac_abs_builddir,;t t
  4878. s,@top_builddir@,$ac_top_builddir,;t t
  4879. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  4880. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  4881. rm -f $tmp/stdin
  4882. if test x"$ac_file" != x-; then
  4883. mv $tmp/out $ac_file
  4884. else
  4885. cat $tmp/out
  4886. rm -f $tmp/out
  4887. fi
  4888. done
  4889. _ACEOF
  4890. cat >>$CONFIG_STATUS <<\_ACEOF
  4891. { (exit 0); exit 0; }
  4892. _ACEOF
  4893. chmod +x $CONFIG_STATUS
  4894. ac_clean_files=$ac_clean_files_save
  4895. # configure is writing to config.log, and then calls config.status.
  4896. # config.status does its own redirection, appending to config.log.
  4897. # Unfortunately, on DOS this fails, as config.log is still kept open
  4898. # by configure, so config.status won't be able to write to it; its
  4899. # output is simply discarded. So we exec the FD to /dev/null,
  4900. # effectively closing config.log, so it can be properly (re)opened and
  4901. # appended to by config.status. When coming back to configure, we
  4902. # need to make the FD available again.
  4903. if test "$no_create" != yes; then
  4904. ac_cs_success=:
  4905. ac_config_status_args=
  4906. test "$silent" = yes &&
  4907. ac_config_status_args="$ac_config_status_args --quiet"
  4908. exec 5>/dev/null
  4909. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4910. exec 5>>config.log
  4911. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4912. # would make configure fail if this is the last instruction.
  4913. $ac_cs_success || { (exit 1); exit 1; }
  4914. fi