configure 196 KB

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