configure 190 KB

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