configure 197 KB

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