configure 262 KB

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