configure 200 KB

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