configure 200 KB

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