configure 194 KB

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