configure 229 KB

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