2
0

configure 243 KB

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