configure 146 KB

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