configure 164 KB

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