configure 181 KB

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