configure 196 KB

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