configure 173 KB

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