configure 177 KB

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