configure 220 KB

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