configure 231 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563
  1. #! /bin/sh
  2. # From configure.in Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in #(
  26. *posix*) :
  27. set -o posix ;; #(
  28. *) :
  29. ;;
  30. esac
  31. fi
  32. as_nl='
  33. '
  34. export as_nl
  35. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  36. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  39. # Prefer a ksh shell builtin over an external printf program on Solaris,
  40. # but without wasting forks for bash or zsh.
  41. if test -z "$BASH_VERSION$ZSH_VERSION" \
  42. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='print -r --'
  44. as_echo_n='print -rn --'
  45. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='printf %s\n'
  47. as_echo_n='printf %s'
  48. else
  49. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  50. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  51. as_echo_n='/usr/ucb/echo -n'
  52. else
  53. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  54. as_echo_n_body='eval
  55. arg=$1;
  56. case $arg in #(
  57. *"$as_nl"*)
  58. expr "X$arg" : "X\\(.*\\)$as_nl";
  59. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  60. esac;
  61. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  62. '
  63. export as_echo_n_body
  64. as_echo_n='sh -c $as_echo_n_body as_echo'
  65. fi
  66. export as_echo_body
  67. as_echo='sh -c $as_echo_body as_echo'
  68. fi
  69. # The user is always right.
  70. if test "${PATH_SEPARATOR+set}" != set; then
  71. PATH_SEPARATOR=:
  72. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  73. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  74. PATH_SEPARATOR=';'
  75. }
  76. fi
  77. # IFS
  78. # We need space, tab and new line, in precisely that order. Quoting is
  79. # there to prevent editors from complaining about space-tab.
  80. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  81. # splitting by setting IFS to empty value.)
  82. IFS=" "" $as_nl"
  83. # Find who we are. Look in the path if we contain no directory separator.
  84. as_myself=
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. # Use a proper internal environment variable to ensure we don't fall
  125. # into an infinite loop, continuously re-executing ourselves.
  126. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  127. _as_can_reexec=no; export _as_can_reexec;
  128. # We cannot yet assume a decent shell, so we have to provide a
  129. # neutralization value for shells without unset; and this also
  130. # works around shells that cannot unset nonexistent variables.
  131. # Preserve -v and -x to the replacement shell.
  132. BASH_ENV=/dev/null
  133. ENV=/dev/null
  134. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  135. case $- in # ((((
  136. *v*x* | *x*v* ) as_opts=-vx ;;
  137. *v* ) as_opts=-v ;;
  138. *x* ) as_opts=-x ;;
  139. * ) as_opts= ;;
  140. esac
  141. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  142. # Admittedly, this is quite paranoid, since all the known shells bail
  143. # out after a failed `exec'.
  144. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  145. as_fn_exit 255
  146. fi
  147. # We don't want this to propagate to other subprocesses.
  148. { _as_can_reexec=; unset _as_can_reexec;}
  149. if test "x$CONFIG_SHELL" = x; then
  150. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  151. emulate sh
  152. NULLCMD=:
  153. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  154. # is contrary to our usage. Disable this feature.
  155. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  156. setopt NO_GLOB_SUBST
  157. else
  158. case \`(set -o) 2>/dev/null\` in #(
  159. *posix*) :
  160. set -o posix ;; #(
  161. *) :
  162. ;;
  163. esac
  164. fi
  165. "
  166. as_required="as_fn_return () { (exit \$1); }
  167. as_fn_success () { as_fn_return 0; }
  168. as_fn_failure () { as_fn_return 1; }
  169. as_fn_ret_success () { return 0; }
  170. as_fn_ret_failure () { return 1; }
  171. exitcode=0
  172. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  173. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  174. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  175. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  176. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  177. else
  178. exitcode=1; echo positional parameters were not saved.
  179. fi
  180. test x\$exitcode = x0 || exit 1
  181. test -x / || exit 1"
  182. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  183. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  184. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  185. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  186. test \$(( 1 + 1 )) = 2 || exit 1"
  187. if (eval "$as_required") 2>/dev/null; then :
  188. as_have_required=yes
  189. else
  190. as_have_required=no
  191. fi
  192. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  193. else
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. as_found=false
  196. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. as_found=:
  201. case $as_dir in #(
  202. /*)
  203. for as_base in sh bash ksh sh5; do
  204. # Try only shells that exist, to save several forks.
  205. as_shell=$as_dir/$as_base
  206. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  207. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  208. CONFIG_SHELL=$as_shell as_have_required=yes
  209. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. break 2
  211. fi
  212. fi
  213. done;;
  214. esac
  215. as_found=false
  216. done
  217. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  219. CONFIG_SHELL=$SHELL as_have_required=yes
  220. fi; }
  221. IFS=$as_save_IFS
  222. if test "x$CONFIG_SHELL" != x; then :
  223. export CONFIG_SHELL
  224. # We cannot yet assume a decent shell, so we have to provide a
  225. # neutralization value for shells without unset; and this also
  226. # works around shells that cannot unset nonexistent variables.
  227. # Preserve -v and -x to the replacement shell.
  228. BASH_ENV=/dev/null
  229. ENV=/dev/null
  230. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  231. case $- in # ((((
  232. *v*x* | *x*v* ) as_opts=-vx ;;
  233. *v* ) as_opts=-v ;;
  234. *x* ) as_opts=-x ;;
  235. * ) as_opts= ;;
  236. esac
  237. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  238. # Admittedly, this is quite paranoid, since all the known shells bail
  239. # out after a failed `exec'.
  240. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  241. exit 255
  242. fi
  243. if test x$as_have_required = xno; then :
  244. $as_echo "$0: This script requires a shell more modern than all"
  245. $as_echo "$0: the shells that I found on your system."
  246. if test x${ZSH_VERSION+set} = xset ; then
  247. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  248. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  249. else
  250. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  251. $0: including any error possibly output before this
  252. $0: message. Then install a modern shell, or manually run
  253. $0: the script under such a shell if you do have one."
  254. fi
  255. exit 1
  256. fi
  257. fi
  258. fi
  259. SHELL=${CONFIG_SHELL-/bin/sh}
  260. export SHELL
  261. # Unset more variables known to interfere with behavior of common tools.
  262. CLICOLOR_FORCE= GREP_OPTIONS=
  263. unset CLICOLOR_FORCE GREP_OPTIONS
  264. ## --------------------- ##
  265. ## M4sh Shell Functions. ##
  266. ## --------------------- ##
  267. # as_fn_unset VAR
  268. # ---------------
  269. # Portably unset VAR.
  270. as_fn_unset ()
  271. {
  272. { eval $1=; unset $1;}
  273. }
  274. as_unset=as_fn_unset
  275. # as_fn_set_status STATUS
  276. # -----------------------
  277. # Set $? to STATUS, without forking.
  278. as_fn_set_status ()
  279. {
  280. return $1
  281. } # as_fn_set_status
  282. # as_fn_exit STATUS
  283. # -----------------
  284. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  285. as_fn_exit ()
  286. {
  287. set +e
  288. as_fn_set_status $1
  289. exit $1
  290. } # as_fn_exit
  291. # as_fn_mkdir_p
  292. # -------------
  293. # Create "$as_dir" as a directory, including parents if necessary.
  294. as_fn_mkdir_p ()
  295. {
  296. case $as_dir in #(
  297. -*) as_dir=./$as_dir;;
  298. esac
  299. test -d "$as_dir" || eval $as_mkdir_p || {
  300. as_dirs=
  301. while :; do
  302. case $as_dir in #(
  303. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  304. *) as_qdir=$as_dir;;
  305. esac
  306. as_dirs="'$as_qdir' $as_dirs"
  307. as_dir=`$as_dirname -- "$as_dir" ||
  308. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  309. X"$as_dir" : 'X\(//\)[^/]' \| \
  310. X"$as_dir" : 'X\(//\)$' \| \
  311. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  312. $as_echo X"$as_dir" |
  313. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  314. s//\1/
  315. q
  316. }
  317. /^X\(\/\/\)[^/].*/{
  318. s//\1/
  319. q
  320. }
  321. /^X\(\/\/\)$/{
  322. s//\1/
  323. q
  324. }
  325. /^X\(\/\).*/{
  326. s//\1/
  327. q
  328. }
  329. s/.*/./; q'`
  330. test -d "$as_dir" && break
  331. done
  332. test -z "$as_dirs" || eval "mkdir $as_dirs"
  333. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  334. } # as_fn_mkdir_p
  335. # as_fn_executable_p FILE
  336. # -----------------------
  337. # Test if FILE is an executable regular file.
  338. as_fn_executable_p ()
  339. {
  340. test -f "$1" && test -x "$1"
  341. } # as_fn_executable_p
  342. # as_fn_append VAR VALUE
  343. # ----------------------
  344. # Append the text in VALUE to the end of the definition contained in VAR. Take
  345. # advantage of any shell optimizations that allow amortized linear growth over
  346. # repeated appends, instead of the typical quadratic growth present in naive
  347. # implementations.
  348. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  349. eval 'as_fn_append ()
  350. {
  351. eval $1+=\$2
  352. }'
  353. else
  354. as_fn_append ()
  355. {
  356. eval $1=\$$1\$2
  357. }
  358. fi # as_fn_append
  359. # as_fn_arith ARG...
  360. # ------------------
  361. # Perform arithmetic evaluation on the ARGs, and store the result in the
  362. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  363. # must be portable across $(()) and expr.
  364. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  365. eval 'as_fn_arith ()
  366. {
  367. as_val=$(( $* ))
  368. }'
  369. else
  370. as_fn_arith ()
  371. {
  372. as_val=`expr "$@" || test $? -eq 1`
  373. }
  374. fi # as_fn_arith
  375. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  376. # ----------------------------------------
  377. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  378. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  379. # script with STATUS, using 1 if that was 0.
  380. as_fn_error ()
  381. {
  382. as_status=$1; test $as_status -eq 0 && as_status=1
  383. if test "$4"; then
  384. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  385. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  386. fi
  387. $as_echo "$as_me: error: $2" >&2
  388. as_fn_exit $as_status
  389. } # as_fn_error
  390. if expr a : '\(a\)' >/dev/null 2>&1 &&
  391. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  392. as_expr=expr
  393. else
  394. as_expr=false
  395. fi
  396. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  397. as_basename=basename
  398. else
  399. as_basename=false
  400. fi
  401. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  402. as_dirname=dirname
  403. else
  404. as_dirname=false
  405. fi
  406. as_me=`$as_basename -- "$0" ||
  407. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  408. X"$0" : 'X\(//\)$' \| \
  409. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  410. $as_echo X/"$0" |
  411. sed '/^.*\/\([^/][^/]*\)\/*$/{
  412. s//\1/
  413. q
  414. }
  415. /^X\/\(\/\/\)$/{
  416. s//\1/
  417. q
  418. }
  419. /^X\/\(\/\).*/{
  420. s//\1/
  421. q
  422. }
  423. s/.*/./; q'`
  424. # Avoid depending upon Character Ranges.
  425. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  426. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  427. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  428. as_cr_digits='0123456789'
  429. as_cr_alnum=$as_cr_Letters$as_cr_digits
  430. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  431. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  432. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  433. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  434. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  435. sed -n '
  436. p
  437. /[$]LINENO/=
  438. ' <$as_myself |
  439. sed '
  440. s/[$]LINENO.*/&-/
  441. t lineno
  442. b
  443. :lineno
  444. N
  445. :loop
  446. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  447. t loop
  448. s/-\n.*//
  449. ' >$as_me.lineno &&
  450. chmod +x "$as_me.lineno" ||
  451. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  452. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  453. # already done that, so ensure we don't try to do so again and fall
  454. # in an infinite loop. This has already happened in practice.
  455. _as_can_reexec=no; export _as_can_reexec
  456. # Don't try to exec as it changes $[0], causing all sort of problems
  457. # (the dirname of $[0] is not the place where we might find the
  458. # original and so on. Autoconf is especially sensitive to this).
  459. . "./$as_me.lineno"
  460. # Exit status is that of the last command.
  461. exit
  462. }
  463. ECHO_C= ECHO_N= ECHO_T=
  464. case `echo -n x` in #(((((
  465. -n*)
  466. case `echo 'xy\c'` in
  467. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  468. xy) ECHO_C='\c';;
  469. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  470. ECHO_T=' ';;
  471. esac;;
  472. *)
  473. ECHO_N='-n';;
  474. esac
  475. rm -f conf$$ conf$$.exe conf$$.file
  476. if test -d conf$$.dir; then
  477. rm -f conf$$.dir/conf$$.file
  478. else
  479. rm -f conf$$.dir
  480. mkdir conf$$.dir 2>/dev/null
  481. fi
  482. if (echo >conf$$.file) 2>/dev/null; then
  483. if ln -s conf$$.file conf$$ 2>/dev/null; then
  484. as_ln_s='ln -s'
  485. # ... but there are two gotchas:
  486. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  487. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  488. # In both cases, we have to default to `cp -pR'.
  489. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  490. as_ln_s='cp -pR'
  491. elif ln conf$$.file conf$$ 2>/dev/null; then
  492. as_ln_s=ln
  493. else
  494. as_ln_s='cp -pR'
  495. fi
  496. else
  497. as_ln_s='cp -pR'
  498. fi
  499. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  500. rmdir conf$$.dir 2>/dev/null
  501. if mkdir -p . 2>/dev/null; then
  502. as_mkdir_p='mkdir -p "$as_dir"'
  503. else
  504. test -d ./-p && rmdir ./-p
  505. as_mkdir_p=false
  506. fi
  507. as_test_x='test -x'
  508. as_executable_p=as_fn_executable_p
  509. # Sed expression to map a string onto a valid CPP name.
  510. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  511. # Sed expression to map a string onto a valid variable name.
  512. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  513. test -n "$DJDIR" || exec 7<&0 </dev/null
  514. exec 6>&1
  515. # Name of the host.
  516. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  517. # so uname gets run too.
  518. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  519. #
  520. # Initializations.
  521. #
  522. ac_default_prefix=/usr/local
  523. ac_clean_files=
  524. ac_config_libobj_dir=.
  525. LIBOBJS=
  526. cross_compiling=no
  527. subdirs=
  528. MFLAGS=
  529. MAKEFLAGS=
  530. # Identity of this package.
  531. PACKAGE_NAME=
  532. PACKAGE_TARNAME=
  533. PACKAGE_VERSION=
  534. PACKAGE_STRING=
  535. PACKAGE_BUGREPORT=
  536. PACKAGE_URL=
  537. ac_unique_file="rAthena"
  538. ac_unique_file="src/common/cbasetypes.h"
  539. # Factoring default headers for most tests.
  540. ac_includes_default="\
  541. #include <stdio.h>
  542. #ifdef HAVE_SYS_TYPES_H
  543. # include <sys/types.h>
  544. #endif
  545. #ifdef HAVE_SYS_STAT_H
  546. # include <sys/stat.h>
  547. #endif
  548. #ifdef STDC_HEADERS
  549. # include <stdlib.h>
  550. # include <stddef.h>
  551. #else
  552. # ifdef HAVE_STDLIB_H
  553. # include <stdlib.h>
  554. # endif
  555. #endif
  556. #ifdef HAVE_STRING_H
  557. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  558. # include <memory.h>
  559. # endif
  560. # include <string.h>
  561. #endif
  562. #ifdef HAVE_STRINGS_H
  563. # include <strings.h>
  564. #endif
  565. #ifdef HAVE_INTTYPES_H
  566. # include <inttypes.h>
  567. #endif
  568. #ifdef HAVE_STDINT_H
  569. # include <stdint.h>
  570. #endif
  571. #ifdef HAVE_UNISTD_H
  572. # include <unistd.h>
  573. #endif"
  574. ac_subst_vars='LTLIBOBJS
  575. LIBOBJS
  576. CFLAGS_AR
  577. DLLEXT
  578. PCRE_CFLAGS
  579. PCRE_LIBS
  580. PCRE_VERSION
  581. HAVE_PCRE
  582. MYSQL_LIBS
  583. MYSQL_CFLAGS
  584. MYSQL_VERSION
  585. HAVE_MYSQL
  586. MYSQL_CONFIG_HOME
  587. WITH_PLUGINS
  588. SOFLAGS
  589. AR
  590. SET_MAKE
  591. OMAP
  592. OCHR
  593. OLOG
  594. EGREP
  595. GREP
  596. CPP
  597. OBJEXT
  598. EXEEXT
  599. ac_ct_CC
  600. CPPFLAGS
  601. LDFLAGS
  602. CFLAGS
  603. CC
  604. target_alias
  605. host_alias
  606. build_alias
  607. LIBS
  608. ECHO_T
  609. ECHO_N
  610. ECHO_C
  611. DEFS
  612. mandir
  613. localedir
  614. libdir
  615. psdir
  616. pdfdir
  617. dvidir
  618. htmldir
  619. infodir
  620. docdir
  621. oldincludedir
  622. includedir
  623. localstatedir
  624. sharedstatedir
  625. sysconfdir
  626. datadir
  627. datarootdir
  628. libexecdir
  629. sbindir
  630. bindir
  631. program_transform_name
  632. prefix
  633. exec_prefix
  634. PACKAGE_URL
  635. PACKAGE_BUGREPORT
  636. PACKAGE_STRING
  637. PACKAGE_VERSION
  638. PACKAGE_TARNAME
  639. PACKAGE_NAME
  640. PATH_SEPARATOR
  641. SHELL'
  642. ac_subst_files=''
  643. ac_user_opts='
  644. enable_option_checking
  645. enable_manager
  646. enable_packetver
  647. enable_debug
  648. enable_prere
  649. enable_warn
  650. enable_buildbot
  651. enable_rdtsc
  652. enable_profiler
  653. enable_64bit
  654. enable_lto
  655. with_maxconn
  656. with_outputlogin
  657. with_outputchar
  658. with_outputmap
  659. with_mysql
  660. with_MYSQL_CFLAGS
  661. with_MYSQL_LIBS
  662. with_pcre
  663. with_zlib
  664. '
  665. ac_precious_vars='build_alias
  666. host_alias
  667. target_alias
  668. CC
  669. CFLAGS
  670. LDFLAGS
  671. LIBS
  672. CPPFLAGS
  673. CPP'
  674. # Initialize some variables set by options.
  675. ac_init_help=
  676. ac_init_version=false
  677. ac_unrecognized_opts=
  678. ac_unrecognized_sep=
  679. # The variables have the same names as the options, with
  680. # dashes changed to underlines.
  681. cache_file=/dev/null
  682. exec_prefix=NONE
  683. no_create=
  684. no_recursion=
  685. prefix=NONE
  686. program_prefix=NONE
  687. program_suffix=NONE
  688. program_transform_name=s,x,x,
  689. silent=
  690. site=
  691. srcdir=
  692. verbose=
  693. x_includes=NONE
  694. x_libraries=NONE
  695. # Installation directory options.
  696. # These are left unexpanded so users can "make install exec_prefix=/foo"
  697. # and all the variables that are supposed to be based on exec_prefix
  698. # by default will actually change.
  699. # Use braces instead of parens because sh, perl, etc. also accept them.
  700. # (The list follows the same order as the GNU Coding Standards.)
  701. bindir='${exec_prefix}/bin'
  702. sbindir='${exec_prefix}/sbin'
  703. libexecdir='${exec_prefix}/libexec'
  704. datarootdir='${prefix}/share'
  705. datadir='${datarootdir}'
  706. sysconfdir='${prefix}/etc'
  707. sharedstatedir='${prefix}/com'
  708. localstatedir='${prefix}/var'
  709. includedir='${prefix}/include'
  710. oldincludedir='/usr/include'
  711. docdir='${datarootdir}/doc/${PACKAGE}'
  712. infodir='${datarootdir}/info'
  713. htmldir='${docdir}'
  714. dvidir='${docdir}'
  715. pdfdir='${docdir}'
  716. psdir='${docdir}'
  717. libdir='${exec_prefix}/lib'
  718. localedir='${datarootdir}/locale'
  719. mandir='${datarootdir}/man'
  720. ac_prev=
  721. ac_dashdash=
  722. for ac_option
  723. do
  724. # If the previous option needs an argument, assign it.
  725. if test -n "$ac_prev"; then
  726. eval $ac_prev=\$ac_option
  727. ac_prev=
  728. continue
  729. fi
  730. case $ac_option in
  731. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  732. *=) ac_optarg= ;;
  733. *) ac_optarg=yes ;;
  734. esac
  735. # Accept the important Cygnus configure options, so we can diagnose typos.
  736. case $ac_dashdash$ac_option in
  737. --)
  738. ac_dashdash=yes ;;
  739. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  740. ac_prev=bindir ;;
  741. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  742. bindir=$ac_optarg ;;
  743. -build | --build | --buil | --bui | --bu)
  744. ac_prev=build_alias ;;
  745. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  746. build_alias=$ac_optarg ;;
  747. -cache-file | --cache-file | --cache-fil | --cache-fi \
  748. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  749. ac_prev=cache_file ;;
  750. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  751. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  752. cache_file=$ac_optarg ;;
  753. --config-cache | -C)
  754. cache_file=config.cache ;;
  755. -datadir | --datadir | --datadi | --datad)
  756. ac_prev=datadir ;;
  757. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  758. datadir=$ac_optarg ;;
  759. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  760. | --dataroo | --dataro | --datar)
  761. ac_prev=datarootdir ;;
  762. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  763. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  764. datarootdir=$ac_optarg ;;
  765. -disable-* | --disable-*)
  766. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  767. # Reject names that are not valid shell variable names.
  768. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  769. as_fn_error $? "invalid feature name: $ac_useropt"
  770. ac_useropt_orig=$ac_useropt
  771. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  772. case $ac_user_opts in
  773. *"
  774. "enable_$ac_useropt"
  775. "*) ;;
  776. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  777. ac_unrecognized_sep=', ';;
  778. esac
  779. eval enable_$ac_useropt=no ;;
  780. -docdir | --docdir | --docdi | --doc | --do)
  781. ac_prev=docdir ;;
  782. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  783. docdir=$ac_optarg ;;
  784. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  785. ac_prev=dvidir ;;
  786. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  787. dvidir=$ac_optarg ;;
  788. -enable-* | --enable-*)
  789. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  790. # Reject names that are not valid shell variable names.
  791. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  792. as_fn_error $? "invalid feature name: $ac_useropt"
  793. ac_useropt_orig=$ac_useropt
  794. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  795. case $ac_user_opts in
  796. *"
  797. "enable_$ac_useropt"
  798. "*) ;;
  799. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  800. ac_unrecognized_sep=', ';;
  801. esac
  802. eval enable_$ac_useropt=\$ac_optarg ;;
  803. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  804. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  805. | --exec | --exe | --ex)
  806. ac_prev=exec_prefix ;;
  807. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  808. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  809. | --exec=* | --exe=* | --ex=*)
  810. exec_prefix=$ac_optarg ;;
  811. -gas | --gas | --ga | --g)
  812. # Obsolete; use --with-gas.
  813. with_gas=yes ;;
  814. -help | --help | --hel | --he | -h)
  815. ac_init_help=long ;;
  816. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  817. ac_init_help=recursive ;;
  818. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  819. ac_init_help=short ;;
  820. -host | --host | --hos | --ho)
  821. ac_prev=host_alias ;;
  822. -host=* | --host=* | --hos=* | --ho=*)
  823. host_alias=$ac_optarg ;;
  824. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  825. ac_prev=htmldir ;;
  826. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  827. | --ht=*)
  828. htmldir=$ac_optarg ;;
  829. -includedir | --includedir | --includedi | --included | --include \
  830. | --includ | --inclu | --incl | --inc)
  831. ac_prev=includedir ;;
  832. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  833. | --includ=* | --inclu=* | --incl=* | --inc=*)
  834. includedir=$ac_optarg ;;
  835. -infodir | --infodir | --infodi | --infod | --info | --inf)
  836. ac_prev=infodir ;;
  837. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  838. infodir=$ac_optarg ;;
  839. -libdir | --libdir | --libdi | --libd)
  840. ac_prev=libdir ;;
  841. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  842. libdir=$ac_optarg ;;
  843. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  844. | --libexe | --libex | --libe)
  845. ac_prev=libexecdir ;;
  846. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  847. | --libexe=* | --libex=* | --libe=*)
  848. libexecdir=$ac_optarg ;;
  849. -localedir | --localedir | --localedi | --localed | --locale)
  850. ac_prev=localedir ;;
  851. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  852. localedir=$ac_optarg ;;
  853. -localstatedir | --localstatedir | --localstatedi | --localstated \
  854. | --localstate | --localstat | --localsta | --localst | --locals)
  855. ac_prev=localstatedir ;;
  856. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  857. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  858. localstatedir=$ac_optarg ;;
  859. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  860. ac_prev=mandir ;;
  861. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  862. mandir=$ac_optarg ;;
  863. -nfp | --nfp | --nf)
  864. # Obsolete; use --without-fp.
  865. with_fp=no ;;
  866. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  867. | --no-cr | --no-c | -n)
  868. no_create=yes ;;
  869. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  870. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  871. no_recursion=yes ;;
  872. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  873. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  874. | --oldin | --oldi | --old | --ol | --o)
  875. ac_prev=oldincludedir ;;
  876. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  877. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  878. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  879. oldincludedir=$ac_optarg ;;
  880. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  881. ac_prev=prefix ;;
  882. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  883. prefix=$ac_optarg ;;
  884. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  885. | --program-pre | --program-pr | --program-p)
  886. ac_prev=program_prefix ;;
  887. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  888. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  889. program_prefix=$ac_optarg ;;
  890. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  891. | --program-suf | --program-su | --program-s)
  892. ac_prev=program_suffix ;;
  893. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  894. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  895. program_suffix=$ac_optarg ;;
  896. -program-transform-name | --program-transform-name \
  897. | --program-transform-nam | --program-transform-na \
  898. | --program-transform-n | --program-transform- \
  899. | --program-transform | --program-transfor \
  900. | --program-transfo | --program-transf \
  901. | --program-trans | --program-tran \
  902. | --progr-tra | --program-tr | --program-t)
  903. ac_prev=program_transform_name ;;
  904. -program-transform-name=* | --program-transform-name=* \
  905. | --program-transform-nam=* | --program-transform-na=* \
  906. | --program-transform-n=* | --program-transform-=* \
  907. | --program-transform=* | --program-transfor=* \
  908. | --program-transfo=* | --program-transf=* \
  909. | --program-trans=* | --program-tran=* \
  910. | --progr-tra=* | --program-tr=* | --program-t=*)
  911. program_transform_name=$ac_optarg ;;
  912. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  913. ac_prev=pdfdir ;;
  914. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  915. pdfdir=$ac_optarg ;;
  916. -psdir | --psdir | --psdi | --psd | --ps)
  917. ac_prev=psdir ;;
  918. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  919. psdir=$ac_optarg ;;
  920. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  921. | -silent | --silent | --silen | --sile | --sil)
  922. silent=yes ;;
  923. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  924. ac_prev=sbindir ;;
  925. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  926. | --sbi=* | --sb=*)
  927. sbindir=$ac_optarg ;;
  928. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  929. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  930. | --sharedst | --shareds | --shared | --share | --shar \
  931. | --sha | --sh)
  932. ac_prev=sharedstatedir ;;
  933. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  934. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  935. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  936. | --sha=* | --sh=*)
  937. sharedstatedir=$ac_optarg ;;
  938. -site | --site | --sit)
  939. ac_prev=site ;;
  940. -site=* | --site=* | --sit=*)
  941. site=$ac_optarg ;;
  942. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  943. ac_prev=srcdir ;;
  944. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  945. srcdir=$ac_optarg ;;
  946. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  947. | --syscon | --sysco | --sysc | --sys | --sy)
  948. ac_prev=sysconfdir ;;
  949. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  950. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  951. sysconfdir=$ac_optarg ;;
  952. -target | --target | --targe | --targ | --tar | --ta | --t)
  953. ac_prev=target_alias ;;
  954. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  955. target_alias=$ac_optarg ;;
  956. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  957. verbose=yes ;;
  958. -version | --version | --versio | --versi | --vers | -V)
  959. ac_init_version=: ;;
  960. -with-* | --with-*)
  961. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  962. # Reject names that are not valid shell variable names.
  963. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  964. as_fn_error $? "invalid package name: $ac_useropt"
  965. ac_useropt_orig=$ac_useropt
  966. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  967. case $ac_user_opts in
  968. *"
  969. "with_$ac_useropt"
  970. "*) ;;
  971. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  972. ac_unrecognized_sep=', ';;
  973. esac
  974. eval with_$ac_useropt=\$ac_optarg ;;
  975. -without-* | --without-*)
  976. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  977. # Reject names that are not valid shell variable names.
  978. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  979. as_fn_error $? "invalid package name: $ac_useropt"
  980. ac_useropt_orig=$ac_useropt
  981. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  982. case $ac_user_opts in
  983. *"
  984. "with_$ac_useropt"
  985. "*) ;;
  986. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  987. ac_unrecognized_sep=', ';;
  988. esac
  989. eval with_$ac_useropt=no ;;
  990. --x)
  991. # Obsolete; use --with-x.
  992. with_x=yes ;;
  993. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  994. | --x-incl | --x-inc | --x-in | --x-i)
  995. ac_prev=x_includes ;;
  996. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  997. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  998. x_includes=$ac_optarg ;;
  999. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1000. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1001. ac_prev=x_libraries ;;
  1002. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1003. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1004. x_libraries=$ac_optarg ;;
  1005. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1006. Try \`$0 --help' for more information"
  1007. ;;
  1008. *=*)
  1009. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1010. # Reject names that are not valid shell variable names.
  1011. case $ac_envvar in #(
  1012. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1013. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1014. esac
  1015. eval $ac_envvar=\$ac_optarg
  1016. export $ac_envvar ;;
  1017. *)
  1018. # FIXME: should be removed in autoconf 3.0.
  1019. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1020. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1021. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1022. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1023. ;;
  1024. esac
  1025. done
  1026. if test -n "$ac_prev"; then
  1027. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1028. as_fn_error $? "missing argument to $ac_option"
  1029. fi
  1030. if test -n "$ac_unrecognized_opts"; then
  1031. case $enable_option_checking in
  1032. no) ;;
  1033. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1034. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1035. esac
  1036. fi
  1037. # Check all directory arguments for consistency.
  1038. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1039. datadir sysconfdir sharedstatedir localstatedir includedir \
  1040. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1041. libdir localedir mandir
  1042. do
  1043. eval ac_val=\$$ac_var
  1044. # Remove trailing slashes.
  1045. case $ac_val in
  1046. */ )
  1047. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1048. eval $ac_var=\$ac_val;;
  1049. esac
  1050. # Be sure to have absolute directory names.
  1051. case $ac_val in
  1052. [\\/$]* | ?:[\\/]* ) continue;;
  1053. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1054. esac
  1055. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1056. done
  1057. # There might be people who depend on the old broken behavior: `$host'
  1058. # used to hold the argument of --host etc.
  1059. # FIXME: To remove some day.
  1060. build=$build_alias
  1061. host=$host_alias
  1062. target=$target_alias
  1063. # FIXME: To remove some day.
  1064. if test "x$host_alias" != x; then
  1065. if test "x$build_alias" = x; then
  1066. cross_compiling=maybe
  1067. elif test "x$build_alias" != "x$host_alias"; then
  1068. cross_compiling=yes
  1069. fi
  1070. fi
  1071. ac_tool_prefix=
  1072. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1073. test "$silent" = yes && exec 6>/dev/null
  1074. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1075. ac_ls_di=`ls -di .` &&
  1076. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1077. as_fn_error $? "working directory cannot be determined"
  1078. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1079. as_fn_error $? "pwd does not report name of working directory"
  1080. # Find the source files, if location was not specified.
  1081. if test -z "$srcdir"; then
  1082. ac_srcdir_defaulted=yes
  1083. # Try the directory containing this script, then the parent directory.
  1084. ac_confdir=`$as_dirname -- "$as_myself" ||
  1085. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1086. X"$as_myself" : 'X\(//\)[^/]' \| \
  1087. X"$as_myself" : 'X\(//\)$' \| \
  1088. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1089. $as_echo X"$as_myself" |
  1090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1091. s//\1/
  1092. q
  1093. }
  1094. /^X\(\/\/\)[^/].*/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\/\)$/{
  1099. s//\1/
  1100. q
  1101. }
  1102. /^X\(\/\).*/{
  1103. s//\1/
  1104. q
  1105. }
  1106. s/.*/./; q'`
  1107. srcdir=$ac_confdir
  1108. if test ! -r "$srcdir/$ac_unique_file"; then
  1109. srcdir=..
  1110. fi
  1111. else
  1112. ac_srcdir_defaulted=no
  1113. fi
  1114. if test ! -r "$srcdir/$ac_unique_file"; then
  1115. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1116. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1117. fi
  1118. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1119. ac_abs_confdir=`(
  1120. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1121. pwd)`
  1122. # When building in place, set srcdir=.
  1123. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1124. srcdir=.
  1125. fi
  1126. # Remove unnecessary trailing slashes from srcdir.
  1127. # Double slashes in file names in object file debugging info
  1128. # mess up M-x gdb in Emacs.
  1129. case $srcdir in
  1130. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1131. esac
  1132. for ac_var in $ac_precious_vars; do
  1133. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1134. eval ac_env_${ac_var}_value=\$${ac_var}
  1135. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1136. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1137. done
  1138. #
  1139. # Report the --help message.
  1140. #
  1141. if test "$ac_init_help" = "long"; then
  1142. # Omit some internal or obsolete options to make the list less imposing.
  1143. # This message is too long to be a string in the A/UX 3.1 sh.
  1144. cat <<_ACEOF
  1145. \`configure' configures this package to adapt to many kinds of systems.
  1146. Usage: $0 [OPTION]... [VAR=VALUE]...
  1147. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1148. VAR=VALUE. See below for descriptions of some of the useful variables.
  1149. Defaults for the options are specified in brackets.
  1150. Configuration:
  1151. -h, --help display this help and exit
  1152. --help=short display options specific to this package
  1153. --help=recursive display the short help of all the included packages
  1154. -V, --version display version information and exit
  1155. -q, --quiet, --silent do not print \`checking ...' messages
  1156. --cache-file=FILE cache test results in FILE [disabled]
  1157. -C, --config-cache alias for \`--cache-file=config.cache'
  1158. -n, --no-create do not create output files
  1159. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1160. Installation directories:
  1161. --prefix=PREFIX install architecture-independent files in PREFIX
  1162. [$ac_default_prefix]
  1163. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1164. [PREFIX]
  1165. By default, \`make install' will install all the files in
  1166. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1167. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1168. for instance \`--prefix=\$HOME'.
  1169. For better control, use the options below.
  1170. Fine tuning of the installation directories:
  1171. --bindir=DIR user executables [EPREFIX/bin]
  1172. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1173. --libexecdir=DIR program executables [EPREFIX/libexec]
  1174. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1175. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1176. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1177. --libdir=DIR object code libraries [EPREFIX/lib]
  1178. --includedir=DIR C header files [PREFIX/include]
  1179. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1180. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1181. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1182. --infodir=DIR info documentation [DATAROOTDIR/info]
  1183. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1184. --mandir=DIR man documentation [DATAROOTDIR/man]
  1185. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1186. --htmldir=DIR html documentation [DOCDIR]
  1187. --dvidir=DIR dvi documentation [DOCDIR]
  1188. --pdfdir=DIR pdf documentation [DOCDIR]
  1189. --psdir=DIR ps documentation [DOCDIR]
  1190. _ACEOF
  1191. cat <<\_ACEOF
  1192. _ACEOF
  1193. fi
  1194. if test -n "$ac_init_help"; then
  1195. cat <<\_ACEOF
  1196. Optional Features:
  1197. --disable-option-checking ignore unrecognized --enable/--with options
  1198. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1199. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1200. --enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc,
  1201. gcollect, bcheck (defaults to builtin)
  1202. --enable-packetver=ARG Sets the PACKETVER define. (see src/common/mmo.h)
  1203. --enable-debug[=ARG] Compiles extra debug code. (disabled by default)
  1204. (available options: yes, no, gdb)
  1205. --enable-prere[=ARG] Compiles serv in prere mode. (disabled by default)
  1206. (available options: yes, no)
  1207. --enable-warn[=ARG] Compiles with warnings. (disabled by default)
  1208. (available options: yes, no, extra)
  1209. --enable-buildbot[=ARG] (available options: yes, no)
  1210. --enable-rdtsc Uses rdtsc as timing source (disabled by default)
  1211. Enable it when you've timing issues. (For example:
  1212. in conjunction with XEN or Other Virtualization
  1213. mechanisms) Note: Please ensure that you've disabled
  1214. dynamic CPU-Frequencys, such as power saving
  1215. options. (On the most modern Dedicated Servers
  1216. cpufreq is preconfigured, see your distribution's
  1217. manual how to disable it)
  1218. --enable-profiler=ARG Profilers: no, gprof (disabled by default)
  1219. --disable-64bit Enforce 32bit output on x86_64 systems.
  1220. --enable-lto Enables or Disables Linktime Code Optimization (LTO
  1221. is enabled by default)
  1222. Optional Packages:
  1223. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1224. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1225. --with-maxconn[=ARG] optionally set the maximum connections the core can
  1226. handle (default: 16384) NOT USED YET - EXPERIMENTAL
  1227. --with-outputlogin[=ARG]
  1228. Specify the login-serv output name (defaults to
  1229. login-server)
  1230. --with-outputchar[=ARG] Specify the char-serv output name (defaults to
  1231. char-server)
  1232. --with-outputmap[=ARG] Specify the map-serv output name (defaults to
  1233. map-server)
  1234. --with-mysql[=ARG] optionally specify the path to the mysql_config
  1235. executable
  1236. --with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using
  1237. "mysql_config --include")
  1238. --with-MYSQL_LIBS=ARG specify MYSQL_LIBS manually (instead of using
  1239. "mysql_config --libs")
  1240. --with-pcre[=ARG] use PCRE library, optionally specify the full path
  1241. of pcre installation directory (by default pcre is
  1242. used if found)
  1243. --with-zlib=DIR root directory path of zlib installation (defaults
  1244. to /usr/local or /usr if not found in /usr/local).
  1245. Assumes that the header files are in DIR/include and
  1246. the library files are in DIR/lib
  1247. Some influential environment variables:
  1248. CC C compiler command
  1249. CFLAGS C compiler flags
  1250. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1251. nonstandard directory <lib dir>
  1252. LIBS libraries to pass to the linker, e.g. -l<library>
  1253. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1254. you have headers in a nonstandard directory <include dir>
  1255. CPP C preprocessor
  1256. Use these variables to override the choices made by `configure' or to help
  1257. it to find libraries and programs with nonstandard names/locations.
  1258. Report bugs to the package provider.
  1259. _ACEOF
  1260. ac_status=$?
  1261. fi
  1262. if test "$ac_init_help" = "recursive"; then
  1263. # If there are subdirs, report their specific --help.
  1264. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1265. test -d "$ac_dir" ||
  1266. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1267. continue
  1268. ac_builddir=.
  1269. case "$ac_dir" in
  1270. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1271. *)
  1272. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1273. # A ".." for each directory in $ac_dir_suffix.
  1274. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1275. case $ac_top_builddir_sub in
  1276. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1277. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1278. esac ;;
  1279. esac
  1280. ac_abs_top_builddir=$ac_pwd
  1281. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1282. # for backward compatibility:
  1283. ac_top_builddir=$ac_top_build_prefix
  1284. case $srcdir in
  1285. .) # We are building in place.
  1286. ac_srcdir=.
  1287. ac_top_srcdir=$ac_top_builddir_sub
  1288. ac_abs_top_srcdir=$ac_pwd ;;
  1289. [\\/]* | ?:[\\/]* ) # Absolute name.
  1290. ac_srcdir=$srcdir$ac_dir_suffix;
  1291. ac_top_srcdir=$srcdir
  1292. ac_abs_top_srcdir=$srcdir ;;
  1293. *) # Relative name.
  1294. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1295. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1296. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1297. esac
  1298. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1299. cd "$ac_dir" || { ac_status=$?; continue; }
  1300. # Check for guested configure.
  1301. if test -f "$ac_srcdir/configure.gnu"; then
  1302. echo &&
  1303. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1304. elif test -f "$ac_srcdir/configure"; then
  1305. echo &&
  1306. $SHELL "$ac_srcdir/configure" --help=recursive
  1307. else
  1308. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1309. fi || ac_status=$?
  1310. cd "$ac_pwd" || { ac_status=$?; break; }
  1311. done
  1312. fi
  1313. test -n "$ac_init_help" && exit $ac_status
  1314. if $ac_init_version; then
  1315. cat <<\_ACEOF
  1316. configure
  1317. generated by GNU Autoconf 2.69
  1318. Copyright (C) 2012 Free Software Foundation, Inc.
  1319. This configure script is free software; the Free Software Foundation
  1320. gives unlimited permission to copy, distribute and modify it.
  1321. _ACEOF
  1322. exit
  1323. fi
  1324. ## ------------------------ ##
  1325. ## Autoconf initialization. ##
  1326. ## ------------------------ ##
  1327. # ac_fn_c_try_compile LINENO
  1328. # --------------------------
  1329. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1330. ac_fn_c_try_compile ()
  1331. {
  1332. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1333. rm -f conftest.$ac_objext
  1334. if { { ac_try="$ac_compile"
  1335. case "(($ac_try" in
  1336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1337. *) ac_try_echo=$ac_try;;
  1338. esac
  1339. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1340. $as_echo "$ac_try_echo"; } >&5
  1341. (eval "$ac_compile") 2>conftest.err
  1342. ac_status=$?
  1343. if test -s conftest.err; then
  1344. grep -v '^ *+' conftest.err >conftest.er1
  1345. cat conftest.er1 >&5
  1346. mv -f conftest.er1 conftest.err
  1347. fi
  1348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1349. test $ac_status = 0; } && {
  1350. test -z "$ac_c_werror_flag" ||
  1351. test ! -s conftest.err
  1352. } && test -s conftest.$ac_objext; then :
  1353. ac_retval=0
  1354. else
  1355. $as_echo "$as_me: failed program was:" >&5
  1356. sed 's/^/| /' conftest.$ac_ext >&5
  1357. ac_retval=1
  1358. fi
  1359. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1360. as_fn_set_status $ac_retval
  1361. } # ac_fn_c_try_compile
  1362. # ac_fn_c_try_cpp LINENO
  1363. # ----------------------
  1364. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1365. ac_fn_c_try_cpp ()
  1366. {
  1367. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1368. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1369. case "(($ac_try" in
  1370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1371. *) ac_try_echo=$ac_try;;
  1372. esac
  1373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1374. $as_echo "$ac_try_echo"; } >&5
  1375. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1376. ac_status=$?
  1377. if test -s conftest.err; then
  1378. grep -v '^ *+' conftest.err >conftest.er1
  1379. cat conftest.er1 >&5
  1380. mv -f conftest.er1 conftest.err
  1381. fi
  1382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1383. test $ac_status = 0; } > conftest.i && {
  1384. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1385. test ! -s conftest.err
  1386. }; then :
  1387. ac_retval=0
  1388. else
  1389. $as_echo "$as_me: failed program was:" >&5
  1390. sed 's/^/| /' conftest.$ac_ext >&5
  1391. ac_retval=1
  1392. fi
  1393. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1394. as_fn_set_status $ac_retval
  1395. } # ac_fn_c_try_cpp
  1396. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1397. # -------------------------------------------------------
  1398. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1399. # the include files in INCLUDES and setting the cache variable VAR
  1400. # accordingly.
  1401. ac_fn_c_check_header_mongrel ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. if eval \${$3+:} false; then :
  1405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1406. $as_echo_n "checking for $2... " >&6; }
  1407. if eval \${$3+:} false; then :
  1408. $as_echo_n "(cached) " >&6
  1409. fi
  1410. eval ac_res=\$$3
  1411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1412. $as_echo "$ac_res" >&6; }
  1413. else
  1414. # Is the header compilable?
  1415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1416. $as_echo_n "checking $2 usability... " >&6; }
  1417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1418. /* end confdefs.h. */
  1419. $4
  1420. #include <$2>
  1421. _ACEOF
  1422. if ac_fn_c_try_compile "$LINENO"; then :
  1423. ac_header_compiler=yes
  1424. else
  1425. ac_header_compiler=no
  1426. fi
  1427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1429. $as_echo "$ac_header_compiler" >&6; }
  1430. # Is the header present?
  1431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1432. $as_echo_n "checking $2 presence... " >&6; }
  1433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1434. /* end confdefs.h. */
  1435. #include <$2>
  1436. _ACEOF
  1437. if ac_fn_c_try_cpp "$LINENO"; then :
  1438. ac_header_preproc=yes
  1439. else
  1440. ac_header_preproc=no
  1441. fi
  1442. rm -f conftest.err conftest.i conftest.$ac_ext
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1444. $as_echo "$ac_header_preproc" >&6; }
  1445. # So? What about this header?
  1446. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1447. yes:no: )
  1448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1449. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1451. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1452. ;;
  1453. no:yes:* )
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1455. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1457. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1459. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1461. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1463. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1464. ;;
  1465. esac
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1467. $as_echo_n "checking for $2... " >&6; }
  1468. if eval \${$3+:} false; then :
  1469. $as_echo_n "(cached) " >&6
  1470. else
  1471. eval "$3=\$ac_header_compiler"
  1472. fi
  1473. eval ac_res=\$$3
  1474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1475. $as_echo "$ac_res" >&6; }
  1476. fi
  1477. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1478. } # ac_fn_c_check_header_mongrel
  1479. # ac_fn_c_try_run LINENO
  1480. # ----------------------
  1481. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1482. # that executables *can* be run.
  1483. ac_fn_c_try_run ()
  1484. {
  1485. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1486. if { { ac_try="$ac_link"
  1487. case "(($ac_try" in
  1488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1489. *) ac_try_echo=$ac_try;;
  1490. esac
  1491. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1492. $as_echo "$ac_try_echo"; } >&5
  1493. (eval "$ac_link") 2>&5
  1494. ac_status=$?
  1495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1496. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1497. { { case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_try") 2>&5
  1504. ac_status=$?
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; }; }; then :
  1507. ac_retval=0
  1508. else
  1509. $as_echo "$as_me: program exited with status $ac_status" >&5
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=$ac_status
  1513. fi
  1514. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_run
  1518. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1519. # -------------------------------------------------------
  1520. # Tests whether HEADER exists and can be compiled using the include files in
  1521. # INCLUDES, setting the cache variable VAR accordingly.
  1522. ac_fn_c_check_header_compile ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1526. $as_echo_n "checking for $2... " >&6; }
  1527. if eval \${$3+:} false; then :
  1528. $as_echo_n "(cached) " >&6
  1529. else
  1530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1531. /* end confdefs.h. */
  1532. $4
  1533. #include <$2>
  1534. _ACEOF
  1535. if ac_fn_c_try_compile "$LINENO"; then :
  1536. eval "$3=yes"
  1537. else
  1538. eval "$3=no"
  1539. fi
  1540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1541. fi
  1542. eval ac_res=\$$3
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1544. $as_echo "$ac_res" >&6; }
  1545. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1546. } # ac_fn_c_check_header_compile
  1547. # ac_fn_c_try_link LINENO
  1548. # -----------------------
  1549. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1550. ac_fn_c_try_link ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. rm -f conftest.$ac_objext conftest$ac_exeext
  1554. if { { ac_try="$ac_link"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_link") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } && {
  1570. test -z "$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. } && test -s conftest$ac_exeext && {
  1573. test "$cross_compiling" = yes ||
  1574. test -x conftest$ac_exeext
  1575. }; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: failed program was:" >&5
  1579. sed 's/^/| /' conftest.$ac_ext >&5
  1580. ac_retval=1
  1581. fi
  1582. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1583. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1584. # interfere with the next link command; also delete a directory that is
  1585. # left behind by Apple's compiler. We do this before executing the actions.
  1586. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1587. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588. as_fn_set_status $ac_retval
  1589. } # ac_fn_c_try_link
  1590. # ac_fn_c_check_func LINENO FUNC VAR
  1591. # ----------------------------------
  1592. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1593. ac_fn_c_check_func ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1597. $as_echo_n "checking for $2... " >&6; }
  1598. if eval \${$3+:} false; then :
  1599. $as_echo_n "(cached) " >&6
  1600. else
  1601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1602. /* end confdefs.h. */
  1603. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1604. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1605. #define $2 innocuous_$2
  1606. /* System header to define __stub macros and hopefully few prototypes,
  1607. which can conflict with char $2 (); below.
  1608. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1609. <limits.h> exists even on freestanding compilers. */
  1610. #ifdef __STDC__
  1611. # include <limits.h>
  1612. #else
  1613. # include <assert.h>
  1614. #endif
  1615. #undef $2
  1616. /* Override any GCC internal prototype to avoid an error.
  1617. Use char because int might match the return type of a GCC
  1618. builtin and then its argument prototype would still apply. */
  1619. #ifdef __cplusplus
  1620. extern "C"
  1621. #endif
  1622. char $2 ();
  1623. /* The GNU C library defines this for functions which it implements
  1624. to always fail with ENOSYS. Some functions are actually named
  1625. something starting with __ and the normal name is an alias. */
  1626. #if defined __stub_$2 || defined __stub___$2
  1627. choke me
  1628. #endif
  1629. int
  1630. main ()
  1631. {
  1632. return $2 ();
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. if ac_fn_c_try_link "$LINENO"; then :
  1638. eval "$3=yes"
  1639. else
  1640. eval "$3=no"
  1641. fi
  1642. rm -f core conftest.err conftest.$ac_objext \
  1643. conftest$ac_exeext conftest.$ac_ext
  1644. fi
  1645. eval ac_res=\$$3
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1647. $as_echo "$ac_res" >&6; }
  1648. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1649. } # ac_fn_c_check_func
  1650. cat >config.log <<_ACEOF
  1651. This file contains any messages produced by compilers while
  1652. running configure, to aid debugging if configure makes a mistake.
  1653. It was created by $as_me, which was
  1654. generated by GNU Autoconf 2.69. Invocation command line was
  1655. $ $0 $@
  1656. _ACEOF
  1657. exec 5>>config.log
  1658. {
  1659. cat <<_ASUNAME
  1660. ## --------- ##
  1661. ## Platform. ##
  1662. ## --------- ##
  1663. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1664. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1665. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1666. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1667. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1668. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1669. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1670. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1671. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1672. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1673. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1674. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1675. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1676. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1677. _ASUNAME
  1678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1679. for as_dir in $PATH
  1680. do
  1681. IFS=$as_save_IFS
  1682. test -z "$as_dir" && as_dir=.
  1683. $as_echo "PATH: $as_dir"
  1684. done
  1685. IFS=$as_save_IFS
  1686. } >&5
  1687. cat >&5 <<_ACEOF
  1688. ## ----------- ##
  1689. ## Core tests. ##
  1690. ## ----------- ##
  1691. _ACEOF
  1692. # Keep a trace of the command line.
  1693. # Strip out --no-create and --no-recursion so they do not pile up.
  1694. # Strip out --silent because we don't want to record it for future runs.
  1695. # Also quote any args containing shell meta-characters.
  1696. # Make two passes to allow for proper duplicate-argument suppression.
  1697. ac_configure_args=
  1698. ac_configure_args0=
  1699. ac_configure_args1=
  1700. ac_must_keep_next=false
  1701. for ac_pass in 1 2
  1702. do
  1703. for ac_arg
  1704. do
  1705. case $ac_arg in
  1706. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1707. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1708. | -silent | --silent | --silen | --sile | --sil)
  1709. continue ;;
  1710. *\'*)
  1711. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1712. esac
  1713. case $ac_pass in
  1714. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1715. 2)
  1716. as_fn_append ac_configure_args1 " '$ac_arg'"
  1717. if test $ac_must_keep_next = true; then
  1718. ac_must_keep_next=false # Got value, back to normal.
  1719. else
  1720. case $ac_arg in
  1721. *=* | --config-cache | -C | -disable-* | --disable-* \
  1722. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1723. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1724. | -with-* | --with-* | -without-* | --without-* | --x)
  1725. case "$ac_configure_args0 " in
  1726. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1727. esac
  1728. ;;
  1729. -* ) ac_must_keep_next=true ;;
  1730. esac
  1731. fi
  1732. as_fn_append ac_configure_args " '$ac_arg'"
  1733. ;;
  1734. esac
  1735. done
  1736. done
  1737. { ac_configure_args0=; unset ac_configure_args0;}
  1738. { ac_configure_args1=; unset ac_configure_args1;}
  1739. # When interrupted or exit'd, cleanup temporary files, and complete
  1740. # config.log. We remove comments because anyway the quotes in there
  1741. # would cause problems or look ugly.
  1742. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1743. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1744. trap 'exit_status=$?
  1745. # Save into config.log some information that might help in debugging.
  1746. {
  1747. echo
  1748. $as_echo "## ---------------- ##
  1749. ## Cache variables. ##
  1750. ## ---------------- ##"
  1751. echo
  1752. # The following way of writing the cache mishandles newlines in values,
  1753. (
  1754. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1755. eval ac_val=\$$ac_var
  1756. case $ac_val in #(
  1757. *${as_nl}*)
  1758. case $ac_var in #(
  1759. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1760. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1761. esac
  1762. case $ac_var in #(
  1763. _ | IFS | as_nl) ;; #(
  1764. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1765. *) { eval $ac_var=; unset $ac_var;} ;;
  1766. esac ;;
  1767. esac
  1768. done
  1769. (set) 2>&1 |
  1770. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1771. *${as_nl}ac_space=\ *)
  1772. sed -n \
  1773. "s/'\''/'\''\\\\'\'''\''/g;
  1774. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1775. ;; #(
  1776. *)
  1777. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1778. ;;
  1779. esac |
  1780. sort
  1781. )
  1782. echo
  1783. $as_echo "## ----------------- ##
  1784. ## Output variables. ##
  1785. ## ----------------- ##"
  1786. echo
  1787. for ac_var in $ac_subst_vars
  1788. do
  1789. eval ac_val=\$$ac_var
  1790. case $ac_val in
  1791. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1792. esac
  1793. $as_echo "$ac_var='\''$ac_val'\''"
  1794. done | sort
  1795. echo
  1796. if test -n "$ac_subst_files"; then
  1797. $as_echo "## ------------------- ##
  1798. ## File substitutions. ##
  1799. ## ------------------- ##"
  1800. echo
  1801. for ac_var in $ac_subst_files
  1802. do
  1803. eval ac_val=\$$ac_var
  1804. case $ac_val in
  1805. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1806. esac
  1807. $as_echo "$ac_var='\''$ac_val'\''"
  1808. done | sort
  1809. echo
  1810. fi
  1811. if test -s confdefs.h; then
  1812. $as_echo "## ----------- ##
  1813. ## confdefs.h. ##
  1814. ## ----------- ##"
  1815. echo
  1816. cat confdefs.h
  1817. echo
  1818. fi
  1819. test "$ac_signal" != 0 &&
  1820. $as_echo "$as_me: caught signal $ac_signal"
  1821. $as_echo "$as_me: exit $exit_status"
  1822. } >&5
  1823. rm -f core *.core core.conftest.* &&
  1824. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1825. exit $exit_status
  1826. ' 0
  1827. for ac_signal in 1 2 13 15; do
  1828. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1829. done
  1830. ac_signal=0
  1831. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1832. rm -f -r conftest* confdefs.h
  1833. $as_echo "/* confdefs.h */" > confdefs.h
  1834. # Predefined preprocessor variables.
  1835. cat >>confdefs.h <<_ACEOF
  1836. #define PACKAGE_NAME "$PACKAGE_NAME"
  1837. _ACEOF
  1838. cat >>confdefs.h <<_ACEOF
  1839. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1840. _ACEOF
  1841. cat >>confdefs.h <<_ACEOF
  1842. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1843. _ACEOF
  1844. cat >>confdefs.h <<_ACEOF
  1845. #define PACKAGE_STRING "$PACKAGE_STRING"
  1846. _ACEOF
  1847. cat >>confdefs.h <<_ACEOF
  1848. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1849. _ACEOF
  1850. cat >>confdefs.h <<_ACEOF
  1851. #define PACKAGE_URL "$PACKAGE_URL"
  1852. _ACEOF
  1853. # Let the site file select an alternate cache file if it wants to.
  1854. # Prefer an explicitly selected file to automatically selected ones.
  1855. ac_site_file1=NONE
  1856. ac_site_file2=NONE
  1857. if test -n "$CONFIG_SITE"; then
  1858. # We do not want a PATH search for config.site.
  1859. case $CONFIG_SITE in #((
  1860. -*) ac_site_file1=./$CONFIG_SITE;;
  1861. */*) ac_site_file1=$CONFIG_SITE;;
  1862. *) ac_site_file1=./$CONFIG_SITE;;
  1863. esac
  1864. elif test "x$prefix" != xNONE; then
  1865. ac_site_file1=$prefix/share/config.site
  1866. ac_site_file2=$prefix/etc/config.site
  1867. else
  1868. ac_site_file1=$ac_default_prefix/share/config.site
  1869. ac_site_file2=$ac_default_prefix/etc/config.site
  1870. fi
  1871. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1872. do
  1873. test "x$ac_site_file" = xNONE && continue
  1874. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1876. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1877. sed 's/^/| /' "$ac_site_file" >&5
  1878. . "$ac_site_file" \
  1879. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1880. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1881. as_fn_error $? "failed to load site script $ac_site_file
  1882. See \`config.log' for more details" "$LINENO" 5; }
  1883. fi
  1884. done
  1885. if test -r "$cache_file"; then
  1886. # Some versions of bash will fail to source /dev/null (special files
  1887. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1888. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1890. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1891. case $cache_file in
  1892. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1893. *) . "./$cache_file";;
  1894. esac
  1895. fi
  1896. else
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1898. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1899. >$cache_file
  1900. fi
  1901. # Check that the precious variables saved in the cache have kept the same
  1902. # value.
  1903. ac_cache_corrupted=false
  1904. for ac_var in $ac_precious_vars; do
  1905. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1906. eval ac_new_set=\$ac_env_${ac_var}_set
  1907. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1908. eval ac_new_val=\$ac_env_${ac_var}_value
  1909. case $ac_old_set,$ac_new_set in
  1910. set,)
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1912. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1913. ac_cache_corrupted=: ;;
  1914. ,set)
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1916. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1917. ac_cache_corrupted=: ;;
  1918. ,);;
  1919. *)
  1920. if test "x$ac_old_val" != "x$ac_new_val"; then
  1921. # differences in whitespace do not lead to failure.
  1922. ac_old_val_w=`echo x $ac_old_val`
  1923. ac_new_val_w=`echo x $ac_new_val`
  1924. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1926. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1927. ac_cache_corrupted=:
  1928. else
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1930. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1931. eval $ac_var=\$ac_old_val
  1932. fi
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1934. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1936. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1937. fi;;
  1938. esac
  1939. # Pass precious variables to config.status.
  1940. if test "$ac_new_set" = set; then
  1941. case $ac_new_val in
  1942. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1943. *) ac_arg=$ac_var=$ac_new_val ;;
  1944. esac
  1945. case " $ac_configure_args " in
  1946. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1947. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1948. esac
  1949. fi
  1950. done
  1951. if $ac_cache_corrupted; then
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1953. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1955. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1956. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1957. fi
  1958. ## -------------------- ##
  1959. ## Main body of script. ##
  1960. ## -------------------- ##
  1961. ac_ext=c
  1962. ac_cpp='$CPP $CPPFLAGS'
  1963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1966. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  1967. ac_config_files="$ac_config_files 3rdparty/mt19937ar/Makefile 3rdparty/libconfig/Makefile"
  1968. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile"
  1969. ac_config_files="$ac_config_files src/map/Makefile src/tool/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="-O3"
  2605. else
  2606. CFLAGS=
  2607. fi
  2608. else
  2609. if test "$GCC" = yes; then
  2610. CFLAGS="-O3"
  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. OPT_LTO_AR=""
  4397. OPT_LTO=""
  4398. OLD_CFLAGS="$CFLAGS"
  4399. CFLAGS="$CFLAGS -flto -fuse-linker-plugin -ffat-lto-objects"
  4400. OLD_LDFLAGS="$LDFLAGS"
  4401. LDFLAGS="$LDFLAGS -flto -fuse-linker-plugin -ffat-lto-objects"
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ffat-lto-objects" >&5
  4403. $as_echo_n "checking whether $CC supports -ffat-lto-objects... " >&6; }
  4404. if test "$cross_compiling" = yes; then :
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4406. $as_echo "guessing no" >&6; }
  4407. else
  4408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4409. /* end confdefs.h. */
  4410. int main(int argc, char **argv){
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. if ac_fn_c_try_run "$LINENO"; then :
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4416. $as_echo "yes" >&6; }
  4417. OPT_LTO_AR="-ffat-lto-objects"
  4418. else
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4420. $as_echo "no" >&6; }
  4421. fi
  4422. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4423. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4424. fi
  4425. CFLAGS="$OLD_CFLAGS"
  4426. LDFLAGS="$OLD_LDFLAGS"
  4427. CFLAGS="$CFLAGS -flto -fuse-linker-plugin"
  4428. LDFLAGS="$LDFLAGS -flto -fuse-linker-plugin"
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -flto -fuse-linker-plugin" >&5
  4430. $as_echo_n "checking whether $CC supports -flto -fuse-linker-plugin... " >&6; }
  4431. if test "$cross_compiling" = yes; then :
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4433. $as_echo "guessing no" >&6; }
  4434. else
  4435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4436. /* end confdefs.h. */
  4437. int main(int argc, char **argv){
  4438. return 0;
  4439. }
  4440. _ACEOF
  4441. if ac_fn_c_try_run "$LINENO"; then :
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4443. $as_echo "yes" >&6; }
  4444. OPT_LTO_AR="-flto -fuse-linker-plugin $OPT_LTO_AR"
  4445. OPT_LTO="-flto -fuse-linker-plugin"
  4446. else
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4448. $as_echo "no" >&6; }
  4449. fi
  4450. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4451. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4452. fi
  4453. CFLAGS="$OLD_CFLAGS"
  4454. LDFLAGS="$OLD_LDFLAGS"
  4455. fi
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
  4457. $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
  4458. OLD_CFLAGS="$CFLAGS"
  4459. CFLAGS="$CFLAGS -Werror -Wno-unused-parameter"
  4460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4461. /* end confdefs.h. */
  4462. int foo;
  4463. _ACEOF
  4464. if ac_fn_c_try_compile "$LINENO"; then :
  4465. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  4466. # (unless there are also other warnings), so we also check for -Wfoo
  4467. # which always fails if not supported
  4468. CFLAGS="$OLD_CFLAGS -Werror -Wunused-parameter"
  4469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4470. /* end confdefs.h. */
  4471. int foo;
  4472. _ACEOF
  4473. if ac_fn_c_try_compile "$LINENO"; then :
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4475. $as_echo "yes" >&6; }
  4476. CFLAGS="$OLD_CFLAGS -Wno-unused-parameter"
  4477. # Optionally, run a test
  4478. if test "xint foo(int bar) { return 0; }" != "x"; then
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-unused-parameter" >&5
  4480. $as_echo_n "checking whether $CC can actually use -Wno-unused-parameter... " >&6; }
  4481. CFLAGS="$OLD_CFLAGS -Werror -Wunused-parameter"
  4482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4483. /* end confdefs.h. */
  4484. int foo(int bar) { return 0; }
  4485. _ACEOF
  4486. if ac_fn_c_try_compile "$LINENO"; then :
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  4488. $as_echo "not needed but enabled" >&6; }
  4489. CFLAGS="$OLD_CFLAGS"
  4490. else
  4491. CFLAGS="$OLD_CFLAGS -Werror -Wno-unused-parameter"
  4492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4493. /* end confdefs.h. */
  4494. int foo(int bar) { return 0; }
  4495. _ACEOF
  4496. if ac_fn_c_try_compile "$LINENO"; then :
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4498. $as_echo "yes" >&6; }
  4499. CFLAGS="$OLD_CFLAGS -Wno-unused-parameter"
  4500. else
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4502. $as_echo "no" >&6; }
  4503. CFLAGS="$OLD_CFLAGS"
  4504. fi
  4505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4506. fi
  4507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4508. fi
  4509. else
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4511. $as_echo "no" >&6; }
  4512. CFLAGS="$OLD_CFLAGS"
  4513. fi
  4514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4515. else
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4517. $as_echo "no" >&6; }
  4518. CFLAGS="$OLD_CFLAGS"
  4519. fi
  4520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-maybe-uninitialized" >&5
  4522. $as_echo_n "checking whether $CC supports -Wno-maybe-uninitialized... " >&6; }
  4523. OLD_CFLAGS="$CFLAGS"
  4524. CFLAGS="$CFLAGS -Werror -Wno-maybe-uninitialized"
  4525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4526. /* end confdefs.h. */
  4527. int foo;
  4528. _ACEOF
  4529. if ac_fn_c_try_compile "$LINENO"; then :
  4530. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  4531. # (unless there are also other warnings), so we also check for -Wfoo
  4532. # which always fails if not supported
  4533. CFLAGS="$OLD_CFLAGS -Werror -Wmaybe-uninitialized"
  4534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4535. /* end confdefs.h. */
  4536. int foo;
  4537. _ACEOF
  4538. if ac_fn_c_try_compile "$LINENO"; then :
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4540. $as_echo "yes" >&6; }
  4541. CFLAGS="$OLD_CFLAGS -Wno-maybe-uninitialized"
  4542. # Optionally, run a test
  4543. if test "x" != "x"; then
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-maybe-uninitialized" >&5
  4545. $as_echo_n "checking whether $CC can actually use -Wno-maybe-uninitialized... " >&6; }
  4546. CFLAGS="$OLD_CFLAGS -Werror -Wmaybe-uninitialized"
  4547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4548. /* end confdefs.h. */
  4549. _ACEOF
  4550. if ac_fn_c_try_compile "$LINENO"; then :
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  4552. $as_echo "not needed but enabled" >&6; }
  4553. CFLAGS="$OLD_CFLAGS"
  4554. else
  4555. CFLAGS="$OLD_CFLAGS -Werror -Wno-maybe-uninitialized"
  4556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4557. /* end confdefs.h. */
  4558. _ACEOF
  4559. if ac_fn_c_try_compile "$LINENO"; then :
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4561. $as_echo "yes" >&6; }
  4562. CFLAGS="$OLD_CFLAGS -Wno-maybe-uninitialized"
  4563. else
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4565. $as_echo "no" >&6; }
  4566. CFLAGS="$OLD_CFLAGS"
  4567. fi
  4568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4569. fi
  4570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4571. fi
  4572. else
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4574. $as_echo "no" >&6; }
  4575. CFLAGS="$OLD_CFLAGS"
  4576. fi
  4577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4578. else
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4580. $as_echo "no" >&6; }
  4581. CFLAGS="$OLD_CFLAGS"
  4582. fi
  4583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-clobbered" >&5
  4585. $as_echo_n "checking whether $CC supports -Wno-clobbered... " >&6; }
  4586. OLD_CFLAGS="$CFLAGS"
  4587. CFLAGS="$CFLAGS -Werror -Wno-clobbered"
  4588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4589. /* end confdefs.h. */
  4590. int foo;
  4591. _ACEOF
  4592. if ac_fn_c_try_compile "$LINENO"; then :
  4593. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  4594. # (unless there are also other warnings), so we also check for -Wfoo
  4595. # which always fails if not supported
  4596. CFLAGS="$OLD_CFLAGS -Werror -Wclobbered"
  4597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4598. /* end confdefs.h. */
  4599. int foo;
  4600. _ACEOF
  4601. if ac_fn_c_try_compile "$LINENO"; then :
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4603. $as_echo "yes" >&6; }
  4604. CFLAGS="$OLD_CFLAGS -Wno-clobbered"
  4605. # Optionally, run a test
  4606. if test "x" != "x"; then
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-clobbered" >&5
  4608. $as_echo_n "checking whether $CC can actually use -Wno-clobbered... " >&6; }
  4609. CFLAGS="$OLD_CFLAGS -Werror -Wclobbered"
  4610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4611. /* end confdefs.h. */
  4612. _ACEOF
  4613. if ac_fn_c_try_compile "$LINENO"; then :
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  4615. $as_echo "not needed but enabled" >&6; }
  4616. CFLAGS="$OLD_CFLAGS"
  4617. else
  4618. CFLAGS="$OLD_CFLAGS -Werror -Wno-clobbered"
  4619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4620. /* end confdefs.h. */
  4621. _ACEOF
  4622. if ac_fn_c_try_compile "$LINENO"; then :
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4624. $as_echo "yes" >&6; }
  4625. CFLAGS="$OLD_CFLAGS -Wno-clobbered"
  4626. else
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4628. $as_echo "no" >&6; }
  4629. CFLAGS="$OLD_CFLAGS"
  4630. fi
  4631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4632. fi
  4633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4634. fi
  4635. else
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4637. $as_echo "no" >&6; }
  4638. CFLAGS="$OLD_CFLAGS"
  4639. fi
  4640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4641. else
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4643. $as_echo "no" >&6; }
  4644. CFLAGS="$OLD_CFLAGS"
  4645. fi
  4646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wempty-body" >&5
  4648. $as_echo_n "checking whether $CC supports -Wempty-body... " >&6; }
  4649. OLD_CFLAGS="$CFLAGS"
  4650. CFLAGS="$CFLAGS -Werror -Wempty-body"
  4651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4652. /* end confdefs.h. */
  4653. int foo;
  4654. _ACEOF
  4655. if ac_fn_c_try_compile "$LINENO"; then :
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4657. $as_echo "yes" >&6; }
  4658. CFLAGS="$OLD_CFLAGS -Wempty-body"
  4659. # Optionally, run a test
  4660. if test "x" != "x"; then
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wempty-body" >&5
  4662. $as_echo_n "checking whether $CC can actually use -Wempty-body... " >&6; }
  4663. CFLAGS="$OLD_CFLAGS -Werror -Wempty-body"
  4664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4665. /* end confdefs.h. */
  4666. _ACEOF
  4667. if ac_fn_c_try_compile "$LINENO"; then :
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4669. $as_echo "no" >&6; }
  4670. CFLAGS="$OLD_CFLAGS"
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4672. $as_echo "yes" >&6; }
  4673. CFLAGS="$OLD_CFLAGS -Wempty-body"
  4674. fi
  4675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4676. fi
  4677. else
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4679. $as_echo "no" >&6; }
  4680. CFLAGS="$OLD_CFLAGS"
  4681. fi
  4682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wnewline-eof" >&5
  4684. $as_echo_n "checking whether $CC supports -Wnewline-eof... " >&6; }
  4685. OLD_CFLAGS="$CFLAGS"
  4686. CFLAGS="$CFLAGS -Werror -Wnewline-eof"
  4687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4688. /* end confdefs.h. */
  4689. int foo;
  4690. _ACEOF
  4691. if ac_fn_c_try_compile "$LINENO"; then :
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4693. $as_echo "yes" >&6; }
  4694. CFLAGS="$OLD_CFLAGS -Wnewline-eof"
  4695. # Optionally, run a test
  4696. if test "x" != "x"; then
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wnewline-eof" >&5
  4698. $as_echo_n "checking whether $CC can actually use -Wnewline-eof... " >&6; }
  4699. CFLAGS="$OLD_CFLAGS -Werror -Wnewline-eof"
  4700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4701. /* end confdefs.h. */
  4702. _ACEOF
  4703. if ac_fn_c_try_compile "$LINENO"; then :
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4705. $as_echo "no" >&6; }
  4706. CFLAGS="$OLD_CFLAGS"
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4708. $as_echo "yes" >&6; }
  4709. CFLAGS="$OLD_CFLAGS -Wnewline-eof"
  4710. fi
  4711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4712. fi
  4713. else
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4715. $as_echo "no" >&6; }
  4716. CFLAGS="$OLD_CFLAGS"
  4717. fi
  4718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wint-conversion" >&5
  4720. $as_echo_n "checking whether $CC supports -Wint-conversion... " >&6; }
  4721. OLD_CFLAGS="$CFLAGS"
  4722. CFLAGS="$CFLAGS -Werror -Wint-conversion"
  4723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4724. /* end confdefs.h. */
  4725. int foo;
  4726. _ACEOF
  4727. if ac_fn_c_try_compile "$LINENO"; then :
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4729. $as_echo "yes" >&6; }
  4730. CFLAGS="$OLD_CFLAGS -Wint-conversion"
  4731. # Optionally, run a test
  4732. if test "x" != "x"; then
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wint-conversion" >&5
  4734. $as_echo_n "checking whether $CC can actually use -Wint-conversion... " >&6; }
  4735. CFLAGS="$OLD_CFLAGS -Werror -Wint-conversion"
  4736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4737. /* end confdefs.h. */
  4738. _ACEOF
  4739. if ac_fn_c_try_compile "$LINENO"; then :
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4741. $as_echo "no" >&6; }
  4742. CFLAGS="$OLD_CFLAGS"
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4744. $as_echo "yes" >&6; }
  4745. CFLAGS="$OLD_CFLAGS -Wint-conversion"
  4746. fi
  4747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4748. fi
  4749. else
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4751. $as_echo "no" >&6; }
  4752. CFLAGS="$OLD_CFLAGS"
  4753. fi
  4754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wenum-conversion" >&5
  4756. $as_echo_n "checking whether $CC supports -Wenum-conversion... " >&6; }
  4757. OLD_CFLAGS="$CFLAGS"
  4758. CFLAGS="$CFLAGS -Werror -Wenum-conversion"
  4759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4760. /* end confdefs.h. */
  4761. int foo;
  4762. _ACEOF
  4763. if ac_fn_c_try_compile "$LINENO"; then :
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4765. $as_echo "yes" >&6; }
  4766. CFLAGS="$OLD_CFLAGS -Wenum-conversion"
  4767. # Optionally, run a test
  4768. if test "x" != "x"; then
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wenum-conversion" >&5
  4770. $as_echo_n "checking whether $CC can actually use -Wenum-conversion... " >&6; }
  4771. CFLAGS="$OLD_CFLAGS -Werror -Wenum-conversion"
  4772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4773. /* end confdefs.h. */
  4774. _ACEOF
  4775. if ac_fn_c_try_compile "$LINENO"; then :
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4777. $as_echo "no" >&6; }
  4778. CFLAGS="$OLD_CFLAGS"
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4780. $as_echo "yes" >&6; }
  4781. CFLAGS="$OLD_CFLAGS -Wenum-conversion"
  4782. fi
  4783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4784. fi
  4785. else
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4787. $as_echo "no" >&6; }
  4788. CFLAGS="$OLD_CFLAGS"
  4789. fi
  4790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshorten-64-to-32" >&5
  4792. $as_echo_n "checking whether $CC supports -Wshorten-64-to-32... " >&6; }
  4793. OLD_CFLAGS="$CFLAGS"
  4794. CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
  4795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4796. /* end confdefs.h. */
  4797. int foo;
  4798. _ACEOF
  4799. if ac_fn_c_try_compile "$LINENO"; then :
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4801. $as_echo "yes" >&6; }
  4802. CFLAGS="$OLD_CFLAGS -Wshorten-64-to-32"
  4803. # Optionally, run a test
  4804. if test "x" != "x"; then
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wshorten-64-to-32" >&5
  4806. $as_echo_n "checking whether $CC can actually use -Wshorten-64-to-32... " >&6; }
  4807. CFLAGS="$OLD_CFLAGS -Werror -Wshorten-64-to-32"
  4808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4809. /* end confdefs.h. */
  4810. _ACEOF
  4811. if ac_fn_c_try_compile "$LINENO"; then :
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4813. $as_echo "no" >&6; }
  4814. CFLAGS="$OLD_CFLAGS"
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4816. $as_echo "yes" >&6; }
  4817. CFLAGS="$OLD_CFLAGS -Wshorten-64-to-32"
  4818. fi
  4819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4820. fi
  4821. else
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4823. $as_echo "no" >&6; }
  4824. CFLAGS="$OLD_CFLAGS"
  4825. fi
  4826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wconstant-conversion" >&5
  4828. $as_echo_n "checking whether $CC supports -Wconstant-conversion... " >&6; }
  4829. OLD_CFLAGS="$CFLAGS"
  4830. CFLAGS="$CFLAGS -Werror -Wconstant-conversion"
  4831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4832. /* end confdefs.h. */
  4833. int foo;
  4834. _ACEOF
  4835. if ac_fn_c_try_compile "$LINENO"; then :
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4837. $as_echo "yes" >&6; }
  4838. CFLAGS="$OLD_CFLAGS -Wconstant-conversion"
  4839. # Optionally, run a test
  4840. if test "x" != "x"; then
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wconstant-conversion" >&5
  4842. $as_echo_n "checking whether $CC can actually use -Wconstant-conversion... " >&6; }
  4843. CFLAGS="$OLD_CFLAGS -Werror -Wconstant-conversion"
  4844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4845. /* end confdefs.h. */
  4846. _ACEOF
  4847. if ac_fn_c_try_compile "$LINENO"; then :
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4849. $as_echo "no" >&6; }
  4850. CFLAGS="$OLD_CFLAGS"
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4852. $as_echo "yes" >&6; }
  4853. CFLAGS="$OLD_CFLAGS -Wconstant-conversion"
  4854. fi
  4855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4856. fi
  4857. else
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4859. $as_echo "no" >&6; }
  4860. CFLAGS="$OLD_CFLAGS"
  4861. fi
  4862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbool-conversion" >&5
  4864. $as_echo_n "checking whether $CC supports -Wbool-conversion... " >&6; }
  4865. OLD_CFLAGS="$CFLAGS"
  4866. CFLAGS="$CFLAGS -Werror -Wbool-conversion"
  4867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4868. /* end confdefs.h. */
  4869. int foo;
  4870. _ACEOF
  4871. if ac_fn_c_try_compile "$LINENO"; then :
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4873. $as_echo "yes" >&6; }
  4874. CFLAGS="$OLD_CFLAGS -Wbool-conversion"
  4875. # Optionally, run a test
  4876. if test "x" != "x"; then
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wbool-conversion" >&5
  4878. $as_echo_n "checking whether $CC can actually use -Wbool-conversion... " >&6; }
  4879. CFLAGS="$OLD_CFLAGS -Werror -Wbool-conversion"
  4880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4881. /* end confdefs.h. */
  4882. _ACEOF
  4883. if ac_fn_c_try_compile "$LINENO"; then :
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4885. $as_echo "no" >&6; }
  4886. CFLAGS="$OLD_CFLAGS"
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4888. $as_echo "yes" >&6; }
  4889. CFLAGS="$OLD_CFLAGS -Wbool-conversion"
  4890. fi
  4891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4892. fi
  4893. else
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4895. $as_echo "no" >&6; }
  4896. CFLAGS="$OLD_CFLAGS"
  4897. fi
  4898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-switch" >&5
  4900. $as_echo_n "checking whether $CC supports -Wno-switch... " >&6; }
  4901. OLD_CFLAGS="$CFLAGS"
  4902. CFLAGS="$CFLAGS -Werror -Wno-switch"
  4903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4904. /* end confdefs.h. */
  4905. int foo;
  4906. _ACEOF
  4907. if ac_fn_c_try_compile "$LINENO"; then :
  4908. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  4909. # (unless there are also other warnings), so we also check for -Wfoo
  4910. # which always fails if not supported
  4911. CFLAGS="$OLD_CFLAGS -Werror -Wswitch"
  4912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4913. /* end confdefs.h. */
  4914. int foo;
  4915. _ACEOF
  4916. if ac_fn_c_try_compile "$LINENO"; then :
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4918. $as_echo "yes" >&6; }
  4919. CFLAGS="$OLD_CFLAGS -Wno-switch"
  4920. # Optionally, run a test
  4921. if test "x" != "x"; then
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-switch" >&5
  4923. $as_echo_n "checking whether $CC can actually use -Wno-switch... " >&6; }
  4924. CFLAGS="$OLD_CFLAGS -Werror -Wswitch"
  4925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4926. /* end confdefs.h. */
  4927. _ACEOF
  4928. if ac_fn_c_try_compile "$LINENO"; then :
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  4930. $as_echo "not needed but enabled" >&6; }
  4931. CFLAGS="$OLD_CFLAGS"
  4932. else
  4933. CFLAGS="$OLD_CFLAGS -Werror -Wno-switch"
  4934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4935. /* end confdefs.h. */
  4936. _ACEOF
  4937. if ac_fn_c_try_compile "$LINENO"; then :
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4939. $as_echo "yes" >&6; }
  4940. CFLAGS="$OLD_CFLAGS -Wno-switch"
  4941. else
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4943. $as_echo "no" >&6; }
  4944. CFLAGS="$OLD_CFLAGS"
  4945. fi
  4946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4947. fi
  4948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4949. fi
  4950. else
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4952. $as_echo "no" >&6; }
  4953. CFLAGS="$OLD_CFLAGS"
  4954. fi
  4955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4956. else
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4958. $as_echo "no" >&6; }
  4959. CFLAGS="$OLD_CFLAGS"
  4960. fi
  4961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
  4963. $as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
  4964. OLD_CFLAGS="$CFLAGS"
  4965. CFLAGS="$CFLAGS -Werror -Wno-missing-field-initializers"
  4966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4967. /* end confdefs.h. */
  4968. int foo;
  4969. _ACEOF
  4970. if ac_fn_c_try_compile "$LINENO"; then :
  4971. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  4972. # (unless there are also other warnings), so we also check for -Wfoo
  4973. # which always fails if not supported
  4974. CFLAGS="$OLD_CFLAGS -Werror -Wmissing-field-initializers"
  4975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4976. /* end confdefs.h. */
  4977. int foo;
  4978. _ACEOF
  4979. if ac_fn_c_try_compile "$LINENO"; then :
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4981. $as_echo "yes" >&6; }
  4982. CFLAGS="$OLD_CFLAGS -Wno-missing-field-initializers"
  4983. # Optionally, run a test
  4984. if test "x" != "x"; then
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-missing-field-initializers" >&5
  4986. $as_echo_n "checking whether $CC can actually use -Wno-missing-field-initializers... " >&6; }
  4987. CFLAGS="$OLD_CFLAGS -Werror -Wmissing-field-initializers"
  4988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4989. /* end confdefs.h. */
  4990. _ACEOF
  4991. if ac_fn_c_try_compile "$LINENO"; then :
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  4993. $as_echo "not needed but enabled" >&6; }
  4994. CFLAGS="$OLD_CFLAGS"
  4995. else
  4996. CFLAGS="$OLD_CFLAGS -Werror -Wno-missing-field-initializers"
  4997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4998. /* end confdefs.h. */
  4999. _ACEOF
  5000. if ac_fn_c_try_compile "$LINENO"; then :
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5002. $as_echo "yes" >&6; }
  5003. CFLAGS="$OLD_CFLAGS -Wno-missing-field-initializers"
  5004. else
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5006. $as_echo "no" >&6; }
  5007. CFLAGS="$OLD_CFLAGS"
  5008. fi
  5009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5010. fi
  5011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5012. fi
  5013. else
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5015. $as_echo "no" >&6; }
  5016. CFLAGS="$OLD_CFLAGS"
  5017. fi
  5018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5019. else
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5021. $as_echo "no" >&6; }
  5022. CFLAGS="$OLD_CFLAGS"
  5023. fi
  5024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5025. # Certain versions of gcc make -Wshadow completely useless by making it flood
  5026. # you with unnecessary warnings <https://lkml.org/lkml/2006/11/28/239>
  5027. # Let's check if we can really use it
  5028. SAVED_OLD_CFLAGS="$CFLAGS"
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshadow" >&5
  5030. $as_echo_n "checking whether $CC supports -Wshadow... " >&6; }
  5031. OLD_CFLAGS="$CFLAGS"
  5032. CFLAGS="$CFLAGS -Werror -Wshadow"
  5033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5034. /* end confdefs.h. */
  5035. int foo;
  5036. _ACEOF
  5037. if ac_fn_c_try_compile "$LINENO"; then :
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5039. $as_echo "yes" >&6; }
  5040. CFLAGS="$OLD_CFLAGS -Wshadow"
  5041. # Optionally, run a test
  5042. if test "x" != "x"; then
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wshadow" >&5
  5044. $as_echo_n "checking whether $CC can actually use -Wshadow... " >&6; }
  5045. CFLAGS="$OLD_CFLAGS -Werror -Wshadow"
  5046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5047. /* end confdefs.h. */
  5048. _ACEOF
  5049. if ac_fn_c_try_compile "$LINENO"; then :
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5051. $as_echo "no" >&6; }
  5052. CFLAGS="$OLD_CFLAGS"
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5054. $as_echo "yes" >&6; }
  5055. CFLAGS="$OLD_CFLAGS -Wshadow"
  5056. fi
  5057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5058. fi
  5059. else
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5061. $as_echo "no" >&6; }
  5062. CFLAGS="$OLD_CFLAGS"
  5063. fi
  5064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5065. if test "x$CFLAGS" != "x$SAVED_OLD_CFLAGS"; then
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can efficiently use -Wshadow" >&5
  5067. $as_echo_n "checking whether $CC can efficiently use -Wshadow... " >&6; }
  5068. NEW_CFLAGS="$CFLAGS"
  5069. CFLAGS="$CFLAGS -Werror -Wshadow"
  5070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5071. /* end confdefs.h. */
  5072. int foo(void) {
  5073. return 0;
  5074. }
  5075. int bar(void) {
  5076. int foo = 0;
  5077. return foo + 1;
  5078. }
  5079. _ACEOF
  5080. if ac_fn_c_try_compile "$LINENO"; then :
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5082. $as_echo "yes" >&6; }
  5083. CFLAGS="$NEW_CFLAGS"
  5084. else
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5086. $as_echo "no" >&6; }
  5087. CFLAGS="$SAVED_OLD_CFLAGS"
  5088. fi
  5089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5090. fi
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fPIC" >&5
  5092. $as_echo_n "checking whether $CC supports -fPIC... " >&6; }
  5093. OLD_CFLAGS="$CFLAGS"
  5094. CFLAGS="$CFLAGS -fPIC"
  5095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5096. /* end confdefs.h. */
  5097. int foo;
  5098. _ACEOF
  5099. if ac_fn_c_try_compile "$LINENO"; then :
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5101. $as_echo "yes" >&6; }
  5102. compiler_supports_pic="yes"
  5103. else
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5105. $as_echo "no" >&6; }
  5106. compiler_supports_pic="no"
  5107. fi
  5108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5109. CFLAGS="$OLD_CFLAGS"
  5110. #
  5111. # option for shared objects
  5112. #
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to make shared objects" >&5
  5114. $as_echo_n "checking how to make shared objects... " >&6; }
  5115. OLD_CFLAGS="$CFLAGS"
  5116. compiler_shared_objects=""
  5117. compiler_supports_shared_objects="no"
  5118. if test "$compiler_supports_pic" = "yes" ; then
  5119. my_shared_test_flags="$CFLAGS -fPIC"
  5120. fi
  5121. # default
  5122. CFLAGS="$my_shared_test_flags -shared"
  5123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5124. /* end confdefs.h. */
  5125. int bar = 0;
  5126. int foo(void)
  5127. {
  5128. return bar;
  5129. }
  5130. _ACEOF
  5131. if ac_fn_c_try_link "$LINENO"; then :
  5132. compiler_shared_objects="-shared"
  5133. compiler_supports_shared_objects="yes"
  5134. fi
  5135. rm -f core conftest.err conftest.$ac_objext \
  5136. conftest$ac_exeext conftest.$ac_ext
  5137. # BeOS specific
  5138. CFLAGS="$my_shared_test_flags -nostart"
  5139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5140. /* end confdefs.h. */
  5141. int bar = 0;
  5142. int foo(void)
  5143. {
  5144. return bar;
  5145. }
  5146. _ACEOF
  5147. if ac_fn_c_try_link "$LINENO"; then :
  5148. compiler_shared_objects="-nostart"
  5149. compiler_supports_shared_objects="yes"
  5150. fi
  5151. rm -f core conftest.err conftest.$ac_objext \
  5152. conftest$ac_exeext conftest.$ac_ext
  5153. CFLAGS="$OLD_CFLAGS"
  5154. if test "$compiler_supports_shared_objects" = "no" ; then
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
  5156. $as_echo "not supported" >&6; }
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler is unable to generate shared objects, disabled plugins (optional)" >&5
  5158. $as_echo "$as_me: compiler is unable to generate shared objects, disabled plugins (optional)" >&6;}
  5159. WITH_PLUGINS="no"
  5160. else
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_shared_objects $compiler_supports_shared_objects" >&5
  5162. $as_echo "$compiler_shared_objects $compiler_supports_shared_objects" >&6; }
  5163. SOFLAGS="$SOFLAGS $compiler_shared_objects"
  5164. #
  5165. # On certain platforms, undefined references on shared libraries won't be checked
  5166. # unless explicitly required with the --no-undefined linker option
  5167. #
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -Wl,--no-undefined to check for undefined references in shared objects" >&5
  5169. $as_echo_n "checking whether $CC needs -Wl,--no-undefined to check for undefined references in shared objects... " >&6; }
  5170. OLD_CFLAGS="$CFLAGS"
  5171. CFLAGS="$SOFLAGS"
  5172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5173. /* end confdefs.h. */
  5174. void foo(void) {
  5175. foobar();
  5176. }
  5177. _ACEOF
  5178. if ac_fn_c_try_link "$LINENO"; then :
  5179. CFLAGS="$SOFLAGS -Wl,--no-undefined"
  5180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5181. /* end confdefs.h. */
  5182. int bar = 0;
  5183. int foo(void) {
  5184. return bar;
  5185. }
  5186. _ACEOF
  5187. if ac_fn_c_try_link "$LINENO"; then :
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5189. $as_echo "yes" >&6; }
  5190. SOFLAGS="$SOFLAGS -Wl,--no-undefined"
  5191. else
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (undefined references check will be ignored)" >&5
  5193. $as_echo "unsupported (undefined references check will be ignored)" >&6; }
  5194. fi
  5195. rm -f core conftest.err conftest.$ac_objext \
  5196. conftest$ac_exeext conftest.$ac_ext
  5197. else
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5199. $as_echo "no" >&6; }
  5200. fi
  5201. rm -f core conftest.err conftest.$ac_objext \
  5202. conftest$ac_exeext conftest.$ac_ext
  5203. CFLAGS="$OLD_CFLAGS"
  5204. #
  5205. # shared objects need position independent code; some platforms emit
  5206. # it always, others need -fPIC
  5207. #
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -fPIC for shared objects" >&5
  5209. $as_echo_n "checking whether $CC needs -fPIC for shared objects... " >&6; }
  5210. OLD_CFLAGS="$CFLAGS"
  5211. CFLAGS="$CFLAGS $SOFLAGS"
  5212. WITH_PLUGINS="yes"
  5213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5214. /* end confdefs.h. */
  5215. int bar = 0;
  5216. int foo(void)
  5217. {
  5218. return bar;
  5219. }
  5220. _ACEOF
  5221. if ac_fn_c_try_link "$LINENO"; then :
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5223. $as_echo "no" >&6; }
  5224. CFLAGS="$OLD_CFLAGS"
  5225. else
  5226. if test "$compiler_supports_pic" = "yes" ; then
  5227. # Verify if -shared really fails due to lack of -fPIC or something else
  5228. CFLAGS="$CFLAGS -fPIC"
  5229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5230. /* end confdefs.h. */
  5231. int bar = 0;
  5232. int foo(void)
  5233. {
  5234. return bar;
  5235. }
  5236. _ACEOF
  5237. if ac_fn_c_try_link "$LINENO"; then :
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5239. $as_echo "yes" >&6; }
  5240. CFLAGS="$OLD_CFLAGS -fPIC"
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, but fails for another reason" >&5
  5243. $as_echo "no, but fails for another reason" >&6; }
  5244. as_fn_error $? "compiler is unable to compile shared objects for an unhandled reason, please report this with attached config.log... stopping" "$LINENO" 5
  5245. fi
  5246. rm -f core conftest.err conftest.$ac_objext \
  5247. conftest$ac_exeext conftest.$ac_ext
  5248. else
  5249. # Disable compilation of plugins (optional), so 'make all' does not fail
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but unsupported" >&5
  5251. $as_echo "yes, but unsupported" >&6; }
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler is unable to generate position independent code, disabled plugins (optional)" >&5
  5253. $as_echo "$as_me: compiler is unable to generate position independent code, disabled plugins (optional)" >&6;}
  5254. WITH_PLUGINS="no"
  5255. fi
  5256. fi
  5257. rm -f core conftest.err conftest.$ac_objext \
  5258. conftest$ac_exeext conftest.$ac_ext
  5259. fi
  5260. my_shared_test_flags=""
  5261. #
  5262. # -O2 implies -fstrict-aliasing, but the code is not safe for that
  5263. #
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
  5265. $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
  5266. OLD_CFLAGS="$CFLAGS"
  5267. CFLAGS="$CFLAGS -fno-strict-aliasing"
  5268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5269. /* end confdefs.h. */
  5270. int foo;
  5271. _ACEOF
  5272. if ac_fn_c_try_compile "$LINENO"; then :
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5274. $as_echo "yes" >&6; }
  5275. else
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5277. $as_echo "no" >&6; }
  5278. CFLAGS="$OLD_CFLAGS"
  5279. fi
  5280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5281. ###############################################################################
  5282. # Check for libraries and header files.
  5283. #
  5284. #
  5285. # setrlimit - used to set the socket limit
  5286. #
  5287. ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
  5288. if test "x$ac_cv_func_setrlimit" = xyes; then :
  5289. CPPFLAGS="$CPPFLAGS -DHAVE_SETRLIMIT"
  5290. fi
  5291. #
  5292. # strnlen - string length with upper scan bound
  5293. #
  5294. ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
  5295. if test "x$ac_cv_func_strnlen" = xyes; then :
  5296. CPPFLAGS="$CPPFLAGS -DHAVE_STRNLEN"
  5297. fi
  5298. # libconfig
  5299. for ac_func in uselocale
  5300. do :
  5301. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  5302. if test "x$ac_cv_func_uselocale" = xyes; then :
  5303. cat >>confdefs.h <<_ACEOF
  5304. #define HAVE_USELOCALE 1
  5305. _ACEOF
  5306. fi
  5307. done
  5308. for ac_func in newlocale
  5309. do :
  5310. ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
  5311. if test "x$ac_cv_func_newlocale" = xyes; then :
  5312. cat >>confdefs.h <<_ACEOF
  5313. #define HAVE_NEWLOCALE 1
  5314. _ACEOF
  5315. fi
  5316. done
  5317. for ac_func in freelocale
  5318. do :
  5319. ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
  5320. if test "x$ac_cv_func_freelocale" = xyes; then :
  5321. cat >>confdefs.h <<_ACEOF
  5322. #define HAVE_FREELOCALE 1
  5323. _ACEOF
  5324. fi
  5325. done
  5326. for ac_header in xlocale.h
  5327. do :
  5328. ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "
  5329. #ifdef HAVE_XLOCALE_H
  5330. # include <xlocale.h>
  5331. #endif
  5332. "
  5333. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  5334. cat >>confdefs.h <<_ACEOF
  5335. #define HAVE_XLOCALE_H 1
  5336. _ACEOF
  5337. fi
  5338. done
  5339. #
  5340. # Memory manager
  5341. #
  5342. case $enable_manager in
  5343. "no")
  5344. CPPFLAGS="$CPPFLAGS -DNO_MEMMGR"
  5345. ;;
  5346. "builtin")
  5347. # enabled by default
  5348. ;;
  5349. "memwatch")
  5350. CPPFLAGS="$CPPFLAGS -DMEMWATCH"
  5351. ac_fn_c_check_header_mongrel "$LINENO" "memwatch.h" "ac_cv_header_memwatch_h" "$ac_includes_default"
  5352. if test "x$ac_cv_header_memwatch_h" = xyes; then :
  5353. else
  5354. as_fn_error $? "memwatch header not found... stopping" "$LINENO" 5
  5355. fi
  5356. ;;
  5357. "dmalloc")
  5358. CPPFLAGS="$CPPFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK"
  5359. LIBS="$LIBS -ldmalloc"
  5360. ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
  5361. if test "x$ac_cv_header_dmalloc_h" = xyes; then :
  5362. else
  5363. as_fn_error $? "dmalloc header not found... stopping" "$LINENO" 5
  5364. fi
  5365. ;;
  5366. "gcollect")
  5367. CPPFLAGS="$CPPFLAGS -DGCOLLECT"
  5368. LIBS="$LIBS -lgc"
  5369. ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
  5370. if test "x$ac_cv_header_gc_h" = xyes; then :
  5371. else
  5372. as_fn_error $? "gcollect header not found... stopping" "$LINENO" 5
  5373. fi
  5374. ;;
  5375. "bcheck")
  5376. CPPFLAGS="$CPPFLAGS -DBCHECK"
  5377. ;;
  5378. esac
  5379. #
  5380. # Packetver
  5381. #
  5382. if test -n "$enable_packetver" ; then
  5383. CPPFLAGS="$CPPFLAGS -DPACKETVER=$enable_packetver"
  5384. fi
  5385. #
  5386. # Debug
  5387. #
  5388. case $enable_debug in
  5389. "yes")
  5390. if test $ac_cv_prog_cc_g = yes; then
  5391. CPPFLAGS="$CPPFLAGS -g -DDEBUG"
  5392. LDFLAGS="$LDFLAGS -g"
  5393. else
  5394. echo "error: --enable-debug flag=$enable_debug entered but the compiler does not support -g"
  5395. exit 1
  5396. fi
  5397. ;;
  5398. "gdb")
  5399. if test $ac_cv_prog_cc_g = yes; then
  5400. CPPFLAGS="$CPPFLAGS -ggdb -DDEBUG"
  5401. LDFLAGS="$LDFLAGS -ggdb"
  5402. else
  5403. echo "error: --enable-debug flag=$enable_debug entered but the compiler does not support -g"
  5404. exit 1
  5405. fi
  5406. ;;
  5407. *) # default value
  5408. CPPFLAGS="$CPPFLAGS"
  5409. ;;
  5410. esac
  5411. #
  5412. # Renewal
  5413. #
  5414. case $enable_prere in
  5415. "no")
  5416. # default value
  5417. CPPFLAGS="$CPPFLAGS"
  5418. ;;
  5419. "yes")
  5420. CPPFLAGS="$CPPFLAGS -DPRERE"
  5421. ;;
  5422. esac
  5423. #
  5424. # Warnings
  5425. #
  5426. case $enable_warn in
  5427. "no") #default
  5428. CPPFLAGS="$CPPFLAGS $PROD_WARN"
  5429. ;;
  5430. "yes")
  5431. CPPFLAGS="$CPPFLAGS"
  5432. ;;
  5433. "extra")
  5434. CPPFLAGS="$CPPFLAGS $EXTRA_WARN"
  5435. ;;
  5436. esac
  5437. #
  5438. # Buildbot
  5439. #
  5440. case $enable_buildbot in
  5441. "no")
  5442. # default value
  5443. ;;
  5444. "yes")
  5445. CPPFLAGS="$CPPFLAGS -DBUILDBOT"
  5446. ;;
  5447. esac
  5448. #
  5449. # RDTSC
  5450. #
  5451. case $enable_rdtsc in
  5452. 0)
  5453. #default value
  5454. ;;
  5455. 1)
  5456. CPPFLAGS="$CPPFLAGS -DENABLE_RDTSC"
  5457. ;;
  5458. esac
  5459. #
  5460. # Profiler
  5461. #
  5462. case $enable_profiler in
  5463. "no")
  5464. # default value
  5465. ;;
  5466. "gprof")
  5467. CFLAGS="$CFLAGS -pg"
  5468. LDFLAGS="$LDFLAGS -pg"
  5469. ;;
  5470. esac
  5471. #
  5472. # zlib library (required)
  5473. #
  5474. if test -n "${ZLIB_HOME}" ; then
  5475. LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  5476. CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  5477. fi
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
  5479. $as_echo_n "checking for library containing inflateEnd... " >&6; }
  5480. if ${ac_cv_search_inflateEnd+:} false; then :
  5481. $as_echo_n "(cached) " >&6
  5482. else
  5483. ac_func_search_save_LIBS=$LIBS
  5484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5485. /* end confdefs.h. */
  5486. /* Override any GCC internal prototype to avoid an error.
  5487. Use char because int might match the return type of a GCC
  5488. builtin and then its argument prototype would still apply. */
  5489. #ifdef __cplusplus
  5490. extern "C"
  5491. #endif
  5492. char inflateEnd ();
  5493. int
  5494. main ()
  5495. {
  5496. return inflateEnd ();
  5497. ;
  5498. return 0;
  5499. }
  5500. _ACEOF
  5501. for ac_lib in '' z; do
  5502. if test -z "$ac_lib"; then
  5503. ac_res="none required"
  5504. else
  5505. ac_res=-l$ac_lib
  5506. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5507. fi
  5508. if ac_fn_c_try_link "$LINENO"; then :
  5509. ac_cv_search_inflateEnd=$ac_res
  5510. fi
  5511. rm -f core conftest.err conftest.$ac_objext \
  5512. conftest$ac_exeext
  5513. if ${ac_cv_search_inflateEnd+:} false; then :
  5514. break
  5515. fi
  5516. done
  5517. if ${ac_cv_search_inflateEnd+:} false; then :
  5518. else
  5519. ac_cv_search_inflateEnd=no
  5520. fi
  5521. rm conftest.$ac_ext
  5522. LIBS=$ac_func_search_save_LIBS
  5523. fi
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
  5525. $as_echo "$ac_cv_search_inflateEnd" >&6; }
  5526. ac_res=$ac_cv_search_inflateEnd
  5527. if test "$ac_res" != no; then :
  5528. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5529. else
  5530. as_fn_error $? "zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" "$LINENO" 5
  5531. fi
  5532. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "#ifdef HAVE_ZLIB_H
  5533. # include <zlib.h>
  5534. #endif
  5535. "
  5536. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5537. else
  5538. as_fn_error $? "zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" "$LINENO" 5
  5539. fi
  5540. #
  5541. # math library (required)
  5542. #
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
  5544. $as_echo_n "checking for library containing sqrt... " >&6; }
  5545. if ${ac_cv_search_sqrt+:} false; then :
  5546. $as_echo_n "(cached) " >&6
  5547. else
  5548. ac_func_search_save_LIBS=$LIBS
  5549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5550. /* end confdefs.h. */
  5551. /* Override any GCC internal prototype to avoid an error.
  5552. Use char because int might match the return type of a GCC
  5553. builtin and then its argument prototype would still apply. */
  5554. #ifdef __cplusplus
  5555. extern "C"
  5556. #endif
  5557. char sqrt ();
  5558. int
  5559. main ()
  5560. {
  5561. return sqrt ();
  5562. ;
  5563. return 0;
  5564. }
  5565. _ACEOF
  5566. for ac_lib in '' m; do
  5567. if test -z "$ac_lib"; then
  5568. ac_res="none required"
  5569. else
  5570. ac_res=-l$ac_lib
  5571. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5572. fi
  5573. if ac_fn_c_try_link "$LINENO"; then :
  5574. ac_cv_search_sqrt=$ac_res
  5575. fi
  5576. rm -f core conftest.err conftest.$ac_objext \
  5577. conftest$ac_exeext
  5578. if ${ac_cv_search_sqrt+:} false; then :
  5579. break
  5580. fi
  5581. done
  5582. if ${ac_cv_search_sqrt+:} false; then :
  5583. else
  5584. ac_cv_search_sqrt=no
  5585. fi
  5586. rm conftest.$ac_ext
  5587. LIBS=$ac_func_search_save_LIBS
  5588. fi
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
  5590. $as_echo "$ac_cv_search_sqrt" >&6; }
  5591. ac_res=$ac_cv_search_sqrt
  5592. if test "$ac_res" != no; then :
  5593. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5594. else
  5595. as_fn_error $? "math library not found... stopping" "$LINENO" 5
  5596. fi
  5597. #
  5598. # clock_gettime (optional, rt on Debian)
  5599. #
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  5601. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  5602. if ${ac_cv_search_clock_gettime+:} false; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. ac_func_search_save_LIBS=$LIBS
  5606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5607. /* end confdefs.h. */
  5608. /* Override any GCC internal prototype to avoid an error.
  5609. Use char because int might match the return type of a GCC
  5610. builtin and then its argument prototype would still apply. */
  5611. #ifdef __cplusplus
  5612. extern "C"
  5613. #endif
  5614. char clock_gettime ();
  5615. int
  5616. main ()
  5617. {
  5618. return clock_gettime ();
  5619. ;
  5620. return 0;
  5621. }
  5622. _ACEOF
  5623. for ac_lib in '' rt; do
  5624. if test -z "$ac_lib"; then
  5625. ac_res="none required"
  5626. else
  5627. ac_res=-l$ac_lib
  5628. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5629. fi
  5630. if ac_fn_c_try_link "$LINENO"; then :
  5631. ac_cv_search_clock_gettime=$ac_res
  5632. fi
  5633. rm -f core conftest.err conftest.$ac_objext \
  5634. conftest$ac_exeext
  5635. if ${ac_cv_search_clock_gettime+:} false; then :
  5636. break
  5637. fi
  5638. done
  5639. if ${ac_cv_search_clock_gettime+:} false; then :
  5640. else
  5641. ac_cv_search_clock_gettime=no
  5642. fi
  5643. rm conftest.$ac_ext
  5644. LIBS=$ac_func_search_save_LIBS
  5645. fi
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  5647. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  5648. ac_res=$ac_cv_search_clock_gettime
  5649. if test "$ac_res" != no; then :
  5650. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5651. fi
  5652. #
  5653. # CLOCK_MONOTONIC clock for clock_gettime
  5654. # Normally defines _POSIX_TIMERS > 0 and _POSIX_MONOTONIC_CLOCK (for posix
  5655. # compliant systems) and __FreeBSD_cc_version >= 500005 (for FreeBSD
  5656. # >= 5.1.0, which does not have the posix defines (ref. r11983)) would be
  5657. # checked but some systems define them even when they do not support it
  5658. # (ref. bugreport:1003).
  5659. #
  5660. if test "$ac_cv_search_clock_gettime" != "no" ; then
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CLOCK_MONOTONIC is supported and works" >&5
  5662. $as_echo_n "checking whether CLOCK_MONOTONIC is supported and works... " >&6; }
  5663. if test "$cross_compiling" = yes; then :
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  5665. $as_echo "guessing no" >&6; }
  5666. else
  5667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5668. /* end confdefs.h. */
  5669. #include <sys/time.h>
  5670. #include <time.h>
  5671. #include <unistd.h>
  5672. int main(int argc, char** argv)
  5673. {
  5674. struct timespec tval;
  5675. return clock_gettime(CLOCK_MONOTONIC, &tval);
  5676. }
  5677. _ACEOF
  5678. if ac_fn_c_try_run "$LINENO"; then :
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5680. $as_echo "yes" >&6; }
  5681. CPPFLAGS="$CPPFLAGS -DHAVE_MONOTONIC_CLOCK"
  5682. else
  5683. # either it failed to compile (CLOCK_MONOTONIC undefined)
  5684. # or clock_gettime has returned a non-zero value
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5686. $as_echo "no" >&6; }
  5687. fi
  5688. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5689. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5690. fi
  5691. fi
  5692. #
  5693. # pthread
  5694. #
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  5696. $as_echo_n "checking for library containing pthread_create... " >&6; }
  5697. if ${ac_cv_search_pthread_create+:} false; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. ac_func_search_save_LIBS=$LIBS
  5701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5702. /* end confdefs.h. */
  5703. /* Override any GCC internal prototype to avoid an error.
  5704. Use char because int might match the return type of a GCC
  5705. builtin and then its argument prototype would still apply. */
  5706. #ifdef __cplusplus
  5707. extern "C"
  5708. #endif
  5709. char pthread_create ();
  5710. int
  5711. main ()
  5712. {
  5713. return pthread_create ();
  5714. ;
  5715. return 0;
  5716. }
  5717. _ACEOF
  5718. for ac_lib in '' pthread; do
  5719. if test -z "$ac_lib"; then
  5720. ac_res="none required"
  5721. else
  5722. ac_res=-l$ac_lib
  5723. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5724. fi
  5725. if ac_fn_c_try_link "$LINENO"; then :
  5726. ac_cv_search_pthread_create=$ac_res
  5727. fi
  5728. rm -f core conftest.err conftest.$ac_objext \
  5729. conftest$ac_exeext
  5730. if ${ac_cv_search_pthread_create+:} false; then :
  5731. break
  5732. fi
  5733. done
  5734. if ${ac_cv_search_pthread_create+:} false; then :
  5735. else
  5736. ac_cv_search_pthread_create=no
  5737. fi
  5738. rm conftest.$ac_ext
  5739. LIBS=$ac_func_search_save_LIBS
  5740. fi
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  5742. $as_echo "$ac_cv_search_pthread_create" >&6; }
  5743. ac_res=$ac_cv_search_pthread_create
  5744. if test "$ac_res" != no; then :
  5745. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5746. else
  5747. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5748. fi
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_sigmask" >&5
  5750. $as_echo_n "checking for library containing pthread_sigmask... " >&6; }
  5751. if ${ac_cv_search_pthread_sigmask+:} false; then :
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. ac_func_search_save_LIBS=$LIBS
  5755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5756. /* end confdefs.h. */
  5757. /* Override any GCC internal prototype to avoid an error.
  5758. Use char because int might match the return type of a GCC
  5759. builtin and then its argument prototype would still apply. */
  5760. #ifdef __cplusplus
  5761. extern "C"
  5762. #endif
  5763. char pthread_sigmask ();
  5764. int
  5765. main ()
  5766. {
  5767. return pthread_sigmask ();
  5768. ;
  5769. return 0;
  5770. }
  5771. _ACEOF
  5772. for ac_lib in '' pthread; do
  5773. if test -z "$ac_lib"; then
  5774. ac_res="none required"
  5775. else
  5776. ac_res=-l$ac_lib
  5777. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5778. fi
  5779. if ac_fn_c_try_link "$LINENO"; then :
  5780. ac_cv_search_pthread_sigmask=$ac_res
  5781. fi
  5782. rm -f core conftest.err conftest.$ac_objext \
  5783. conftest$ac_exeext
  5784. if ${ac_cv_search_pthread_sigmask+:} false; then :
  5785. break
  5786. fi
  5787. done
  5788. if ${ac_cv_search_pthread_sigmask+:} false; then :
  5789. else
  5790. ac_cv_search_pthread_sigmask=no
  5791. fi
  5792. rm conftest.$ac_ext
  5793. LIBS=$ac_func_search_save_LIBS
  5794. fi
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_sigmask" >&5
  5796. $as_echo "$ac_cv_search_pthread_sigmask" >&6; }
  5797. ac_res=$ac_cv_search_pthread_sigmask
  5798. if test "$ac_res" != no; then :
  5799. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5800. else
  5801. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5802. fi
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_init" >&5
  5804. $as_echo_n "checking for library containing pthread_attr_init... " >&6; }
  5805. if ${ac_cv_search_pthread_attr_init+:} false; then :
  5806. $as_echo_n "(cached) " >&6
  5807. else
  5808. ac_func_search_save_LIBS=$LIBS
  5809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5810. /* end confdefs.h. */
  5811. /* Override any GCC internal prototype to avoid an error.
  5812. Use char because int might match the return type of a GCC
  5813. builtin and then its argument prototype would still apply. */
  5814. #ifdef __cplusplus
  5815. extern "C"
  5816. #endif
  5817. char pthread_attr_init ();
  5818. int
  5819. main ()
  5820. {
  5821. return pthread_attr_init ();
  5822. ;
  5823. return 0;
  5824. }
  5825. _ACEOF
  5826. for ac_lib in '' pthread; do
  5827. if test -z "$ac_lib"; then
  5828. ac_res="none required"
  5829. else
  5830. ac_res=-l$ac_lib
  5831. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5832. fi
  5833. if ac_fn_c_try_link "$LINENO"; then :
  5834. ac_cv_search_pthread_attr_init=$ac_res
  5835. fi
  5836. rm -f core conftest.err conftest.$ac_objext \
  5837. conftest$ac_exeext
  5838. if ${ac_cv_search_pthread_attr_init+:} false; then :
  5839. break
  5840. fi
  5841. done
  5842. if ${ac_cv_search_pthread_attr_init+:} false; then :
  5843. else
  5844. ac_cv_search_pthread_attr_init=no
  5845. fi
  5846. rm conftest.$ac_ext
  5847. LIBS=$ac_func_search_save_LIBS
  5848. fi
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_init" >&5
  5850. $as_echo "$ac_cv_search_pthread_attr_init" >&6; }
  5851. ac_res=$ac_cv_search_pthread_attr_init
  5852. if test "$ac_res" != no; then :
  5853. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5854. else
  5855. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5856. fi
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_setstacksize" >&5
  5858. $as_echo_n "checking for library containing pthread_attr_setstacksize... " >&6; }
  5859. if ${ac_cv_search_pthread_attr_setstacksize+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. ac_func_search_save_LIBS=$LIBS
  5863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5864. /* end confdefs.h. */
  5865. /* Override any GCC internal prototype to avoid an error.
  5866. Use char because int might match the return type of a GCC
  5867. builtin and then its argument prototype would still apply. */
  5868. #ifdef __cplusplus
  5869. extern "C"
  5870. #endif
  5871. char pthread_attr_setstacksize ();
  5872. int
  5873. main ()
  5874. {
  5875. return pthread_attr_setstacksize ();
  5876. ;
  5877. return 0;
  5878. }
  5879. _ACEOF
  5880. for ac_lib in '' pthread; do
  5881. if test -z "$ac_lib"; then
  5882. ac_res="none required"
  5883. else
  5884. ac_res=-l$ac_lib
  5885. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5886. fi
  5887. if ac_fn_c_try_link "$LINENO"; then :
  5888. ac_cv_search_pthread_attr_setstacksize=$ac_res
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext \
  5891. conftest$ac_exeext
  5892. if ${ac_cv_search_pthread_attr_setstacksize+:} false; then :
  5893. break
  5894. fi
  5895. done
  5896. if ${ac_cv_search_pthread_attr_setstacksize+:} false; then :
  5897. else
  5898. ac_cv_search_pthread_attr_setstacksize=no
  5899. fi
  5900. rm conftest.$ac_ext
  5901. LIBS=$ac_func_search_save_LIBS
  5902. fi
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_setstacksize" >&5
  5904. $as_echo "$ac_cv_search_pthread_attr_setstacksize" >&6; }
  5905. ac_res=$ac_cv_search_pthread_attr_setstacksize
  5906. if test "$ac_res" != no; then :
  5907. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5908. else
  5909. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5910. fi
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_destroy" >&5
  5912. $as_echo_n "checking for library containing pthread_attr_destroy... " >&6; }
  5913. if ${ac_cv_search_pthread_attr_destroy+:} false; then :
  5914. $as_echo_n "(cached) " >&6
  5915. else
  5916. ac_func_search_save_LIBS=$LIBS
  5917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5918. /* end confdefs.h. */
  5919. /* Override any GCC internal prototype to avoid an error.
  5920. Use char because int might match the return type of a GCC
  5921. builtin and then its argument prototype would still apply. */
  5922. #ifdef __cplusplus
  5923. extern "C"
  5924. #endif
  5925. char pthread_attr_destroy ();
  5926. int
  5927. main ()
  5928. {
  5929. return pthread_attr_destroy ();
  5930. ;
  5931. return 0;
  5932. }
  5933. _ACEOF
  5934. for ac_lib in '' pthread; do
  5935. if test -z "$ac_lib"; then
  5936. ac_res="none required"
  5937. else
  5938. ac_res=-l$ac_lib
  5939. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5940. fi
  5941. if ac_fn_c_try_link "$LINENO"; then :
  5942. ac_cv_search_pthread_attr_destroy=$ac_res
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext \
  5945. conftest$ac_exeext
  5946. if ${ac_cv_search_pthread_attr_destroy+:} false; then :
  5947. break
  5948. fi
  5949. done
  5950. if ${ac_cv_search_pthread_attr_destroy+:} false; then :
  5951. else
  5952. ac_cv_search_pthread_attr_destroy=no
  5953. fi
  5954. rm conftest.$ac_ext
  5955. LIBS=$ac_func_search_save_LIBS
  5956. fi
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_destroy" >&5
  5958. $as_echo "$ac_cv_search_pthread_attr_destroy" >&6; }
  5959. ac_res=$ac_cv_search_pthread_attr_destroy
  5960. if test "$ac_res" != no; then :
  5961. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5962. else
  5963. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5964. fi
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_cancel" >&5
  5966. $as_echo_n "checking for library containing pthread_cancel... " >&6; }
  5967. if ${ac_cv_search_pthread_cancel+:} false; then :
  5968. $as_echo_n "(cached) " >&6
  5969. else
  5970. ac_func_search_save_LIBS=$LIBS
  5971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5972. /* end confdefs.h. */
  5973. /* Override any GCC internal prototype to avoid an error.
  5974. Use char because int might match the return type of a GCC
  5975. builtin and then its argument prototype would still apply. */
  5976. #ifdef __cplusplus
  5977. extern "C"
  5978. #endif
  5979. char pthread_cancel ();
  5980. int
  5981. main ()
  5982. {
  5983. return pthread_cancel ();
  5984. ;
  5985. return 0;
  5986. }
  5987. _ACEOF
  5988. for ac_lib in '' pthread; do
  5989. if test -z "$ac_lib"; then
  5990. ac_res="none required"
  5991. else
  5992. ac_res=-l$ac_lib
  5993. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5994. fi
  5995. if ac_fn_c_try_link "$LINENO"; then :
  5996. ac_cv_search_pthread_cancel=$ac_res
  5997. fi
  5998. rm -f core conftest.err conftest.$ac_objext \
  5999. conftest$ac_exeext
  6000. if ${ac_cv_search_pthread_cancel+:} false; then :
  6001. break
  6002. fi
  6003. done
  6004. if ${ac_cv_search_pthread_cancel+:} false; then :
  6005. else
  6006. ac_cv_search_pthread_cancel=no
  6007. fi
  6008. rm conftest.$ac_ext
  6009. LIBS=$ac_func_search_save_LIBS
  6010. fi
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_cancel" >&5
  6012. $as_echo "$ac_cv_search_pthread_cancel" >&6; }
  6013. ac_res=$ac_cv_search_pthread_cancel
  6014. if test "$ac_res" != no; then :
  6015. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6016. else
  6017. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6018. fi
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_join" >&5
  6020. $as_echo_n "checking for library containing pthread_join... " >&6; }
  6021. if ${ac_cv_search_pthread_join+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. ac_func_search_save_LIBS=$LIBS
  6025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6026. /* end confdefs.h. */
  6027. /* Override any GCC internal prototype to avoid an error.
  6028. Use char because int might match the return type of a GCC
  6029. builtin and then its argument prototype would still apply. */
  6030. #ifdef __cplusplus
  6031. extern "C"
  6032. #endif
  6033. char pthread_join ();
  6034. int
  6035. main ()
  6036. {
  6037. return pthread_join ();
  6038. ;
  6039. return 0;
  6040. }
  6041. _ACEOF
  6042. for ac_lib in '' pthread; do
  6043. if test -z "$ac_lib"; then
  6044. ac_res="none required"
  6045. else
  6046. ac_res=-l$ac_lib
  6047. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6048. fi
  6049. if ac_fn_c_try_link "$LINENO"; then :
  6050. ac_cv_search_pthread_join=$ac_res
  6051. fi
  6052. rm -f core conftest.err conftest.$ac_objext \
  6053. conftest$ac_exeext
  6054. if ${ac_cv_search_pthread_join+:} false; then :
  6055. break
  6056. fi
  6057. done
  6058. if ${ac_cv_search_pthread_join+:} false; then :
  6059. else
  6060. ac_cv_search_pthread_join=no
  6061. fi
  6062. rm conftest.$ac_ext
  6063. LIBS=$ac_func_search_save_LIBS
  6064. fi
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_join" >&5
  6066. $as_echo "$ac_cv_search_pthread_join" >&6; }
  6067. ac_res=$ac_cv_search_pthread_join
  6068. if test "$ac_res" != no; then :
  6069. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6070. else
  6071. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6072. fi
  6073. #
  6074. # MySQL library
  6075. #
  6076. if test -z "$MYSQL_CONFIG_HOME"; then
  6077. # Extract the first word of "mysql_config", so it can be a program name with args.
  6078. set dummy mysql_config; ac_word=$2
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6080. $as_echo_n "checking for $ac_word... " >&6; }
  6081. if ${ac_cv_path_MYSQL_CONFIG_HOME+:} false; then :
  6082. $as_echo_n "(cached) " >&6
  6083. else
  6084. case $MYSQL_CONFIG_HOME in
  6085. [\\/]* | ?:[\\/]*)
  6086. ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  6087. ;;
  6088. *)
  6089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6090. for as_dir in $PATH
  6091. do
  6092. IFS=$as_save_IFS
  6093. test -z "$as_dir" && as_dir=.
  6094. for ac_exec_ext in '' $ac_executable_extensions; do
  6095. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6096. ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  6097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6098. break 2
  6099. fi
  6100. done
  6101. done
  6102. IFS=$as_save_IFS
  6103. test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  6104. ;;
  6105. esac
  6106. fi
  6107. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  6108. if test -n "$MYSQL_CONFIG_HOME"; then
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG_HOME" >&5
  6110. $as_echo "$MYSQL_CONFIG_HOME" >&6; }
  6111. else
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6113. $as_echo "no" >&6; }
  6114. fi
  6115. fi
  6116. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  6117. MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  6118. if test "$manual_MYSQL_CFLAGS" = "no" ; then
  6119. MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`"
  6120. fi
  6121. if test "$manual_MYSQL_LIBS" = "no" ; then
  6122. MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  6123. fi
  6124. else
  6125. MYSQL_VERSION="unknown"
  6126. fi
  6127. MYSQL_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $MYSQL_LIBS"
  6128. MYSQL_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
  6130. $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
  6131. if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. ac_check_lib_save_LIBS=$LIBS
  6135. LIBS="-lmysqlclient $LIBS"
  6136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6137. /* end confdefs.h. */
  6138. /* Override any GCC internal prototype to avoid an error.
  6139. Use char because int might match the return type of a GCC
  6140. builtin and then its argument prototype would still apply. */
  6141. #ifdef __cplusplus
  6142. extern "C"
  6143. #endif
  6144. char mysql_init ();
  6145. int
  6146. main ()
  6147. {
  6148. return mysql_init ();
  6149. ;
  6150. return 0;
  6151. }
  6152. _ACEOF
  6153. if ac_fn_c_try_link "$LINENO"; then :
  6154. ac_cv_lib_mysqlclient_mysql_init=yes
  6155. else
  6156. ac_cv_lib_mysqlclient_mysql_init=no
  6157. fi
  6158. rm -f core conftest.err conftest.$ac_objext \
  6159. conftest$ac_exeext conftest.$ac_ext
  6160. LIBS=$ac_check_lib_save_LIBS
  6161. fi
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
  6163. $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
  6164. if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
  6165. HAVE_MYSQL="yes"
  6166. fi
  6167. ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
  6168. if test "x$ac_cv_header_mysql_h" = xyes; then :
  6169. else
  6170. HAVE_MYSQL=""
  6171. fi
  6172. CPPFLAGS="$MYSQL_OLD_CPPFLAGS"
  6173. LDFLAGS="$MYSQL_OLD_LDFLAGS"
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL library (required)" >&5
  6175. $as_echo_n "checking MySQL library (required)... " >&6; }
  6176. if test "$HAVE_MYSQL" = "yes" ; then
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($MYSQL_VERSION)" >&5
  6178. $as_echo "yes ($MYSQL_VERSION)" >&6; }
  6179. else
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6181. $as_echo "no" >&6; }
  6182. as_fn_error $? "MySQL not found or incompatible" "$LINENO" 5
  6183. fi
  6184. #
  6185. # PCRE library (optional)
  6186. #
  6187. PCRE_LIBS=""
  6188. PCRE_CFLAGS=""
  6189. if test "$want_pcre" = "no" ; then
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: ignoring PCRE (optional)" >&5
  6191. $as_echo "$as_me: ignoring PCRE (optional)" >&6;}
  6192. else
  6193. host_os="`uname`"
  6194. if test "$host_os" = "FreeBSD" ; then
  6195. if test -z "$PCRE_HOME" ; then PCRE_HOME="/usr/local"; fi
  6196. fi
  6197. if test -z "$PCRE_HOME" ; then
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
  6199. $as_echo_n "checking for library containing pcre_study... " >&6; }
  6200. if ${ac_cv_search_pcre_study+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. ac_func_search_save_LIBS=$LIBS
  6204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6205. /* end confdefs.h. */
  6206. /* Override any GCC internal prototype to avoid an error.
  6207. Use char because int might match the return type of a GCC
  6208. builtin and then its argument prototype would still apply. */
  6209. #ifdef __cplusplus
  6210. extern "C"
  6211. #endif
  6212. char pcre_study ();
  6213. int
  6214. main ()
  6215. {
  6216. return pcre_study ();
  6217. ;
  6218. return 0;
  6219. }
  6220. _ACEOF
  6221. for ac_lib in '' pcre; do
  6222. if test -z "$ac_lib"; then
  6223. ac_res="none required"
  6224. else
  6225. ac_res=-l$ac_lib
  6226. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6227. fi
  6228. if ac_fn_c_try_link "$LINENO"; then :
  6229. ac_cv_search_pcre_study=$ac_res
  6230. fi
  6231. rm -f core conftest.err conftest.$ac_objext \
  6232. conftest$ac_exeext
  6233. if ${ac_cv_search_pcre_study+:} false; then :
  6234. break
  6235. fi
  6236. done
  6237. if ${ac_cv_search_pcre_study+:} false; then :
  6238. else
  6239. ac_cv_search_pcre_study=no
  6240. fi
  6241. rm conftest.$ac_ext
  6242. LIBS=$ac_func_search_save_LIBS
  6243. fi
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
  6245. $as_echo "$ac_cv_search_pcre_study" >&6; }
  6246. ac_res=$ac_cv_search_pcre_study
  6247. if test "$ac_res" != no; then :
  6248. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6249. HAVE_PCRE="yes"
  6250. fi
  6251. if test "$HAVE_PCRE" = "yes" ; then
  6252. PCRE_LIBS="-lpcre"
  6253. fi
  6254. else
  6255. PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  6256. PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
  6258. $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
  6259. if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
  6260. $as_echo_n "(cached) " >&6
  6261. else
  6262. ac_check_lib_save_LIBS=$LIBS
  6263. LIBS="-lpcre $LIBS"
  6264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6265. /* end confdefs.h. */
  6266. /* Override any GCC internal prototype to avoid an error.
  6267. Use char because int might match the return type of a GCC
  6268. builtin and then its argument prototype would still apply. */
  6269. #ifdef __cplusplus
  6270. extern "C"
  6271. #endif
  6272. char pcre_compile ();
  6273. int
  6274. main ()
  6275. {
  6276. return pcre_compile ();
  6277. ;
  6278. return 0;
  6279. }
  6280. _ACEOF
  6281. if ac_fn_c_try_link "$LINENO"; then :
  6282. ac_cv_lib_pcre_pcre_compile=yes
  6283. else
  6284. ac_cv_lib_pcre_pcre_compile=no
  6285. fi
  6286. rm -f core conftest.err conftest.$ac_objext \
  6287. conftest$ac_exeext conftest.$ac_ext
  6288. LIBS=$ac_check_lib_save_LIBS
  6289. fi
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
  6291. $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
  6292. if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
  6293. HAVE_PCRE="yes"
  6294. fi
  6295. CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  6296. LDFLAGS="$PCRE_OLD_LDFLAGS"
  6297. if test "$HAVE_PCRE" = "yes" ; then
  6298. PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  6299. test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  6300. fi
  6301. fi
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PCRE library (optional)" >&5
  6303. $as_echo_n "checking PCRE library (optional)... " >&6; }
  6304. if test "$HAVE_PCRE" = "yes" ; then
  6305. PCRE_VERSION="`pcre-config --version`"
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($PCRE_VERSION)" >&5
  6307. $as_echo "yes ($PCRE_VERSION)" >&6; }
  6308. else
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6310. $as_echo "no" >&6; }
  6311. if test "$require_pcre" = "yes" ; then
  6312. as_fn_error $? "PCRE not found or incompatible (requested)" "$LINENO" 5
  6313. else
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: disabling PCRE (optional)" >&5
  6315. $as_echo "$as_me: disabling PCRE (optional)" >&6;}
  6316. fi
  6317. fi
  6318. fi
  6319. #
  6320. # Host specific stuff
  6321. #
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host OS" >&5
  6323. $as_echo_n "checking host OS... " >&6; }
  6324. host_os="`uname`"
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_os" >&5
  6326. $as_echo "$host_os" >&6; }
  6327. fd_setsize=""
  6328. DLLEXT=".so"
  6329. case $host_os in
  6330. Solaris* )
  6331. LIBS="$LIBS -lsocket -lnsl -ldl"
  6332. ;;
  6333. Linux* )
  6334. LIBS="$LIBS -ldl"
  6335. ;;
  6336. FreeBSD*)
  6337. CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  6338. ;;
  6339. NetBSD*)
  6340. CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  6341. ;;
  6342. CYGWIN*)
  6343. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  6344. fd_setsize="done"
  6345. DLLEXT=".dll"
  6346. ;;
  6347. esac
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW" >&5
  6349. $as_echo_n "checking for MinGW... " >&6; }
  6350. if test -n "`$CC --version | grep -i mingw`" ; then
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6352. $as_echo "yes" >&6; }
  6353. CPPFLAGS="$CPPFLAGS -DMINGW"
  6354. if test -z "$fd_setsize" ; then
  6355. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  6356. fi
  6357. LIBS="$LIBS -lws2_32"
  6358. else
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6360. $as_echo "no" >&6; }
  6361. fi
  6362. CFLAGS_AR="$OPT_LTO_AR $CFLAGS"
  6363. CFLAGS="$OPT_LTO $CFLAGS"
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: Configure finish" >&5
  6365. $as_echo "$as_me: Configure finish" >&6;}
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: CPPFLAGS= $CPPFLAGS" >&5
  6367. $as_echo "$as_me: CPPFLAGS= $CPPFLAGS" >&6;}
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: CFLAGS= $CFLAGS" >&5
  6369. $as_echo "$as_me: CFLAGS= $CFLAGS" >&6;}
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: CFLAGS_AR= $CFLAGS_AR" >&5
  6371. $as_echo "$as_me: CFLAGS_AR= $CFLAGS_AR" >&6;}
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS= $LDFLAGS" >&5
  6373. $as_echo "$as_me: LDFLAGS= $LDFLAGS" >&6;}
  6374. #AC_MSG_NOTICE([PROD_WARN= $PROD_WARN])
  6375. #AC_MSG_NOTICE([EXTRA_WARN= $EXTRA_WARN])
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: output name = $output_login, $output_char, $output_map" >&5
  6377. $as_echo "$as_me: output name = $output_login, $output_char, $output_map" >&6;}
  6378. ###############################################################################
  6379. cat >confcache <<\_ACEOF
  6380. # This file is a shell script that caches the results of configure
  6381. # tests run on this system so they can be shared between configure
  6382. # scripts and configure runs, see configure's option --config-cache.
  6383. # It is not useful on other systems. If it contains results you don't
  6384. # want to keep, you may remove or edit it.
  6385. #
  6386. # config.status only pays attention to the cache file if you give it
  6387. # the --recheck option to rerun configure.
  6388. #
  6389. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6390. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6391. # following values.
  6392. _ACEOF
  6393. # The following way of writing the cache mishandles newlines in values,
  6394. # but we know of no workaround that is simple, portable, and efficient.
  6395. # So, we kill variables containing newlines.
  6396. # Ultrix sh set writes to stderr and can't be redirected directly,
  6397. # and sets the high bit in the cache file unless we assign to the vars.
  6398. (
  6399. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6400. eval ac_val=\$$ac_var
  6401. case $ac_val in #(
  6402. *${as_nl}*)
  6403. case $ac_var in #(
  6404. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6405. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6406. esac
  6407. case $ac_var in #(
  6408. _ | IFS | as_nl) ;; #(
  6409. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6410. *) { eval $ac_var=; unset $ac_var;} ;;
  6411. esac ;;
  6412. esac
  6413. done
  6414. (set) 2>&1 |
  6415. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6416. *${as_nl}ac_space=\ *)
  6417. # `set' does not quote correctly, so add quotes: double-quote
  6418. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6419. sed -n \
  6420. "s/'/'\\\\''/g;
  6421. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6422. ;; #(
  6423. *)
  6424. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6425. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6426. ;;
  6427. esac |
  6428. sort
  6429. ) |
  6430. sed '
  6431. /^ac_cv_env_/b end
  6432. t clear
  6433. :clear
  6434. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6435. t end
  6436. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6437. :end' >>confcache
  6438. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6439. if test -w "$cache_file"; then
  6440. if test "x$cache_file" != "x/dev/null"; then
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6442. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6443. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6444. cat confcache >"$cache_file"
  6445. else
  6446. case $cache_file in #(
  6447. */* | ?:*)
  6448. mv -f confcache "$cache_file"$$ &&
  6449. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6450. *)
  6451. mv -f confcache "$cache_file" ;;
  6452. esac
  6453. fi
  6454. fi
  6455. else
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6457. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6458. fi
  6459. fi
  6460. rm -f confcache
  6461. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6462. # Let make expand exec_prefix.
  6463. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6464. # Transform confdefs.h into DEFS.
  6465. # Protect against shell expansion while executing Makefile rules.
  6466. # Protect against Makefile macro expansion.
  6467. #
  6468. # If the first sed substitution is executed (which looks for macros that
  6469. # take arguments), then branch to the quote section. Otherwise,
  6470. # look for a macro that doesn't take arguments.
  6471. ac_script='
  6472. :mline
  6473. /\\$/{
  6474. N
  6475. s,\\\n,,
  6476. b mline
  6477. }
  6478. t clear
  6479. :clear
  6480. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  6481. t quote
  6482. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  6483. t quote
  6484. b any
  6485. :quote
  6486. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  6487. s/\[/\\&/g
  6488. s/\]/\\&/g
  6489. s/\$/$$/g
  6490. H
  6491. :any
  6492. ${
  6493. g
  6494. s/^\n//
  6495. s/\n/ /g
  6496. p
  6497. }
  6498. '
  6499. DEFS=`sed -n "$ac_script" confdefs.h`
  6500. ac_libobjs=
  6501. ac_ltlibobjs=
  6502. U=
  6503. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6504. # 1. Remove the extension, and $U if already installed.
  6505. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6506. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6507. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6508. # will be set to the directory where LIBOBJS objects are built.
  6509. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6510. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6511. done
  6512. LIBOBJS=$ac_libobjs
  6513. LTLIBOBJS=$ac_ltlibobjs
  6514. : "${CONFIG_STATUS=./config.status}"
  6515. ac_write_fail=0
  6516. ac_clean_files_save=$ac_clean_files
  6517. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6519. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6520. as_write_fail=0
  6521. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6522. #! $SHELL
  6523. # Generated by $as_me.
  6524. # Run this file to recreate the current configuration.
  6525. # Compiler output produced by configure, useful for debugging
  6526. # configure, is in config.log if it exists.
  6527. debug=false
  6528. ac_cs_recheck=false
  6529. ac_cs_silent=false
  6530. SHELL=\${CONFIG_SHELL-$SHELL}
  6531. export SHELL
  6532. _ASEOF
  6533. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6534. ## -------------------- ##
  6535. ## M4sh Initialization. ##
  6536. ## -------------------- ##
  6537. # Be more Bourne compatible
  6538. DUALCASE=1; export DUALCASE # for MKS sh
  6539. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6540. emulate sh
  6541. NULLCMD=:
  6542. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6543. # is contrary to our usage. Disable this feature.
  6544. alias -g '${1+"$@"}'='"$@"'
  6545. setopt NO_GLOB_SUBST
  6546. else
  6547. case `(set -o) 2>/dev/null` in #(
  6548. *posix*) :
  6549. set -o posix ;; #(
  6550. *) :
  6551. ;;
  6552. esac
  6553. fi
  6554. as_nl='
  6555. '
  6556. export as_nl
  6557. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6558. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6559. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6560. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6561. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6562. # but without wasting forks for bash or zsh.
  6563. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6564. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6565. as_echo='print -r --'
  6566. as_echo_n='print -rn --'
  6567. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6568. as_echo='printf %s\n'
  6569. as_echo_n='printf %s'
  6570. else
  6571. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6572. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6573. as_echo_n='/usr/ucb/echo -n'
  6574. else
  6575. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6576. as_echo_n_body='eval
  6577. arg=$1;
  6578. case $arg in #(
  6579. *"$as_nl"*)
  6580. expr "X$arg" : "X\\(.*\\)$as_nl";
  6581. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6582. esac;
  6583. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6584. '
  6585. export as_echo_n_body
  6586. as_echo_n='sh -c $as_echo_n_body as_echo'
  6587. fi
  6588. export as_echo_body
  6589. as_echo='sh -c $as_echo_body as_echo'
  6590. fi
  6591. # The user is always right.
  6592. if test "${PATH_SEPARATOR+set}" != set; then
  6593. PATH_SEPARATOR=:
  6594. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6595. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6596. PATH_SEPARATOR=';'
  6597. }
  6598. fi
  6599. # IFS
  6600. # We need space, tab and new line, in precisely that order. Quoting is
  6601. # there to prevent editors from complaining about space-tab.
  6602. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6603. # splitting by setting IFS to empty value.)
  6604. IFS=" "" $as_nl"
  6605. # Find who we are. Look in the path if we contain no directory separator.
  6606. as_myself=
  6607. case $0 in #((
  6608. *[\\/]* ) as_myself=$0 ;;
  6609. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6610. for as_dir in $PATH
  6611. do
  6612. IFS=$as_save_IFS
  6613. test -z "$as_dir" && as_dir=.
  6614. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6615. done
  6616. IFS=$as_save_IFS
  6617. ;;
  6618. esac
  6619. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6620. # in which case we are not to be found in the path.
  6621. if test "x$as_myself" = x; then
  6622. as_myself=$0
  6623. fi
  6624. if test ! -f "$as_myself"; then
  6625. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6626. exit 1
  6627. fi
  6628. # Unset variables that we do not need and which cause bugs (e.g. in
  6629. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6630. # suppresses any "Segmentation fault" message there. '((' could
  6631. # trigger a bug in pdksh 5.2.14.
  6632. for as_var in BASH_ENV ENV MAIL MAILPATH
  6633. do eval test x\${$as_var+set} = xset \
  6634. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6635. done
  6636. PS1='$ '
  6637. PS2='> '
  6638. PS4='+ '
  6639. # NLS nuisances.
  6640. LC_ALL=C
  6641. export LC_ALL
  6642. LANGUAGE=C
  6643. export LANGUAGE
  6644. # CDPATH.
  6645. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6646. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6647. # ----------------------------------------
  6648. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6649. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6650. # script with STATUS, using 1 if that was 0.
  6651. as_fn_error ()
  6652. {
  6653. as_status=$1; test $as_status -eq 0 && as_status=1
  6654. if test "$4"; then
  6655. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6656. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6657. fi
  6658. $as_echo "$as_me: error: $2" >&2
  6659. as_fn_exit $as_status
  6660. } # as_fn_error
  6661. # as_fn_set_status STATUS
  6662. # -----------------------
  6663. # Set $? to STATUS, without forking.
  6664. as_fn_set_status ()
  6665. {
  6666. return $1
  6667. } # as_fn_set_status
  6668. # as_fn_exit STATUS
  6669. # -----------------
  6670. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6671. as_fn_exit ()
  6672. {
  6673. set +e
  6674. as_fn_set_status $1
  6675. exit $1
  6676. } # as_fn_exit
  6677. # as_fn_unset VAR
  6678. # ---------------
  6679. # Portably unset VAR.
  6680. as_fn_unset ()
  6681. {
  6682. { eval $1=; unset $1;}
  6683. }
  6684. as_unset=as_fn_unset
  6685. # as_fn_append VAR VALUE
  6686. # ----------------------
  6687. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6688. # advantage of any shell optimizations that allow amortized linear growth over
  6689. # repeated appends, instead of the typical quadratic growth present in naive
  6690. # implementations.
  6691. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6692. eval 'as_fn_append ()
  6693. {
  6694. eval $1+=\$2
  6695. }'
  6696. else
  6697. as_fn_append ()
  6698. {
  6699. eval $1=\$$1\$2
  6700. }
  6701. fi # as_fn_append
  6702. # as_fn_arith ARG...
  6703. # ------------------
  6704. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6705. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6706. # must be portable across $(()) and expr.
  6707. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6708. eval 'as_fn_arith ()
  6709. {
  6710. as_val=$(( $* ))
  6711. }'
  6712. else
  6713. as_fn_arith ()
  6714. {
  6715. as_val=`expr "$@" || test $? -eq 1`
  6716. }
  6717. fi # as_fn_arith
  6718. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6719. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6720. as_expr=expr
  6721. else
  6722. as_expr=false
  6723. fi
  6724. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6725. as_basename=basename
  6726. else
  6727. as_basename=false
  6728. fi
  6729. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6730. as_dirname=dirname
  6731. else
  6732. as_dirname=false
  6733. fi
  6734. as_me=`$as_basename -- "$0" ||
  6735. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6736. X"$0" : 'X\(//\)$' \| \
  6737. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6738. $as_echo X/"$0" |
  6739. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6740. s//\1/
  6741. q
  6742. }
  6743. /^X\/\(\/\/\)$/{
  6744. s//\1/
  6745. q
  6746. }
  6747. /^X\/\(\/\).*/{
  6748. s//\1/
  6749. q
  6750. }
  6751. s/.*/./; q'`
  6752. # Avoid depending upon Character Ranges.
  6753. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6754. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6755. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6756. as_cr_digits='0123456789'
  6757. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6758. ECHO_C= ECHO_N= ECHO_T=
  6759. case `echo -n x` in #(((((
  6760. -n*)
  6761. case `echo 'xy\c'` in
  6762. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6763. xy) ECHO_C='\c';;
  6764. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6765. ECHO_T=' ';;
  6766. esac;;
  6767. *)
  6768. ECHO_N='-n';;
  6769. esac
  6770. rm -f conf$$ conf$$.exe conf$$.file
  6771. if test -d conf$$.dir; then
  6772. rm -f conf$$.dir/conf$$.file
  6773. else
  6774. rm -f conf$$.dir
  6775. mkdir conf$$.dir 2>/dev/null
  6776. fi
  6777. if (echo >conf$$.file) 2>/dev/null; then
  6778. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6779. as_ln_s='ln -s'
  6780. # ... but there are two gotchas:
  6781. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6782. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6783. # In both cases, we have to default to `cp -pR'.
  6784. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6785. as_ln_s='cp -pR'
  6786. elif ln conf$$.file conf$$ 2>/dev/null; then
  6787. as_ln_s=ln
  6788. else
  6789. as_ln_s='cp -pR'
  6790. fi
  6791. else
  6792. as_ln_s='cp -pR'
  6793. fi
  6794. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6795. rmdir conf$$.dir 2>/dev/null
  6796. # as_fn_mkdir_p
  6797. # -------------
  6798. # Create "$as_dir" as a directory, including parents if necessary.
  6799. as_fn_mkdir_p ()
  6800. {
  6801. case $as_dir in #(
  6802. -*) as_dir=./$as_dir;;
  6803. esac
  6804. test -d "$as_dir" || eval $as_mkdir_p || {
  6805. as_dirs=
  6806. while :; do
  6807. case $as_dir in #(
  6808. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6809. *) as_qdir=$as_dir;;
  6810. esac
  6811. as_dirs="'$as_qdir' $as_dirs"
  6812. as_dir=`$as_dirname -- "$as_dir" ||
  6813. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6814. X"$as_dir" : 'X\(//\)[^/]' \| \
  6815. X"$as_dir" : 'X\(//\)$' \| \
  6816. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6817. $as_echo X"$as_dir" |
  6818. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6819. s//\1/
  6820. q
  6821. }
  6822. /^X\(\/\/\)[^/].*/{
  6823. s//\1/
  6824. q
  6825. }
  6826. /^X\(\/\/\)$/{
  6827. s//\1/
  6828. q
  6829. }
  6830. /^X\(\/\).*/{
  6831. s//\1/
  6832. q
  6833. }
  6834. s/.*/./; q'`
  6835. test -d "$as_dir" && break
  6836. done
  6837. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6838. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6839. } # as_fn_mkdir_p
  6840. if mkdir -p . 2>/dev/null; then
  6841. as_mkdir_p='mkdir -p "$as_dir"'
  6842. else
  6843. test -d ./-p && rmdir ./-p
  6844. as_mkdir_p=false
  6845. fi
  6846. # as_fn_executable_p FILE
  6847. # -----------------------
  6848. # Test if FILE is an executable regular file.
  6849. as_fn_executable_p ()
  6850. {
  6851. test -f "$1" && test -x "$1"
  6852. } # as_fn_executable_p
  6853. as_test_x='test -x'
  6854. as_executable_p=as_fn_executable_p
  6855. # Sed expression to map a string onto a valid CPP name.
  6856. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6857. # Sed expression to map a string onto a valid variable name.
  6858. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6859. exec 6>&1
  6860. ## ----------------------------------- ##
  6861. ## Main body of $CONFIG_STATUS script. ##
  6862. ## ----------------------------------- ##
  6863. _ASEOF
  6864. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6866. # Save the log message, to keep $0 and so on meaningful, and to
  6867. # report actual input values of CONFIG_FILES etc. instead of their
  6868. # values after options handling.
  6869. ac_log="
  6870. This file was extended by $as_me, which was
  6871. generated by GNU Autoconf 2.69. Invocation command line was
  6872. CONFIG_FILES = $CONFIG_FILES
  6873. CONFIG_HEADERS = $CONFIG_HEADERS
  6874. CONFIG_LINKS = $CONFIG_LINKS
  6875. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6876. $ $0 $@
  6877. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6878. "
  6879. _ACEOF
  6880. case $ac_config_files in *"
  6881. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6882. esac
  6883. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6884. # Files that config.status was made for.
  6885. config_files="$ac_config_files"
  6886. _ACEOF
  6887. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6888. ac_cs_usage="\
  6889. \`$as_me' instantiates files and other configuration actions
  6890. from templates according to the current configuration. Unless the files
  6891. and actions are specified as TAGs, all are instantiated by default.
  6892. Usage: $0 [OPTION]... [TAG]...
  6893. -h, --help print this help, then exit
  6894. -V, --version print version number and configuration settings, then exit
  6895. --config print configuration, then exit
  6896. -q, --quiet, --silent
  6897. do not print progress messages
  6898. -d, --debug don't remove temporary files
  6899. --recheck update $as_me by reconfiguring in the same conditions
  6900. --file=FILE[:TEMPLATE]
  6901. instantiate the configuration file FILE
  6902. Configuration files:
  6903. $config_files
  6904. Report bugs to the package provider."
  6905. _ACEOF
  6906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6907. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6908. ac_cs_version="\\
  6909. config.status
  6910. configured by $0, generated by GNU Autoconf 2.69,
  6911. with options \\"\$ac_cs_config\\"
  6912. Copyright (C) 2012 Free Software Foundation, Inc.
  6913. This config.status script is free software; the Free Software Foundation
  6914. gives unlimited permission to copy, distribute and modify it."
  6915. ac_pwd='$ac_pwd'
  6916. srcdir='$srcdir'
  6917. test -n "\$AWK" || AWK=awk
  6918. _ACEOF
  6919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6920. # The default lists apply if the user does not specify any file.
  6921. ac_need_defaults=:
  6922. while test $# != 0
  6923. do
  6924. case $1 in
  6925. --*=?*)
  6926. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6927. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6928. ac_shift=:
  6929. ;;
  6930. --*=)
  6931. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6932. ac_optarg=
  6933. ac_shift=:
  6934. ;;
  6935. *)
  6936. ac_option=$1
  6937. ac_optarg=$2
  6938. ac_shift=shift
  6939. ;;
  6940. esac
  6941. case $ac_option in
  6942. # Handling of the options.
  6943. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6944. ac_cs_recheck=: ;;
  6945. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6946. $as_echo "$ac_cs_version"; exit ;;
  6947. --config | --confi | --conf | --con | --co | --c )
  6948. $as_echo "$ac_cs_config"; exit ;;
  6949. --debug | --debu | --deb | --de | --d | -d )
  6950. debug=: ;;
  6951. --file | --fil | --fi | --f )
  6952. $ac_shift
  6953. case $ac_optarg in
  6954. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6955. '') as_fn_error $? "missing file argument" ;;
  6956. esac
  6957. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6958. ac_need_defaults=false;;
  6959. --he | --h | --help | --hel | -h )
  6960. $as_echo "$ac_cs_usage"; exit ;;
  6961. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6962. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6963. ac_cs_silent=: ;;
  6964. # This is an error.
  6965. -*) as_fn_error $? "unrecognized option: \`$1'
  6966. Try \`$0 --help' for more information." ;;
  6967. *) as_fn_append ac_config_targets " $1"
  6968. ac_need_defaults=false ;;
  6969. esac
  6970. shift
  6971. done
  6972. ac_configure_extra_args=
  6973. if $ac_cs_silent; then
  6974. exec 6>/dev/null
  6975. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6976. fi
  6977. _ACEOF
  6978. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6979. if \$ac_cs_recheck; then
  6980. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6981. shift
  6982. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6983. CONFIG_SHELL='$SHELL'
  6984. export CONFIG_SHELL
  6985. exec "\$@"
  6986. fi
  6987. _ACEOF
  6988. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6989. exec 5>>config.log
  6990. {
  6991. echo
  6992. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6993. ## Running $as_me. ##
  6994. _ASBOX
  6995. $as_echo "$ac_log"
  6996. } >&5
  6997. _ACEOF
  6998. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6999. _ACEOF
  7000. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7001. # Handling of arguments.
  7002. for ac_config_target in $ac_config_targets
  7003. do
  7004. case $ac_config_target in
  7005. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7006. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  7007. "3rdparty/mt19937ar/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/mt19937ar/Makefile" ;;
  7008. "3rdparty/libconfig/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/libconfig/Makefile" ;;
  7009. "src/char/Makefile") CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  7010. "src/login/Makefile") CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  7011. "src/map/Makefile") CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  7012. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  7013. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7014. esac
  7015. done
  7016. # If the user did not use the arguments to specify the items to instantiate,
  7017. # then the envvar interface is used. Set only those that are not.
  7018. # We use the long form for the default assignment because of an extremely
  7019. # bizarre bug on SunOS 4.1.3.
  7020. if $ac_need_defaults; then
  7021. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7022. fi
  7023. # Have a temporary directory for convenience. Make it in the build tree
  7024. # simply because there is no reason against having it here, and in addition,
  7025. # creating and moving files from /tmp can sometimes cause problems.
  7026. # Hook for its removal unless debugging.
  7027. # Note that there is a small window in which the directory will not be cleaned:
  7028. # after its creation but before its name has been assigned to `$tmp'.
  7029. $debug ||
  7030. {
  7031. tmp= ac_tmp=
  7032. trap 'exit_status=$?
  7033. : "${ac_tmp:=$tmp}"
  7034. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7035. ' 0
  7036. trap 'as_fn_exit 1' 1 2 13 15
  7037. }
  7038. # Create a (secure) tmp directory for tmp files.
  7039. {
  7040. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7041. test -d "$tmp"
  7042. } ||
  7043. {
  7044. tmp=./conf$$-$RANDOM
  7045. (umask 077 && mkdir "$tmp")
  7046. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7047. ac_tmp=$tmp
  7048. # Set up the scripts for CONFIG_FILES section.
  7049. # No need to generate them if there are no CONFIG_FILES.
  7050. # This happens for instance with `./config.status config.h'.
  7051. if test -n "$CONFIG_FILES"; then
  7052. ac_cr=`echo X | tr X '\015'`
  7053. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7054. # But we know of no other shell where ac_cr would be empty at this
  7055. # point, so we can use a bashism as a fallback.
  7056. if test "x$ac_cr" = x; then
  7057. eval ac_cr=\$\'\\r\'
  7058. fi
  7059. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7060. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7061. ac_cs_awk_cr='\\r'
  7062. else
  7063. ac_cs_awk_cr=$ac_cr
  7064. fi
  7065. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7066. _ACEOF
  7067. {
  7068. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7069. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7070. echo "_ACEOF"
  7071. } >conf$$subs.sh ||
  7072. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7073. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7074. ac_delim='%!_!# '
  7075. for ac_last_try in false false false false false :; do
  7076. . ./conf$$subs.sh ||
  7077. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7078. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7079. if test $ac_delim_n = $ac_delim_num; then
  7080. break
  7081. elif $ac_last_try; then
  7082. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7083. else
  7084. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7085. fi
  7086. done
  7087. rm -f conf$$subs.sh
  7088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7089. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7090. _ACEOF
  7091. sed -n '
  7092. h
  7093. s/^/S["/; s/!.*/"]=/
  7094. p
  7095. g
  7096. s/^[^!]*!//
  7097. :repl
  7098. t repl
  7099. s/'"$ac_delim"'$//
  7100. t delim
  7101. :nl
  7102. h
  7103. s/\(.\{148\}\)..*/\1/
  7104. t more1
  7105. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7106. p
  7107. n
  7108. b repl
  7109. :more1
  7110. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7111. p
  7112. g
  7113. s/.\{148\}//
  7114. t nl
  7115. :delim
  7116. h
  7117. s/\(.\{148\}\)..*/\1/
  7118. t more2
  7119. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7120. p
  7121. b
  7122. :more2
  7123. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7124. p
  7125. g
  7126. s/.\{148\}//
  7127. t delim
  7128. ' <conf$$subs.awk | sed '
  7129. /^[^""]/{
  7130. N
  7131. s/\n//
  7132. }
  7133. ' >>$CONFIG_STATUS || ac_write_fail=1
  7134. rm -f conf$$subs.awk
  7135. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7136. _ACAWK
  7137. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7138. for (key in S) S_is_set[key] = 1
  7139. FS = ""
  7140. }
  7141. {
  7142. line = $ 0
  7143. nfields = split(line, field, "@")
  7144. substed = 0
  7145. len = length(field[1])
  7146. for (i = 2; i < nfields; i++) {
  7147. key = field[i]
  7148. keylen = length(key)
  7149. if (S_is_set[key]) {
  7150. value = S[key]
  7151. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7152. len += length(value) + length(field[++i])
  7153. substed = 1
  7154. } else
  7155. len += 1 + keylen
  7156. }
  7157. print line
  7158. }
  7159. _ACAWK
  7160. _ACEOF
  7161. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7162. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7163. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7164. else
  7165. cat
  7166. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7167. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7168. _ACEOF
  7169. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7170. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7171. # trailing colons and then remove the whole line if VPATH becomes empty
  7172. # (actually we leave an empty line to preserve line numbers).
  7173. if test "x$srcdir" = x.; then
  7174. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7175. h
  7176. s///
  7177. s/^/:/
  7178. s/[ ]*$/:/
  7179. s/:\$(srcdir):/:/g
  7180. s/:\${srcdir}:/:/g
  7181. s/:@srcdir@:/:/g
  7182. s/^:*//
  7183. s/:*$//
  7184. x
  7185. s/\(=[ ]*\).*/\1/
  7186. G
  7187. s/\n//
  7188. s/^[^=]*=[ ]*$//
  7189. }'
  7190. fi
  7191. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7192. fi # test -n "$CONFIG_FILES"
  7193. eval set X " :F $CONFIG_FILES "
  7194. shift
  7195. for ac_tag
  7196. do
  7197. case $ac_tag in
  7198. :[FHLC]) ac_mode=$ac_tag; continue;;
  7199. esac
  7200. case $ac_mode$ac_tag in
  7201. :[FHL]*:*);;
  7202. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7203. :[FH]-) ac_tag=-:-;;
  7204. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7205. esac
  7206. ac_save_IFS=$IFS
  7207. IFS=:
  7208. set x $ac_tag
  7209. IFS=$ac_save_IFS
  7210. shift
  7211. ac_file=$1
  7212. shift
  7213. case $ac_mode in
  7214. :L) ac_source=$1;;
  7215. :[FH])
  7216. ac_file_inputs=
  7217. for ac_f
  7218. do
  7219. case $ac_f in
  7220. -) ac_f="$ac_tmp/stdin";;
  7221. *) # Look for the file first in the build tree, then in the source tree
  7222. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7223. # because $ac_f cannot contain `:'.
  7224. test -f "$ac_f" ||
  7225. case $ac_f in
  7226. [\\/$]*) false;;
  7227. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7228. esac ||
  7229. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7230. esac
  7231. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7232. as_fn_append ac_file_inputs " '$ac_f'"
  7233. done
  7234. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7235. # use $as_me), people would be surprised to read:
  7236. # /* config.h. Generated by config.status. */
  7237. configure_input='Generated from '`
  7238. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7239. `' by configure.'
  7240. if test x"$ac_file" != x-; then
  7241. configure_input="$ac_file. $configure_input"
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7243. $as_echo "$as_me: creating $ac_file" >&6;}
  7244. fi
  7245. # Neutralize special characters interpreted by sed in replacement strings.
  7246. case $configure_input in #(
  7247. *\&* | *\|* | *\\* )
  7248. ac_sed_conf_input=`$as_echo "$configure_input" |
  7249. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7250. *) ac_sed_conf_input=$configure_input;;
  7251. esac
  7252. case $ac_tag in
  7253. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7254. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7255. esac
  7256. ;;
  7257. esac
  7258. ac_dir=`$as_dirname -- "$ac_file" ||
  7259. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7260. X"$ac_file" : 'X\(//\)[^/]' \| \
  7261. X"$ac_file" : 'X\(//\)$' \| \
  7262. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7263. $as_echo X"$ac_file" |
  7264. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7265. s//\1/
  7266. q
  7267. }
  7268. /^X\(\/\/\)[^/].*/{
  7269. s//\1/
  7270. q
  7271. }
  7272. /^X\(\/\/\)$/{
  7273. s//\1/
  7274. q
  7275. }
  7276. /^X\(\/\).*/{
  7277. s//\1/
  7278. q
  7279. }
  7280. s/.*/./; q'`
  7281. as_dir="$ac_dir"; as_fn_mkdir_p
  7282. ac_builddir=.
  7283. case "$ac_dir" in
  7284. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7285. *)
  7286. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7287. # A ".." for each directory in $ac_dir_suffix.
  7288. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7289. case $ac_top_builddir_sub in
  7290. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7291. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7292. esac ;;
  7293. esac
  7294. ac_abs_top_builddir=$ac_pwd
  7295. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7296. # for backward compatibility:
  7297. ac_top_builddir=$ac_top_build_prefix
  7298. case $srcdir in
  7299. .) # We are building in place.
  7300. ac_srcdir=.
  7301. ac_top_srcdir=$ac_top_builddir_sub
  7302. ac_abs_top_srcdir=$ac_pwd ;;
  7303. [\\/]* | ?:[\\/]* ) # Absolute name.
  7304. ac_srcdir=$srcdir$ac_dir_suffix;
  7305. ac_top_srcdir=$srcdir
  7306. ac_abs_top_srcdir=$srcdir ;;
  7307. *) # Relative name.
  7308. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7309. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7310. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7311. esac
  7312. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7313. case $ac_mode in
  7314. :F)
  7315. #
  7316. # CONFIG_FILE
  7317. #
  7318. _ACEOF
  7319. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7320. # If the template does not know about datarootdir, expand it.
  7321. # FIXME: This hack should be removed a few years after 2.60.
  7322. ac_datarootdir_hack=; ac_datarootdir_seen=
  7323. ac_sed_dataroot='
  7324. /datarootdir/ {
  7325. p
  7326. q
  7327. }
  7328. /@datadir@/p
  7329. /@docdir@/p
  7330. /@infodir@/p
  7331. /@localedir@/p
  7332. /@mandir@/p'
  7333. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7334. *datarootdir*) ac_datarootdir_seen=yes;;
  7335. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7337. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7338. _ACEOF
  7339. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7340. ac_datarootdir_hack='
  7341. s&@datadir@&$datadir&g
  7342. s&@docdir@&$docdir&g
  7343. s&@infodir@&$infodir&g
  7344. s&@localedir@&$localedir&g
  7345. s&@mandir@&$mandir&g
  7346. s&\\\${datarootdir}&$datarootdir&g' ;;
  7347. esac
  7348. _ACEOF
  7349. # Neutralize VPATH when `$srcdir' = `.'.
  7350. # Shell code in configure.ac might set extrasub.
  7351. # FIXME: do we really want to maintain this feature?
  7352. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7353. ac_sed_extra="$ac_vpsub
  7354. $extrasub
  7355. _ACEOF
  7356. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7357. :t
  7358. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7359. s|@configure_input@|$ac_sed_conf_input|;t t
  7360. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7361. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7362. s&@srcdir@&$ac_srcdir&;t t
  7363. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7364. s&@top_srcdir@&$ac_top_srcdir&;t t
  7365. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7366. s&@builddir@&$ac_builddir&;t t
  7367. s&@abs_builddir@&$ac_abs_builddir&;t t
  7368. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7369. $ac_datarootdir_hack
  7370. "
  7371. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7372. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7373. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7374. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7375. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  7376. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7378. which seems to be undefined. Please make sure it is defined" >&5
  7379. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7380. which seems to be undefined. Please make sure it is defined" >&2;}
  7381. rm -f "$ac_tmp/stdin"
  7382. case $ac_file in
  7383. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7384. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7385. esac \
  7386. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7387. ;;
  7388. esac
  7389. done # for ac_tag
  7390. as_fn_exit 0
  7391. _ACEOF
  7392. ac_clean_files=$ac_clean_files_save
  7393. test $ac_write_fail = 0 ||
  7394. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7395. # configure is writing to config.log, and then calls config.status.
  7396. # config.status does its own redirection, appending to config.log.
  7397. # Unfortunately, on DOS this fails, as config.log is still kept open
  7398. # by configure, so config.status won't be able to write to it; its
  7399. # output is simply discarded. So we exec the FD to /dev/null,
  7400. # effectively closing config.log, so it can be properly (re)opened and
  7401. # appended to by config.status. When coming back to configure, we
  7402. # need to make the FD available again.
  7403. if test "$no_create" != yes; then
  7404. ac_cs_success=:
  7405. ac_config_status_args=
  7406. test "$silent" = yes &&
  7407. ac_config_status_args="$ac_config_status_args --quiet"
  7408. exec 5>/dev/null
  7409. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7410. exec 5>>config.log
  7411. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7412. # would make configure fail if this is the last instruction.
  7413. $ac_cs_success || as_fn_exit 1
  7414. fi
  7415. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7417. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7418. fi