configure 239 KB

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