configure~ 430 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test \$(( 1 + 1 )) = 2 || exit 1"
  168. if (eval "$as_required") 2>/dev/null
  169. then :
  170. as_have_required=yes
  171. else $as_nop
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  175. then :
  176. else $as_nop
  177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  178. as_found=false
  179. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  180. do
  181. IFS=$as_save_IFS
  182. case $as_dir in #(((
  183. '') as_dir=./ ;;
  184. */) ;;
  185. *) as_dir=$as_dir/ ;;
  186. esac
  187. as_found=:
  188. case $as_dir in #(
  189. /*)
  190. for as_base in sh bash ksh sh5; do
  191. # Try only shells that exist, to save several forks.
  192. as_shell=$as_dir$as_base
  193. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  194. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  195. then :
  196. CONFIG_SHELL=$as_shell as_have_required=yes
  197. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  198. then :
  199. break 2
  200. fi
  201. fi
  202. done;;
  203. esac
  204. as_found=false
  205. done
  206. IFS=$as_save_IFS
  207. if $as_found
  208. then :
  209. else $as_nop
  210. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  211. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  212. then :
  213. CONFIG_SHELL=$SHELL as_have_required=yes
  214. fi
  215. fi
  216. if test "x$CONFIG_SHELL" != x
  217. then :
  218. export CONFIG_SHELL
  219. # We cannot yet assume a decent shell, so we have to provide a
  220. # neutralization value for shells without unset; and this also
  221. # works around shells that cannot unset nonexistent variables.
  222. # Preserve -v and -x to the replacement shell.
  223. BASH_ENV=/dev/null
  224. ENV=/dev/null
  225. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  226. case $- in # ((((
  227. *v*x* | *x*v* ) as_opts=-vx ;;
  228. *v* ) as_opts=-v ;;
  229. *x* ) as_opts=-x ;;
  230. * ) as_opts= ;;
  231. esac
  232. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  233. # Admittedly, this is quite paranoid, since all the known shells bail
  234. # out after a failed `exec'.
  235. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  236. exit 255
  237. fi
  238. if test x$as_have_required = xno
  239. then :
  240. printf "%s\n" "$0: This script requires a shell more modern than all"
  241. printf "%s\n" "$0: the shells that I found on your system."
  242. if test ${ZSH_VERSION+y} ; then
  243. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  244. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  245. else
  246. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  247. $0: including any error possibly output before this
  248. $0: message. Then install a modern shell, or manually run
  249. $0: the script under such a shell if you do have one."
  250. fi
  251. exit 1
  252. fi
  253. fi
  254. fi
  255. SHELL=${CONFIG_SHELL-/bin/sh}
  256. export SHELL
  257. # Unset more variables known to interfere with behavior of common tools.
  258. CLICOLOR_FORCE= GREP_OPTIONS=
  259. unset CLICOLOR_FORCE GREP_OPTIONS
  260. ## --------------------- ##
  261. ## M4sh Shell Functions. ##
  262. ## --------------------- ##
  263. # as_fn_unset VAR
  264. # ---------------
  265. # Portably unset VAR.
  266. as_fn_unset ()
  267. {
  268. { eval $1=; unset $1;}
  269. }
  270. as_unset=as_fn_unset
  271. # as_fn_set_status STATUS
  272. # -----------------------
  273. # Set $? to STATUS, without forking.
  274. as_fn_set_status ()
  275. {
  276. return $1
  277. } # as_fn_set_status
  278. # as_fn_exit STATUS
  279. # -----------------
  280. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  281. as_fn_exit ()
  282. {
  283. set +e
  284. as_fn_set_status $1
  285. exit $1
  286. } # as_fn_exit
  287. # as_fn_nop
  288. # ---------
  289. # Do nothing but, unlike ":", preserve the value of $?.
  290. as_fn_nop ()
  291. {
  292. return $?
  293. }
  294. as_nop=as_fn_nop
  295. # as_fn_mkdir_p
  296. # -------------
  297. # Create "$as_dir" as a directory, including parents if necessary.
  298. as_fn_mkdir_p ()
  299. {
  300. case $as_dir in #(
  301. -*) as_dir=./$as_dir;;
  302. esac
  303. test -d "$as_dir" || eval $as_mkdir_p || {
  304. as_dirs=
  305. while :; do
  306. case $as_dir in #(
  307. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  308. *) as_qdir=$as_dir;;
  309. esac
  310. as_dirs="'$as_qdir' $as_dirs"
  311. as_dir=`$as_dirname -- "$as_dir" ||
  312. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  313. X"$as_dir" : 'X\(//\)[^/]' \| \
  314. X"$as_dir" : 'X\(//\)$' \| \
  315. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  316. printf "%s\n" X"$as_dir" |
  317. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  318. s//\1/
  319. q
  320. }
  321. /^X\(\/\/\)[^/].*/{
  322. s//\1/
  323. q
  324. }
  325. /^X\(\/\/\)$/{
  326. s//\1/
  327. q
  328. }
  329. /^X\(\/\).*/{
  330. s//\1/
  331. q
  332. }
  333. s/.*/./; q'`
  334. test -d "$as_dir" && break
  335. done
  336. test -z "$as_dirs" || eval "mkdir $as_dirs"
  337. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  338. } # as_fn_mkdir_p
  339. # as_fn_executable_p FILE
  340. # -----------------------
  341. # Test if FILE is an executable regular file.
  342. as_fn_executable_p ()
  343. {
  344. test -f "$1" && test -x "$1"
  345. } # as_fn_executable_p
  346. # as_fn_append VAR VALUE
  347. # ----------------------
  348. # Append the text in VALUE to the end of the definition contained in VAR. Take
  349. # advantage of any shell optimizations that allow amortized linear growth over
  350. # repeated appends, instead of the typical quadratic growth present in naive
  351. # implementations.
  352. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  353. then :
  354. eval 'as_fn_append ()
  355. {
  356. eval $1+=\$2
  357. }'
  358. else $as_nop
  359. as_fn_append ()
  360. {
  361. eval $1=\$$1\$2
  362. }
  363. fi # as_fn_append
  364. # as_fn_arith ARG...
  365. # ------------------
  366. # Perform arithmetic evaluation on the ARGs, and store the result in the
  367. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  368. # must be portable across $(()) and expr.
  369. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  370. then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else $as_nop
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_nop
  382. # ---------
  383. # Do nothing but, unlike ":", preserve the value of $?.
  384. as_fn_nop ()
  385. {
  386. return $?
  387. }
  388. as_nop=as_fn_nop
  389. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  390. # ----------------------------------------
  391. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  392. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  393. # script with STATUS, using 1 if that was 0.
  394. as_fn_error ()
  395. {
  396. as_status=$1; test $as_status -eq 0 && as_status=1
  397. if test "$4"; then
  398. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  400. fi
  401. printf "%s\n" "$as_me: error: $2" >&2
  402. as_fn_exit $as_status
  403. } # as_fn_error
  404. if expr a : '\(a\)' >/dev/null 2>&1 &&
  405. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  406. as_expr=expr
  407. else
  408. as_expr=false
  409. fi
  410. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  411. as_basename=basename
  412. else
  413. as_basename=false
  414. fi
  415. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  416. as_dirname=dirname
  417. else
  418. as_dirname=false
  419. fi
  420. as_me=`$as_basename -- "$0" ||
  421. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  422. X"$0" : 'X\(//\)$' \| \
  423. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  424. printf "%s\n" X/"$0" |
  425. sed '/^.*\/\([^/][^/]*\)\/*$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\/\)$/{
  430. s//\1/
  431. q
  432. }
  433. /^X\/\(\/\).*/{
  434. s//\1/
  435. q
  436. }
  437. s/.*/./; q'`
  438. # Avoid depending upon Character Ranges.
  439. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  440. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  441. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  442. as_cr_digits='0123456789'
  443. as_cr_alnum=$as_cr_Letters$as_cr_digits
  444. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  445. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  446. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  447. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  448. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  449. sed -n '
  450. p
  451. /[$]LINENO/=
  452. ' <$as_myself |
  453. sed '
  454. s/[$]LINENO.*/&-/
  455. t lineno
  456. b
  457. :lineno
  458. N
  459. :loop
  460. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  461. t loop
  462. s/-\n.*//
  463. ' >$as_me.lineno &&
  464. chmod +x "$as_me.lineno" ||
  465. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  466. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  467. # already done that, so ensure we don't try to do so again and fall
  468. # in an infinite loop. This has already happened in practice.
  469. _as_can_reexec=no; export _as_can_reexec
  470. # Don't try to exec as it changes $[0], causing all sort of problems
  471. # (the dirname of $[0] is not the place where we might find the
  472. # original and so on. Autoconf is especially sensitive to this).
  473. . "./$as_me.lineno"
  474. # Exit status is that of the last command.
  475. exit
  476. }
  477. # Determine whether it's possible to make 'echo' print without a newline.
  478. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  479. # for compatibility with existing Makefiles.
  480. ECHO_C= ECHO_N= ECHO_T=
  481. case `echo -n x` in #(((((
  482. -n*)
  483. case `echo 'xy\c'` in
  484. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  485. xy) ECHO_C='\c';;
  486. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  487. ECHO_T=' ';;
  488. esac;;
  489. *)
  490. ECHO_N='-n';;
  491. esac
  492. # For backward compatibility with old third-party macros, we provide
  493. # the shell variables $as_echo and $as_echo_n. New code should use
  494. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  495. as_echo='printf %s\n'
  496. as_echo_n='printf %s'
  497. rm -f conf$$ conf$$.exe conf$$.file
  498. if test -d conf$$.dir; then
  499. rm -f conf$$.dir/conf$$.file
  500. else
  501. rm -f conf$$.dir
  502. mkdir conf$$.dir 2>/dev/null
  503. fi
  504. if (echo >conf$$.file) 2>/dev/null; then
  505. if ln -s conf$$.file conf$$ 2>/dev/null; then
  506. as_ln_s='ln -s'
  507. # ... but there are two gotchas:
  508. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  509. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  510. # In both cases, we have to default to `cp -pR'.
  511. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  512. as_ln_s='cp -pR'
  513. elif ln conf$$.file conf$$ 2>/dev/null; then
  514. as_ln_s=ln
  515. else
  516. as_ln_s='cp -pR'
  517. fi
  518. else
  519. as_ln_s='cp -pR'
  520. fi
  521. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  522. rmdir conf$$.dir 2>/dev/null
  523. if mkdir -p . 2>/dev/null; then
  524. as_mkdir_p='mkdir -p "$as_dir"'
  525. else
  526. test -d ./-p && rmdir ./-p
  527. as_mkdir_p=false
  528. fi
  529. as_test_x='test -x'
  530. as_executable_p=as_fn_executable_p
  531. # Sed expression to map a string onto a valid CPP name.
  532. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  533. # Sed expression to map a string onto a valid variable name.
  534. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  535. test -n "$DJDIR" || exec 7<&0 </dev/null
  536. exec 6>&1
  537. # Name of the host.
  538. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  539. # so uname gets run too.
  540. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  541. #
  542. # Initializations.
  543. #
  544. ac_default_prefix=/usr/local
  545. ac_clean_files=
  546. ac_config_libobj_dir=.
  547. LIBOBJS=
  548. cross_compiling=no
  549. subdirs=
  550. MFLAGS=
  551. MAKEFLAGS=
  552. # Identity of this package.
  553. PACKAGE_NAME=''
  554. PACKAGE_TARNAME=''
  555. PACKAGE_VERSION=''
  556. PACKAGE_STRING=''
  557. PACKAGE_BUGREPORT=''
  558. PACKAGE_URL=''
  559. ac_unique_file="Makefile.in"
  560. # Factoring default headers for most tests.
  561. ac_includes_default="\
  562. #include <stddef.h>
  563. #ifdef HAVE_STDIO_H
  564. # include <stdio.h>
  565. #endif
  566. #ifdef HAVE_STDLIB_H
  567. # include <stdlib.h>
  568. #endif
  569. #ifdef HAVE_STRING_H
  570. # include <string.h>
  571. #endif
  572. #ifdef HAVE_INTTYPES_H
  573. # include <inttypes.h>
  574. #endif
  575. #ifdef HAVE_STDINT_H
  576. # include <stdint.h>
  577. #endif
  578. #ifdef HAVE_STRINGS_H
  579. # include <strings.h>
  580. #endif
  581. #ifdef HAVE_SYS_TYPES_H
  582. # include <sys/types.h>
  583. #endif
  584. #ifdef HAVE_SYS_STAT_H
  585. # include <sys/stat.h>
  586. #endif
  587. #ifdef HAVE_UNISTD_H
  588. # include <unistd.h>
  589. #endif"
  590. ac_header_c_list=
  591. ac_subst_vars='LTLIBOBJS
  592. LIBOBJS
  593. cfgoutputs_out
  594. cfgoutputs_in
  595. cfghdrs_out
  596. cfghdrs_in
  597. enable_initial_exec_tls
  598. enable_zone_allocator
  599. enable_tls
  600. enable_lazy_lock
  601. libdl
  602. enable_uaf_detection
  603. enable_opt_size_checks
  604. enable_opt_safety_checks
  605. enable_readlinkat
  606. enable_log
  607. enable_cache_oblivious
  608. enable_xmalloc
  609. enable_utrace
  610. enable_fill
  611. enable_prof
  612. enable_experimental_smallocx
  613. enable_stats
  614. enable_debug
  615. je_
  616. install_suffix
  617. private_namespace
  618. JEMALLOC_CPREFIX
  619. JEMALLOC_PREFIX
  620. enable_static
  621. enable_shared
  622. enable_doc
  623. AUTOCONF
  624. LD
  625. RANLIB
  626. INSTALL_DATA
  627. INSTALL_SCRIPT
  628. INSTALL_PROGRAM
  629. enable_autogen
  630. RPATH_EXTRA
  631. LM
  632. CC_MM
  633. DUMP_SYMS
  634. AROUT
  635. ARFLAGS
  636. MKLIB
  637. TEST_LD_MODE
  638. LDTARGET
  639. CTARGET
  640. PIC_CFLAGS
  641. SOREV
  642. EXTRA_LDFLAGS
  643. DSO_LDFLAGS
  644. link_whole_archive
  645. libprefix
  646. exe
  647. a
  648. o
  649. importlib
  650. so
  651. LD_PRELOAD_VAR
  652. RPATH
  653. abi
  654. jemalloc_version_gid
  655. jemalloc_version_nrev
  656. jemalloc_version_bugfix
  657. jemalloc_version_minor
  658. jemalloc_version_major
  659. jemalloc_version
  660. AWK
  661. NM
  662. AR
  663. host_os
  664. host_vendor
  665. host_cpu
  666. host
  667. build_os
  668. build_vendor
  669. build_cpu
  670. build
  671. EXTRA_CXXFLAGS
  672. SPECIFIED_CXXFLAGS
  673. CONFIGURE_CXXFLAGS
  674. enable_cxx
  675. HAVE_CXX14
  676. HAVE_CXX17
  677. ac_ct_CXX
  678. CXXFLAGS
  679. CXX
  680. CPP
  681. EXTRA_CFLAGS
  682. SPECIFIED_CFLAGS
  683. CONFIGURE_CFLAGS
  684. OBJEXT
  685. EXEEXT
  686. ac_ct_CC
  687. CPPFLAGS
  688. LDFLAGS
  689. CFLAGS
  690. CC
  691. XSLROOT
  692. XSLTPROC
  693. MANDIR
  694. DATADIR
  695. LIBDIR
  696. INCLUDEDIR
  697. BINDIR
  698. PREFIX
  699. abs_objroot
  700. objroot
  701. abs_srcroot
  702. srcroot
  703. rev
  704. CONFIG
  705. target_alias
  706. host_alias
  707. build_alias
  708. LIBS
  709. ECHO_T
  710. ECHO_N
  711. ECHO_C
  712. DEFS
  713. mandir
  714. localedir
  715. libdir
  716. psdir
  717. pdfdir
  718. dvidir
  719. htmldir
  720. infodir
  721. docdir
  722. oldincludedir
  723. includedir
  724. runstatedir
  725. localstatedir
  726. sharedstatedir
  727. sysconfdir
  728. datadir
  729. datarootdir
  730. libexecdir
  731. sbindir
  732. bindir
  733. program_transform_name
  734. prefix
  735. exec_prefix
  736. PACKAGE_URL
  737. PACKAGE_BUGREPORT
  738. PACKAGE_STRING
  739. PACKAGE_VERSION
  740. PACKAGE_TARNAME
  741. PACKAGE_NAME
  742. PATH_SEPARATOR
  743. SHELL'
  744. ac_subst_files=''
  745. ac_user_opts='
  746. enable_option_checking
  747. with_xslroot
  748. enable_cxx
  749. with_lg_vaddr
  750. with_version
  751. with_rpath
  752. enable_autogen
  753. enable_doc
  754. enable_shared
  755. enable_static
  756. with_mangling
  757. with_jemalloc_prefix
  758. with_export
  759. with_private_namespace
  760. with_install_suffix
  761. with_malloc_conf
  762. enable_debug
  763. enable_stats
  764. enable_experimental_smallocx
  765. enable_prof
  766. enable_prof_libunwind
  767. with_static_libunwind
  768. enable_prof_libgcc
  769. enable_prof_gcc
  770. enable_fill
  771. enable_utrace
  772. enable_xmalloc
  773. enable_cache_oblivious
  774. enable_log
  775. enable_readlinkat
  776. enable_opt_safety_checks
  777. enable_opt_size_checks
  778. enable_uaf_detection
  779. with_lg_quantum
  780. with_lg_slab_maxregs
  781. with_lg_page
  782. with_lg_hugepage
  783. enable_libdl
  784. enable_syscall
  785. enable_lazy_lock
  786. enable_zone_allocator
  787. enable_initial_exec_tls
  788. '
  789. ac_precious_vars='build_alias
  790. host_alias
  791. target_alias
  792. CC
  793. CFLAGS
  794. LDFLAGS
  795. LIBS
  796. CPPFLAGS
  797. CPP
  798. CXX
  799. CXXFLAGS
  800. CCC'
  801. # Initialize some variables set by options.
  802. ac_init_help=
  803. ac_init_version=false
  804. ac_unrecognized_opts=
  805. ac_unrecognized_sep=
  806. # The variables have the same names as the options, with
  807. # dashes changed to underlines.
  808. cache_file=/dev/null
  809. exec_prefix=NONE
  810. no_create=
  811. no_recursion=
  812. prefix=NONE
  813. program_prefix=NONE
  814. program_suffix=NONE
  815. program_transform_name=s,x,x,
  816. silent=
  817. site=
  818. srcdir=
  819. verbose=
  820. x_includes=NONE
  821. x_libraries=NONE
  822. # Installation directory options.
  823. # These are left unexpanded so users can "make install exec_prefix=/foo"
  824. # and all the variables that are supposed to be based on exec_prefix
  825. # by default will actually change.
  826. # Use braces instead of parens because sh, perl, etc. also accept them.
  827. # (The list follows the same order as the GNU Coding Standards.)
  828. bindir='${exec_prefix}/bin'
  829. sbindir='${exec_prefix}/sbin'
  830. libexecdir='${exec_prefix}/libexec'
  831. datarootdir='${prefix}/share'
  832. datadir='${datarootdir}'
  833. sysconfdir='${prefix}/etc'
  834. sharedstatedir='${prefix}/com'
  835. localstatedir='${prefix}/var'
  836. runstatedir='${localstatedir}/run'
  837. includedir='${prefix}/include'
  838. oldincludedir='/usr/include'
  839. docdir='${datarootdir}/doc/${PACKAGE}'
  840. infodir='${datarootdir}/info'
  841. htmldir='${docdir}'
  842. dvidir='${docdir}'
  843. pdfdir='${docdir}'
  844. psdir='${docdir}'
  845. libdir='${exec_prefix}/lib'
  846. localedir='${datarootdir}/locale'
  847. mandir='${datarootdir}/man'
  848. ac_prev=
  849. ac_dashdash=
  850. for ac_option
  851. do
  852. # If the previous option needs an argument, assign it.
  853. if test -n "$ac_prev"; then
  854. eval $ac_prev=\$ac_option
  855. ac_prev=
  856. continue
  857. fi
  858. case $ac_option in
  859. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  860. *=) ac_optarg= ;;
  861. *) ac_optarg=yes ;;
  862. esac
  863. case $ac_dashdash$ac_option in
  864. --)
  865. ac_dashdash=yes ;;
  866. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  867. ac_prev=bindir ;;
  868. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  869. bindir=$ac_optarg ;;
  870. -build | --build | --buil | --bui | --bu)
  871. ac_prev=build_alias ;;
  872. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  873. build_alias=$ac_optarg ;;
  874. -cache-file | --cache-file | --cache-fil | --cache-fi \
  875. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  876. ac_prev=cache_file ;;
  877. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  878. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  879. cache_file=$ac_optarg ;;
  880. --config-cache | -C)
  881. cache_file=config.cache ;;
  882. -datadir | --datadir | --datadi | --datad)
  883. ac_prev=datadir ;;
  884. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  885. datadir=$ac_optarg ;;
  886. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  887. | --dataroo | --dataro | --datar)
  888. ac_prev=datarootdir ;;
  889. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  890. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  891. datarootdir=$ac_optarg ;;
  892. -disable-* | --disable-*)
  893. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  894. # Reject names that are not valid shell variable names.
  895. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  896. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  897. ac_useropt_orig=$ac_useropt
  898. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  899. case $ac_user_opts in
  900. *"
  901. "enable_$ac_useropt"
  902. "*) ;;
  903. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  904. ac_unrecognized_sep=', ';;
  905. esac
  906. eval enable_$ac_useropt=no ;;
  907. -docdir | --docdir | --docdi | --doc | --do)
  908. ac_prev=docdir ;;
  909. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  910. docdir=$ac_optarg ;;
  911. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  912. ac_prev=dvidir ;;
  913. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  914. dvidir=$ac_optarg ;;
  915. -enable-* | --enable-*)
  916. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  919. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  920. ac_useropt_orig=$ac_useropt
  921. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  922. case $ac_user_opts in
  923. *"
  924. "enable_$ac_useropt"
  925. "*) ;;
  926. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  927. ac_unrecognized_sep=', ';;
  928. esac
  929. eval enable_$ac_useropt=\$ac_optarg ;;
  930. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  931. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  932. | --exec | --exe | --ex)
  933. ac_prev=exec_prefix ;;
  934. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  935. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  936. | --exec=* | --exe=* | --ex=*)
  937. exec_prefix=$ac_optarg ;;
  938. -gas | --gas | --ga | --g)
  939. # Obsolete; use --with-gas.
  940. with_gas=yes ;;
  941. -help | --help | --hel | --he | -h)
  942. ac_init_help=long ;;
  943. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  944. ac_init_help=recursive ;;
  945. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  946. ac_init_help=short ;;
  947. -host | --host | --hos | --ho)
  948. ac_prev=host_alias ;;
  949. -host=* | --host=* | --hos=* | --ho=*)
  950. host_alias=$ac_optarg ;;
  951. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  952. ac_prev=htmldir ;;
  953. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  954. | --ht=*)
  955. htmldir=$ac_optarg ;;
  956. -includedir | --includedir | --includedi | --included | --include \
  957. | --includ | --inclu | --incl | --inc)
  958. ac_prev=includedir ;;
  959. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  960. | --includ=* | --inclu=* | --incl=* | --inc=*)
  961. includedir=$ac_optarg ;;
  962. -infodir | --infodir | --infodi | --infod | --info | --inf)
  963. ac_prev=infodir ;;
  964. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  965. infodir=$ac_optarg ;;
  966. -libdir | --libdir | --libdi | --libd)
  967. ac_prev=libdir ;;
  968. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  969. libdir=$ac_optarg ;;
  970. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  971. | --libexe | --libex | --libe)
  972. ac_prev=libexecdir ;;
  973. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  974. | --libexe=* | --libex=* | --libe=*)
  975. libexecdir=$ac_optarg ;;
  976. -localedir | --localedir | --localedi | --localed | --locale)
  977. ac_prev=localedir ;;
  978. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  979. localedir=$ac_optarg ;;
  980. -localstatedir | --localstatedir | --localstatedi | --localstated \
  981. | --localstate | --localstat | --localsta | --localst | --locals)
  982. ac_prev=localstatedir ;;
  983. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  984. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  985. localstatedir=$ac_optarg ;;
  986. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  987. ac_prev=mandir ;;
  988. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  989. mandir=$ac_optarg ;;
  990. -nfp | --nfp | --nf)
  991. # Obsolete; use --without-fp.
  992. with_fp=no ;;
  993. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  994. | --no-cr | --no-c | -n)
  995. no_create=yes ;;
  996. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  997. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  998. no_recursion=yes ;;
  999. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1000. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1001. | --oldin | --oldi | --old | --ol | --o)
  1002. ac_prev=oldincludedir ;;
  1003. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1004. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1005. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1006. oldincludedir=$ac_optarg ;;
  1007. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1008. ac_prev=prefix ;;
  1009. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1010. prefix=$ac_optarg ;;
  1011. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1012. | --program-pre | --program-pr | --program-p)
  1013. ac_prev=program_prefix ;;
  1014. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1015. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1016. program_prefix=$ac_optarg ;;
  1017. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1018. | --program-suf | --program-su | --program-s)
  1019. ac_prev=program_suffix ;;
  1020. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1021. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1022. program_suffix=$ac_optarg ;;
  1023. -program-transform-name | --program-transform-name \
  1024. | --program-transform-nam | --program-transform-na \
  1025. | --program-transform-n | --program-transform- \
  1026. | --program-transform | --program-transfor \
  1027. | --program-transfo | --program-transf \
  1028. | --program-trans | --program-tran \
  1029. | --progr-tra | --program-tr | --program-t)
  1030. ac_prev=program_transform_name ;;
  1031. -program-transform-name=* | --program-transform-name=* \
  1032. | --program-transform-nam=* | --program-transform-na=* \
  1033. | --program-transform-n=* | --program-transform-=* \
  1034. | --program-transform=* | --program-transfor=* \
  1035. | --program-transfo=* | --program-transf=* \
  1036. | --program-trans=* | --program-tran=* \
  1037. | --progr-tra=* | --program-tr=* | --program-t=*)
  1038. program_transform_name=$ac_optarg ;;
  1039. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1040. ac_prev=pdfdir ;;
  1041. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1042. pdfdir=$ac_optarg ;;
  1043. -psdir | --psdir | --psdi | --psd | --ps)
  1044. ac_prev=psdir ;;
  1045. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1046. psdir=$ac_optarg ;;
  1047. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1048. | -silent | --silent | --silen | --sile | --sil)
  1049. silent=yes ;;
  1050. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1051. | --runstate | --runstat | --runsta | --runst | --runs \
  1052. | --run | --ru | --r)
  1053. ac_prev=runstatedir ;;
  1054. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1055. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1056. | --run=* | --ru=* | --r=*)
  1057. runstatedir=$ac_optarg ;;
  1058. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1059. ac_prev=sbindir ;;
  1060. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1061. | --sbi=* | --sb=*)
  1062. sbindir=$ac_optarg ;;
  1063. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1064. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1065. | --sharedst | --shareds | --shared | --share | --shar \
  1066. | --sha | --sh)
  1067. ac_prev=sharedstatedir ;;
  1068. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1069. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1070. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1071. | --sha=* | --sh=*)
  1072. sharedstatedir=$ac_optarg ;;
  1073. -site | --site | --sit)
  1074. ac_prev=site ;;
  1075. -site=* | --site=* | --sit=*)
  1076. site=$ac_optarg ;;
  1077. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1078. ac_prev=srcdir ;;
  1079. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1080. srcdir=$ac_optarg ;;
  1081. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1082. | --syscon | --sysco | --sysc | --sys | --sy)
  1083. ac_prev=sysconfdir ;;
  1084. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1085. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1086. sysconfdir=$ac_optarg ;;
  1087. -target | --target | --targe | --targ | --tar | --ta | --t)
  1088. ac_prev=target_alias ;;
  1089. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1090. target_alias=$ac_optarg ;;
  1091. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1092. verbose=yes ;;
  1093. -version | --version | --versio | --versi | --vers | -V)
  1094. ac_init_version=: ;;
  1095. -with-* | --with-*)
  1096. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1097. # Reject names that are not valid shell variable names.
  1098. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1099. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1100. ac_useropt_orig=$ac_useropt
  1101. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1102. case $ac_user_opts in
  1103. *"
  1104. "with_$ac_useropt"
  1105. "*) ;;
  1106. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1107. ac_unrecognized_sep=', ';;
  1108. esac
  1109. eval with_$ac_useropt=\$ac_optarg ;;
  1110. -without-* | --without-*)
  1111. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1112. # Reject names that are not valid shell variable names.
  1113. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1114. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1115. ac_useropt_orig=$ac_useropt
  1116. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1117. case $ac_user_opts in
  1118. *"
  1119. "with_$ac_useropt"
  1120. "*) ;;
  1121. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1122. ac_unrecognized_sep=', ';;
  1123. esac
  1124. eval with_$ac_useropt=no ;;
  1125. --x)
  1126. # Obsolete; use --with-x.
  1127. with_x=yes ;;
  1128. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1129. | --x-incl | --x-inc | --x-in | --x-i)
  1130. ac_prev=x_includes ;;
  1131. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1132. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1133. x_includes=$ac_optarg ;;
  1134. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1135. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1136. ac_prev=x_libraries ;;
  1137. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1138. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1139. x_libraries=$ac_optarg ;;
  1140. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1141. Try \`$0 --help' for more information"
  1142. ;;
  1143. *=*)
  1144. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1145. # Reject names that are not valid shell variable names.
  1146. case $ac_envvar in #(
  1147. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1148. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1149. esac
  1150. eval $ac_envvar=\$ac_optarg
  1151. export $ac_envvar ;;
  1152. *)
  1153. # FIXME: should be removed in autoconf 3.0.
  1154. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1155. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1156. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1157. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1158. ;;
  1159. esac
  1160. done
  1161. if test -n "$ac_prev"; then
  1162. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1163. as_fn_error $? "missing argument to $ac_option"
  1164. fi
  1165. if test -n "$ac_unrecognized_opts"; then
  1166. case $enable_option_checking in
  1167. no) ;;
  1168. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1169. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1170. esac
  1171. fi
  1172. # Check all directory arguments for consistency.
  1173. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1174. datadir sysconfdir sharedstatedir localstatedir includedir \
  1175. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1176. libdir localedir mandir runstatedir
  1177. do
  1178. eval ac_val=\$$ac_var
  1179. # Remove trailing slashes.
  1180. case $ac_val in
  1181. */ )
  1182. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1183. eval $ac_var=\$ac_val;;
  1184. esac
  1185. # Be sure to have absolute directory names.
  1186. case $ac_val in
  1187. [\\/$]* | ?:[\\/]* ) continue;;
  1188. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1189. esac
  1190. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1191. done
  1192. # There might be people who depend on the old broken behavior: `$host'
  1193. # used to hold the argument of --host etc.
  1194. # FIXME: To remove some day.
  1195. build=$build_alias
  1196. host=$host_alias
  1197. target=$target_alias
  1198. # FIXME: To remove some day.
  1199. if test "x$host_alias" != x; then
  1200. if test "x$build_alias" = x; then
  1201. cross_compiling=maybe
  1202. elif test "x$build_alias" != "x$host_alias"; then
  1203. cross_compiling=yes
  1204. fi
  1205. fi
  1206. ac_tool_prefix=
  1207. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1208. test "$silent" = yes && exec 6>/dev/null
  1209. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1210. ac_ls_di=`ls -di .` &&
  1211. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1212. as_fn_error $? "working directory cannot be determined"
  1213. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1214. as_fn_error $? "pwd does not report name of working directory"
  1215. # Find the source files, if location was not specified.
  1216. if test -z "$srcdir"; then
  1217. ac_srcdir_defaulted=yes
  1218. # Try the directory containing this script, then the parent directory.
  1219. ac_confdir=`$as_dirname -- "$as_myself" ||
  1220. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1221. X"$as_myself" : 'X\(//\)[^/]' \| \
  1222. X"$as_myself" : 'X\(//\)$' \| \
  1223. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1224. printf "%s\n" X"$as_myself" |
  1225. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1226. s//\1/
  1227. q
  1228. }
  1229. /^X\(\/\/\)[^/].*/{
  1230. s//\1/
  1231. q
  1232. }
  1233. /^X\(\/\/\)$/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\).*/{
  1238. s//\1/
  1239. q
  1240. }
  1241. s/.*/./; q'`
  1242. srcdir=$ac_confdir
  1243. if test ! -r "$srcdir/$ac_unique_file"; then
  1244. srcdir=..
  1245. fi
  1246. else
  1247. ac_srcdir_defaulted=no
  1248. fi
  1249. if test ! -r "$srcdir/$ac_unique_file"; then
  1250. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1251. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1252. fi
  1253. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1254. ac_abs_confdir=`(
  1255. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1256. pwd)`
  1257. # When building in place, set srcdir=.
  1258. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1259. srcdir=.
  1260. fi
  1261. # Remove unnecessary trailing slashes from srcdir.
  1262. # Double slashes in file names in object file debugging info
  1263. # mess up M-x gdb in Emacs.
  1264. case $srcdir in
  1265. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1266. esac
  1267. for ac_var in $ac_precious_vars; do
  1268. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1269. eval ac_env_${ac_var}_value=\$${ac_var}
  1270. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1271. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1272. done
  1273. #
  1274. # Report the --help message.
  1275. #
  1276. if test "$ac_init_help" = "long"; then
  1277. # Omit some internal or obsolete options to make the list less imposing.
  1278. # This message is too long to be a string in the A/UX 3.1 sh.
  1279. cat <<_ACEOF
  1280. \`configure' configures this package to adapt to many kinds of systems.
  1281. Usage: $0 [OPTION]... [VAR=VALUE]...
  1282. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1283. VAR=VALUE. See below for descriptions of some of the useful variables.
  1284. Defaults for the options are specified in brackets.
  1285. Configuration:
  1286. -h, --help display this help and exit
  1287. --help=short display options specific to this package
  1288. --help=recursive display the short help of all the included packages
  1289. -V, --version display version information and exit
  1290. -q, --quiet, --silent do not print \`checking ...' messages
  1291. --cache-file=FILE cache test results in FILE [disabled]
  1292. -C, --config-cache alias for \`--cache-file=config.cache'
  1293. -n, --no-create do not create output files
  1294. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1295. Installation directories:
  1296. --prefix=PREFIX install architecture-independent files in PREFIX
  1297. [$ac_default_prefix]
  1298. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1299. [PREFIX]
  1300. By default, \`make install' will install all the files in
  1301. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1302. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1303. for instance \`--prefix=\$HOME'.
  1304. For better control, use the options below.
  1305. Fine tuning of the installation directories:
  1306. --bindir=DIR user executables [EPREFIX/bin]
  1307. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1308. --libexecdir=DIR program executables [EPREFIX/libexec]
  1309. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1310. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1311. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1312. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1313. --libdir=DIR object code libraries [EPREFIX/lib]
  1314. --includedir=DIR C header files [PREFIX/include]
  1315. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1316. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1317. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1318. --infodir=DIR info documentation [DATAROOTDIR/info]
  1319. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1320. --mandir=DIR man documentation [DATAROOTDIR/man]
  1321. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1322. --htmldir=DIR html documentation [DOCDIR]
  1323. --dvidir=DIR dvi documentation [DOCDIR]
  1324. --pdfdir=DIR pdf documentation [DOCDIR]
  1325. --psdir=DIR ps documentation [DOCDIR]
  1326. _ACEOF
  1327. cat <<\_ACEOF
  1328. System types:
  1329. --build=BUILD configure for building on BUILD [guessed]
  1330. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1331. _ACEOF
  1332. fi
  1333. if test -n "$ac_init_help"; then
  1334. cat <<\_ACEOF
  1335. Optional Features:
  1336. --disable-option-checking ignore unrecognized --enable/--with options
  1337. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1338. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1339. --disable-cxx Disable C++ integration
  1340. --enable-autogen Automatically regenerate configure output
  1341. --enable-doc Build documentation
  1342. --enable-shared Build shared libaries
  1343. --enable-static Build static libaries
  1344. --enable-debug Build debugging code
  1345. --disable-stats Disable statistics calculation/reporting
  1346. --enable-experimental-smallocx
  1347. Enable experimental smallocx API
  1348. --enable-prof Enable allocation profiling
  1349. --enable-prof-libunwind Use libunwind for backtracing
  1350. --disable-prof-libgcc Do not use libgcc for backtracing
  1351. --disable-prof-gcc Do not use gcc intrinsics for backtracing
  1352. --disable-fill Disable support for junk/zero filling
  1353. --enable-utrace Enable utrace(2)-based tracing
  1354. --enable-xmalloc Support xmalloc option
  1355. --disable-cache-oblivious
  1356. Disable support for cache-oblivious allocation
  1357. alignment
  1358. --enable-log Support debug logging
  1359. --enable-readlinkat Use readlinkat over readlink
  1360. --enable-opt-safety-checks
  1361. Perform certain low-overhead checks, even in opt
  1362. mode
  1363. --enable-opt-size-checks
  1364. Perform sized-deallocation argument checks, even in
  1365. opt mode
  1366. --enable-uaf-detection Allow sampled junk-filling on deallocation to detect
  1367. use-after-free
  1368. --disable-libdl Do not use libdl
  1369. --disable-syscall Disable use of syscall(2)
  1370. --enable-lazy-lock Enable lazy locking (only lock when multi-threaded)
  1371. --disable-zone-allocator
  1372. Disable zone allocator for Darwin
  1373. --disable-initial-exec-tls
  1374. Disable the initial-exec tls model
  1375. Optional Packages:
  1376. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1377. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1378. --with-xslroot=<path> XSL stylesheet root path
  1379. --with-lg-vaddr=<lg-vaddr>
  1380. Number of significant virtual address bits
  1381. --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
  1382. Version string
  1383. --with-rpath=<rpath> Colon-separated rpath (ELF systems only)
  1384. --with-mangling=<map> Mangle symbols in <map>
  1385. --with-jemalloc-prefix=<prefix>
  1386. Prefix to prepend to all public APIs
  1387. --without-export disable exporting jemalloc public APIs
  1388. --with-private-namespace=<prefix>
  1389. Prefix to prepend to all library-private APIs
  1390. --with-install-suffix=<suffix>
  1391. Suffix to append to all installed files
  1392. --with-malloc-conf=<malloc_conf>
  1393. config.malloc_conf options string
  1394. --with-static-libunwind=<libunwind.a>
  1395. Path to static libunwind library; use rather than
  1396. dynamically linking
  1397. --with-lg-quantum=<lg-quantum>
  1398. Base 2 log of minimum allocation alignment
  1399. --with-lg-slab-maxregs=<lg-slab-maxregs>
  1400. Base 2 log of maximum number of regions in a slab
  1401. (used with malloc_conf slab_sizes)
  1402. --with-lg-page=<lg-page>
  1403. Base 2 log of system page size
  1404. --with-lg-hugepage=<lg-hugepage>
  1405. Base 2 log of system huge page size
  1406. Some influential environment variables:
  1407. CC C compiler command
  1408. CFLAGS C compiler flags
  1409. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1410. nonstandard directory <lib dir>
  1411. LIBS libraries to pass to the linker, e.g. -l<library>
  1412. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1413. you have headers in a nonstandard directory <include dir>
  1414. CPP C preprocessor
  1415. CXX C++ compiler command
  1416. CXXFLAGS C++ compiler flags
  1417. Use these variables to override the choices made by `configure' or to help
  1418. it to find libraries and programs with nonstandard names/locations.
  1419. Report bugs to the package provider.
  1420. _ACEOF
  1421. ac_status=$?
  1422. fi
  1423. if test "$ac_init_help" = "recursive"; then
  1424. # If there are subdirs, report their specific --help.
  1425. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1426. test -d "$ac_dir" ||
  1427. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1428. continue
  1429. ac_builddir=.
  1430. case "$ac_dir" in
  1431. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1432. *)
  1433. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1434. # A ".." for each directory in $ac_dir_suffix.
  1435. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1436. case $ac_top_builddir_sub in
  1437. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1438. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1439. esac ;;
  1440. esac
  1441. ac_abs_top_builddir=$ac_pwd
  1442. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1443. # for backward compatibility:
  1444. ac_top_builddir=$ac_top_build_prefix
  1445. case $srcdir in
  1446. .) # We are building in place.
  1447. ac_srcdir=.
  1448. ac_top_srcdir=$ac_top_builddir_sub
  1449. ac_abs_top_srcdir=$ac_pwd ;;
  1450. [\\/]* | ?:[\\/]* ) # Absolute name.
  1451. ac_srcdir=$srcdir$ac_dir_suffix;
  1452. ac_top_srcdir=$srcdir
  1453. ac_abs_top_srcdir=$srcdir ;;
  1454. *) # Relative name.
  1455. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1456. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1457. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1458. esac
  1459. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1460. cd "$ac_dir" || { ac_status=$?; continue; }
  1461. # Check for configure.gnu first; this name is used for a wrapper for
  1462. # Metaconfig's "Configure" on case-insensitive file systems.
  1463. if test -f "$ac_srcdir/configure.gnu"; then
  1464. echo &&
  1465. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1466. elif test -f "$ac_srcdir/configure"; then
  1467. echo &&
  1468. $SHELL "$ac_srcdir/configure" --help=recursive
  1469. else
  1470. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1471. fi || ac_status=$?
  1472. cd "$ac_pwd" || { ac_status=$?; break; }
  1473. done
  1474. fi
  1475. test -n "$ac_init_help" && exit $ac_status
  1476. if $ac_init_version; then
  1477. cat <<\_ACEOF
  1478. configure
  1479. generated by GNU Autoconf 2.71
  1480. Copyright (C) 2021 Free Software Foundation, Inc.
  1481. This configure script is free software; the Free Software Foundation
  1482. gives unlimited permission to copy, distribute and modify it.
  1483. _ACEOF
  1484. exit
  1485. fi
  1486. ## ------------------------ ##
  1487. ## Autoconf initialization. ##
  1488. ## ------------------------ ##
  1489. # ac_fn_c_try_compile LINENO
  1490. # --------------------------
  1491. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_compile ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext conftest.beam
  1496. if { { ac_try="$ac_compile"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. printf "%s\n" "$ac_try_echo"; } >&5
  1503. (eval "$ac_compile") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac_status = 0; } && {
  1512. test -z "$ac_c_werror_flag" ||
  1513. test ! -s conftest.err
  1514. } && test -s conftest.$ac_objext
  1515. then :
  1516. ac_retval=0
  1517. else $as_nop
  1518. printf "%s\n" "$as_me: failed program was:" >&5
  1519. sed 's/^/| /' conftest.$ac_ext >&5
  1520. ac_retval=1
  1521. fi
  1522. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1523. as_fn_set_status $ac_retval
  1524. } # ac_fn_c_try_compile
  1525. # ac_fn_c_try_cpp LINENO
  1526. # ----------------------
  1527. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1528. ac_fn_c_try_cpp ()
  1529. {
  1530. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1531. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1532. case "(($ac_try" in
  1533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1534. *) ac_try_echo=$ac_try;;
  1535. esac
  1536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1537. printf "%s\n" "$ac_try_echo"; } >&5
  1538. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1539. ac_status=$?
  1540. if test -s conftest.err; then
  1541. grep -v '^ *+' conftest.err >conftest.er1
  1542. cat conftest.er1 >&5
  1543. mv -f conftest.er1 conftest.err
  1544. fi
  1545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } > conftest.i && {
  1547. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1548. test ! -s conftest.err
  1549. }
  1550. then :
  1551. ac_retval=0
  1552. else $as_nop
  1553. printf "%s\n" "$as_me: failed program was:" >&5
  1554. sed 's/^/| /' conftest.$ac_ext >&5
  1555. ac_retval=1
  1556. fi
  1557. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_c_try_cpp
  1560. # ac_fn_cxx_try_compile LINENO
  1561. # ----------------------------
  1562. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1563. ac_fn_cxx_try_compile ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. rm -f conftest.$ac_objext conftest.beam
  1567. if { { ac_try="$ac_compile"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. printf "%s\n" "$ac_try_echo"; } >&5
  1574. (eval "$ac_compile") 2>conftest.err
  1575. ac_status=$?
  1576. if test -s conftest.err; then
  1577. grep -v '^ *+' conftest.err >conftest.er1
  1578. cat conftest.er1 >&5
  1579. mv -f conftest.er1 conftest.err
  1580. fi
  1581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; } && {
  1583. test -z "$ac_cxx_werror_flag" ||
  1584. test ! -s conftest.err
  1585. } && test -s conftest.$ac_objext
  1586. then :
  1587. ac_retval=0
  1588. else $as_nop
  1589. printf "%s\n" "$as_me: failed program was:" >&5
  1590. sed 's/^/| /' conftest.$ac_ext >&5
  1591. ac_retval=1
  1592. fi
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. as_fn_set_status $ac_retval
  1595. } # ac_fn_cxx_try_compile
  1596. # ac_fn_c_try_link LINENO
  1597. # -----------------------
  1598. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1599. ac_fn_c_try_link ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1603. if { { ac_try="$ac_link"
  1604. case "(($ac_try" in
  1605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1606. *) ac_try_echo=$ac_try;;
  1607. esac
  1608. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1609. printf "%s\n" "$ac_try_echo"; } >&5
  1610. (eval "$ac_link") 2>conftest.err
  1611. ac_status=$?
  1612. if test -s conftest.err; then
  1613. grep -v '^ *+' conftest.err >conftest.er1
  1614. cat conftest.er1 >&5
  1615. mv -f conftest.er1 conftest.err
  1616. fi
  1617. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1618. test $ac_status = 0; } && {
  1619. test -z "$ac_c_werror_flag" ||
  1620. test ! -s conftest.err
  1621. } && test -s conftest$ac_exeext && {
  1622. test "$cross_compiling" = yes ||
  1623. test -x conftest$ac_exeext
  1624. }
  1625. then :
  1626. ac_retval=0
  1627. else $as_nop
  1628. printf "%s\n" "$as_me: failed program was:" >&5
  1629. sed 's/^/| /' conftest.$ac_ext >&5
  1630. ac_retval=1
  1631. fi
  1632. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1633. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1634. # interfere with the next link command; also delete a directory that is
  1635. # left behind by Apple's compiler. We do this before executing the actions.
  1636. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1637. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1638. as_fn_set_status $ac_retval
  1639. } # ac_fn_c_try_link
  1640. # ac_fn_c_try_run LINENO
  1641. # ----------------------
  1642. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1643. # executables *can* be run.
  1644. ac_fn_c_try_run ()
  1645. {
  1646. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1647. if { { ac_try="$ac_link"
  1648. case "(($ac_try" in
  1649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1650. *) ac_try_echo=$ac_try;;
  1651. esac
  1652. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1653. printf "%s\n" "$ac_try_echo"; } >&5
  1654. (eval "$ac_link") 2>&5
  1655. ac_status=$?
  1656. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1657. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1658. { { case "(($ac_try" in
  1659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1660. *) ac_try_echo=$ac_try;;
  1661. esac
  1662. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1663. printf "%s\n" "$ac_try_echo"; } >&5
  1664. (eval "$ac_try") 2>&5
  1665. ac_status=$?
  1666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1667. test $ac_status = 0; }; }
  1668. then :
  1669. ac_retval=0
  1670. else $as_nop
  1671. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1672. printf "%s\n" "$as_me: failed program was:" >&5
  1673. sed 's/^/| /' conftest.$ac_ext >&5
  1674. ac_retval=$ac_status
  1675. fi
  1676. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1677. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1678. as_fn_set_status $ac_retval
  1679. } # ac_fn_c_try_run
  1680. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1681. # -------------------------------------------------------
  1682. # Tests whether HEADER exists and can be compiled using the include files in
  1683. # INCLUDES, setting the cache variable VAR accordingly.
  1684. ac_fn_c_check_header_compile ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1688. printf %s "checking for $2... " >&6; }
  1689. if eval test \${$3+y}
  1690. then :
  1691. printf %s "(cached) " >&6
  1692. else $as_nop
  1693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1694. /* end confdefs.h. */
  1695. $4
  1696. #include <$2>
  1697. _ACEOF
  1698. if ac_fn_c_try_compile "$LINENO"
  1699. then :
  1700. eval "$3=yes"
  1701. else $as_nop
  1702. eval "$3=no"
  1703. fi
  1704. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1705. fi
  1706. eval ac_res=\$$3
  1707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1708. printf "%s\n" "$ac_res" >&6; }
  1709. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1710. } # ac_fn_c_check_header_compile
  1711. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1712. # --------------------------------------------
  1713. # Tries to find the compile-time value of EXPR in a program that includes
  1714. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1715. # computed
  1716. ac_fn_c_compute_int ()
  1717. {
  1718. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1719. if test "$cross_compiling" = yes; then
  1720. # Depending upon the size, compute the lo and hi bounds.
  1721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end confdefs.h. */
  1723. $4
  1724. int
  1725. main (void)
  1726. {
  1727. static int test_array [1 - 2 * !(($2) >= 0)];
  1728. test_array [0] = 0;
  1729. return test_array [0];
  1730. ;
  1731. return 0;
  1732. }
  1733. _ACEOF
  1734. if ac_fn_c_try_compile "$LINENO"
  1735. then :
  1736. ac_lo=0 ac_mid=0
  1737. while :; do
  1738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h. */
  1740. $4
  1741. int
  1742. main (void)
  1743. {
  1744. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1745. test_array [0] = 0;
  1746. return test_array [0];
  1747. ;
  1748. return 0;
  1749. }
  1750. _ACEOF
  1751. if ac_fn_c_try_compile "$LINENO"
  1752. then :
  1753. ac_hi=$ac_mid; break
  1754. else $as_nop
  1755. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1756. if test $ac_lo -le $ac_mid; then
  1757. ac_lo= ac_hi=
  1758. break
  1759. fi
  1760. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1761. fi
  1762. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1763. done
  1764. else $as_nop
  1765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1766. /* end confdefs.h. */
  1767. $4
  1768. int
  1769. main (void)
  1770. {
  1771. static int test_array [1 - 2 * !(($2) < 0)];
  1772. test_array [0] = 0;
  1773. return test_array [0];
  1774. ;
  1775. return 0;
  1776. }
  1777. _ACEOF
  1778. if ac_fn_c_try_compile "$LINENO"
  1779. then :
  1780. ac_hi=-1 ac_mid=-1
  1781. while :; do
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. $4
  1785. int
  1786. main (void)
  1787. {
  1788. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1789. test_array [0] = 0;
  1790. return test_array [0];
  1791. ;
  1792. return 0;
  1793. }
  1794. _ACEOF
  1795. if ac_fn_c_try_compile "$LINENO"
  1796. then :
  1797. ac_lo=$ac_mid; break
  1798. else $as_nop
  1799. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1800. if test $ac_mid -le $ac_hi; then
  1801. ac_lo= ac_hi=
  1802. break
  1803. fi
  1804. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1807. done
  1808. else $as_nop
  1809. ac_lo= ac_hi=
  1810. fi
  1811. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1812. fi
  1813. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1814. # Binary search between lo and hi bounds.
  1815. while test "x$ac_lo" != "x$ac_hi"; do
  1816. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1818. /* end confdefs.h. */
  1819. $4
  1820. int
  1821. main (void)
  1822. {
  1823. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1824. test_array [0] = 0;
  1825. return test_array [0];
  1826. ;
  1827. return 0;
  1828. }
  1829. _ACEOF
  1830. if ac_fn_c_try_compile "$LINENO"
  1831. then :
  1832. ac_hi=$ac_mid
  1833. else $as_nop
  1834. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1837. done
  1838. case $ac_lo in #((
  1839. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1840. '') ac_retval=1 ;;
  1841. esac
  1842. else
  1843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1844. /* end confdefs.h. */
  1845. $4
  1846. static long int longval (void) { return $2; }
  1847. static unsigned long int ulongval (void) { return $2; }
  1848. #include <stdio.h>
  1849. #include <stdlib.h>
  1850. int
  1851. main (void)
  1852. {
  1853. FILE *f = fopen ("conftest.val", "w");
  1854. if (! f)
  1855. return 1;
  1856. if (($2) < 0)
  1857. {
  1858. long int i = longval ();
  1859. if (i != ($2))
  1860. return 1;
  1861. fprintf (f, "%ld", i);
  1862. }
  1863. else
  1864. {
  1865. unsigned long int i = ulongval ();
  1866. if (i != ($2))
  1867. return 1;
  1868. fprintf (f, "%lu", i);
  1869. }
  1870. /* Do not output a trailing newline, as this causes \r\n confusion
  1871. on some platforms. */
  1872. return ferror (f) || fclose (f) != 0;
  1873. ;
  1874. return 0;
  1875. }
  1876. _ACEOF
  1877. if ac_fn_c_try_run "$LINENO"
  1878. then :
  1879. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1880. else $as_nop
  1881. ac_retval=1
  1882. fi
  1883. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1884. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1885. rm -f conftest.val
  1886. fi
  1887. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1888. as_fn_set_status $ac_retval
  1889. } # ac_fn_c_compute_int
  1890. # ac_fn_c_check_func LINENO FUNC VAR
  1891. # ----------------------------------
  1892. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1893. ac_fn_c_check_func ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1897. printf %s "checking for $2... " >&6; }
  1898. if eval test \${$3+y}
  1899. then :
  1900. printf %s "(cached) " >&6
  1901. else $as_nop
  1902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1903. /* end confdefs.h. */
  1904. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1905. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1906. #define $2 innocuous_$2
  1907. /* System header to define __stub macros and hopefully few prototypes,
  1908. which can conflict with char $2 (); below. */
  1909. #include <limits.h>
  1910. #undef $2
  1911. /* Override any GCC internal prototype to avoid an error.
  1912. Use char because int might match the return type of a GCC
  1913. builtin and then its argument prototype would still apply. */
  1914. #ifdef __cplusplus
  1915. extern "C"
  1916. #endif
  1917. char $2 ();
  1918. /* The GNU C library defines this for functions which it implements
  1919. to always fail with ENOSYS. Some functions are actually named
  1920. something starting with __ and the normal name is an alias. */
  1921. #if defined __stub_$2 || defined __stub___$2
  1922. choke me
  1923. #endif
  1924. int
  1925. main (void)
  1926. {
  1927. return $2 ();
  1928. ;
  1929. return 0;
  1930. }
  1931. _ACEOF
  1932. if ac_fn_c_try_link "$LINENO"
  1933. then :
  1934. eval "$3=yes"
  1935. else $as_nop
  1936. eval "$3=no"
  1937. fi
  1938. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1939. conftest$ac_exeext conftest.$ac_ext
  1940. fi
  1941. eval ac_res=\$$3
  1942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1943. printf "%s\n" "$ac_res" >&6; }
  1944. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1945. } # ac_fn_c_check_func
  1946. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1947. # -------------------------------------------
  1948. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1949. # variable VAR accordingly.
  1950. ac_fn_c_check_type ()
  1951. {
  1952. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1954. printf %s "checking for $2... " >&6; }
  1955. if eval test \${$3+y}
  1956. then :
  1957. printf %s "(cached) " >&6
  1958. else $as_nop
  1959. eval "$3=no"
  1960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1961. /* end confdefs.h. */
  1962. $4
  1963. int
  1964. main (void)
  1965. {
  1966. if (sizeof ($2))
  1967. return 0;
  1968. ;
  1969. return 0;
  1970. }
  1971. _ACEOF
  1972. if ac_fn_c_try_compile "$LINENO"
  1973. then :
  1974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1975. /* end confdefs.h. */
  1976. $4
  1977. int
  1978. main (void)
  1979. {
  1980. if (sizeof (($2)))
  1981. return 0;
  1982. ;
  1983. return 0;
  1984. }
  1985. _ACEOF
  1986. if ac_fn_c_try_compile "$LINENO"
  1987. then :
  1988. else $as_nop
  1989. eval "$3=yes"
  1990. fi
  1991. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1992. fi
  1993. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1994. fi
  1995. eval ac_res=\$$3
  1996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1997. printf "%s\n" "$ac_res" >&6; }
  1998. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1999. } # ac_fn_c_check_type
  2000. ac_configure_args_raw=
  2001. for ac_arg
  2002. do
  2003. case $ac_arg in
  2004. *\'*)
  2005. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2006. esac
  2007. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2008. done
  2009. case $ac_configure_args_raw in
  2010. *$as_nl*)
  2011. ac_safe_unquote= ;;
  2012. *)
  2013. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2014. ac_unsafe_a="$ac_unsafe_z#~"
  2015. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2016. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2017. esac
  2018. cat >config.log <<_ACEOF
  2019. This file contains any messages produced by compilers while
  2020. running configure, to aid debugging if configure makes a mistake.
  2021. It was created by $as_me, which was
  2022. generated by GNU Autoconf 2.71. Invocation command line was
  2023. $ $0$ac_configure_args_raw
  2024. _ACEOF
  2025. exec 5>>config.log
  2026. {
  2027. cat <<_ASUNAME
  2028. ## --------- ##
  2029. ## Platform. ##
  2030. ## --------- ##
  2031. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2032. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2033. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2034. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2035. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2036. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2037. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2038. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2039. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2040. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2041. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2042. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2043. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2044. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2045. _ASUNAME
  2046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2047. for as_dir in $PATH
  2048. do
  2049. IFS=$as_save_IFS
  2050. case $as_dir in #(((
  2051. '') as_dir=./ ;;
  2052. */) ;;
  2053. *) as_dir=$as_dir/ ;;
  2054. esac
  2055. printf "%s\n" "PATH: $as_dir"
  2056. done
  2057. IFS=$as_save_IFS
  2058. } >&5
  2059. cat >&5 <<_ACEOF
  2060. ## ----------- ##
  2061. ## Core tests. ##
  2062. ## ----------- ##
  2063. _ACEOF
  2064. # Keep a trace of the command line.
  2065. # Strip out --no-create and --no-recursion so they do not pile up.
  2066. # Strip out --silent because we don't want to record it for future runs.
  2067. # Also quote any args containing shell meta-characters.
  2068. # Make two passes to allow for proper duplicate-argument suppression.
  2069. ac_configure_args=
  2070. ac_configure_args0=
  2071. ac_configure_args1=
  2072. ac_must_keep_next=false
  2073. for ac_pass in 1 2
  2074. do
  2075. for ac_arg
  2076. do
  2077. case $ac_arg in
  2078. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2079. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2080. | -silent | --silent | --silen | --sile | --sil)
  2081. continue ;;
  2082. *\'*)
  2083. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2084. esac
  2085. case $ac_pass in
  2086. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2087. 2)
  2088. as_fn_append ac_configure_args1 " '$ac_arg'"
  2089. if test $ac_must_keep_next = true; then
  2090. ac_must_keep_next=false # Got value, back to normal.
  2091. else
  2092. case $ac_arg in
  2093. *=* | --config-cache | -C | -disable-* | --disable-* \
  2094. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2095. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2096. | -with-* | --with-* | -without-* | --without-* | --x)
  2097. case "$ac_configure_args0 " in
  2098. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2099. esac
  2100. ;;
  2101. -* ) ac_must_keep_next=true ;;
  2102. esac
  2103. fi
  2104. as_fn_append ac_configure_args " '$ac_arg'"
  2105. ;;
  2106. esac
  2107. done
  2108. done
  2109. { ac_configure_args0=; unset ac_configure_args0;}
  2110. { ac_configure_args1=; unset ac_configure_args1;}
  2111. # When interrupted or exit'd, cleanup temporary files, and complete
  2112. # config.log. We remove comments because anyway the quotes in there
  2113. # would cause problems or look ugly.
  2114. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2115. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2116. trap 'exit_status=$?
  2117. # Sanitize IFS.
  2118. IFS=" "" $as_nl"
  2119. # Save into config.log some information that might help in debugging.
  2120. {
  2121. echo
  2122. printf "%s\n" "## ---------------- ##
  2123. ## Cache variables. ##
  2124. ## ---------------- ##"
  2125. echo
  2126. # The following way of writing the cache mishandles newlines in values,
  2127. (
  2128. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2129. eval ac_val=\$$ac_var
  2130. case $ac_val in #(
  2131. *${as_nl}*)
  2132. case $ac_var in #(
  2133. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2134. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2135. esac
  2136. case $ac_var in #(
  2137. _ | IFS | as_nl) ;; #(
  2138. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2139. *) { eval $ac_var=; unset $ac_var;} ;;
  2140. esac ;;
  2141. esac
  2142. done
  2143. (set) 2>&1 |
  2144. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2145. *${as_nl}ac_space=\ *)
  2146. sed -n \
  2147. "s/'\''/'\''\\\\'\'''\''/g;
  2148. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2149. ;; #(
  2150. *)
  2151. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2152. ;;
  2153. esac |
  2154. sort
  2155. )
  2156. echo
  2157. printf "%s\n" "## ----------------- ##
  2158. ## Output variables. ##
  2159. ## ----------------- ##"
  2160. echo
  2161. for ac_var in $ac_subst_vars
  2162. do
  2163. eval ac_val=\$$ac_var
  2164. case $ac_val in
  2165. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2166. esac
  2167. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2168. done | sort
  2169. echo
  2170. if test -n "$ac_subst_files"; then
  2171. printf "%s\n" "## ------------------- ##
  2172. ## File substitutions. ##
  2173. ## ------------------- ##"
  2174. echo
  2175. for ac_var in $ac_subst_files
  2176. do
  2177. eval ac_val=\$$ac_var
  2178. case $ac_val in
  2179. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2180. esac
  2181. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2182. done | sort
  2183. echo
  2184. fi
  2185. if test -s confdefs.h; then
  2186. printf "%s\n" "## ----------- ##
  2187. ## confdefs.h. ##
  2188. ## ----------- ##"
  2189. echo
  2190. cat confdefs.h
  2191. echo
  2192. fi
  2193. test "$ac_signal" != 0 &&
  2194. printf "%s\n" "$as_me: caught signal $ac_signal"
  2195. printf "%s\n" "$as_me: exit $exit_status"
  2196. } >&5
  2197. rm -f core *.core core.conftest.* &&
  2198. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2199. exit $exit_status
  2200. ' 0
  2201. for ac_signal in 1 2 13 15; do
  2202. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2203. done
  2204. ac_signal=0
  2205. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2206. rm -f -r conftest* confdefs.h
  2207. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2208. # Predefined preprocessor variables.
  2209. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2210. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2211. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2212. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2213. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2214. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2215. # Let the site file select an alternate cache file if it wants to.
  2216. # Prefer an explicitly selected file to automatically selected ones.
  2217. if test -n "$CONFIG_SITE"; then
  2218. ac_site_files="$CONFIG_SITE"
  2219. elif test "x$prefix" != xNONE; then
  2220. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2221. else
  2222. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2223. fi
  2224. for ac_site_file in $ac_site_files
  2225. do
  2226. case $ac_site_file in #(
  2227. */*) :
  2228. ;; #(
  2229. *) :
  2230. ac_site_file=./$ac_site_file ;;
  2231. esac
  2232. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2234. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2235. sed 's/^/| /' "$ac_site_file" >&5
  2236. . "$ac_site_file" \
  2237. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2238. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2239. as_fn_error $? "failed to load site script $ac_site_file
  2240. See \`config.log' for more details" "$LINENO" 5; }
  2241. fi
  2242. done
  2243. if test -r "$cache_file"; then
  2244. # Some versions of bash will fail to source /dev/null (special files
  2245. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2246. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2248. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2249. case $cache_file in
  2250. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2251. *) . "./$cache_file";;
  2252. esac
  2253. fi
  2254. else
  2255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2256. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2257. >$cache_file
  2258. fi
  2259. # Test code for whether the C compiler supports C89 (global declarations)
  2260. ac_c_conftest_c89_globals='
  2261. /* Does the compiler advertise C89 conformance?
  2262. Do not test the value of __STDC__, because some compilers set it to 0
  2263. while being otherwise adequately conformant. */
  2264. #if !defined __STDC__
  2265. # error "Compiler does not advertise C89 conformance"
  2266. #endif
  2267. #include <stddef.h>
  2268. #include <stdarg.h>
  2269. struct stat;
  2270. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2271. struct buf { int x; };
  2272. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2273. static char *e (p, i)
  2274. char **p;
  2275. int i;
  2276. {
  2277. return p[i];
  2278. }
  2279. static char *f (char * (*g) (char **, int), char **p, ...)
  2280. {
  2281. char *s;
  2282. va_list v;
  2283. va_start (v,p);
  2284. s = g (p, va_arg (v,int));
  2285. va_end (v);
  2286. return s;
  2287. }
  2288. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2289. function prototypes and stuff, but not \xHH hex character constants.
  2290. These do not provoke an error unfortunately, instead are silently treated
  2291. as an "x". The following induces an error, until -std is added to get
  2292. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2293. array size at least. It is necessary to write \x00 == 0 to get something
  2294. that is true only with -std. */
  2295. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2296. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2297. inside strings and character constants. */
  2298. #define FOO(x) '\''x'\''
  2299. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2300. int test (int i, double x);
  2301. struct s1 {int (*f) (int a);};
  2302. struct s2 {int (*f) (double a);};
  2303. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2304. int, int);'
  2305. # Test code for whether the C compiler supports C89 (body of main).
  2306. ac_c_conftest_c89_main='
  2307. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2308. '
  2309. # Test code for whether the C compiler supports C99 (global declarations)
  2310. ac_c_conftest_c99_globals='
  2311. // Does the compiler advertise C99 conformance?
  2312. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2313. # error "Compiler does not advertise C99 conformance"
  2314. #endif
  2315. #include <stdbool.h>
  2316. extern int puts (const char *);
  2317. extern int printf (const char *, ...);
  2318. extern int dprintf (int, const char *, ...);
  2319. extern void *malloc (size_t);
  2320. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2321. // dprintf is used instead of fprintf to avoid needing to declare
  2322. // FILE and stderr.
  2323. #define debug(...) dprintf (2, __VA_ARGS__)
  2324. #define showlist(...) puts (#__VA_ARGS__)
  2325. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2326. static void
  2327. test_varargs_macros (void)
  2328. {
  2329. int x = 1234;
  2330. int y = 5678;
  2331. debug ("Flag");
  2332. debug ("X = %d\n", x);
  2333. showlist (The first, second, and third items.);
  2334. report (x>y, "x is %d but y is %d", x, y);
  2335. }
  2336. // Check long long types.
  2337. #define BIG64 18446744073709551615ull
  2338. #define BIG32 4294967295ul
  2339. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2340. #if !BIG_OK
  2341. #error "your preprocessor is broken"
  2342. #endif
  2343. #if BIG_OK
  2344. #else
  2345. #error "your preprocessor is broken"
  2346. #endif
  2347. static long long int bignum = -9223372036854775807LL;
  2348. static unsigned long long int ubignum = BIG64;
  2349. struct incomplete_array
  2350. {
  2351. int datasize;
  2352. double data[];
  2353. };
  2354. struct named_init {
  2355. int number;
  2356. const wchar_t *name;
  2357. double average;
  2358. };
  2359. typedef const char *ccp;
  2360. static inline int
  2361. test_restrict (ccp restrict text)
  2362. {
  2363. // See if C++-style comments work.
  2364. // Iterate through items via the restricted pointer.
  2365. // Also check for declarations in for loops.
  2366. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2367. continue;
  2368. return 0;
  2369. }
  2370. // Check varargs and va_copy.
  2371. static bool
  2372. test_varargs (const char *format, ...)
  2373. {
  2374. va_list args;
  2375. va_start (args, format);
  2376. va_list args_copy;
  2377. va_copy (args_copy, args);
  2378. const char *str = "";
  2379. int number = 0;
  2380. float fnumber = 0;
  2381. while (*format)
  2382. {
  2383. switch (*format++)
  2384. {
  2385. case '\''s'\'': // string
  2386. str = va_arg (args_copy, const char *);
  2387. break;
  2388. case '\''d'\'': // int
  2389. number = va_arg (args_copy, int);
  2390. break;
  2391. case '\''f'\'': // float
  2392. fnumber = va_arg (args_copy, double);
  2393. break;
  2394. default:
  2395. break;
  2396. }
  2397. }
  2398. va_end (args_copy);
  2399. va_end (args);
  2400. return *str && number && fnumber;
  2401. }
  2402. '
  2403. # Test code for whether the C compiler supports C99 (body of main).
  2404. ac_c_conftest_c99_main='
  2405. // Check bool.
  2406. _Bool success = false;
  2407. success |= (argc != 0);
  2408. // Check restrict.
  2409. if (test_restrict ("String literal") == 0)
  2410. success = true;
  2411. char *restrict newvar = "Another string";
  2412. // Check varargs.
  2413. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2414. test_varargs_macros ();
  2415. // Check flexible array members.
  2416. struct incomplete_array *ia =
  2417. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2418. ia->datasize = 10;
  2419. for (int i = 0; i < ia->datasize; ++i)
  2420. ia->data[i] = i * 1.234;
  2421. // Check named initializers.
  2422. struct named_init ni = {
  2423. .number = 34,
  2424. .name = L"Test wide string",
  2425. .average = 543.34343,
  2426. };
  2427. ni.number = 58;
  2428. int dynamic_array[ni.number];
  2429. dynamic_array[0] = argv[0][0];
  2430. dynamic_array[ni.number - 1] = 543;
  2431. // work around unused variable warnings
  2432. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2433. || dynamic_array[ni.number - 1] != 543);
  2434. '
  2435. # Test code for whether the C compiler supports C11 (global declarations)
  2436. ac_c_conftest_c11_globals='
  2437. // Does the compiler advertise C11 conformance?
  2438. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2439. # error "Compiler does not advertise C11 conformance"
  2440. #endif
  2441. // Check _Alignas.
  2442. char _Alignas (double) aligned_as_double;
  2443. char _Alignas (0) no_special_alignment;
  2444. extern char aligned_as_int;
  2445. char _Alignas (0) _Alignas (int) aligned_as_int;
  2446. // Check _Alignof.
  2447. enum
  2448. {
  2449. int_alignment = _Alignof (int),
  2450. int_array_alignment = _Alignof (int[100]),
  2451. char_alignment = _Alignof (char)
  2452. };
  2453. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2454. // Check _Noreturn.
  2455. int _Noreturn does_not_return (void) { for (;;) continue; }
  2456. // Check _Static_assert.
  2457. struct test_static_assert
  2458. {
  2459. int x;
  2460. _Static_assert (sizeof (int) <= sizeof (long int),
  2461. "_Static_assert does not work in struct");
  2462. long int y;
  2463. };
  2464. // Check UTF-8 literals.
  2465. #define u8 syntax error!
  2466. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2467. // Check duplicate typedefs.
  2468. typedef long *long_ptr;
  2469. typedef long int *long_ptr;
  2470. typedef long_ptr long_ptr;
  2471. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2472. struct anonymous
  2473. {
  2474. union {
  2475. struct { int i; int j; };
  2476. struct { int k; long int l; } w;
  2477. };
  2478. int m;
  2479. } v1;
  2480. '
  2481. # Test code for whether the C compiler supports C11 (body of main).
  2482. ac_c_conftest_c11_main='
  2483. _Static_assert ((offsetof (struct anonymous, i)
  2484. == offsetof (struct anonymous, w.k)),
  2485. "Anonymous union alignment botch");
  2486. v1.i = 2;
  2487. v1.w.k = 5;
  2488. ok |= v1.i != 5;
  2489. '
  2490. # Test code for whether the C compiler supports C11 (complete).
  2491. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2492. ${ac_c_conftest_c99_globals}
  2493. ${ac_c_conftest_c11_globals}
  2494. int
  2495. main (int argc, char **argv)
  2496. {
  2497. int ok = 0;
  2498. ${ac_c_conftest_c89_main}
  2499. ${ac_c_conftest_c99_main}
  2500. ${ac_c_conftest_c11_main}
  2501. return ok;
  2502. }
  2503. "
  2504. # Test code for whether the C compiler supports C99 (complete).
  2505. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2506. ${ac_c_conftest_c99_globals}
  2507. int
  2508. main (int argc, char **argv)
  2509. {
  2510. int ok = 0;
  2511. ${ac_c_conftest_c89_main}
  2512. ${ac_c_conftest_c99_main}
  2513. return ok;
  2514. }
  2515. "
  2516. # Test code for whether the C compiler supports C89 (complete).
  2517. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2518. int
  2519. main (int argc, char **argv)
  2520. {
  2521. int ok = 0;
  2522. ${ac_c_conftest_c89_main}
  2523. return ok;
  2524. }
  2525. "
  2526. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2527. ac_cxx_conftest_cxx98_globals='
  2528. // Does the compiler advertise C++98 conformance?
  2529. #if !defined __cplusplus || __cplusplus < 199711L
  2530. # error "Compiler does not advertise C++98 conformance"
  2531. #endif
  2532. // These inclusions are to reject old compilers that
  2533. // lack the unsuffixed header files.
  2534. #include <cstdlib>
  2535. #include <exception>
  2536. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2537. extern void assert (int);
  2538. namespace std {
  2539. extern int strcmp (const char *, const char *);
  2540. }
  2541. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2542. using std::exception;
  2543. using std::strcmp;
  2544. namespace {
  2545. void test_exception_syntax()
  2546. {
  2547. try {
  2548. throw "test";
  2549. } catch (const char *s) {
  2550. // Extra parentheses suppress a warning when building autoconf itself,
  2551. // due to lint rules shared with more typical C programs.
  2552. assert (!(strcmp) (s, "test"));
  2553. }
  2554. }
  2555. template <typename T> struct test_template
  2556. {
  2557. T const val;
  2558. explicit test_template(T t) : val(t) {}
  2559. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2560. };
  2561. } // anonymous namespace
  2562. '
  2563. # Test code for whether the C++ compiler supports C++98 (body of main)
  2564. ac_cxx_conftest_cxx98_main='
  2565. assert (argc);
  2566. assert (! argv[0]);
  2567. {
  2568. test_exception_syntax ();
  2569. test_template<double> tt (2.0);
  2570. assert (tt.add (4) == 6.0);
  2571. assert (true && !false);
  2572. }
  2573. '
  2574. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2575. ac_cxx_conftest_cxx11_globals='
  2576. // Does the compiler advertise C++ 2011 conformance?
  2577. #if !defined __cplusplus || __cplusplus < 201103L
  2578. # error "Compiler does not advertise C++11 conformance"
  2579. #endif
  2580. namespace cxx11test
  2581. {
  2582. constexpr int get_val() { return 20; }
  2583. struct testinit
  2584. {
  2585. int i;
  2586. double d;
  2587. };
  2588. class delegate
  2589. {
  2590. public:
  2591. delegate(int n) : n(n) {}
  2592. delegate(): delegate(2354) {}
  2593. virtual int getval() { return this->n; };
  2594. protected:
  2595. int n;
  2596. };
  2597. class overridden : public delegate
  2598. {
  2599. public:
  2600. overridden(int n): delegate(n) {}
  2601. virtual int getval() override final { return this->n * 2; }
  2602. };
  2603. class nocopy
  2604. {
  2605. public:
  2606. nocopy(int i): i(i) {}
  2607. nocopy() = default;
  2608. nocopy(const nocopy&) = delete;
  2609. nocopy & operator=(const nocopy&) = delete;
  2610. private:
  2611. int i;
  2612. };
  2613. // for testing lambda expressions
  2614. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2615. {
  2616. return f(v);
  2617. }
  2618. // for testing variadic templates and trailing return types
  2619. template <typename V> auto sum(V first) -> V
  2620. {
  2621. return first;
  2622. }
  2623. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2624. {
  2625. return first + sum(rest...);
  2626. }
  2627. }
  2628. '
  2629. # Test code for whether the C++ compiler supports C++11 (body of main)
  2630. ac_cxx_conftest_cxx11_main='
  2631. {
  2632. // Test auto and decltype
  2633. auto a1 = 6538;
  2634. auto a2 = 48573953.4;
  2635. auto a3 = "String literal";
  2636. int total = 0;
  2637. for (auto i = a3; *i; ++i) { total += *i; }
  2638. decltype(a2) a4 = 34895.034;
  2639. }
  2640. {
  2641. // Test constexpr
  2642. short sa[cxx11test::get_val()] = { 0 };
  2643. }
  2644. {
  2645. // Test initializer lists
  2646. cxx11test::testinit il = { 4323, 435234.23544 };
  2647. }
  2648. {
  2649. // Test range-based for
  2650. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2651. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2652. for (auto &x : array) { x += 23; }
  2653. }
  2654. {
  2655. // Test lambda expressions
  2656. using cxx11test::eval;
  2657. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2658. double d = 2.0;
  2659. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2660. assert (d == 5.0);
  2661. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2662. assert (d == 5.0);
  2663. }
  2664. {
  2665. // Test use of variadic templates
  2666. using cxx11test::sum;
  2667. auto a = sum(1);
  2668. auto b = sum(1, 2);
  2669. auto c = sum(1.0, 2.0, 3.0);
  2670. }
  2671. {
  2672. // Test constructor delegation
  2673. cxx11test::delegate d1;
  2674. cxx11test::delegate d2();
  2675. cxx11test::delegate d3(45);
  2676. }
  2677. {
  2678. // Test override and final
  2679. cxx11test::overridden o1(55464);
  2680. }
  2681. {
  2682. // Test nullptr
  2683. char *c = nullptr;
  2684. }
  2685. {
  2686. // Test template brackets
  2687. test_template<::test_template<int>> v(test_template<int>(12));
  2688. }
  2689. {
  2690. // Unicode literals
  2691. char const *utf8 = u8"UTF-8 string \u2500";
  2692. char16_t const *utf16 = u"UTF-8 string \u2500";
  2693. char32_t const *utf32 = U"UTF-32 string \u2500";
  2694. }
  2695. '
  2696. # Test code for whether the C compiler supports C++11 (complete).
  2697. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2698. ${ac_cxx_conftest_cxx11_globals}
  2699. int
  2700. main (int argc, char **argv)
  2701. {
  2702. int ok = 0;
  2703. ${ac_cxx_conftest_cxx98_main}
  2704. ${ac_cxx_conftest_cxx11_main}
  2705. return ok;
  2706. }
  2707. "
  2708. # Test code for whether the C compiler supports C++98 (complete).
  2709. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2710. int
  2711. main (int argc, char **argv)
  2712. {
  2713. int ok = 0;
  2714. ${ac_cxx_conftest_cxx98_main}
  2715. return ok;
  2716. }
  2717. "
  2718. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2719. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2720. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2721. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2722. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2723. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2724. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2725. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2726. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2727. # Auxiliary files required by this configure script.
  2728. ac_aux_files="install-sh config.guess config.sub"
  2729. # Locations in which to look for auxiliary files.
  2730. ac_aux_dir_candidates="${srcdir}/build-aux"
  2731. # Search for a directory containing all of the required auxiliary files,
  2732. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2733. # If we don't find one directory that contains all the files we need,
  2734. # we report the set of missing files from the *first* directory in
  2735. # $ac_aux_dir_candidates and give up.
  2736. ac_missing_aux_files=""
  2737. ac_first_candidate=:
  2738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2740. as_found=false
  2741. for as_dir in $ac_aux_dir_candidates
  2742. do
  2743. IFS=$as_save_IFS
  2744. case $as_dir in #(((
  2745. '') as_dir=./ ;;
  2746. */) ;;
  2747. *) as_dir=$as_dir/ ;;
  2748. esac
  2749. as_found=:
  2750. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2751. ac_aux_dir_found=yes
  2752. ac_install_sh=
  2753. for ac_aux in $ac_aux_files
  2754. do
  2755. # As a special case, if "install-sh" is required, that requirement
  2756. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2757. # and $ac_install_sh is set appropriately for whichever one is found.
  2758. if test x"$ac_aux" = x"install-sh"
  2759. then
  2760. if test -f "${as_dir}install-sh"; then
  2761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2762. ac_install_sh="${as_dir}install-sh -c"
  2763. elif test -f "${as_dir}install.sh"; then
  2764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2765. ac_install_sh="${as_dir}install.sh -c"
  2766. elif test -f "${as_dir}shtool"; then
  2767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2768. ac_install_sh="${as_dir}shtool install -c"
  2769. else
  2770. ac_aux_dir_found=no
  2771. if $ac_first_candidate; then
  2772. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2773. else
  2774. break
  2775. fi
  2776. fi
  2777. else
  2778. if test -f "${as_dir}${ac_aux}"; then
  2779. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2780. else
  2781. ac_aux_dir_found=no
  2782. if $ac_first_candidate; then
  2783. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2784. else
  2785. break
  2786. fi
  2787. fi
  2788. fi
  2789. done
  2790. if test "$ac_aux_dir_found" = yes; then
  2791. ac_aux_dir="$as_dir"
  2792. break
  2793. fi
  2794. ac_first_candidate=false
  2795. as_found=false
  2796. done
  2797. IFS=$as_save_IFS
  2798. if $as_found
  2799. then :
  2800. else $as_nop
  2801. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2802. fi
  2803. # These three variables are undocumented and unsupported,
  2804. # and are intended to be withdrawn in a future Autoconf release.
  2805. # They can cause serious problems if a builder's source tree is in a directory
  2806. # whose full name contains unusual characters.
  2807. if test -f "${ac_aux_dir}config.guess"; then
  2808. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2809. fi
  2810. if test -f "${ac_aux_dir}config.sub"; then
  2811. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2812. fi
  2813. if test -f "$ac_aux_dir/configure"; then
  2814. ac_configure="$SHELL ${ac_aux_dir}configure"
  2815. fi
  2816. # Check that the precious variables saved in the cache have kept the same
  2817. # value.
  2818. ac_cache_corrupted=false
  2819. for ac_var in $ac_precious_vars; do
  2820. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2821. eval ac_new_set=\$ac_env_${ac_var}_set
  2822. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2823. eval ac_new_val=\$ac_env_${ac_var}_value
  2824. case $ac_old_set,$ac_new_set in
  2825. set,)
  2826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2827. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2828. ac_cache_corrupted=: ;;
  2829. ,set)
  2830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2831. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2832. ac_cache_corrupted=: ;;
  2833. ,);;
  2834. *)
  2835. if test "x$ac_old_val" != "x$ac_new_val"; then
  2836. # differences in whitespace do not lead to failure.
  2837. ac_old_val_w=`echo x $ac_old_val`
  2838. ac_new_val_w=`echo x $ac_new_val`
  2839. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2841. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2842. ac_cache_corrupted=:
  2843. else
  2844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2845. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2846. eval $ac_var=\$ac_old_val
  2847. fi
  2848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2849. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2851. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2852. fi;;
  2853. esac
  2854. # Pass precious variables to config.status.
  2855. if test "$ac_new_set" = set; then
  2856. case $ac_new_val in
  2857. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2858. *) ac_arg=$ac_var=$ac_new_val ;;
  2859. esac
  2860. case " $ac_configure_args " in
  2861. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2862. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2863. esac
  2864. fi
  2865. done
  2866. if $ac_cache_corrupted; then
  2867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2868. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2870. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2871. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2872. and start over" "$LINENO" 5
  2873. fi
  2874. ## -------------------- ##
  2875. ## Main body of script. ##
  2876. ## -------------------- ##
  2877. ac_ext=c
  2878. ac_cpp='$CPP $CPPFLAGS'
  2879. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2880. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2881. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2882. CONFIGURE_CFLAGS=
  2883. SPECIFIED_CFLAGS="${CFLAGS}"
  2884. CONFIGURE_CXXFLAGS=
  2885. SPECIFIED_CXXFLAGS="${CXXFLAGS}"
  2886. CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
  2887. rev=2
  2888. srcroot=$srcdir
  2889. if test "x${srcroot}" = "x." ; then
  2890. srcroot=""
  2891. else
  2892. srcroot="${srcroot}/"
  2893. fi
  2894. abs_srcroot="`cd \"${srcdir}\"; pwd`/"
  2895. objroot=""
  2896. abs_objroot="`pwd`/"
  2897. case "$prefix" in
  2898. *\ * ) as_fn_error $? "Prefix should not contain spaces" "$LINENO" 5 ;;
  2899. "NONE" ) prefix="/usr/local" ;;
  2900. esac
  2901. case "$exec_prefix" in
  2902. *\ * ) as_fn_error $? "Exec prefix should not contain spaces" "$LINENO" 5 ;;
  2903. "NONE" ) exec_prefix=$prefix ;;
  2904. esac
  2905. PREFIX=$prefix
  2906. BINDIR=`eval echo $bindir`
  2907. BINDIR=`eval echo $BINDIR`
  2908. INCLUDEDIR=`eval echo $includedir`
  2909. INCLUDEDIR=`eval echo $INCLUDEDIR`
  2910. LIBDIR=`eval echo $libdir`
  2911. LIBDIR=`eval echo $LIBDIR`
  2912. DATADIR=`eval echo $datadir`
  2913. DATADIR=`eval echo $DATADIR`
  2914. MANDIR=`eval echo $mandir`
  2915. MANDIR=`eval echo $MANDIR`
  2916. # Extract the first word of "xsltproc", so it can be a program name with args.
  2917. set dummy xsltproc; ac_word=$2
  2918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2919. printf %s "checking for $ac_word... " >&6; }
  2920. if test ${ac_cv_path_XSLTPROC+y}
  2921. then :
  2922. printf %s "(cached) " >&6
  2923. else $as_nop
  2924. case $XSLTPROC in
  2925. [\\/]* | ?:[\\/]*)
  2926. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  2927. ;;
  2928. *)
  2929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2930. for as_dir in $PATH
  2931. do
  2932. IFS=$as_save_IFS
  2933. case $as_dir in #(((
  2934. '') as_dir=./ ;;
  2935. */) ;;
  2936. *) as_dir=$as_dir/ ;;
  2937. esac
  2938. for ac_exec_ext in '' $ac_executable_extensions; do
  2939. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2940. ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
  2941. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2942. break 2
  2943. fi
  2944. done
  2945. done
  2946. IFS=$as_save_IFS
  2947. test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
  2948. ;;
  2949. esac
  2950. fi
  2951. XSLTPROC=$ac_cv_path_XSLTPROC
  2952. if test -n "$XSLTPROC"; then
  2953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  2954. printf "%s\n" "$XSLTPROC" >&6; }
  2955. else
  2956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2957. printf "%s\n" "no" >&6; }
  2958. fi
  2959. if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
  2960. DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
  2961. elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
  2962. DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
  2963. else
  2964. DEFAULT_XSLROOT=""
  2965. fi
  2966. # Check whether --with-xslroot was given.
  2967. if test ${with_xslroot+y}
  2968. then :
  2969. withval=$with_xslroot;
  2970. if test "x$with_xslroot" = "xno" ; then
  2971. XSLROOT="${DEFAULT_XSLROOT}"
  2972. else
  2973. XSLROOT="${with_xslroot}"
  2974. fi
  2975. else $as_nop
  2976. XSLROOT="${DEFAULT_XSLROOT}"
  2977. fi
  2978. if test "x$XSLTPROC" = "xfalse" ; then
  2979. XSLROOT=""
  2980. fi
  2981. CFLAGS=$CFLAGS
  2982. ac_ext=c
  2983. ac_cpp='$CPP $CPPFLAGS'
  2984. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2985. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2987. if test -n "$ac_tool_prefix"; then
  2988. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2989. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2991. printf %s "checking for $ac_word... " >&6; }
  2992. if test ${ac_cv_prog_CC+y}
  2993. then :
  2994. printf %s "(cached) " >&6
  2995. else $as_nop
  2996. if test -n "$CC"; then
  2997. ac_cv_prog_CC="$CC" # Let the user override the test.
  2998. else
  2999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3000. for as_dir in $PATH
  3001. do
  3002. IFS=$as_save_IFS
  3003. case $as_dir in #(((
  3004. '') as_dir=./ ;;
  3005. */) ;;
  3006. *) as_dir=$as_dir/ ;;
  3007. esac
  3008. for ac_exec_ext in '' $ac_executable_extensions; do
  3009. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3010. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3012. break 2
  3013. fi
  3014. done
  3015. done
  3016. IFS=$as_save_IFS
  3017. fi
  3018. fi
  3019. CC=$ac_cv_prog_CC
  3020. if test -n "$CC"; then
  3021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3022. printf "%s\n" "$CC" >&6; }
  3023. else
  3024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3025. printf "%s\n" "no" >&6; }
  3026. fi
  3027. fi
  3028. if test -z "$ac_cv_prog_CC"; then
  3029. ac_ct_CC=$CC
  3030. # Extract the first word of "gcc", so it can be a program name with args.
  3031. set dummy gcc; ac_word=$2
  3032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3033. printf %s "checking for $ac_word... " >&6; }
  3034. if test ${ac_cv_prog_ac_ct_CC+y}
  3035. then :
  3036. printf %s "(cached) " >&6
  3037. else $as_nop
  3038. if test -n "$ac_ct_CC"; then
  3039. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3040. else
  3041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042. for as_dir in $PATH
  3043. do
  3044. IFS=$as_save_IFS
  3045. case $as_dir in #(((
  3046. '') as_dir=./ ;;
  3047. */) ;;
  3048. *) as_dir=$as_dir/ ;;
  3049. esac
  3050. for ac_exec_ext in '' $ac_executable_extensions; do
  3051. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3052. ac_cv_prog_ac_ct_CC="gcc"
  3053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3054. break 2
  3055. fi
  3056. done
  3057. done
  3058. IFS=$as_save_IFS
  3059. fi
  3060. fi
  3061. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3062. if test -n "$ac_ct_CC"; then
  3063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3064. printf "%s\n" "$ac_ct_CC" >&6; }
  3065. else
  3066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3067. printf "%s\n" "no" >&6; }
  3068. fi
  3069. if test "x$ac_ct_CC" = x; then
  3070. CC=""
  3071. else
  3072. case $cross_compiling:$ac_tool_warned in
  3073. yes:)
  3074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3075. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3076. ac_tool_warned=yes ;;
  3077. esac
  3078. CC=$ac_ct_CC
  3079. fi
  3080. else
  3081. CC="$ac_cv_prog_CC"
  3082. fi
  3083. if test -z "$CC"; then
  3084. if test -n "$ac_tool_prefix"; then
  3085. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3086. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3088. printf %s "checking for $ac_word... " >&6; }
  3089. if test ${ac_cv_prog_CC+y}
  3090. then :
  3091. printf %s "(cached) " >&6
  3092. else $as_nop
  3093. if test -n "$CC"; then
  3094. ac_cv_prog_CC="$CC" # Let the user override the test.
  3095. else
  3096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3097. for as_dir in $PATH
  3098. do
  3099. IFS=$as_save_IFS
  3100. case $as_dir in #(((
  3101. '') as_dir=./ ;;
  3102. */) ;;
  3103. *) as_dir=$as_dir/ ;;
  3104. esac
  3105. for ac_exec_ext in '' $ac_executable_extensions; do
  3106. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3107. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3108. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3109. break 2
  3110. fi
  3111. done
  3112. done
  3113. IFS=$as_save_IFS
  3114. fi
  3115. fi
  3116. CC=$ac_cv_prog_CC
  3117. if test -n "$CC"; then
  3118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3119. printf "%s\n" "$CC" >&6; }
  3120. else
  3121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3122. printf "%s\n" "no" >&6; }
  3123. fi
  3124. fi
  3125. fi
  3126. if test -z "$CC"; then
  3127. # Extract the first word of "cc", so it can be a program name with args.
  3128. set dummy cc; ac_word=$2
  3129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3130. printf %s "checking for $ac_word... " >&6; }
  3131. if test ${ac_cv_prog_CC+y}
  3132. then :
  3133. printf %s "(cached) " >&6
  3134. else $as_nop
  3135. if test -n "$CC"; then
  3136. ac_cv_prog_CC="$CC" # Let the user override the test.
  3137. else
  3138. ac_prog_rejected=no
  3139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3140. for as_dir in $PATH
  3141. do
  3142. IFS=$as_save_IFS
  3143. case $as_dir in #(((
  3144. '') as_dir=./ ;;
  3145. */) ;;
  3146. *) as_dir=$as_dir/ ;;
  3147. esac
  3148. for ac_exec_ext in '' $ac_executable_extensions; do
  3149. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3150. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3151. ac_prog_rejected=yes
  3152. continue
  3153. fi
  3154. ac_cv_prog_CC="cc"
  3155. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3156. break 2
  3157. fi
  3158. done
  3159. done
  3160. IFS=$as_save_IFS
  3161. if test $ac_prog_rejected = yes; then
  3162. # We found a bogon in the path, so make sure we never use it.
  3163. set dummy $ac_cv_prog_CC
  3164. shift
  3165. if test $# != 0; then
  3166. # We chose a different compiler from the bogus one.
  3167. # However, it has the same basename, so the bogon will be chosen
  3168. # first if we set CC to just the basename; use the full file name.
  3169. shift
  3170. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3171. fi
  3172. fi
  3173. fi
  3174. fi
  3175. CC=$ac_cv_prog_CC
  3176. if test -n "$CC"; then
  3177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3178. printf "%s\n" "$CC" >&6; }
  3179. else
  3180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3181. printf "%s\n" "no" >&6; }
  3182. fi
  3183. fi
  3184. if test -z "$CC"; then
  3185. if test -n "$ac_tool_prefix"; then
  3186. for ac_prog in cl.exe
  3187. do
  3188. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3189. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3191. printf %s "checking for $ac_word... " >&6; }
  3192. if test ${ac_cv_prog_CC+y}
  3193. then :
  3194. printf %s "(cached) " >&6
  3195. else $as_nop
  3196. if test -n "$CC"; then
  3197. ac_cv_prog_CC="$CC" # Let the user override the test.
  3198. else
  3199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3200. for as_dir in $PATH
  3201. do
  3202. IFS=$as_save_IFS
  3203. case $as_dir in #(((
  3204. '') as_dir=./ ;;
  3205. */) ;;
  3206. *) as_dir=$as_dir/ ;;
  3207. esac
  3208. for ac_exec_ext in '' $ac_executable_extensions; do
  3209. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3210. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3211. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3212. break 2
  3213. fi
  3214. done
  3215. done
  3216. IFS=$as_save_IFS
  3217. fi
  3218. fi
  3219. CC=$ac_cv_prog_CC
  3220. if test -n "$CC"; then
  3221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3222. printf "%s\n" "$CC" >&6; }
  3223. else
  3224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3225. printf "%s\n" "no" >&6; }
  3226. fi
  3227. test -n "$CC" && break
  3228. done
  3229. fi
  3230. if test -z "$CC"; then
  3231. ac_ct_CC=$CC
  3232. for ac_prog in cl.exe
  3233. do
  3234. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3235. set dummy $ac_prog; ac_word=$2
  3236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3237. printf %s "checking for $ac_word... " >&6; }
  3238. if test ${ac_cv_prog_ac_ct_CC+y}
  3239. then :
  3240. printf %s "(cached) " >&6
  3241. else $as_nop
  3242. if test -n "$ac_ct_CC"; then
  3243. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3244. else
  3245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3246. for as_dir in $PATH
  3247. do
  3248. IFS=$as_save_IFS
  3249. case $as_dir in #(((
  3250. '') as_dir=./ ;;
  3251. */) ;;
  3252. *) as_dir=$as_dir/ ;;
  3253. esac
  3254. for ac_exec_ext in '' $ac_executable_extensions; do
  3255. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3256. ac_cv_prog_ac_ct_CC="$ac_prog"
  3257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3258. break 2
  3259. fi
  3260. done
  3261. done
  3262. IFS=$as_save_IFS
  3263. fi
  3264. fi
  3265. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3266. if test -n "$ac_ct_CC"; then
  3267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3268. printf "%s\n" "$ac_ct_CC" >&6; }
  3269. else
  3270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3271. printf "%s\n" "no" >&6; }
  3272. fi
  3273. test -n "$ac_ct_CC" && break
  3274. done
  3275. if test "x$ac_ct_CC" = x; then
  3276. CC=""
  3277. else
  3278. case $cross_compiling:$ac_tool_warned in
  3279. yes:)
  3280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3281. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3282. ac_tool_warned=yes ;;
  3283. esac
  3284. CC=$ac_ct_CC
  3285. fi
  3286. fi
  3287. fi
  3288. if test -z "$CC"; then
  3289. if test -n "$ac_tool_prefix"; then
  3290. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3291. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3293. printf %s "checking for $ac_word... " >&6; }
  3294. if test ${ac_cv_prog_CC+y}
  3295. then :
  3296. printf %s "(cached) " >&6
  3297. else $as_nop
  3298. if test -n "$CC"; then
  3299. ac_cv_prog_CC="$CC" # Let the user override the test.
  3300. else
  3301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3302. for as_dir in $PATH
  3303. do
  3304. IFS=$as_save_IFS
  3305. case $as_dir in #(((
  3306. '') as_dir=./ ;;
  3307. */) ;;
  3308. *) as_dir=$as_dir/ ;;
  3309. esac
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3312. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3314. break 2
  3315. fi
  3316. done
  3317. done
  3318. IFS=$as_save_IFS
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3324. printf "%s\n" "$CC" >&6; }
  3325. else
  3326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3327. printf "%s\n" "no" >&6; }
  3328. fi
  3329. fi
  3330. if test -z "$ac_cv_prog_CC"; then
  3331. ac_ct_CC=$CC
  3332. # Extract the first word of "clang", so it can be a program name with args.
  3333. set dummy clang; ac_word=$2
  3334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3335. printf %s "checking for $ac_word... " >&6; }
  3336. if test ${ac_cv_prog_ac_ct_CC+y}
  3337. then :
  3338. printf %s "(cached) " >&6
  3339. else $as_nop
  3340. if test -n "$ac_ct_CC"; then
  3341. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3342. else
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. case $as_dir in #(((
  3348. '') as_dir=./ ;;
  3349. */) ;;
  3350. *) as_dir=$as_dir/ ;;
  3351. esac
  3352. for ac_exec_ext in '' $ac_executable_extensions; do
  3353. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3354. ac_cv_prog_ac_ct_CC="clang"
  3355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3356. break 2
  3357. fi
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. fi
  3362. fi
  3363. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3364. if test -n "$ac_ct_CC"; then
  3365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3366. printf "%s\n" "$ac_ct_CC" >&6; }
  3367. else
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3369. printf "%s\n" "no" >&6; }
  3370. fi
  3371. if test "x$ac_ct_CC" = x; then
  3372. CC=""
  3373. else
  3374. case $cross_compiling:$ac_tool_warned in
  3375. yes:)
  3376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3377. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3378. ac_tool_warned=yes ;;
  3379. esac
  3380. CC=$ac_ct_CC
  3381. fi
  3382. else
  3383. CC="$ac_cv_prog_CC"
  3384. fi
  3385. fi
  3386. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3387. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3388. as_fn_error $? "no acceptable C compiler found in \$PATH
  3389. See \`config.log' for more details" "$LINENO" 5; }
  3390. # Provide some information about the compiler.
  3391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3392. set X $ac_compile
  3393. ac_compiler=$2
  3394. for ac_option in --version -v -V -qversion -version; do
  3395. { { ac_try="$ac_compiler $ac_option >&5"
  3396. case "(($ac_try" in
  3397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3398. *) ac_try_echo=$ac_try;;
  3399. esac
  3400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3401. printf "%s\n" "$ac_try_echo"; } >&5
  3402. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3403. ac_status=$?
  3404. if test -s conftest.err; then
  3405. sed '10a\
  3406. ... rest of stderr output deleted ...
  3407. 10q' conftest.err >conftest.er1
  3408. cat conftest.er1 >&5
  3409. fi
  3410. rm -f conftest.er1 conftest.err
  3411. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3412. test $ac_status = 0; }
  3413. done
  3414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3415. /* end confdefs.h. */
  3416. int
  3417. main (void)
  3418. {
  3419. ;
  3420. return 0;
  3421. }
  3422. _ACEOF
  3423. ac_clean_files_save=$ac_clean_files
  3424. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3425. # Try to create an executable without -o first, disregard a.out.
  3426. # It will help us diagnose broken compilers, and finding out an intuition
  3427. # of exeext.
  3428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3429. printf %s "checking whether the C compiler works... " >&6; }
  3430. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3431. # The possible output files:
  3432. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3433. ac_rmfiles=
  3434. for ac_file in $ac_files
  3435. do
  3436. case $ac_file in
  3437. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3438. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3439. esac
  3440. done
  3441. rm -f $ac_rmfiles
  3442. if { { ac_try="$ac_link_default"
  3443. case "(($ac_try" in
  3444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3445. *) ac_try_echo=$ac_try;;
  3446. esac
  3447. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3448. printf "%s\n" "$ac_try_echo"; } >&5
  3449. (eval "$ac_link_default") 2>&5
  3450. ac_status=$?
  3451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3452. test $ac_status = 0; }
  3453. then :
  3454. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3455. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3456. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3457. # so that the user can short-circuit this test for compilers unknown to
  3458. # Autoconf.
  3459. for ac_file in $ac_files ''
  3460. do
  3461. test -f "$ac_file" || continue
  3462. case $ac_file in
  3463. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3464. ;;
  3465. [ab].out )
  3466. # We found the default executable, but exeext='' is most
  3467. # certainly right.
  3468. break;;
  3469. *.* )
  3470. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3471. then :; else
  3472. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3473. fi
  3474. # We set ac_cv_exeext here because the later test for it is not
  3475. # safe: cross compilers may not add the suffix if given an `-o'
  3476. # argument, so we may need to know it at that point already.
  3477. # Even if this section looks crufty: it has the advantage of
  3478. # actually working.
  3479. break;;
  3480. * )
  3481. break;;
  3482. esac
  3483. done
  3484. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3485. else $as_nop
  3486. ac_file=''
  3487. fi
  3488. if test -z "$ac_file"
  3489. then :
  3490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3491. printf "%s\n" "no" >&6; }
  3492. printf "%s\n" "$as_me: failed program was:" >&5
  3493. sed 's/^/| /' conftest.$ac_ext >&5
  3494. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3495. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3496. as_fn_error 77 "C compiler cannot create executables
  3497. See \`config.log' for more details" "$LINENO" 5; }
  3498. else $as_nop
  3499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3500. printf "%s\n" "yes" >&6; }
  3501. fi
  3502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3503. printf %s "checking for C compiler default output file name... " >&6; }
  3504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3505. printf "%s\n" "$ac_file" >&6; }
  3506. ac_exeext=$ac_cv_exeext
  3507. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3508. ac_clean_files=$ac_clean_files_save
  3509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3510. printf %s "checking for suffix of executables... " >&6; }
  3511. if { { ac_try="$ac_link"
  3512. case "(($ac_try" in
  3513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3514. *) ac_try_echo=$ac_try;;
  3515. esac
  3516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3517. printf "%s\n" "$ac_try_echo"; } >&5
  3518. (eval "$ac_link") 2>&5
  3519. ac_status=$?
  3520. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3521. test $ac_status = 0; }
  3522. then :
  3523. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3524. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3525. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3526. # `rm'.
  3527. for ac_file in conftest.exe conftest conftest.*; do
  3528. test -f "$ac_file" || continue
  3529. case $ac_file in
  3530. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3531. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3532. break;;
  3533. * ) break;;
  3534. esac
  3535. done
  3536. else $as_nop
  3537. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3538. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3539. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3540. See \`config.log' for more details" "$LINENO" 5; }
  3541. fi
  3542. rm -f conftest conftest$ac_cv_exeext
  3543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3544. printf "%s\n" "$ac_cv_exeext" >&6; }
  3545. rm -f conftest.$ac_ext
  3546. EXEEXT=$ac_cv_exeext
  3547. ac_exeext=$EXEEXT
  3548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3549. /* end confdefs.h. */
  3550. #include <stdio.h>
  3551. int
  3552. main (void)
  3553. {
  3554. FILE *f = fopen ("conftest.out", "w");
  3555. return ferror (f) || fclose (f) != 0;
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. ac_clean_files="$ac_clean_files conftest.out"
  3561. # Check that the compiler produces executables we can run. If not, either
  3562. # the compiler is broken, or we cross compile.
  3563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3564. printf %s "checking whether we are cross compiling... " >&6; }
  3565. if test "$cross_compiling" != yes; then
  3566. { { ac_try="$ac_link"
  3567. case "(($ac_try" in
  3568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3569. *) ac_try_echo=$ac_try;;
  3570. esac
  3571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3572. printf "%s\n" "$ac_try_echo"; } >&5
  3573. (eval "$ac_link") 2>&5
  3574. ac_status=$?
  3575. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3576. test $ac_status = 0; }
  3577. if { ac_try='./conftest$ac_cv_exeext'
  3578. { { case "(($ac_try" in
  3579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3580. *) ac_try_echo=$ac_try;;
  3581. esac
  3582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3583. printf "%s\n" "$ac_try_echo"; } >&5
  3584. (eval "$ac_try") 2>&5
  3585. ac_status=$?
  3586. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3587. test $ac_status = 0; }; }; then
  3588. cross_compiling=no
  3589. else
  3590. if test "$cross_compiling" = maybe; then
  3591. cross_compiling=yes
  3592. else
  3593. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3594. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3595. as_fn_error 77 "cannot run C compiled programs.
  3596. If you meant to cross compile, use \`--host'.
  3597. See \`config.log' for more details" "$LINENO" 5; }
  3598. fi
  3599. fi
  3600. fi
  3601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3602. printf "%s\n" "$cross_compiling" >&6; }
  3603. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3604. ac_clean_files=$ac_clean_files_save
  3605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3606. printf %s "checking for suffix of object files... " >&6; }
  3607. if test ${ac_cv_objext+y}
  3608. then :
  3609. printf %s "(cached) " >&6
  3610. else $as_nop
  3611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3612. /* end confdefs.h. */
  3613. int
  3614. main (void)
  3615. {
  3616. ;
  3617. return 0;
  3618. }
  3619. _ACEOF
  3620. rm -f conftest.o conftest.obj
  3621. if { { ac_try="$ac_compile"
  3622. case "(($ac_try" in
  3623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3624. *) ac_try_echo=$ac_try;;
  3625. esac
  3626. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3627. printf "%s\n" "$ac_try_echo"; } >&5
  3628. (eval "$ac_compile") 2>&5
  3629. ac_status=$?
  3630. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3631. test $ac_status = 0; }
  3632. then :
  3633. for ac_file in conftest.o conftest.obj conftest.*; do
  3634. test -f "$ac_file" || continue;
  3635. case $ac_file in
  3636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3638. break;;
  3639. esac
  3640. done
  3641. else $as_nop
  3642. printf "%s\n" "$as_me: failed program was:" >&5
  3643. sed 's/^/| /' conftest.$ac_ext >&5
  3644. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3645. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3646. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3647. See \`config.log' for more details" "$LINENO" 5; }
  3648. fi
  3649. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3650. fi
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3652. printf "%s\n" "$ac_cv_objext" >&6; }
  3653. OBJEXT=$ac_cv_objext
  3654. ac_objext=$OBJEXT
  3655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3656. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3657. if test ${ac_cv_c_compiler_gnu+y}
  3658. then :
  3659. printf %s "(cached) " >&6
  3660. else $as_nop
  3661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3662. /* end confdefs.h. */
  3663. int
  3664. main (void)
  3665. {
  3666. #ifndef __GNUC__
  3667. choke me
  3668. #endif
  3669. ;
  3670. return 0;
  3671. }
  3672. _ACEOF
  3673. if ac_fn_c_try_compile "$LINENO"
  3674. then :
  3675. ac_compiler_gnu=yes
  3676. else $as_nop
  3677. ac_compiler_gnu=no
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3680. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3681. fi
  3682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3683. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3684. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3685. if test $ac_compiler_gnu = yes; then
  3686. GCC=yes
  3687. else
  3688. GCC=
  3689. fi
  3690. ac_test_CFLAGS=${CFLAGS+y}
  3691. ac_save_CFLAGS=$CFLAGS
  3692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3693. printf %s "checking whether $CC accepts -g... " >&6; }
  3694. if test ${ac_cv_prog_cc_g+y}
  3695. then :
  3696. printf %s "(cached) " >&6
  3697. else $as_nop
  3698. ac_save_c_werror_flag=$ac_c_werror_flag
  3699. ac_c_werror_flag=yes
  3700. ac_cv_prog_cc_g=no
  3701. CFLAGS="-g"
  3702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3703. /* end confdefs.h. */
  3704. int
  3705. main (void)
  3706. {
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. if ac_fn_c_try_compile "$LINENO"
  3712. then :
  3713. ac_cv_prog_cc_g=yes
  3714. else $as_nop
  3715. CFLAGS=""
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. int
  3719. main (void)
  3720. {
  3721. ;
  3722. return 0;
  3723. }
  3724. _ACEOF
  3725. if ac_fn_c_try_compile "$LINENO"
  3726. then :
  3727. else $as_nop
  3728. ac_c_werror_flag=$ac_save_c_werror_flag
  3729. CFLAGS="-g"
  3730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3731. /* end confdefs.h. */
  3732. int
  3733. main (void)
  3734. {
  3735. ;
  3736. return 0;
  3737. }
  3738. _ACEOF
  3739. if ac_fn_c_try_compile "$LINENO"
  3740. then :
  3741. ac_cv_prog_cc_g=yes
  3742. fi
  3743. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3744. fi
  3745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3746. fi
  3747. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3748. ac_c_werror_flag=$ac_save_c_werror_flag
  3749. fi
  3750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3751. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3752. if test $ac_test_CFLAGS; then
  3753. CFLAGS=$ac_save_CFLAGS
  3754. elif test $ac_cv_prog_cc_g = yes; then
  3755. if test "$GCC" = yes; then
  3756. CFLAGS="-g -O2"
  3757. else
  3758. CFLAGS="-g"
  3759. fi
  3760. else
  3761. if test "$GCC" = yes; then
  3762. CFLAGS="-O2"
  3763. else
  3764. CFLAGS=
  3765. fi
  3766. fi
  3767. ac_prog_cc_stdc=no
  3768. if test x$ac_prog_cc_stdc = xno
  3769. then :
  3770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3771. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3772. if test ${ac_cv_prog_cc_c11+y}
  3773. then :
  3774. printf %s "(cached) " >&6
  3775. else $as_nop
  3776. ac_cv_prog_cc_c11=no
  3777. ac_save_CC=$CC
  3778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3779. /* end confdefs.h. */
  3780. $ac_c_conftest_c11_program
  3781. _ACEOF
  3782. for ac_arg in '' -std=gnu11
  3783. do
  3784. CC="$ac_save_CC $ac_arg"
  3785. if ac_fn_c_try_compile "$LINENO"
  3786. then :
  3787. ac_cv_prog_cc_c11=$ac_arg
  3788. fi
  3789. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3790. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3791. done
  3792. rm -f conftest.$ac_ext
  3793. CC=$ac_save_CC
  3794. fi
  3795. if test "x$ac_cv_prog_cc_c11" = xno
  3796. then :
  3797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3798. printf "%s\n" "unsupported" >&6; }
  3799. else $as_nop
  3800. if test "x$ac_cv_prog_cc_c11" = x
  3801. then :
  3802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3803. printf "%s\n" "none needed" >&6; }
  3804. else $as_nop
  3805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3806. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3807. CC="$CC $ac_cv_prog_cc_c11"
  3808. fi
  3809. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3810. ac_prog_cc_stdc=c11
  3811. fi
  3812. fi
  3813. if test x$ac_prog_cc_stdc = xno
  3814. then :
  3815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3816. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3817. if test ${ac_cv_prog_cc_c99+y}
  3818. then :
  3819. printf %s "(cached) " >&6
  3820. else $as_nop
  3821. ac_cv_prog_cc_c99=no
  3822. ac_save_CC=$CC
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. $ac_c_conftest_c99_program
  3826. _ACEOF
  3827. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3828. do
  3829. CC="$ac_save_CC $ac_arg"
  3830. if ac_fn_c_try_compile "$LINENO"
  3831. then :
  3832. ac_cv_prog_cc_c99=$ac_arg
  3833. fi
  3834. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3835. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3836. done
  3837. rm -f conftest.$ac_ext
  3838. CC=$ac_save_CC
  3839. fi
  3840. if test "x$ac_cv_prog_cc_c99" = xno
  3841. then :
  3842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3843. printf "%s\n" "unsupported" >&6; }
  3844. else $as_nop
  3845. if test "x$ac_cv_prog_cc_c99" = x
  3846. then :
  3847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3848. printf "%s\n" "none needed" >&6; }
  3849. else $as_nop
  3850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3851. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3852. CC="$CC $ac_cv_prog_cc_c99"
  3853. fi
  3854. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3855. ac_prog_cc_stdc=c99
  3856. fi
  3857. fi
  3858. if test x$ac_prog_cc_stdc = xno
  3859. then :
  3860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3861. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3862. if test ${ac_cv_prog_cc_c89+y}
  3863. then :
  3864. printf %s "(cached) " >&6
  3865. else $as_nop
  3866. ac_cv_prog_cc_c89=no
  3867. ac_save_CC=$CC
  3868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3869. /* end confdefs.h. */
  3870. $ac_c_conftest_c89_program
  3871. _ACEOF
  3872. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3873. do
  3874. CC="$ac_save_CC $ac_arg"
  3875. if ac_fn_c_try_compile "$LINENO"
  3876. then :
  3877. ac_cv_prog_cc_c89=$ac_arg
  3878. fi
  3879. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3880. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3881. done
  3882. rm -f conftest.$ac_ext
  3883. CC=$ac_save_CC
  3884. fi
  3885. if test "x$ac_cv_prog_cc_c89" = xno
  3886. then :
  3887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3888. printf "%s\n" "unsupported" >&6; }
  3889. else $as_nop
  3890. if test "x$ac_cv_prog_cc_c89" = x
  3891. then :
  3892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3893. printf "%s\n" "none needed" >&6; }
  3894. else $as_nop
  3895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3896. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3897. CC="$CC $ac_cv_prog_cc_c89"
  3898. fi
  3899. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3900. ac_prog_cc_stdc=c89
  3901. fi
  3902. fi
  3903. ac_ext=c
  3904. ac_cpp='$CPP $CPPFLAGS'
  3905. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3906. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3908. if test "x$GCC" != "xyes" ; then
  3909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
  3910. printf %s "checking whether compiler is MSVC... " >&6; }
  3911. if test ${je_cv_msvc+y}
  3912. then :
  3913. printf %s "(cached) " >&6
  3914. else $as_nop
  3915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3916. /* end confdefs.h. */
  3917. int
  3918. main (void)
  3919. {
  3920. #ifndef _MSC_VER
  3921. int fail-1;
  3922. #endif
  3923. ;
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. if ac_fn_c_try_compile "$LINENO"
  3928. then :
  3929. je_cv_msvc=yes
  3930. else $as_nop
  3931. je_cv_msvc=no
  3932. fi
  3933. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3934. fi
  3935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
  3936. printf "%s\n" "$je_cv_msvc" >&6; }
  3937. fi
  3938. je_cv_cray_prgenv_wrapper=""
  3939. if test "x${PE_ENV}" != "x" ; then
  3940. case "${CC}" in
  3941. CC|cc)
  3942. je_cv_cray_prgenv_wrapper="yes"
  3943. ;;
  3944. *)
  3945. ;;
  3946. esac
  3947. fi
  3948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
  3949. printf %s "checking whether compiler is cray... " >&6; }
  3950. if test ${je_cv_cray+y}
  3951. then :
  3952. printf %s "(cached) " >&6
  3953. else $as_nop
  3954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3955. /* end confdefs.h. */
  3956. int
  3957. main (void)
  3958. {
  3959. #ifndef _CRAYC
  3960. int fail-1;
  3961. #endif
  3962. ;
  3963. return 0;
  3964. }
  3965. _ACEOF
  3966. if ac_fn_c_try_compile "$LINENO"
  3967. then :
  3968. je_cv_cray=yes
  3969. else $as_nop
  3970. je_cv_cray=no
  3971. fi
  3972. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3973. fi
  3974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
  3975. printf "%s\n" "$je_cv_cray" >&6; }
  3976. if test "x${je_cv_cray}" = "xyes" ; then
  3977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
  3978. printf %s "checking whether cray compiler version is 8.4... " >&6; }
  3979. if test ${je_cv_cray_84+y}
  3980. then :
  3981. printf %s "(cached) " >&6
  3982. else $as_nop
  3983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3984. /* end confdefs.h. */
  3985. int
  3986. main (void)
  3987. {
  3988. #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
  3989. int fail-1;
  3990. #endif
  3991. ;
  3992. return 0;
  3993. }
  3994. _ACEOF
  3995. if ac_fn_c_try_compile "$LINENO"
  3996. then :
  3997. je_cv_cray_84=yes
  3998. else $as_nop
  3999. je_cv_cray_84=no
  4000. fi
  4001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4002. fi
  4003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
  4004. printf "%s\n" "$je_cv_cray_84" >&6; }
  4005. fi
  4006. if test "x$GCC" = "xyes" ; then
  4007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
  4008. printf %s "checking whether compiler supports -std=gnu11... " >&6; }
  4009. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4010. T_APPEND_V=-std=gnu11
  4011. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4012. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4013. else
  4014. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4015. fi
  4016. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4017. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4018. else
  4019. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4020. fi
  4021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4022. /* end confdefs.h. */
  4023. int
  4024. main (void)
  4025. {
  4026. return 0;
  4027. ;
  4028. return 0;
  4029. }
  4030. _ACEOF
  4031. if ac_fn_c_try_compile "$LINENO"
  4032. then :
  4033. je_cv_cflags_added=-std=gnu11
  4034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4035. printf "%s\n" "yes" >&6; }
  4036. else $as_nop
  4037. je_cv_cflags_added=
  4038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4039. printf "%s\n" "no" >&6; }
  4040. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4041. fi
  4042. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4043. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4044. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4045. else
  4046. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4047. fi
  4048. if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
  4049. printf "%s\n" "#define JEMALLOC_HAS_RESTRICT " >>confdefs.h
  4050. else
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
  4052. printf %s "checking whether compiler supports -std=gnu99... " >&6; }
  4053. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4054. T_APPEND_V=-std=gnu99
  4055. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4056. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4057. else
  4058. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4059. fi
  4060. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4061. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4062. else
  4063. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4064. fi
  4065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4066. /* end confdefs.h. */
  4067. int
  4068. main (void)
  4069. {
  4070. return 0;
  4071. ;
  4072. return 0;
  4073. }
  4074. _ACEOF
  4075. if ac_fn_c_try_compile "$LINENO"
  4076. then :
  4077. je_cv_cflags_added=-std=gnu99
  4078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4079. printf "%s\n" "yes" >&6; }
  4080. else $as_nop
  4081. je_cv_cflags_added=
  4082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4083. printf "%s\n" "no" >&6; }
  4084. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4085. fi
  4086. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4087. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4088. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4089. else
  4090. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4091. fi
  4092. if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
  4093. printf "%s\n" "#define JEMALLOC_HAS_RESTRICT " >>confdefs.h
  4094. fi
  4095. fi
  4096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=unknown-warning-option" >&5
  4097. printf %s "checking whether compiler supports -Werror=unknown-warning-option... " >&6; }
  4098. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4099. T_APPEND_V=-Werror=unknown-warning-option
  4100. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4101. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4102. else
  4103. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4104. fi
  4105. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4106. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4107. else
  4108. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4109. fi
  4110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4111. /* end confdefs.h. */
  4112. int
  4113. main (void)
  4114. {
  4115. return 0;
  4116. ;
  4117. return 0;
  4118. }
  4119. _ACEOF
  4120. if ac_fn_c_try_compile "$LINENO"
  4121. then :
  4122. je_cv_cflags_added=-Werror=unknown-warning-option
  4123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4124. printf "%s\n" "yes" >&6; }
  4125. else $as_nop
  4126. je_cv_cflags_added=
  4127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4128. printf "%s\n" "no" >&6; }
  4129. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4130. fi
  4131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4132. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4133. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4134. else
  4135. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4136. fi
  4137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
  4138. printf %s "checking whether compiler supports -Wall... " >&6; }
  4139. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4140. T_APPEND_V=-Wall
  4141. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4142. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4143. else
  4144. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4145. fi
  4146. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4147. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4148. else
  4149. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4150. fi
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. int
  4154. main (void)
  4155. {
  4156. return 0;
  4157. ;
  4158. return 0;
  4159. }
  4160. _ACEOF
  4161. if ac_fn_c_try_compile "$LINENO"
  4162. then :
  4163. je_cv_cflags_added=-Wall
  4164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4165. printf "%s\n" "yes" >&6; }
  4166. else $as_nop
  4167. je_cv_cflags_added=
  4168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4169. printf "%s\n" "no" >&6; }
  4170. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4173. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4174. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4175. else
  4176. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4177. fi
  4178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
  4179. printf %s "checking whether compiler supports -Wextra... " >&6; }
  4180. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4181. T_APPEND_V=-Wextra
  4182. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4183. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4184. else
  4185. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4186. fi
  4187. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4188. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4189. else
  4190. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4191. fi
  4192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4193. /* end confdefs.h. */
  4194. int
  4195. main (void)
  4196. {
  4197. return 0;
  4198. ;
  4199. return 0;
  4200. }
  4201. _ACEOF
  4202. if ac_fn_c_try_compile "$LINENO"
  4203. then :
  4204. je_cv_cflags_added=-Wextra
  4205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4206. printf "%s\n" "yes" >&6; }
  4207. else $as_nop
  4208. je_cv_cflags_added=
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4210. printf "%s\n" "no" >&6; }
  4211. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4212. fi
  4213. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4214. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4215. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4216. else
  4217. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4218. fi
  4219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
  4220. printf %s "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
  4221. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4222. T_APPEND_V=-Wshorten-64-to-32
  4223. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4224. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4225. else
  4226. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4227. fi
  4228. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4229. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4230. else
  4231. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4232. fi
  4233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4234. /* end confdefs.h. */
  4235. int
  4236. main (void)
  4237. {
  4238. return 0;
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. if ac_fn_c_try_compile "$LINENO"
  4244. then :
  4245. je_cv_cflags_added=-Wshorten-64-to-32
  4246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4247. printf "%s\n" "yes" >&6; }
  4248. else $as_nop
  4249. je_cv_cflags_added=
  4250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4251. printf "%s\n" "no" >&6; }
  4252. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4253. fi
  4254. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4255. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4256. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4257. else
  4258. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4259. fi
  4260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
  4261. printf %s "checking whether compiler supports -Wsign-compare... " >&6; }
  4262. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4263. T_APPEND_V=-Wsign-compare
  4264. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4265. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4266. else
  4267. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4268. fi
  4269. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4270. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4271. else
  4272. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4273. fi
  4274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4275. /* end confdefs.h. */
  4276. int
  4277. main (void)
  4278. {
  4279. return 0;
  4280. ;
  4281. return 0;
  4282. }
  4283. _ACEOF
  4284. if ac_fn_c_try_compile "$LINENO"
  4285. then :
  4286. je_cv_cflags_added=-Wsign-compare
  4287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4288. printf "%s\n" "yes" >&6; }
  4289. else $as_nop
  4290. je_cv_cflags_added=
  4291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4292. printf "%s\n" "no" >&6; }
  4293. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4294. fi
  4295. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4296. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4297. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4298. else
  4299. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4300. fi
  4301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
  4302. printf %s "checking whether compiler supports -Wundef... " >&6; }
  4303. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4304. T_APPEND_V=-Wundef
  4305. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4306. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4307. else
  4308. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4309. fi
  4310. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4311. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4312. else
  4313. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4314. fi
  4315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4316. /* end confdefs.h. */
  4317. int
  4318. main (void)
  4319. {
  4320. return 0;
  4321. ;
  4322. return 0;
  4323. }
  4324. _ACEOF
  4325. if ac_fn_c_try_compile "$LINENO"
  4326. then :
  4327. je_cv_cflags_added=-Wundef
  4328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4329. printf "%s\n" "yes" >&6; }
  4330. else $as_nop
  4331. je_cv_cflags_added=
  4332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4333. printf "%s\n" "no" >&6; }
  4334. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4335. fi
  4336. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4337. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4338. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4339. else
  4340. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4341. fi
  4342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
  4343. printf %s "checking whether compiler supports -Wno-format-zero-length... " >&6; }
  4344. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4345. T_APPEND_V=-Wno-format-zero-length
  4346. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4347. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4348. else
  4349. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4350. fi
  4351. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4352. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4353. else
  4354. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4355. fi
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. int
  4359. main (void)
  4360. {
  4361. return 0;
  4362. ;
  4363. return 0;
  4364. }
  4365. _ACEOF
  4366. if ac_fn_c_try_compile "$LINENO"
  4367. then :
  4368. je_cv_cflags_added=-Wno-format-zero-length
  4369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4370. printf "%s\n" "yes" >&6; }
  4371. else $as_nop
  4372. je_cv_cflags_added=
  4373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4374. printf "%s\n" "no" >&6; }
  4375. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4376. fi
  4377. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4378. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4379. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4380. else
  4381. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4382. fi
  4383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wpointer-arith" >&5
  4384. printf %s "checking whether compiler supports -Wpointer-arith... " >&6; }
  4385. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4386. T_APPEND_V=-Wpointer-arith
  4387. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4388. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4389. else
  4390. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4391. fi
  4392. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4393. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4394. else
  4395. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4396. fi
  4397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4398. /* end confdefs.h. */
  4399. int
  4400. main (void)
  4401. {
  4402. return 0;
  4403. ;
  4404. return 0;
  4405. }
  4406. _ACEOF
  4407. if ac_fn_c_try_compile "$LINENO"
  4408. then :
  4409. je_cv_cflags_added=-Wpointer-arith
  4410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4411. printf "%s\n" "yes" >&6; }
  4412. else $as_nop
  4413. je_cv_cflags_added=
  4414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4415. printf "%s\n" "no" >&6; }
  4416. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4417. fi
  4418. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4419. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4420. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4421. else
  4422. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4423. fi
  4424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-braces" >&5
  4425. printf %s "checking whether compiler supports -Wno-missing-braces... " >&6; }
  4426. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4427. T_APPEND_V=-Wno-missing-braces
  4428. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4429. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4430. else
  4431. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4432. fi
  4433. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4434. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4435. else
  4436. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4437. fi
  4438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4439. /* end confdefs.h. */
  4440. int
  4441. main (void)
  4442. {
  4443. return 0;
  4444. ;
  4445. return 0;
  4446. }
  4447. _ACEOF
  4448. if ac_fn_c_try_compile "$LINENO"
  4449. then :
  4450. je_cv_cflags_added=-Wno-missing-braces
  4451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4452. printf "%s\n" "yes" >&6; }
  4453. else $as_nop
  4454. je_cv_cflags_added=
  4455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4456. printf "%s\n" "no" >&6; }
  4457. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4458. fi
  4459. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4460. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4461. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4462. else
  4463. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4464. fi
  4465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-field-initializers" >&5
  4466. printf %s "checking whether compiler supports -Wno-missing-field-initializers... " >&6; }
  4467. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4468. T_APPEND_V=-Wno-missing-field-initializers
  4469. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4470. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4471. else
  4472. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4473. fi
  4474. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4475. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4476. else
  4477. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4478. fi
  4479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4480. /* end confdefs.h. */
  4481. int
  4482. main (void)
  4483. {
  4484. return 0;
  4485. ;
  4486. return 0;
  4487. }
  4488. _ACEOF
  4489. if ac_fn_c_try_compile "$LINENO"
  4490. then :
  4491. je_cv_cflags_added=-Wno-missing-field-initializers
  4492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4493. printf "%s\n" "yes" >&6; }
  4494. else $as_nop
  4495. je_cv_cflags_added=
  4496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4497. printf "%s\n" "no" >&6; }
  4498. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4499. fi
  4500. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4501. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4502. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4503. else
  4504. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4505. fi
  4506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-attributes" >&5
  4507. printf %s "checking whether compiler supports -Wno-missing-attributes... " >&6; }
  4508. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4509. T_APPEND_V=-Wno-missing-attributes
  4510. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4511. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4512. else
  4513. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4514. fi
  4515. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4516. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4517. else
  4518. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4519. fi
  4520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4521. /* end confdefs.h. */
  4522. int
  4523. main (void)
  4524. {
  4525. return 0;
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. if ac_fn_c_try_compile "$LINENO"
  4531. then :
  4532. je_cv_cflags_added=-Wno-missing-attributes
  4533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4534. printf "%s\n" "yes" >&6; }
  4535. else $as_nop
  4536. je_cv_cflags_added=
  4537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4538. printf "%s\n" "no" >&6; }
  4539. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4540. fi
  4541. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4542. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4543. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4544. else
  4545. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4546. fi
  4547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
  4548. printf %s "checking whether compiler supports -pipe... " >&6; }
  4549. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4550. T_APPEND_V=-pipe
  4551. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4552. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4553. else
  4554. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4555. fi
  4556. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4557. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4558. else
  4559. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4560. fi
  4561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4562. /* end confdefs.h. */
  4563. int
  4564. main (void)
  4565. {
  4566. return 0;
  4567. ;
  4568. return 0;
  4569. }
  4570. _ACEOF
  4571. if ac_fn_c_try_compile "$LINENO"
  4572. then :
  4573. je_cv_cflags_added=-pipe
  4574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4575. printf "%s\n" "yes" >&6; }
  4576. else $as_nop
  4577. je_cv_cflags_added=
  4578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4579. printf "%s\n" "no" >&6; }
  4580. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4581. fi
  4582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4583. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4584. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4585. else
  4586. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4587. fi
  4588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
  4589. printf %s "checking whether compiler supports -g3... " >&6; }
  4590. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4591. T_APPEND_V=-g3
  4592. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4593. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4594. else
  4595. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4596. fi
  4597. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4598. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4599. else
  4600. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4601. fi
  4602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4603. /* end confdefs.h. */
  4604. int
  4605. main (void)
  4606. {
  4607. return 0;
  4608. ;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. if ac_fn_c_try_compile "$LINENO"
  4613. then :
  4614. je_cv_cflags_added=-g3
  4615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4616. printf "%s\n" "yes" >&6; }
  4617. else $as_nop
  4618. je_cv_cflags_added=
  4619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4620. printf "%s\n" "no" >&6; }
  4621. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4622. fi
  4623. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4624. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4625. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4626. else
  4627. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4628. fi
  4629. elif test "x$je_cv_msvc" = "xyes" ; then
  4630. CC="$CC -nologo"
  4631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
  4632. printf %s "checking whether compiler supports -Zi... " >&6; }
  4633. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4634. T_APPEND_V=-Zi
  4635. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4636. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4637. else
  4638. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4639. fi
  4640. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4641. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4642. else
  4643. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4644. fi
  4645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4646. /* end confdefs.h. */
  4647. int
  4648. main (void)
  4649. {
  4650. return 0;
  4651. ;
  4652. return 0;
  4653. }
  4654. _ACEOF
  4655. if ac_fn_c_try_compile "$LINENO"
  4656. then :
  4657. je_cv_cflags_added=-Zi
  4658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4659. printf "%s\n" "yes" >&6; }
  4660. else $as_nop
  4661. je_cv_cflags_added=
  4662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4663. printf "%s\n" "no" >&6; }
  4664. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4665. fi
  4666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4667. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4668. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4669. else
  4670. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4671. fi
  4672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
  4673. printf %s "checking whether compiler supports -MT... " >&6; }
  4674. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4675. T_APPEND_V=-MT
  4676. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4677. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4678. else
  4679. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4680. fi
  4681. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4682. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4683. else
  4684. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4685. fi
  4686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4687. /* end confdefs.h. */
  4688. int
  4689. main (void)
  4690. {
  4691. return 0;
  4692. ;
  4693. return 0;
  4694. }
  4695. _ACEOF
  4696. if ac_fn_c_try_compile "$LINENO"
  4697. then :
  4698. je_cv_cflags_added=-MT
  4699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4700. printf "%s\n" "yes" >&6; }
  4701. else $as_nop
  4702. je_cv_cflags_added=
  4703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4704. printf "%s\n" "no" >&6; }
  4705. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4706. fi
  4707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4708. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4709. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4710. else
  4711. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4712. fi
  4713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
  4714. printf %s "checking whether compiler supports -W3... " >&6; }
  4715. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4716. T_APPEND_V=-W3
  4717. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4718. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4719. else
  4720. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4721. fi
  4722. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4723. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4724. else
  4725. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4726. fi
  4727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4728. /* end confdefs.h. */
  4729. int
  4730. main (void)
  4731. {
  4732. return 0;
  4733. ;
  4734. return 0;
  4735. }
  4736. _ACEOF
  4737. if ac_fn_c_try_compile "$LINENO"
  4738. then :
  4739. je_cv_cflags_added=-W3
  4740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4741. printf "%s\n" "yes" >&6; }
  4742. else $as_nop
  4743. je_cv_cflags_added=
  4744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4745. printf "%s\n" "no" >&6; }
  4746. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4749. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4750. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4751. else
  4752. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4753. fi
  4754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
  4755. printf %s "checking whether compiler supports -FS... " >&6; }
  4756. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4757. T_APPEND_V=-FS
  4758. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4759. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4760. else
  4761. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4762. fi
  4763. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4764. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4765. else
  4766. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4767. fi
  4768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4769. /* end confdefs.h. */
  4770. int
  4771. main (void)
  4772. {
  4773. return 0;
  4774. ;
  4775. return 0;
  4776. }
  4777. _ACEOF
  4778. if ac_fn_c_try_compile "$LINENO"
  4779. then :
  4780. je_cv_cflags_added=-FS
  4781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4782. printf "%s\n" "yes" >&6; }
  4783. else $as_nop
  4784. je_cv_cflags_added=
  4785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4786. printf "%s\n" "no" >&6; }
  4787. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4788. fi
  4789. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4790. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4791. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4792. else
  4793. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4794. fi
  4795. T_APPEND_V=-I${srcdir}/include/msvc_compat
  4796. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4797. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  4798. else
  4799. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  4800. fi
  4801. fi
  4802. if test "x$je_cv_cray" = "xyes" ; then
  4803. if test "x$je_cv_cray_84" = "xyes" ; then
  4804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
  4805. printf %s "checking whether compiler supports -hipa2... " >&6; }
  4806. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4807. T_APPEND_V=-hipa2
  4808. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4809. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4810. else
  4811. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4812. fi
  4813. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4814. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4815. else
  4816. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4817. fi
  4818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4819. /* end confdefs.h. */
  4820. int
  4821. main (void)
  4822. {
  4823. return 0;
  4824. ;
  4825. return 0;
  4826. }
  4827. _ACEOF
  4828. if ac_fn_c_try_compile "$LINENO"
  4829. then :
  4830. je_cv_cflags_added=-hipa2
  4831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4832. printf "%s\n" "yes" >&6; }
  4833. else $as_nop
  4834. je_cv_cflags_added=
  4835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4836. printf "%s\n" "no" >&6; }
  4837. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4838. fi
  4839. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4840. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4841. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4842. else
  4843. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4844. fi
  4845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
  4846. printf %s "checking whether compiler supports -hnognu... " >&6; }
  4847. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4848. T_APPEND_V=-hnognu
  4849. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4850. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4851. else
  4852. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4853. fi
  4854. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4855. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4856. else
  4857. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4858. fi
  4859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4860. /* end confdefs.h. */
  4861. int
  4862. main (void)
  4863. {
  4864. return 0;
  4865. ;
  4866. return 0;
  4867. }
  4868. _ACEOF
  4869. if ac_fn_c_try_compile "$LINENO"
  4870. then :
  4871. je_cv_cflags_added=-hnognu
  4872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4873. printf "%s\n" "yes" >&6; }
  4874. else $as_nop
  4875. je_cv_cflags_added=
  4876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4877. printf "%s\n" "no" >&6; }
  4878. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4879. fi
  4880. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4881. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4882. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4883. else
  4884. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4885. fi
  4886. fi
  4887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
  4888. printf %s "checking whether compiler supports -hnomessage=128... " >&6; }
  4889. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4890. T_APPEND_V=-hnomessage=128
  4891. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4892. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4893. else
  4894. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4895. fi
  4896. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4897. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4898. else
  4899. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4900. fi
  4901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4902. /* end confdefs.h. */
  4903. int
  4904. main (void)
  4905. {
  4906. return 0;
  4907. ;
  4908. return 0;
  4909. }
  4910. _ACEOF
  4911. if ac_fn_c_try_compile "$LINENO"
  4912. then :
  4913. je_cv_cflags_added=-hnomessage=128
  4914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4915. printf "%s\n" "yes" >&6; }
  4916. else $as_nop
  4917. je_cv_cflags_added=
  4918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4919. printf "%s\n" "no" >&6; }
  4920. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4921. fi
  4922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4923. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4924. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4925. else
  4926. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4927. fi
  4928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
  4929. printf %s "checking whether compiler supports -hnomessage=1357... " >&6; }
  4930. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4931. T_APPEND_V=-hnomessage=1357
  4932. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4933. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4934. else
  4935. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4936. fi
  4937. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4938. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4939. else
  4940. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4941. fi
  4942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4943. /* end confdefs.h. */
  4944. int
  4945. main (void)
  4946. {
  4947. return 0;
  4948. ;
  4949. return 0;
  4950. }
  4951. _ACEOF
  4952. if ac_fn_c_try_compile "$LINENO"
  4953. then :
  4954. je_cv_cflags_added=-hnomessage=1357
  4955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4956. printf "%s\n" "yes" >&6; }
  4957. else $as_nop
  4958. je_cv_cflags_added=
  4959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4960. printf "%s\n" "no" >&6; }
  4961. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4962. fi
  4963. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4964. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4965. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4966. else
  4967. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4968. fi
  4969. fi
  4970. ac_ext=c
  4971. ac_cpp='$CPP $CPPFLAGS'
  4972. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4973. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4974. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4976. printf %s "checking how to run the C preprocessor... " >&6; }
  4977. # On Suns, sometimes $CPP names a directory.
  4978. if test -n "$CPP" && test -d "$CPP"; then
  4979. CPP=
  4980. fi
  4981. if test -z "$CPP"; then
  4982. if test ${ac_cv_prog_CPP+y}
  4983. then :
  4984. printf %s "(cached) " >&6
  4985. else $as_nop
  4986. # Double quotes because $CC needs to be expanded
  4987. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  4988. do
  4989. ac_preproc_ok=false
  4990. for ac_c_preproc_warn_flag in '' yes
  4991. do
  4992. # Use a header file that comes with gcc, so configuring glibc
  4993. # with a fresh cross-compiler works.
  4994. # On the NeXT, cc -E runs the code through the compiler's parser,
  4995. # not just through cpp. "Syntax error" is here to catch this case.
  4996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4997. /* end confdefs.h. */
  4998. #include <limits.h>
  4999. Syntax error
  5000. _ACEOF
  5001. if ac_fn_c_try_cpp "$LINENO"
  5002. then :
  5003. else $as_nop
  5004. # Broken: fails on valid input.
  5005. continue
  5006. fi
  5007. rm -f conftest.err conftest.i conftest.$ac_ext
  5008. # OK, works on sane cases. Now check whether nonexistent headers
  5009. # can be detected and how.
  5010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5011. /* end confdefs.h. */
  5012. #include <ac_nonexistent.h>
  5013. _ACEOF
  5014. if ac_fn_c_try_cpp "$LINENO"
  5015. then :
  5016. # Broken: success on invalid input.
  5017. continue
  5018. else $as_nop
  5019. # Passes both tests.
  5020. ac_preproc_ok=:
  5021. break
  5022. fi
  5023. rm -f conftest.err conftest.i conftest.$ac_ext
  5024. done
  5025. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5026. rm -f conftest.i conftest.err conftest.$ac_ext
  5027. if $ac_preproc_ok
  5028. then :
  5029. break
  5030. fi
  5031. done
  5032. ac_cv_prog_CPP=$CPP
  5033. fi
  5034. CPP=$ac_cv_prog_CPP
  5035. else
  5036. ac_cv_prog_CPP=$CPP
  5037. fi
  5038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5039. printf "%s\n" "$CPP" >&6; }
  5040. ac_preproc_ok=false
  5041. for ac_c_preproc_warn_flag in '' yes
  5042. do
  5043. # Use a header file that comes with gcc, so configuring glibc
  5044. # with a fresh cross-compiler works.
  5045. # On the NeXT, cc -E runs the code through the compiler's parser,
  5046. # not just through cpp. "Syntax error" is here to catch this case.
  5047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5048. /* end confdefs.h. */
  5049. #include <limits.h>
  5050. Syntax error
  5051. _ACEOF
  5052. if ac_fn_c_try_cpp "$LINENO"
  5053. then :
  5054. else $as_nop
  5055. # Broken: fails on valid input.
  5056. continue
  5057. fi
  5058. rm -f conftest.err conftest.i conftest.$ac_ext
  5059. # OK, works on sane cases. Now check whether nonexistent headers
  5060. # can be detected and how.
  5061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5062. /* end confdefs.h. */
  5063. #include <ac_nonexistent.h>
  5064. _ACEOF
  5065. if ac_fn_c_try_cpp "$LINENO"
  5066. then :
  5067. # Broken: success on invalid input.
  5068. continue
  5069. else $as_nop
  5070. # Passes both tests.
  5071. ac_preproc_ok=:
  5072. break
  5073. fi
  5074. rm -f conftest.err conftest.i conftest.$ac_ext
  5075. done
  5076. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5077. rm -f conftest.i conftest.err conftest.$ac_ext
  5078. if $ac_preproc_ok
  5079. then :
  5080. else $as_nop
  5081. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5082. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5083. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5084. See \`config.log' for more details" "$LINENO" 5; }
  5085. fi
  5086. ac_ext=c
  5087. ac_cpp='$CPP $CPPFLAGS'
  5088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5091. # Check whether --enable-cxx was given.
  5092. if test ${enable_cxx+y}
  5093. then :
  5094. enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
  5095. enable_cxx="0"
  5096. else
  5097. enable_cxx="1"
  5098. fi
  5099. else $as_nop
  5100. enable_cxx="1"
  5101. fi
  5102. if test "x$enable_cxx" = "x1" ; then
  5103. # ===========================================================================
  5104. # https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
  5105. # ===========================================================================
  5106. #
  5107. # SYNOPSIS
  5108. #
  5109. # AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
  5110. #
  5111. # DESCRIPTION
  5112. #
  5113. # Check for baseline language coverage in the compiler for the specified
  5114. # version of the C++ standard. If necessary, add switches to CXX and
  5115. # CXXCPP to enable support. VERSION may be '11' (for the C++11 standard)
  5116. # or '14' (for the C++14 standard).
  5117. #
  5118. # The second argument, if specified, indicates whether you insist on an
  5119. # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
  5120. # -std=c++11). If neither is specified, you get whatever works, with
  5121. # preference for an extended mode.
  5122. #
  5123. # The third argument, if specified 'mandatory' or if left unspecified,
  5124. # indicates that baseline support for the specified C++ standard is
  5125. # required and that the macro should error out if no mode with that
  5126. # support is found. If specified 'optional', then configuration proceeds
  5127. # regardless, after defining HAVE_CXX${VERSION} if and only if a
  5128. # supporting mode is found.
  5129. #
  5130. # LICENSE
  5131. #
  5132. # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
  5133. # Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
  5134. # Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
  5135. # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
  5136. # Copyright (c) 2015 Paul Norman <penorman@mac.com>
  5137. # Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
  5138. # Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com>
  5139. # Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com>
  5140. #
  5141. # Copying and distribution of this file, with or without modification, are
  5142. # permitted in any medium without royalty provided the copyright notice
  5143. # and this notice are preserved. This file is offered as-is, without any
  5144. # warranty.
  5145. #serial 11
  5146. ac_ext=cpp
  5147. ac_cpp='$CXXCPP $CPPFLAGS'
  5148. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5149. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5150. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5151. if test -z "$CXX"; then
  5152. if test -n "$CCC"; then
  5153. CXX=$CCC
  5154. else
  5155. if test -n "$ac_tool_prefix"; then
  5156. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5157. do
  5158. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5159. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5161. printf %s "checking for $ac_word... " >&6; }
  5162. if test ${ac_cv_prog_CXX+y}
  5163. then :
  5164. printf %s "(cached) " >&6
  5165. else $as_nop
  5166. if test -n "$CXX"; then
  5167. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5168. else
  5169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5170. for as_dir in $PATH
  5171. do
  5172. IFS=$as_save_IFS
  5173. case $as_dir in #(((
  5174. '') as_dir=./ ;;
  5175. */) ;;
  5176. *) as_dir=$as_dir/ ;;
  5177. esac
  5178. for ac_exec_ext in '' $ac_executable_extensions; do
  5179. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5180. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5182. break 2
  5183. fi
  5184. done
  5185. done
  5186. IFS=$as_save_IFS
  5187. fi
  5188. fi
  5189. CXX=$ac_cv_prog_CXX
  5190. if test -n "$CXX"; then
  5191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5192. printf "%s\n" "$CXX" >&6; }
  5193. else
  5194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5195. printf "%s\n" "no" >&6; }
  5196. fi
  5197. test -n "$CXX" && break
  5198. done
  5199. fi
  5200. if test -z "$CXX"; then
  5201. ac_ct_CXX=$CXX
  5202. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5203. do
  5204. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5205. set dummy $ac_prog; ac_word=$2
  5206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5207. printf %s "checking for $ac_word... " >&6; }
  5208. if test ${ac_cv_prog_ac_ct_CXX+y}
  5209. then :
  5210. printf %s "(cached) " >&6
  5211. else $as_nop
  5212. if test -n "$ac_ct_CXX"; then
  5213. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. case $as_dir in #(((
  5220. '') as_dir=./ ;;
  5221. */) ;;
  5222. *) as_dir=$as_dir/ ;;
  5223. esac
  5224. for ac_exec_ext in '' $ac_executable_extensions; do
  5225. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5226. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5227. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5228. break 2
  5229. fi
  5230. done
  5231. done
  5232. IFS=$as_save_IFS
  5233. fi
  5234. fi
  5235. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5236. if test -n "$ac_ct_CXX"; then
  5237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5238. printf "%s\n" "$ac_ct_CXX" >&6; }
  5239. else
  5240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5241. printf "%s\n" "no" >&6; }
  5242. fi
  5243. test -n "$ac_ct_CXX" && break
  5244. done
  5245. if test "x$ac_ct_CXX" = x; then
  5246. CXX="g++"
  5247. else
  5248. case $cross_compiling:$ac_tool_warned in
  5249. yes:)
  5250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5251. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5252. ac_tool_warned=yes ;;
  5253. esac
  5254. CXX=$ac_ct_CXX
  5255. fi
  5256. fi
  5257. fi
  5258. fi
  5259. # Provide some information about the compiler.
  5260. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5261. set X $ac_compile
  5262. ac_compiler=$2
  5263. for ac_option in --version -v -V -qversion; do
  5264. { { ac_try="$ac_compiler $ac_option >&5"
  5265. case "(($ac_try" in
  5266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5267. *) ac_try_echo=$ac_try;;
  5268. esac
  5269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5270. printf "%s\n" "$ac_try_echo"; } >&5
  5271. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5272. ac_status=$?
  5273. if test -s conftest.err; then
  5274. sed '10a\
  5275. ... rest of stderr output deleted ...
  5276. 10q' conftest.err >conftest.er1
  5277. cat conftest.er1 >&5
  5278. fi
  5279. rm -f conftest.er1 conftest.err
  5280. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5281. test $ac_status = 0; }
  5282. done
  5283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  5284. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  5285. if test ${ac_cv_cxx_compiler_gnu+y}
  5286. then :
  5287. printf %s "(cached) " >&6
  5288. else $as_nop
  5289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5290. /* end confdefs.h. */
  5291. int
  5292. main (void)
  5293. {
  5294. #ifndef __GNUC__
  5295. choke me
  5296. #endif
  5297. ;
  5298. return 0;
  5299. }
  5300. _ACEOF
  5301. if ac_fn_cxx_try_compile "$LINENO"
  5302. then :
  5303. ac_compiler_gnu=yes
  5304. else $as_nop
  5305. ac_compiler_gnu=no
  5306. fi
  5307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5308. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5309. fi
  5310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5311. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  5312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5313. if test $ac_compiler_gnu = yes; then
  5314. GXX=yes
  5315. else
  5316. GXX=
  5317. fi
  5318. ac_test_CXXFLAGS=${CXXFLAGS+y}
  5319. ac_save_CXXFLAGS=$CXXFLAGS
  5320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5321. printf %s "checking whether $CXX accepts -g... " >&6; }
  5322. if test ${ac_cv_prog_cxx_g+y}
  5323. then :
  5324. printf %s "(cached) " >&6
  5325. else $as_nop
  5326. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5327. ac_cxx_werror_flag=yes
  5328. ac_cv_prog_cxx_g=no
  5329. CXXFLAGS="-g"
  5330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5331. /* end confdefs.h. */
  5332. int
  5333. main (void)
  5334. {
  5335. ;
  5336. return 0;
  5337. }
  5338. _ACEOF
  5339. if ac_fn_cxx_try_compile "$LINENO"
  5340. then :
  5341. ac_cv_prog_cxx_g=yes
  5342. else $as_nop
  5343. CXXFLAGS=""
  5344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5345. /* end confdefs.h. */
  5346. int
  5347. main (void)
  5348. {
  5349. ;
  5350. return 0;
  5351. }
  5352. _ACEOF
  5353. if ac_fn_cxx_try_compile "$LINENO"
  5354. then :
  5355. else $as_nop
  5356. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5357. CXXFLAGS="-g"
  5358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5359. /* end confdefs.h. */
  5360. int
  5361. main (void)
  5362. {
  5363. ;
  5364. return 0;
  5365. }
  5366. _ACEOF
  5367. if ac_fn_cxx_try_compile "$LINENO"
  5368. then :
  5369. ac_cv_prog_cxx_g=yes
  5370. fi
  5371. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5372. fi
  5373. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5374. fi
  5375. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5376. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5377. fi
  5378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5379. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  5380. if test $ac_test_CXXFLAGS; then
  5381. CXXFLAGS=$ac_save_CXXFLAGS
  5382. elif test $ac_cv_prog_cxx_g = yes; then
  5383. if test "$GXX" = yes; then
  5384. CXXFLAGS="-g -O2"
  5385. else
  5386. CXXFLAGS="-g"
  5387. fi
  5388. else
  5389. if test "$GXX" = yes; then
  5390. CXXFLAGS="-O2"
  5391. else
  5392. CXXFLAGS=
  5393. fi
  5394. fi
  5395. ac_prog_cxx_stdcxx=no
  5396. if test x$ac_prog_cxx_stdcxx = xno
  5397. then :
  5398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  5399. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  5400. if test ${ac_cv_prog_cxx_11+y}
  5401. then :
  5402. printf %s "(cached) " >&6
  5403. else $as_nop
  5404. ac_cv_prog_cxx_11=no
  5405. ac_save_CXX=$CXX
  5406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5407. /* end confdefs.h. */
  5408. $ac_cxx_conftest_cxx11_program
  5409. _ACEOF
  5410. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  5411. do
  5412. CXX="$ac_save_CXX $ac_arg"
  5413. if ac_fn_cxx_try_compile "$LINENO"
  5414. then :
  5415. ac_cv_prog_cxx_cxx11=$ac_arg
  5416. fi
  5417. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5418. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  5419. done
  5420. rm -f conftest.$ac_ext
  5421. CXX=$ac_save_CXX
  5422. fi
  5423. if test "x$ac_cv_prog_cxx_cxx11" = xno
  5424. then :
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5426. printf "%s\n" "unsupported" >&6; }
  5427. else $as_nop
  5428. if test "x$ac_cv_prog_cxx_cxx11" = x
  5429. then :
  5430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5431. printf "%s\n" "none needed" >&6; }
  5432. else $as_nop
  5433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  5434. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  5435. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  5436. fi
  5437. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  5438. ac_prog_cxx_stdcxx=cxx11
  5439. fi
  5440. fi
  5441. if test x$ac_prog_cxx_stdcxx = xno
  5442. then :
  5443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  5444. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  5445. if test ${ac_cv_prog_cxx_98+y}
  5446. then :
  5447. printf %s "(cached) " >&6
  5448. else $as_nop
  5449. ac_cv_prog_cxx_98=no
  5450. ac_save_CXX=$CXX
  5451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5452. /* end confdefs.h. */
  5453. $ac_cxx_conftest_cxx98_program
  5454. _ACEOF
  5455. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  5456. do
  5457. CXX="$ac_save_CXX $ac_arg"
  5458. if ac_fn_cxx_try_compile "$LINENO"
  5459. then :
  5460. ac_cv_prog_cxx_cxx98=$ac_arg
  5461. fi
  5462. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5463. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  5464. done
  5465. rm -f conftest.$ac_ext
  5466. CXX=$ac_save_CXX
  5467. fi
  5468. if test "x$ac_cv_prog_cxx_cxx98" = xno
  5469. then :
  5470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5471. printf "%s\n" "unsupported" >&6; }
  5472. else $as_nop
  5473. if test "x$ac_cv_prog_cxx_cxx98" = x
  5474. then :
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5476. printf "%s\n" "none needed" >&6; }
  5477. else $as_nop
  5478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  5479. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  5480. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  5481. fi
  5482. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  5483. ac_prog_cxx_stdcxx=cxx98
  5484. fi
  5485. fi
  5486. ac_ext=cpp
  5487. ac_cpp='$CXXCPP $CPPFLAGS'
  5488. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5489. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5490. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5491. ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=false
  5492. ac_ext=cpp
  5493. ac_cpp='$CXXCPP $CPPFLAGS'
  5494. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5495. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5496. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5497. ac_success=no
  5498. if test x$ac_success = xno; then
  5499. for alternative in ${ax_cxx_compile_alternatives}; do
  5500. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  5501. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
  5502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
  5503. printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
  5504. if eval test \${$cachevar+y}
  5505. then :
  5506. printf %s "(cached) " >&6
  5507. else $as_nop
  5508. ac_save_CXX="$CXX"
  5509. CXX="$CXX $switch"
  5510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5511. /* end confdefs.h. */
  5512. // If the compiler admits that it is not ready for C++11, why torture it?
  5513. // Hopefully, this will speed up the test.
  5514. #ifndef __cplusplus
  5515. #error "This is not a C++ compiler"
  5516. #elif __cplusplus < 201103L
  5517. #error "This is not a C++11 compiler"
  5518. #else
  5519. namespace cxx11
  5520. {
  5521. namespace test_static_assert
  5522. {
  5523. template <typename T>
  5524. struct check
  5525. {
  5526. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5527. };
  5528. }
  5529. namespace test_final_override
  5530. {
  5531. struct Base
  5532. {
  5533. virtual ~Base() {}
  5534. virtual void f() {}
  5535. };
  5536. struct Derived : public Base
  5537. {
  5538. virtual ~Derived() override {}
  5539. virtual void f() override {}
  5540. };
  5541. }
  5542. namespace test_double_right_angle_brackets
  5543. {
  5544. template < typename T >
  5545. struct check {};
  5546. typedef check<void> single_type;
  5547. typedef check<check<void>> double_type;
  5548. typedef check<check<check<void>>> triple_type;
  5549. typedef check<check<check<check<void>>>> quadruple_type;
  5550. }
  5551. namespace test_decltype
  5552. {
  5553. int
  5554. f()
  5555. {
  5556. int a = 1;
  5557. decltype(a) b = 2;
  5558. return a + b;
  5559. }
  5560. }
  5561. namespace test_type_deduction
  5562. {
  5563. template < typename T1, typename T2 >
  5564. struct is_same
  5565. {
  5566. static const bool value = false;
  5567. };
  5568. template < typename T >
  5569. struct is_same<T, T>
  5570. {
  5571. static const bool value = true;
  5572. };
  5573. template < typename T1, typename T2 >
  5574. auto
  5575. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5576. {
  5577. return a1 + a2;
  5578. }
  5579. int
  5580. test(const int c, volatile int v)
  5581. {
  5582. static_assert(is_same<int, decltype(0)>::value == true, "");
  5583. static_assert(is_same<int, decltype(c)>::value == false, "");
  5584. static_assert(is_same<int, decltype(v)>::value == false, "");
  5585. auto ac = c;
  5586. auto av = v;
  5587. auto sumi = ac + av + 'x';
  5588. auto sumf = ac + av + 1.0;
  5589. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5590. static_assert(is_same<int, decltype(av)>::value == true, "");
  5591. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5592. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5593. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5594. return (sumf > 0.0) ? sumi : add(c, v);
  5595. }
  5596. }
  5597. namespace test_noexcept
  5598. {
  5599. int f() { return 0; }
  5600. int g() noexcept { return 0; }
  5601. static_assert(noexcept(f()) == false, "");
  5602. static_assert(noexcept(g()) == true, "");
  5603. }
  5604. namespace test_constexpr
  5605. {
  5606. template < typename CharT >
  5607. unsigned long constexpr
  5608. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5609. {
  5610. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5611. }
  5612. template < typename CharT >
  5613. unsigned long constexpr
  5614. strlen_c(const CharT *const s) noexcept
  5615. {
  5616. return strlen_c_r(s, 0UL);
  5617. }
  5618. static_assert(strlen_c("") == 0UL, "");
  5619. static_assert(strlen_c("1") == 1UL, "");
  5620. static_assert(strlen_c("example") == 7UL, "");
  5621. static_assert(strlen_c("another\0example") == 7UL, "");
  5622. }
  5623. namespace test_rvalue_references
  5624. {
  5625. template < int N >
  5626. struct answer
  5627. {
  5628. static constexpr int value = N;
  5629. };
  5630. answer<1> f(int&) { return answer<1>(); }
  5631. answer<2> f(const int&) { return answer<2>(); }
  5632. answer<3> f(int&&) { return answer<3>(); }
  5633. void
  5634. test()
  5635. {
  5636. int i = 0;
  5637. const int c = 0;
  5638. static_assert(decltype(f(i))::value == 1, "");
  5639. static_assert(decltype(f(c))::value == 2, "");
  5640. static_assert(decltype(f(0))::value == 3, "");
  5641. }
  5642. }
  5643. namespace test_uniform_initialization
  5644. {
  5645. struct test
  5646. {
  5647. static const int zero {};
  5648. static const int one {1};
  5649. };
  5650. static_assert(test::zero == 0, "");
  5651. static_assert(test::one == 1, "");
  5652. }
  5653. namespace test_lambdas
  5654. {
  5655. void
  5656. test1()
  5657. {
  5658. auto lambda1 = [](){};
  5659. auto lambda2 = lambda1;
  5660. lambda1();
  5661. lambda2();
  5662. }
  5663. int
  5664. test2()
  5665. {
  5666. auto a = [](int i, int j){ return i + j; }(1, 2);
  5667. auto b = []() -> int { return '0'; }();
  5668. auto c = [=](){ return a + b; }();
  5669. auto d = [&](){ return c; }();
  5670. auto e = [a, &b](int x) mutable {
  5671. const auto identity = [](int y){ return y; };
  5672. for (auto i = 0; i < a; ++i)
  5673. a += b--;
  5674. return x + identity(a + b);
  5675. }(0);
  5676. return a + b + c + d + e;
  5677. }
  5678. int
  5679. test3()
  5680. {
  5681. const auto nullary = [](){ return 0; };
  5682. const auto unary = [](int x){ return x; };
  5683. using nullary_t = decltype(nullary);
  5684. using unary_t = decltype(unary);
  5685. const auto higher1st = [](nullary_t f){ return f(); };
  5686. const auto higher2nd = [unary](nullary_t f1){
  5687. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5688. };
  5689. return higher1st(nullary) + higher2nd(nullary)(unary);
  5690. }
  5691. }
  5692. namespace test_variadic_templates
  5693. {
  5694. template <int...>
  5695. struct sum;
  5696. template <int N0, int... N1toN>
  5697. struct sum<N0, N1toN...>
  5698. {
  5699. static constexpr auto value = N0 + sum<N1toN...>::value;
  5700. };
  5701. template <>
  5702. struct sum<>
  5703. {
  5704. static constexpr auto value = 0;
  5705. };
  5706. static_assert(sum<>::value == 0, "");
  5707. static_assert(sum<1>::value == 1, "");
  5708. static_assert(sum<23>::value == 23, "");
  5709. static_assert(sum<1, 2>::value == 3, "");
  5710. static_assert(sum<5, 5, 11>::value == 21, "");
  5711. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5712. }
  5713. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5714. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5715. // because of this.
  5716. namespace test_template_alias_sfinae
  5717. {
  5718. struct foo {};
  5719. template<typename T>
  5720. using member = typename T::member_type;
  5721. template<typename T>
  5722. void func(...) {}
  5723. template<typename T>
  5724. void func(member<T>*) {}
  5725. void test();
  5726. void test() { func<foo>(0); }
  5727. }
  5728. } // namespace cxx11
  5729. #endif // __cplusplus >= 201103L
  5730. // If the compiler admits that it is not ready for C++14, why torture it?
  5731. // Hopefully, this will speed up the test.
  5732. #ifndef __cplusplus
  5733. #error "This is not a C++ compiler"
  5734. #elif __cplusplus < 201402L
  5735. #error "This is not a C++14 compiler"
  5736. #else
  5737. namespace cxx14
  5738. {
  5739. namespace test_polymorphic_lambdas
  5740. {
  5741. int
  5742. test()
  5743. {
  5744. const auto lambda = [](auto&&... args){
  5745. const auto istiny = [](auto x){
  5746. return (sizeof(x) == 1UL) ? 1 : 0;
  5747. };
  5748. const int aretiny[] = { istiny(args)... };
  5749. return aretiny[0];
  5750. };
  5751. return lambda(1, 1L, 1.0f, '1');
  5752. }
  5753. }
  5754. namespace test_binary_literals
  5755. {
  5756. constexpr auto ivii = 0b0000000000101010;
  5757. static_assert(ivii == 42, "wrong value");
  5758. }
  5759. namespace test_generalized_constexpr
  5760. {
  5761. template < typename CharT >
  5762. constexpr unsigned long
  5763. strlen_c(const CharT *const s) noexcept
  5764. {
  5765. auto length = 0UL;
  5766. for (auto p = s; *p; ++p)
  5767. ++length;
  5768. return length;
  5769. }
  5770. static_assert(strlen_c("") == 0UL, "");
  5771. static_assert(strlen_c("x") == 1UL, "");
  5772. static_assert(strlen_c("test") == 4UL, "");
  5773. static_assert(strlen_c("another\0test") == 7UL, "");
  5774. }
  5775. namespace test_lambda_init_capture
  5776. {
  5777. int
  5778. test()
  5779. {
  5780. auto x = 0;
  5781. const auto lambda1 = [a = x](int b){ return a + b; };
  5782. const auto lambda2 = [a = lambda1(x)](){ return a; };
  5783. return lambda2();
  5784. }
  5785. }
  5786. namespace test_digit_separators
  5787. {
  5788. constexpr auto ten_million = 100'000'000;
  5789. static_assert(ten_million == 100000000, "");
  5790. }
  5791. namespace test_return_type_deduction
  5792. {
  5793. auto f(int& x) { return x; }
  5794. decltype(auto) g(int& x) { return x; }
  5795. template < typename T1, typename T2 >
  5796. struct is_same
  5797. {
  5798. static constexpr auto value = false;
  5799. };
  5800. template < typename T >
  5801. struct is_same<T, T>
  5802. {
  5803. static constexpr auto value = true;
  5804. };
  5805. int
  5806. test()
  5807. {
  5808. auto x = 0;
  5809. static_assert(is_same<int, decltype(f(x))>::value, "");
  5810. static_assert(is_same<int&, decltype(g(x))>::value, "");
  5811. return x;
  5812. }
  5813. }
  5814. } // namespace cxx14
  5815. #endif // __cplusplus >= 201402L
  5816. // If the compiler admits that it is not ready for C++17, why torture it?
  5817. // Hopefully, this will speed up the test.
  5818. #ifndef __cplusplus
  5819. #error "This is not a C++ compiler"
  5820. #elif __cplusplus < 201703L
  5821. #error "This is not a C++17 compiler"
  5822. #else
  5823. #include <initializer_list>
  5824. #include <utility>
  5825. #include <type_traits>
  5826. namespace cxx17
  5827. {
  5828. namespace test_constexpr_lambdas
  5829. {
  5830. constexpr int foo = [](){return 42;}();
  5831. }
  5832. namespace test::nested_namespace::definitions
  5833. {
  5834. }
  5835. namespace test_fold_expression
  5836. {
  5837. template<typename... Args>
  5838. int multiply(Args... args)
  5839. {
  5840. return (args * ... * 1);
  5841. }
  5842. template<typename... Args>
  5843. bool all(Args... args)
  5844. {
  5845. return (args && ...);
  5846. }
  5847. }
  5848. namespace test_extended_static_assert
  5849. {
  5850. static_assert (true);
  5851. }
  5852. namespace test_auto_brace_init_list
  5853. {
  5854. auto foo = {5};
  5855. auto bar {5};
  5856. static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
  5857. static_assert(std::is_same<int, decltype(bar)>::value);
  5858. }
  5859. namespace test_typename_in_template_template_parameter
  5860. {
  5861. template<template<typename> typename X> struct D;
  5862. }
  5863. namespace test_fallthrough_nodiscard_maybe_unused_attributes
  5864. {
  5865. int f1()
  5866. {
  5867. return 42;
  5868. }
  5869. [[nodiscard]] int f2()
  5870. {
  5871. [[maybe_unused]] auto unused = f1();
  5872. switch (f1())
  5873. {
  5874. case 17:
  5875. f1();
  5876. [[fallthrough]];
  5877. case 42:
  5878. f1();
  5879. }
  5880. return f1();
  5881. }
  5882. }
  5883. namespace test_extended_aggregate_initialization
  5884. {
  5885. struct base1
  5886. {
  5887. int b1, b2 = 42;
  5888. };
  5889. struct base2
  5890. {
  5891. base2() {
  5892. b3 = 42;
  5893. }
  5894. int b3;
  5895. };
  5896. struct derived : base1, base2
  5897. {
  5898. int d;
  5899. };
  5900. derived d1 {{1, 2}, {}, 4}; // full initialization
  5901. derived d2 {{}, {}, 4}; // value-initialized bases
  5902. }
  5903. namespace test_general_range_based_for_loop
  5904. {
  5905. struct iter
  5906. {
  5907. int i;
  5908. int& operator* ()
  5909. {
  5910. return i;
  5911. }
  5912. const int& operator* () const
  5913. {
  5914. return i;
  5915. }
  5916. iter& operator++()
  5917. {
  5918. ++i;
  5919. return *this;
  5920. }
  5921. };
  5922. struct sentinel
  5923. {
  5924. int i;
  5925. };
  5926. bool operator== (const iter& i, const sentinel& s)
  5927. {
  5928. return i.i == s.i;
  5929. }
  5930. bool operator!= (const iter& i, const sentinel& s)
  5931. {
  5932. return !(i == s);
  5933. }
  5934. struct range
  5935. {
  5936. iter begin() const
  5937. {
  5938. return {0};
  5939. }
  5940. sentinel end() const
  5941. {
  5942. return {5};
  5943. }
  5944. };
  5945. void f()
  5946. {
  5947. range r {};
  5948. for (auto i : r)
  5949. {
  5950. [[maybe_unused]] auto v = i;
  5951. }
  5952. }
  5953. }
  5954. namespace test_lambda_capture_asterisk_this_by_value
  5955. {
  5956. struct t
  5957. {
  5958. int i;
  5959. int foo()
  5960. {
  5961. return [*this]()
  5962. {
  5963. return i;
  5964. }();
  5965. }
  5966. };
  5967. }
  5968. namespace test_enum_class_construction
  5969. {
  5970. enum class byte : unsigned char
  5971. {};
  5972. byte foo {42};
  5973. }
  5974. namespace test_constexpr_if
  5975. {
  5976. template <bool cond>
  5977. int f ()
  5978. {
  5979. if constexpr(cond)
  5980. {
  5981. return 13;
  5982. }
  5983. else
  5984. {
  5985. return 42;
  5986. }
  5987. }
  5988. }
  5989. namespace test_selection_statement_with_initializer
  5990. {
  5991. int f()
  5992. {
  5993. return 13;
  5994. }
  5995. int f2()
  5996. {
  5997. if (auto i = f(); i > 0)
  5998. {
  5999. return 3;
  6000. }
  6001. switch (auto i = f(); i + 4)
  6002. {
  6003. case 17:
  6004. return 2;
  6005. default:
  6006. return 1;
  6007. }
  6008. }
  6009. }
  6010. namespace test_template_argument_deduction_for_class_templates
  6011. {
  6012. template <typename T1, typename T2>
  6013. struct pair
  6014. {
  6015. pair (T1 p1, T2 p2)
  6016. : m1 {p1},
  6017. m2 {p2}
  6018. {}
  6019. T1 m1;
  6020. T2 m2;
  6021. };
  6022. void f()
  6023. {
  6024. [[maybe_unused]] auto p = pair{13, 42u};
  6025. }
  6026. }
  6027. namespace test_non_type_auto_template_parameters
  6028. {
  6029. template <auto n>
  6030. struct B
  6031. {};
  6032. B<5> b1;
  6033. B<'a'> b2;
  6034. }
  6035. namespace test_structured_bindings
  6036. {
  6037. int arr[2] = { 1, 2 };
  6038. std::pair<int, int> pr = { 1, 2 };
  6039. auto f1() -> int(&)[2]
  6040. {
  6041. return arr;
  6042. }
  6043. auto f2() -> std::pair<int, int>&
  6044. {
  6045. return pr;
  6046. }
  6047. struct S
  6048. {
  6049. int x1 : 2;
  6050. volatile double y1;
  6051. };
  6052. S f3()
  6053. {
  6054. return {};
  6055. }
  6056. auto [ x1, y1 ] = f1();
  6057. auto& [ xr1, yr1 ] = f1();
  6058. auto [ x2, y2 ] = f2();
  6059. auto& [ xr2, yr2 ] = f2();
  6060. const auto [ x3, y3 ] = f3();
  6061. }
  6062. namespace test_exception_spec_type_system
  6063. {
  6064. struct Good {};
  6065. struct Bad {};
  6066. void g1() noexcept;
  6067. void g2();
  6068. template<typename T>
  6069. Bad
  6070. f(T*, T*);
  6071. template<typename T1, typename T2>
  6072. Good
  6073. f(T1*, T2*);
  6074. static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
  6075. }
  6076. namespace test_inline_variables
  6077. {
  6078. template<class T> void f(T)
  6079. {}
  6080. template<class T> inline T g(T)
  6081. {
  6082. return T{};
  6083. }
  6084. template<> inline void f<>(int)
  6085. {}
  6086. template<> int g<>(int)
  6087. {
  6088. return 5;
  6089. }
  6090. }
  6091. } // namespace cxx17
  6092. #endif // __cplusplus < 201703L
  6093. _ACEOF
  6094. if ac_fn_cxx_try_compile "$LINENO"
  6095. then :
  6096. eval $cachevar=yes
  6097. else $as_nop
  6098. eval $cachevar=no
  6099. fi
  6100. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6101. CXX="$ac_save_CXX"
  6102. fi
  6103. eval ac_res=\$$cachevar
  6104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6105. printf "%s\n" "$ac_res" >&6; }
  6106. if eval test x\$$cachevar = xyes; then
  6107. CXX="$CXX $switch"
  6108. if test -n "$CXXCPP" ; then
  6109. CXXCPP="$CXXCPP $switch"
  6110. fi
  6111. ac_success=yes
  6112. break
  6113. fi
  6114. done
  6115. if test x$ac_success = xyes; then
  6116. break
  6117. fi
  6118. done
  6119. fi
  6120. ac_ext=c
  6121. ac_cpp='$CPP $CPPFLAGS'
  6122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6125. if test x$ax_cxx_compile_cxx17_required = xtrue; then
  6126. if test x$ac_success = xno; then
  6127. as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
  6128. fi
  6129. fi
  6130. if test x$ac_success = xno; then
  6131. HAVE_CXX17=0
  6132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
  6133. printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
  6134. else
  6135. HAVE_CXX17=1
  6136. printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
  6137. fi
  6138. if test "x${HAVE_CXX17}" != "x1"; then
  6139. ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=false
  6140. ac_ext=cpp
  6141. ac_cpp='$CXXCPP $CPPFLAGS'
  6142. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6143. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6144. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6145. ac_success=no
  6146. if test x$ac_success = xno; then
  6147. for alternative in ${ax_cxx_compile_alternatives}; do
  6148. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  6149. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
  6150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
  6151. printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
  6152. if eval test \${$cachevar+y}
  6153. then :
  6154. printf %s "(cached) " >&6
  6155. else $as_nop
  6156. ac_save_CXX="$CXX"
  6157. CXX="$CXX $switch"
  6158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6159. /* end confdefs.h. */
  6160. // If the compiler admits that it is not ready for C++11, why torture it?
  6161. // Hopefully, this will speed up the test.
  6162. #ifndef __cplusplus
  6163. #error "This is not a C++ compiler"
  6164. #elif __cplusplus < 201103L
  6165. #error "This is not a C++11 compiler"
  6166. #else
  6167. namespace cxx11
  6168. {
  6169. namespace test_static_assert
  6170. {
  6171. template <typename T>
  6172. struct check
  6173. {
  6174. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  6175. };
  6176. }
  6177. namespace test_final_override
  6178. {
  6179. struct Base
  6180. {
  6181. virtual ~Base() {}
  6182. virtual void f() {}
  6183. };
  6184. struct Derived : public Base
  6185. {
  6186. virtual ~Derived() override {}
  6187. virtual void f() override {}
  6188. };
  6189. }
  6190. namespace test_double_right_angle_brackets
  6191. {
  6192. template < typename T >
  6193. struct check {};
  6194. typedef check<void> single_type;
  6195. typedef check<check<void>> double_type;
  6196. typedef check<check<check<void>>> triple_type;
  6197. typedef check<check<check<check<void>>>> quadruple_type;
  6198. }
  6199. namespace test_decltype
  6200. {
  6201. int
  6202. f()
  6203. {
  6204. int a = 1;
  6205. decltype(a) b = 2;
  6206. return a + b;
  6207. }
  6208. }
  6209. namespace test_type_deduction
  6210. {
  6211. template < typename T1, typename T2 >
  6212. struct is_same
  6213. {
  6214. static const bool value = false;
  6215. };
  6216. template < typename T >
  6217. struct is_same<T, T>
  6218. {
  6219. static const bool value = true;
  6220. };
  6221. template < typename T1, typename T2 >
  6222. auto
  6223. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  6224. {
  6225. return a1 + a2;
  6226. }
  6227. int
  6228. test(const int c, volatile int v)
  6229. {
  6230. static_assert(is_same<int, decltype(0)>::value == true, "");
  6231. static_assert(is_same<int, decltype(c)>::value == false, "");
  6232. static_assert(is_same<int, decltype(v)>::value == false, "");
  6233. auto ac = c;
  6234. auto av = v;
  6235. auto sumi = ac + av + 'x';
  6236. auto sumf = ac + av + 1.0;
  6237. static_assert(is_same<int, decltype(ac)>::value == true, "");
  6238. static_assert(is_same<int, decltype(av)>::value == true, "");
  6239. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  6240. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  6241. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  6242. return (sumf > 0.0) ? sumi : add(c, v);
  6243. }
  6244. }
  6245. namespace test_noexcept
  6246. {
  6247. int f() { return 0; }
  6248. int g() noexcept { return 0; }
  6249. static_assert(noexcept(f()) == false, "");
  6250. static_assert(noexcept(g()) == true, "");
  6251. }
  6252. namespace test_constexpr
  6253. {
  6254. template < typename CharT >
  6255. unsigned long constexpr
  6256. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  6257. {
  6258. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  6259. }
  6260. template < typename CharT >
  6261. unsigned long constexpr
  6262. strlen_c(const CharT *const s) noexcept
  6263. {
  6264. return strlen_c_r(s, 0UL);
  6265. }
  6266. static_assert(strlen_c("") == 0UL, "");
  6267. static_assert(strlen_c("1") == 1UL, "");
  6268. static_assert(strlen_c("example") == 7UL, "");
  6269. static_assert(strlen_c("another\0example") == 7UL, "");
  6270. }
  6271. namespace test_rvalue_references
  6272. {
  6273. template < int N >
  6274. struct answer
  6275. {
  6276. static constexpr int value = N;
  6277. };
  6278. answer<1> f(int&) { return answer<1>(); }
  6279. answer<2> f(const int&) { return answer<2>(); }
  6280. answer<3> f(int&&) { return answer<3>(); }
  6281. void
  6282. test()
  6283. {
  6284. int i = 0;
  6285. const int c = 0;
  6286. static_assert(decltype(f(i))::value == 1, "");
  6287. static_assert(decltype(f(c))::value == 2, "");
  6288. static_assert(decltype(f(0))::value == 3, "");
  6289. }
  6290. }
  6291. namespace test_uniform_initialization
  6292. {
  6293. struct test
  6294. {
  6295. static const int zero {};
  6296. static const int one {1};
  6297. };
  6298. static_assert(test::zero == 0, "");
  6299. static_assert(test::one == 1, "");
  6300. }
  6301. namespace test_lambdas
  6302. {
  6303. void
  6304. test1()
  6305. {
  6306. auto lambda1 = [](){};
  6307. auto lambda2 = lambda1;
  6308. lambda1();
  6309. lambda2();
  6310. }
  6311. int
  6312. test2()
  6313. {
  6314. auto a = [](int i, int j){ return i + j; }(1, 2);
  6315. auto b = []() -> int { return '0'; }();
  6316. auto c = [=](){ return a + b; }();
  6317. auto d = [&](){ return c; }();
  6318. auto e = [a, &b](int x) mutable {
  6319. const auto identity = [](int y){ return y; };
  6320. for (auto i = 0; i < a; ++i)
  6321. a += b--;
  6322. return x + identity(a + b);
  6323. }(0);
  6324. return a + b + c + d + e;
  6325. }
  6326. int
  6327. test3()
  6328. {
  6329. const auto nullary = [](){ return 0; };
  6330. const auto unary = [](int x){ return x; };
  6331. using nullary_t = decltype(nullary);
  6332. using unary_t = decltype(unary);
  6333. const auto higher1st = [](nullary_t f){ return f(); };
  6334. const auto higher2nd = [unary](nullary_t f1){
  6335. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  6336. };
  6337. return higher1st(nullary) + higher2nd(nullary)(unary);
  6338. }
  6339. }
  6340. namespace test_variadic_templates
  6341. {
  6342. template <int...>
  6343. struct sum;
  6344. template <int N0, int... N1toN>
  6345. struct sum<N0, N1toN...>
  6346. {
  6347. static constexpr auto value = N0 + sum<N1toN...>::value;
  6348. };
  6349. template <>
  6350. struct sum<>
  6351. {
  6352. static constexpr auto value = 0;
  6353. };
  6354. static_assert(sum<>::value == 0, "");
  6355. static_assert(sum<1>::value == 1, "");
  6356. static_assert(sum<23>::value == 23, "");
  6357. static_assert(sum<1, 2>::value == 3, "");
  6358. static_assert(sum<5, 5, 11>::value == 21, "");
  6359. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  6360. }
  6361. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  6362. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  6363. // because of this.
  6364. namespace test_template_alias_sfinae
  6365. {
  6366. struct foo {};
  6367. template<typename T>
  6368. using member = typename T::member_type;
  6369. template<typename T>
  6370. void func(...) {}
  6371. template<typename T>
  6372. void func(member<T>*) {}
  6373. void test();
  6374. void test() { func<foo>(0); }
  6375. }
  6376. } // namespace cxx11
  6377. #endif // __cplusplus >= 201103L
  6378. // If the compiler admits that it is not ready for C++14, why torture it?
  6379. // Hopefully, this will speed up the test.
  6380. #ifndef __cplusplus
  6381. #error "This is not a C++ compiler"
  6382. #elif __cplusplus < 201402L
  6383. #error "This is not a C++14 compiler"
  6384. #else
  6385. namespace cxx14
  6386. {
  6387. namespace test_polymorphic_lambdas
  6388. {
  6389. int
  6390. test()
  6391. {
  6392. const auto lambda = [](auto&&... args){
  6393. const auto istiny = [](auto x){
  6394. return (sizeof(x) == 1UL) ? 1 : 0;
  6395. };
  6396. const int aretiny[] = { istiny(args)... };
  6397. return aretiny[0];
  6398. };
  6399. return lambda(1, 1L, 1.0f, '1');
  6400. }
  6401. }
  6402. namespace test_binary_literals
  6403. {
  6404. constexpr auto ivii = 0b0000000000101010;
  6405. static_assert(ivii == 42, "wrong value");
  6406. }
  6407. namespace test_generalized_constexpr
  6408. {
  6409. template < typename CharT >
  6410. constexpr unsigned long
  6411. strlen_c(const CharT *const s) noexcept
  6412. {
  6413. auto length = 0UL;
  6414. for (auto p = s; *p; ++p)
  6415. ++length;
  6416. return length;
  6417. }
  6418. static_assert(strlen_c("") == 0UL, "");
  6419. static_assert(strlen_c("x") == 1UL, "");
  6420. static_assert(strlen_c("test") == 4UL, "");
  6421. static_assert(strlen_c("another\0test") == 7UL, "");
  6422. }
  6423. namespace test_lambda_init_capture
  6424. {
  6425. int
  6426. test()
  6427. {
  6428. auto x = 0;
  6429. const auto lambda1 = [a = x](int b){ return a + b; };
  6430. const auto lambda2 = [a = lambda1(x)](){ return a; };
  6431. return lambda2();
  6432. }
  6433. }
  6434. namespace test_digit_separators
  6435. {
  6436. constexpr auto ten_million = 100'000'000;
  6437. static_assert(ten_million == 100000000, "");
  6438. }
  6439. namespace test_return_type_deduction
  6440. {
  6441. auto f(int& x) { return x; }
  6442. decltype(auto) g(int& x) { return x; }
  6443. template < typename T1, typename T2 >
  6444. struct is_same
  6445. {
  6446. static constexpr auto value = false;
  6447. };
  6448. template < typename T >
  6449. struct is_same<T, T>
  6450. {
  6451. static constexpr auto value = true;
  6452. };
  6453. int
  6454. test()
  6455. {
  6456. auto x = 0;
  6457. static_assert(is_same<int, decltype(f(x))>::value, "");
  6458. static_assert(is_same<int&, decltype(g(x))>::value, "");
  6459. return x;
  6460. }
  6461. }
  6462. } // namespace cxx14
  6463. #endif // __cplusplus >= 201402L
  6464. _ACEOF
  6465. if ac_fn_cxx_try_compile "$LINENO"
  6466. then :
  6467. eval $cachevar=yes
  6468. else $as_nop
  6469. eval $cachevar=no
  6470. fi
  6471. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6472. CXX="$ac_save_CXX"
  6473. fi
  6474. eval ac_res=\$$cachevar
  6475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6476. printf "%s\n" "$ac_res" >&6; }
  6477. if eval test x\$$cachevar = xyes; then
  6478. CXX="$CXX $switch"
  6479. if test -n "$CXXCPP" ; then
  6480. CXXCPP="$CXXCPP $switch"
  6481. fi
  6482. ac_success=yes
  6483. break
  6484. fi
  6485. done
  6486. if test x$ac_success = xyes; then
  6487. break
  6488. fi
  6489. done
  6490. fi
  6491. ac_ext=c
  6492. ac_cpp='$CPP $CPPFLAGS'
  6493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6496. if test x$ax_cxx_compile_cxx14_required = xtrue; then
  6497. if test x$ac_success = xno; then
  6498. as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
  6499. fi
  6500. fi
  6501. if test x$ac_success = xno; then
  6502. HAVE_CXX14=0
  6503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
  6504. printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;}
  6505. else
  6506. HAVE_CXX14=1
  6507. printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h
  6508. fi
  6509. fi
  6510. if test "x${HAVE_CXX14}" = "x1" -o "x${HAVE_CXX17}" = "x1"; then
  6511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
  6512. printf %s "checking whether compiler supports -Wall... " >&6; }
  6513. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  6514. T_APPEND_V=-Wall
  6515. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6516. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  6517. else
  6518. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  6519. fi
  6520. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6521. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6522. else
  6523. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6524. fi
  6525. ac_ext=cpp
  6526. ac_cpp='$CXXCPP $CPPFLAGS'
  6527. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6528. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6529. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6531. /* end confdefs.h. */
  6532. int
  6533. main (void)
  6534. {
  6535. return 0;
  6536. ;
  6537. return 0;
  6538. }
  6539. _ACEOF
  6540. if ac_fn_cxx_try_compile "$LINENO"
  6541. then :
  6542. je_cv_cxxflags_added=-Wall
  6543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6544. printf "%s\n" "yes" >&6; }
  6545. else $as_nop
  6546. je_cv_cxxflags_added=
  6547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6548. printf "%s\n" "no" >&6; }
  6549. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  6550. fi
  6551. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6552. ac_ext=c
  6553. ac_cpp='$CPP $CPPFLAGS'
  6554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6557. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6558. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6559. else
  6560. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6561. fi
  6562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
  6563. printf %s "checking whether compiler supports -Wextra... " >&6; }
  6564. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  6565. T_APPEND_V=-Wextra
  6566. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6567. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  6568. else
  6569. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  6570. fi
  6571. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6572. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6573. else
  6574. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6575. fi
  6576. ac_ext=cpp
  6577. ac_cpp='$CXXCPP $CPPFLAGS'
  6578. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6579. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6580. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6582. /* end confdefs.h. */
  6583. int
  6584. main (void)
  6585. {
  6586. return 0;
  6587. ;
  6588. return 0;
  6589. }
  6590. _ACEOF
  6591. if ac_fn_cxx_try_compile "$LINENO"
  6592. then :
  6593. je_cv_cxxflags_added=-Wextra
  6594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6595. printf "%s\n" "yes" >&6; }
  6596. else $as_nop
  6597. je_cv_cxxflags_added=
  6598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. printf "%s\n" "no" >&6; }
  6600. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  6601. fi
  6602. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6603. ac_ext=c
  6604. ac_cpp='$CPP $CPPFLAGS'
  6605. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6606. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6607. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6608. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6609. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6610. else
  6611. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6612. fi
  6613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
  6614. printf %s "checking whether compiler supports -g3... " >&6; }
  6615. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  6616. T_APPEND_V=-g3
  6617. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6618. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  6619. else
  6620. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  6621. fi
  6622. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6623. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6624. else
  6625. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6626. fi
  6627. ac_ext=cpp
  6628. ac_cpp='$CXXCPP $CPPFLAGS'
  6629. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6630. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6631. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6633. /* end confdefs.h. */
  6634. int
  6635. main (void)
  6636. {
  6637. return 0;
  6638. ;
  6639. return 0;
  6640. }
  6641. _ACEOF
  6642. if ac_fn_cxx_try_compile "$LINENO"
  6643. then :
  6644. je_cv_cxxflags_added=-g3
  6645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6646. printf "%s\n" "yes" >&6; }
  6647. else $as_nop
  6648. je_cv_cxxflags_added=
  6649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6650. printf "%s\n" "no" >&6; }
  6651. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  6652. fi
  6653. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6654. ac_ext=c
  6655. ac_cpp='$CPP $CPPFLAGS'
  6656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6659. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6660. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6661. else
  6662. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6663. fi
  6664. SAVED_LIBS="${LIBS}"
  6665. T_APPEND_V=-lstdc++
  6666. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6667. LIBS="${LIBS}${T_APPEND_V}"
  6668. else
  6669. LIBS="${LIBS} ${T_APPEND_V}"
  6670. fi
  6671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
  6672. printf %s "checking whether libstdc++ linkage is compilable... " >&6; }
  6673. if test ${je_cv_libstdcxx+y}
  6674. then :
  6675. printf %s "(cached) " >&6
  6676. else $as_nop
  6677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6678. /* end confdefs.h. */
  6679. #include <stdlib.h>
  6680. int
  6681. main (void)
  6682. {
  6683. int *arr = (int *)malloc(sizeof(int) * 42);
  6684. if (arr == NULL)
  6685. return 1;
  6686. ;
  6687. return 0;
  6688. }
  6689. _ACEOF
  6690. if ac_fn_c_try_link "$LINENO"
  6691. then :
  6692. je_cv_libstdcxx=yes
  6693. else $as_nop
  6694. je_cv_libstdcxx=no
  6695. fi
  6696. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6697. conftest$ac_exeext conftest.$ac_ext
  6698. fi
  6699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
  6700. printf "%s\n" "$je_cv_libstdcxx" >&6; }
  6701. if test "x${je_cv_libstdcxx}" = "xno" ; then
  6702. LIBS="${SAVED_LIBS}"
  6703. fi
  6704. else
  6705. enable_cxx="0"
  6706. fi
  6707. fi
  6708. if test "x$enable_cxx" = "x1"; then
  6709. printf "%s\n" "#define JEMALLOC_ENABLE_CXX " >>confdefs.h
  6710. fi
  6711. ac_header= ac_cache=
  6712. for ac_item in $ac_header_c_list
  6713. do
  6714. if test $ac_cache; then
  6715. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  6716. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  6717. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  6718. fi
  6719. ac_header= ac_cache=
  6720. elif test $ac_header; then
  6721. ac_cache=$ac_item
  6722. else
  6723. ac_header=$ac_item
  6724. fi
  6725. done
  6726. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  6727. then :
  6728. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  6729. fi
  6730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6731. printf %s "checking whether byte ordering is bigendian... " >&6; }
  6732. if test ${ac_cv_c_bigendian+y}
  6733. then :
  6734. printf %s "(cached) " >&6
  6735. else $as_nop
  6736. ac_cv_c_bigendian=unknown
  6737. # See if we're dealing with a universal compiler.
  6738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6739. /* end confdefs.h. */
  6740. #ifndef __APPLE_CC__
  6741. not a universal capable compiler
  6742. #endif
  6743. typedef int dummy;
  6744. _ACEOF
  6745. if ac_fn_c_try_compile "$LINENO"
  6746. then :
  6747. # Check for potential -arch flags. It is not universal unless
  6748. # there are at least two -arch flags with different values.
  6749. ac_arch=
  6750. ac_prev=
  6751. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6752. if test -n "$ac_prev"; then
  6753. case $ac_word in
  6754. i?86 | x86_64 | ppc | ppc64)
  6755. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6756. ac_arch=$ac_word
  6757. else
  6758. ac_cv_c_bigendian=universal
  6759. break
  6760. fi
  6761. ;;
  6762. esac
  6763. ac_prev=
  6764. elif test "x$ac_word" = "x-arch"; then
  6765. ac_prev=arch
  6766. fi
  6767. done
  6768. fi
  6769. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6770. if test $ac_cv_c_bigendian = unknown; then
  6771. # See if sys/param.h defines the BYTE_ORDER macro.
  6772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6773. /* end confdefs.h. */
  6774. #include <sys/types.h>
  6775. #include <sys/param.h>
  6776. int
  6777. main (void)
  6778. {
  6779. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6780. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6781. && LITTLE_ENDIAN)
  6782. bogus endian macros
  6783. #endif
  6784. ;
  6785. return 0;
  6786. }
  6787. _ACEOF
  6788. if ac_fn_c_try_compile "$LINENO"
  6789. then :
  6790. # It does; now see whether it defined to BIG_ENDIAN or not.
  6791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6792. /* end confdefs.h. */
  6793. #include <sys/types.h>
  6794. #include <sys/param.h>
  6795. int
  6796. main (void)
  6797. {
  6798. #if BYTE_ORDER != BIG_ENDIAN
  6799. not big endian
  6800. #endif
  6801. ;
  6802. return 0;
  6803. }
  6804. _ACEOF
  6805. if ac_fn_c_try_compile "$LINENO"
  6806. then :
  6807. ac_cv_c_bigendian=yes
  6808. else $as_nop
  6809. ac_cv_c_bigendian=no
  6810. fi
  6811. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6812. fi
  6813. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6814. fi
  6815. if test $ac_cv_c_bigendian = unknown; then
  6816. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6818. /* end confdefs.h. */
  6819. #include <limits.h>
  6820. int
  6821. main (void)
  6822. {
  6823. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6824. bogus endian macros
  6825. #endif
  6826. ;
  6827. return 0;
  6828. }
  6829. _ACEOF
  6830. if ac_fn_c_try_compile "$LINENO"
  6831. then :
  6832. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6834. /* end confdefs.h. */
  6835. #include <limits.h>
  6836. int
  6837. main (void)
  6838. {
  6839. #ifndef _BIG_ENDIAN
  6840. not big endian
  6841. #endif
  6842. ;
  6843. return 0;
  6844. }
  6845. _ACEOF
  6846. if ac_fn_c_try_compile "$LINENO"
  6847. then :
  6848. ac_cv_c_bigendian=yes
  6849. else $as_nop
  6850. ac_cv_c_bigendian=no
  6851. fi
  6852. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6853. fi
  6854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6855. fi
  6856. if test $ac_cv_c_bigendian = unknown; then
  6857. # Compile a test program.
  6858. if test "$cross_compiling" = yes
  6859. then :
  6860. # Try to guess by grepping values from an object file.
  6861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6862. /* end confdefs.h. */
  6863. unsigned short int ascii_mm[] =
  6864. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6865. unsigned short int ascii_ii[] =
  6866. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6867. int use_ascii (int i) {
  6868. return ascii_mm[i] + ascii_ii[i];
  6869. }
  6870. unsigned short int ebcdic_ii[] =
  6871. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6872. unsigned short int ebcdic_mm[] =
  6873. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6874. int use_ebcdic (int i) {
  6875. return ebcdic_mm[i] + ebcdic_ii[i];
  6876. }
  6877. extern int foo;
  6878. int
  6879. main (void)
  6880. {
  6881. return use_ascii (foo) == use_ebcdic (foo);
  6882. ;
  6883. return 0;
  6884. }
  6885. _ACEOF
  6886. if ac_fn_c_try_compile "$LINENO"
  6887. then :
  6888. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6889. ac_cv_c_bigendian=yes
  6890. fi
  6891. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6892. if test "$ac_cv_c_bigendian" = unknown; then
  6893. ac_cv_c_bigendian=no
  6894. else
  6895. # finding both strings is unlikely to happen, but who knows?
  6896. ac_cv_c_bigendian=unknown
  6897. fi
  6898. fi
  6899. fi
  6900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6901. else $as_nop
  6902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6903. /* end confdefs.h. */
  6904. $ac_includes_default
  6905. int
  6906. main (void)
  6907. {
  6908. /* Are we little or big endian? From Harbison&Steele. */
  6909. union
  6910. {
  6911. long int l;
  6912. char c[sizeof (long int)];
  6913. } u;
  6914. u.l = 1;
  6915. return u.c[sizeof (long int) - 1] == 1;
  6916. ;
  6917. return 0;
  6918. }
  6919. _ACEOF
  6920. if ac_fn_c_try_run "$LINENO"
  6921. then :
  6922. ac_cv_c_bigendian=no
  6923. else $as_nop
  6924. ac_cv_c_bigendian=yes
  6925. fi
  6926. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6927. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6928. fi
  6929. fi
  6930. fi
  6931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6932. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  6933. case $ac_cv_c_bigendian in #(
  6934. yes)
  6935. ac_cv_big_endian=1;; #(
  6936. no)
  6937. ac_cv_big_endian=0 ;; #(
  6938. universal)
  6939. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  6940. ;; #(
  6941. *)
  6942. as_fn_error $? "unknown endianness
  6943. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6944. esac
  6945. if test "x${ac_cv_big_endian}" = "x1" ; then
  6946. printf "%s\n" "#define JEMALLOC_BIG_ENDIAN " >>confdefs.h
  6947. fi
  6948. if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
  6949. T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
  6950. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6951. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6952. else
  6953. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6954. fi
  6955. fi
  6956. if test "x${je_cv_msvc}" = "xyes" ; then
  6957. LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
  6958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
  6959. printf "%s\n" "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
  6960. else
  6961. # The cast to long int works around a bug in the HP C Compiler
  6962. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6963. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6964. # This bug is HP SR number 8606223364.
  6965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  6966. printf %s "checking size of void *... " >&6; }
  6967. if test ${ac_cv_sizeof_void_p+y}
  6968. then :
  6969. printf %s "(cached) " >&6
  6970. else $as_nop
  6971. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
  6972. then :
  6973. else $as_nop
  6974. if test "$ac_cv_type_void_p" = yes; then
  6975. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6976. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  6977. as_fn_error 77 "cannot compute sizeof (void *)
  6978. See \`config.log' for more details" "$LINENO" 5; }
  6979. else
  6980. ac_cv_sizeof_void_p=0
  6981. fi
  6982. fi
  6983. fi
  6984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  6985. printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
  6986. printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
  6987. if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
  6988. LG_SIZEOF_PTR=3
  6989. elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
  6990. LG_SIZEOF_PTR=2
  6991. else
  6992. as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
  6993. fi
  6994. fi
  6995. printf "%s\n" "#define LG_SIZEOF_PTR $LG_SIZEOF_PTR" >>confdefs.h
  6996. # The cast to long int works around a bug in the HP C Compiler
  6997. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6998. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6999. # This bug is HP SR number 8606223364.
  7000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  7001. printf %s "checking size of int... " >&6; }
  7002. if test ${ac_cv_sizeof_int+y}
  7003. then :
  7004. printf %s "(cached) " >&6
  7005. else $as_nop
  7006. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
  7007. then :
  7008. else $as_nop
  7009. if test "$ac_cv_type_int" = yes; then
  7010. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7011. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7012. as_fn_error 77 "cannot compute sizeof (int)
  7013. See \`config.log' for more details" "$LINENO" 5; }
  7014. else
  7015. ac_cv_sizeof_int=0
  7016. fi
  7017. fi
  7018. fi
  7019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  7020. printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  7021. printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
  7022. if test "x${ac_cv_sizeof_int}" = "x8" ; then
  7023. LG_SIZEOF_INT=3
  7024. elif test "x${ac_cv_sizeof_int}" = "x4" ; then
  7025. LG_SIZEOF_INT=2
  7026. else
  7027. as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
  7028. fi
  7029. printf "%s\n" "#define LG_SIZEOF_INT $LG_SIZEOF_INT" >>confdefs.h
  7030. # The cast to long int works around a bug in the HP C Compiler
  7031. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7032. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7033. # This bug is HP SR number 8606223364.
  7034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  7035. printf %s "checking size of long... " >&6; }
  7036. if test ${ac_cv_sizeof_long+y}
  7037. then :
  7038. printf %s "(cached) " >&6
  7039. else $as_nop
  7040. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
  7041. then :
  7042. else $as_nop
  7043. if test "$ac_cv_type_long" = yes; then
  7044. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7045. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7046. as_fn_error 77 "cannot compute sizeof (long)
  7047. See \`config.log' for more details" "$LINENO" 5; }
  7048. else
  7049. ac_cv_sizeof_long=0
  7050. fi
  7051. fi
  7052. fi
  7053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  7054. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  7055. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  7056. if test "x${ac_cv_sizeof_long}" = "x8" ; then
  7057. LG_SIZEOF_LONG=3
  7058. elif test "x${ac_cv_sizeof_long}" = "x4" ; then
  7059. LG_SIZEOF_LONG=2
  7060. else
  7061. as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
  7062. fi
  7063. printf "%s\n" "#define LG_SIZEOF_LONG $LG_SIZEOF_LONG" >>confdefs.h
  7064. # The cast to long int works around a bug in the HP C Compiler
  7065. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7066. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7067. # This bug is HP SR number 8606223364.
  7068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  7069. printf %s "checking size of long long... " >&6; }
  7070. if test ${ac_cv_sizeof_long_long+y}
  7071. then :
  7072. printf %s "(cached) " >&6
  7073. else $as_nop
  7074. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
  7075. then :
  7076. else $as_nop
  7077. if test "$ac_cv_type_long_long" = yes; then
  7078. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7079. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7080. as_fn_error 77 "cannot compute sizeof (long long)
  7081. See \`config.log' for more details" "$LINENO" 5; }
  7082. else
  7083. ac_cv_sizeof_long_long=0
  7084. fi
  7085. fi
  7086. fi
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  7088. printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
  7089. printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
  7090. if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
  7091. LG_SIZEOF_LONG_LONG=3
  7092. elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
  7093. LG_SIZEOF_LONG_LONG=2
  7094. else
  7095. as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
  7096. fi
  7097. printf "%s\n" "#define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG" >>confdefs.h
  7098. # The cast to long int works around a bug in the HP C Compiler
  7099. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7100. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7101. # This bug is HP SR number 8606223364.
  7102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
  7103. printf %s "checking size of intmax_t... " >&6; }
  7104. if test ${ac_cv_sizeof_intmax_t+y}
  7105. then :
  7106. printf %s "(cached) " >&6
  7107. else $as_nop
  7108. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"
  7109. then :
  7110. else $as_nop
  7111. if test "$ac_cv_type_intmax_t" = yes; then
  7112. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7113. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7114. as_fn_error 77 "cannot compute sizeof (intmax_t)
  7115. See \`config.log' for more details" "$LINENO" 5; }
  7116. else
  7117. ac_cv_sizeof_intmax_t=0
  7118. fi
  7119. fi
  7120. fi
  7121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
  7122. printf "%s\n" "$ac_cv_sizeof_intmax_t" >&6; }
  7123. printf "%s\n" "#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t" >>confdefs.h
  7124. if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
  7125. LG_SIZEOF_INTMAX_T=4
  7126. elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
  7127. LG_SIZEOF_INTMAX_T=3
  7128. elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
  7129. LG_SIZEOF_INTMAX_T=2
  7130. else
  7131. as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
  7132. fi
  7133. printf "%s\n" "#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T" >>confdefs.h
  7134. # Make sure we can run config.sub.
  7135. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  7136. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  7137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  7138. printf %s "checking build system type... " >&6; }
  7139. if test ${ac_cv_build+y}
  7140. then :
  7141. printf %s "(cached) " >&6
  7142. else $as_nop
  7143. ac_build_alias=$build_alias
  7144. test "x$ac_build_alias" = x &&
  7145. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  7146. test "x$ac_build_alias" = x &&
  7147. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  7148. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  7149. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  7150. fi
  7151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  7152. printf "%s\n" "$ac_cv_build" >&6; }
  7153. case $ac_cv_build in
  7154. *-*-*) ;;
  7155. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  7156. esac
  7157. build=$ac_cv_build
  7158. ac_save_IFS=$IFS; IFS='-'
  7159. set x $ac_cv_build
  7160. shift
  7161. build_cpu=$1
  7162. build_vendor=$2
  7163. shift; shift
  7164. # Remember, the first character of IFS is used to create $*,
  7165. # except with old shells:
  7166. build_os=$*
  7167. IFS=$ac_save_IFS
  7168. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  7169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  7170. printf %s "checking host system type... " >&6; }
  7171. if test ${ac_cv_host+y}
  7172. then :
  7173. printf %s "(cached) " >&6
  7174. else $as_nop
  7175. if test "x$host_alias" = x; then
  7176. ac_cv_host=$ac_cv_build
  7177. else
  7178. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  7179. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  7180. fi
  7181. fi
  7182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  7183. printf "%s\n" "$ac_cv_host" >&6; }
  7184. case $ac_cv_host in
  7185. *-*-*) ;;
  7186. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  7187. esac
  7188. host=$ac_cv_host
  7189. ac_save_IFS=$IFS; IFS='-'
  7190. set x $ac_cv_host
  7191. shift
  7192. host_cpu=$1
  7193. host_vendor=$2
  7194. shift; shift
  7195. # Remember, the first character of IFS is used to create $*,
  7196. # except with old shells:
  7197. host_os=$*
  7198. IFS=$ac_save_IFS
  7199. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  7200. CPU_SPINWAIT=""
  7201. case "${host_cpu}" in
  7202. i686|x86_64)
  7203. HAVE_CPU_SPINWAIT=1
  7204. if test "x${je_cv_msvc}" = "xyes" ; then
  7205. if test ${je_cv_pause_msvc+y}
  7206. then :
  7207. printf %s "(cached) " >&6
  7208. else $as_nop
  7209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
  7210. printf %s "checking whether pause instruction MSVC is compilable... " >&6; }
  7211. if test ${je_cv_pause_msvc+y}
  7212. then :
  7213. printf %s "(cached) " >&6
  7214. else $as_nop
  7215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7216. /* end confdefs.h. */
  7217. int
  7218. main (void)
  7219. {
  7220. _mm_pause(); return 0;
  7221. ;
  7222. return 0;
  7223. }
  7224. _ACEOF
  7225. if ac_fn_c_try_link "$LINENO"
  7226. then :
  7227. je_cv_pause_msvc=yes
  7228. else $as_nop
  7229. je_cv_pause_msvc=no
  7230. fi
  7231. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7232. conftest$ac_exeext conftest.$ac_ext
  7233. fi
  7234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
  7235. printf "%s\n" "$je_cv_pause_msvc" >&6; }
  7236. fi
  7237. if test "x${je_cv_pause_msvc}" = "xyes" ; then
  7238. CPU_SPINWAIT='_mm_pause()'
  7239. fi
  7240. else
  7241. if test ${je_cv_pause+y}
  7242. then :
  7243. printf %s "(cached) " >&6
  7244. else $as_nop
  7245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
  7246. printf %s "checking whether pause instruction is compilable... " >&6; }
  7247. if test ${je_cv_pause+y}
  7248. then :
  7249. printf %s "(cached) " >&6
  7250. else $as_nop
  7251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7252. /* end confdefs.h. */
  7253. int
  7254. main (void)
  7255. {
  7256. __asm__ volatile("pause"); return 0;
  7257. ;
  7258. return 0;
  7259. }
  7260. _ACEOF
  7261. if ac_fn_c_try_link "$LINENO"
  7262. then :
  7263. je_cv_pause=yes
  7264. else $as_nop
  7265. je_cv_pause=no
  7266. fi
  7267. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7268. conftest$ac_exeext conftest.$ac_ext
  7269. fi
  7270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
  7271. printf "%s\n" "$je_cv_pause" >&6; }
  7272. fi
  7273. if test "x${je_cv_pause}" = "xyes" ; then
  7274. CPU_SPINWAIT='__asm__ volatile("pause")'
  7275. fi
  7276. fi
  7277. ;;
  7278. aarch64|arm*)
  7279. HAVE_CPU_SPINWAIT=1
  7280. if test ${je_cv_isb+y}
  7281. then :
  7282. printf %s "(cached) " >&6
  7283. else $as_nop
  7284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isb instruction is compilable" >&5
  7285. printf %s "checking whether isb instruction is compilable... " >&6; }
  7286. if test ${je_cv_isb+y}
  7287. then :
  7288. printf %s "(cached) " >&6
  7289. else $as_nop
  7290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7291. /* end confdefs.h. */
  7292. int
  7293. main (void)
  7294. {
  7295. __asm__ volatile("isb"); return 0;
  7296. ;
  7297. return 0;
  7298. }
  7299. _ACEOF
  7300. if ac_fn_c_try_link "$LINENO"
  7301. then :
  7302. je_cv_isb=yes
  7303. else $as_nop
  7304. je_cv_isb=no
  7305. fi
  7306. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7307. conftest$ac_exeext conftest.$ac_ext
  7308. fi
  7309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_isb" >&5
  7310. printf "%s\n" "$je_cv_isb" >&6; }
  7311. fi
  7312. if test "x${je_cv_isb}" = "xyes" ; then
  7313. CPU_SPINWAIT='__asm__ volatile("isb")'
  7314. fi
  7315. ;;
  7316. *)
  7317. HAVE_CPU_SPINWAIT=0
  7318. ;;
  7319. esac
  7320. printf "%s\n" "#define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT" >>confdefs.h
  7321. printf "%s\n" "#define CPU_SPINWAIT $CPU_SPINWAIT" >>confdefs.h
  7322. # Check whether --with-lg_vaddr was given.
  7323. if test ${with_lg_vaddr+y}
  7324. then :
  7325. withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
  7326. else $as_nop
  7327. LG_VADDR="detect"
  7328. fi
  7329. case "${host_cpu}" in
  7330. aarch64)
  7331. if test "x$LG_VADDR" = "xdetect"; then
  7332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  7333. printf %s "checking number of significant virtual address bits... " >&6; }
  7334. if test "x${LG_SIZEOF_PTR}" = "x2" ; then
  7335. #aarch64 ILP32
  7336. LG_VADDR=32
  7337. else
  7338. #aarch64 LP64
  7339. LG_VADDR=48
  7340. fi
  7341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
  7342. printf "%s\n" "$LG_VADDR" >&6; }
  7343. fi
  7344. ;;
  7345. x86_64)
  7346. if test "x$LG_VADDR" = "xdetect"; then
  7347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  7348. printf %s "checking number of significant virtual address bits... " >&6; }
  7349. if test ${je_cv_lg_vaddr+y}
  7350. then :
  7351. printf %s "(cached) " >&6
  7352. else $as_nop
  7353. if test "$cross_compiling" = yes
  7354. then :
  7355. je_cv_lg_vaddr=57
  7356. else $as_nop
  7357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7358. /* end confdefs.h. */
  7359. #include <stdio.h>
  7360. #ifdef _WIN32
  7361. #include <limits.h>
  7362. #include <intrin.h>
  7363. typedef unsigned __int32 uint32_t;
  7364. #else
  7365. #include <stdint.h>
  7366. #endif
  7367. int
  7368. main (void)
  7369. {
  7370. uint32_t r[4];
  7371. uint32_t eax_in = 0x80000008U;
  7372. #ifdef _WIN32
  7373. __cpuid((int *)r, (int)eax_in);
  7374. #else
  7375. asm volatile ("cpuid"
  7376. : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
  7377. : "a" (eax_in), "c" (0)
  7378. );
  7379. #endif
  7380. uint32_t eax_out = r[0];
  7381. uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
  7382. FILE *f = fopen("conftest.out", "w");
  7383. if (f == NULL) {
  7384. return 1;
  7385. }
  7386. if (vaddr > (sizeof(void *) << 3)) {
  7387. vaddr = sizeof(void *) << 3;
  7388. }
  7389. fprintf(f, "%u", vaddr);
  7390. fclose(f);
  7391. return 0;
  7392. ;
  7393. return 0;
  7394. }
  7395. _ACEOF
  7396. if ac_fn_c_try_run "$LINENO"
  7397. then :
  7398. je_cv_lg_vaddr=`cat conftest.out`
  7399. else $as_nop
  7400. je_cv_lg_vaddr=error
  7401. fi
  7402. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7403. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7404. fi
  7405. fi
  7406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
  7407. printf "%s\n" "$je_cv_lg_vaddr" >&6; }
  7408. if test "x${je_cv_lg_vaddr}" != "x" ; then
  7409. LG_VADDR="${je_cv_lg_vaddr}"
  7410. fi
  7411. if test "x${LG_VADDR}" != "xerror" ; then
  7412. printf "%s\n" "#define LG_VADDR $LG_VADDR" >>confdefs.h
  7413. else
  7414. as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
  7415. fi
  7416. fi
  7417. ;;
  7418. *)
  7419. if test "x$LG_VADDR" = "xdetect"; then
  7420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  7421. printf %s "checking number of significant virtual address bits... " >&6; }
  7422. if test "x${LG_SIZEOF_PTR}" = "x3" ; then
  7423. LG_VADDR=64
  7424. elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
  7425. LG_VADDR=32
  7426. elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
  7427. LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
  7428. else
  7429. as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
  7430. fi
  7431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
  7432. printf "%s\n" "$LG_VADDR" >&6; }
  7433. fi
  7434. ;;
  7435. esac
  7436. printf "%s\n" "#define LG_VADDR $LG_VADDR" >>confdefs.h
  7437. LD_PRELOAD_VAR="LD_PRELOAD"
  7438. so="so"
  7439. importlib="${so}"
  7440. o="$ac_objext"
  7441. a="a"
  7442. exe="$ac_exeext"
  7443. libprefix="lib"
  7444. link_whole_archive="0"
  7445. DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
  7446. RPATH='-Wl,-rpath,$(1)'
  7447. SOREV="${so}.${rev}"
  7448. PIC_CFLAGS='-fPIC -DPIC'
  7449. CTARGET='-o $@'
  7450. LDTARGET='-o $@'
  7451. TEST_LD_MODE=
  7452. EXTRA_LDFLAGS=
  7453. ARFLAGS='crus'
  7454. AROUT=' $@'
  7455. CC_MM=1
  7456. if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
  7457. TEST_LD_MODE='-dynamic'
  7458. fi
  7459. if test "x${je_cv_cray}" = "xyes" ; then
  7460. CC_MM=
  7461. fi
  7462. if test -n "$ac_tool_prefix"; then
  7463. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  7464. set dummy ${ac_tool_prefix}ar; ac_word=$2
  7465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7466. printf %s "checking for $ac_word... " >&6; }
  7467. if test ${ac_cv_prog_AR+y}
  7468. then :
  7469. printf %s "(cached) " >&6
  7470. else $as_nop
  7471. if test -n "$AR"; then
  7472. ac_cv_prog_AR="$AR" # Let the user override the test.
  7473. else
  7474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7475. for as_dir in $PATH
  7476. do
  7477. IFS=$as_save_IFS
  7478. case $as_dir in #(((
  7479. '') as_dir=./ ;;
  7480. */) ;;
  7481. *) as_dir=$as_dir/ ;;
  7482. esac
  7483. for ac_exec_ext in '' $ac_executable_extensions; do
  7484. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7485. ac_cv_prog_AR="${ac_tool_prefix}ar"
  7486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7487. break 2
  7488. fi
  7489. done
  7490. done
  7491. IFS=$as_save_IFS
  7492. fi
  7493. fi
  7494. AR=$ac_cv_prog_AR
  7495. if test -n "$AR"; then
  7496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7497. printf "%s\n" "$AR" >&6; }
  7498. else
  7499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7500. printf "%s\n" "no" >&6; }
  7501. fi
  7502. fi
  7503. if test -z "$ac_cv_prog_AR"; then
  7504. ac_ct_AR=$AR
  7505. # Extract the first word of "ar", so it can be a program name with args.
  7506. set dummy ar; ac_word=$2
  7507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7508. printf %s "checking for $ac_word... " >&6; }
  7509. if test ${ac_cv_prog_ac_ct_AR+y}
  7510. then :
  7511. printf %s "(cached) " >&6
  7512. else $as_nop
  7513. if test -n "$ac_ct_AR"; then
  7514. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7515. else
  7516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7517. for as_dir in $PATH
  7518. do
  7519. IFS=$as_save_IFS
  7520. case $as_dir in #(((
  7521. '') as_dir=./ ;;
  7522. */) ;;
  7523. *) as_dir=$as_dir/ ;;
  7524. esac
  7525. for ac_exec_ext in '' $ac_executable_extensions; do
  7526. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7527. ac_cv_prog_ac_ct_AR="ar"
  7528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7529. break 2
  7530. fi
  7531. done
  7532. done
  7533. IFS=$as_save_IFS
  7534. fi
  7535. fi
  7536. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7537. if test -n "$ac_ct_AR"; then
  7538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7539. printf "%s\n" "$ac_ct_AR" >&6; }
  7540. else
  7541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7542. printf "%s\n" "no" >&6; }
  7543. fi
  7544. if test "x$ac_ct_AR" = x; then
  7545. AR=":"
  7546. else
  7547. case $cross_compiling:$ac_tool_warned in
  7548. yes:)
  7549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7550. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7551. ac_tool_warned=yes ;;
  7552. esac
  7553. AR=$ac_ct_AR
  7554. fi
  7555. else
  7556. AR="$ac_cv_prog_AR"
  7557. fi
  7558. if test -n "$ac_tool_prefix"; then
  7559. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  7560. set dummy ${ac_tool_prefix}nm; ac_word=$2
  7561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7562. printf %s "checking for $ac_word... " >&6; }
  7563. if test ${ac_cv_prog_NM+y}
  7564. then :
  7565. printf %s "(cached) " >&6
  7566. else $as_nop
  7567. if test -n "$NM"; then
  7568. ac_cv_prog_NM="$NM" # Let the user override the test.
  7569. else
  7570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7571. for as_dir in $PATH
  7572. do
  7573. IFS=$as_save_IFS
  7574. case $as_dir in #(((
  7575. '') as_dir=./ ;;
  7576. */) ;;
  7577. *) as_dir=$as_dir/ ;;
  7578. esac
  7579. for ac_exec_ext in '' $ac_executable_extensions; do
  7580. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7581. ac_cv_prog_NM="${ac_tool_prefix}nm"
  7582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7583. break 2
  7584. fi
  7585. done
  7586. done
  7587. IFS=$as_save_IFS
  7588. fi
  7589. fi
  7590. NM=$ac_cv_prog_NM
  7591. if test -n "$NM"; then
  7592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7593. printf "%s\n" "$NM" >&6; }
  7594. else
  7595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7596. printf "%s\n" "no" >&6; }
  7597. fi
  7598. fi
  7599. if test -z "$ac_cv_prog_NM"; then
  7600. ac_ct_NM=$NM
  7601. # Extract the first word of "nm", so it can be a program name with args.
  7602. set dummy nm; ac_word=$2
  7603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7604. printf %s "checking for $ac_word... " >&6; }
  7605. if test ${ac_cv_prog_ac_ct_NM+y}
  7606. then :
  7607. printf %s "(cached) " >&6
  7608. else $as_nop
  7609. if test -n "$ac_ct_NM"; then
  7610. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  7611. else
  7612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7613. for as_dir in $PATH
  7614. do
  7615. IFS=$as_save_IFS
  7616. case $as_dir in #(((
  7617. '') as_dir=./ ;;
  7618. */) ;;
  7619. *) as_dir=$as_dir/ ;;
  7620. esac
  7621. for ac_exec_ext in '' $ac_executable_extensions; do
  7622. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7623. ac_cv_prog_ac_ct_NM="nm"
  7624. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7625. break 2
  7626. fi
  7627. done
  7628. done
  7629. IFS=$as_save_IFS
  7630. fi
  7631. fi
  7632. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  7633. if test -n "$ac_ct_NM"; then
  7634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  7635. printf "%s\n" "$ac_ct_NM" >&6; }
  7636. else
  7637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7638. printf "%s\n" "no" >&6; }
  7639. fi
  7640. if test "x$ac_ct_NM" = x; then
  7641. NM=":"
  7642. else
  7643. case $cross_compiling:$ac_tool_warned in
  7644. yes:)
  7645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7646. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7647. ac_tool_warned=yes ;;
  7648. esac
  7649. NM=$ac_ct_NM
  7650. fi
  7651. else
  7652. NM="$ac_cv_prog_NM"
  7653. fi
  7654. for ac_prog in gawk mawk nawk awk
  7655. do
  7656. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7657. set dummy $ac_prog; ac_word=$2
  7658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7659. printf %s "checking for $ac_word... " >&6; }
  7660. if test ${ac_cv_prog_AWK+y}
  7661. then :
  7662. printf %s "(cached) " >&6
  7663. else $as_nop
  7664. if test -n "$AWK"; then
  7665. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7666. else
  7667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7668. for as_dir in $PATH
  7669. do
  7670. IFS=$as_save_IFS
  7671. case $as_dir in #(((
  7672. '') as_dir=./ ;;
  7673. */) ;;
  7674. *) as_dir=$as_dir/ ;;
  7675. esac
  7676. for ac_exec_ext in '' $ac_executable_extensions; do
  7677. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7678. ac_cv_prog_AWK="$ac_prog"
  7679. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7680. break 2
  7681. fi
  7682. done
  7683. done
  7684. IFS=$as_save_IFS
  7685. fi
  7686. fi
  7687. AWK=$ac_cv_prog_AWK
  7688. if test -n "$AWK"; then
  7689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7690. printf "%s\n" "$AWK" >&6; }
  7691. else
  7692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7693. printf "%s\n" "no" >&6; }
  7694. fi
  7695. test -n "$AWK" && break
  7696. done
  7697. # Check whether --with-version was given.
  7698. if test ${with_version+y}
  7699. then :
  7700. withval=$with_version;
  7701. echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
  7702. if test $? -eq 0 ; then
  7703. echo "$with_version" > "${objroot}VERSION"
  7704. else
  7705. echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
  7706. if test $? -ne 0 ; then
  7707. as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
  7708. fi
  7709. fi
  7710. else $as_nop
  7711. if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
  7712. for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
  7713. '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
  7714. '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
  7715. '[0-9][0-9].[0-9][0-9].[0-9]' \
  7716. '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
  7717. (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
  7718. if test $? -eq 0 ; then
  7719. mv "${objroot}VERSION.tmp" "${objroot}VERSION"
  7720. break
  7721. fi
  7722. done
  7723. fi
  7724. rm -f "${objroot}VERSION.tmp"
  7725. fi
  7726. if test ! -e "${objroot}VERSION" ; then
  7727. if test ! -e "${srcroot}VERSION" ; then
  7728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
  7729. printf "%s\n" "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
  7730. echo "0.0.0-0-g000000missing_version_try_git_fetch_tags" > "${objroot}VERSION"
  7731. else
  7732. cp ${srcroot}VERSION ${objroot}VERSION
  7733. fi
  7734. fi
  7735. jemalloc_version=`cat "${objroot}VERSION"`
  7736. jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
  7737. jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
  7738. jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
  7739. jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
  7740. jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
  7741. default_retain="0"
  7742. zero_realloc_default_free="0"
  7743. maps_coalesce="1"
  7744. DUMP_SYMS="${NM} -a"
  7745. SYM_PREFIX=""
  7746. case "${host}" in
  7747. *-*-darwin* | *-*-ios*)
  7748. abi="macho"
  7749. RPATH=""
  7750. LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
  7751. so="dylib"
  7752. importlib="${so}"
  7753. force_tls="0"
  7754. DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
  7755. SOREV="${rev}.${so}"
  7756. sbrk_deprecated="1"
  7757. SYM_PREFIX="_"
  7758. ;;
  7759. *-*-freebsd*)
  7760. T_APPEND_V=-D_BSD_SOURCE
  7761. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7762. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  7763. else
  7764. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  7765. fi
  7766. abi="elf"
  7767. printf "%s\n" "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
  7768. force_lazy_lock="1"
  7769. ;;
  7770. *-*-dragonfly*)
  7771. abi="elf"
  7772. ;;
  7773. *-*-openbsd*)
  7774. abi="elf"
  7775. force_tls="0"
  7776. ;;
  7777. *-*-bitrig*)
  7778. abi="elf"
  7779. ;;
  7780. *-*-linux-android*)
  7781. T_APPEND_V=-D_GNU_SOURCE
  7782. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7783. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  7784. else
  7785. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  7786. fi
  7787. abi="elf"
  7788. glibc="0"
  7789. printf "%s\n" "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
  7790. printf "%s\n" "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h
  7791. printf "%s\n" "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
  7792. printf "%s\n" "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  7793. printf "%s\n" "#define JEMALLOC_C11_ATOMICS " >>confdefs.h
  7794. force_tls="0"
  7795. if test "${LG_SIZEOF_PTR}" = "3"; then
  7796. default_retain="1"
  7797. fi
  7798. zero_realloc_default_free="1"
  7799. ;;
  7800. *-*-linux*)
  7801. T_APPEND_V=-D_GNU_SOURCE
  7802. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7803. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  7804. else
  7805. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  7806. fi
  7807. abi="elf"
  7808. glibc="1"
  7809. printf "%s\n" "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
  7810. printf "%s\n" "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h
  7811. printf "%s\n" "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
  7812. printf "%s\n" "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  7813. printf "%s\n" "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
  7814. if test "${LG_SIZEOF_PTR}" = "3"; then
  7815. default_retain="1"
  7816. fi
  7817. zero_realloc_default_free="1"
  7818. ;;
  7819. *-*-kfreebsd*)
  7820. T_APPEND_V=-D_GNU_SOURCE
  7821. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7822. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  7823. else
  7824. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  7825. fi
  7826. abi="elf"
  7827. printf "%s\n" "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h
  7828. printf "%s\n" "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
  7829. printf "%s\n" "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  7830. printf "%s\n" "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
  7831. ;;
  7832. *-*-netbsd*)
  7833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
  7834. printf %s "checking ABI... " >&6; }
  7835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7836. /* end confdefs.h. */
  7837. #ifdef __ELF__
  7838. /* ELF */
  7839. #else
  7840. #error aout
  7841. #endif
  7842. int
  7843. main (void)
  7844. {
  7845. ;
  7846. return 0;
  7847. }
  7848. _ACEOF
  7849. if ac_fn_c_try_compile "$LINENO"
  7850. then :
  7851. abi="elf"
  7852. else $as_nop
  7853. abi="aout"
  7854. fi
  7855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
  7857. printf "%s\n" "$abi" >&6; }
  7858. ;;
  7859. *-*-solaris2*)
  7860. abi="elf"
  7861. RPATH='-Wl,-R,$(1)'
  7862. T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
  7863. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7864. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  7865. else
  7866. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  7867. fi
  7868. T_APPEND_V=-lposix4 -lsocket -lnsl
  7869. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7870. LIBS="${LIBS}${T_APPEND_V}"
  7871. else
  7872. LIBS="${LIBS} ${T_APPEND_V}"
  7873. fi
  7874. ;;
  7875. *-ibm-aix*)
  7876. if test "${LG_SIZEOF_PTR}" = "3"; then
  7877. LD_PRELOAD_VAR="LDR_PRELOAD64"
  7878. else
  7879. LD_PRELOAD_VAR="LDR_PRELOAD"
  7880. fi
  7881. abi="xcoff"
  7882. ;;
  7883. *-*-mingw* | *-*-cygwin*)
  7884. abi="pecoff"
  7885. force_tls="0"
  7886. maps_coalesce="0"
  7887. RPATH=""
  7888. so="dll"
  7889. if test "x$je_cv_msvc" = "xyes" ; then
  7890. importlib="lib"
  7891. DSO_LDFLAGS="-LD"
  7892. EXTRA_LDFLAGS="-link -DEBUG"
  7893. CTARGET='-Fo$@'
  7894. LDTARGET='-Fe$@'
  7895. AR='lib'
  7896. ARFLAGS='-nologo -out:'
  7897. AROUT='$@'
  7898. CC_MM=
  7899. else
  7900. importlib="${so}"
  7901. DSO_LDFLAGS="-shared"
  7902. link_whole_archive="1"
  7903. fi
  7904. case "${host}" in
  7905. *-*-cygwin*)
  7906. DUMP_SYMS="dumpbin /SYMBOLS"
  7907. ;;
  7908. *)
  7909. ;;
  7910. esac
  7911. a="lib"
  7912. libprefix=""
  7913. SOREV="${so}"
  7914. PIC_CFLAGS=""
  7915. if test "${LG_SIZEOF_PTR}" = "3"; then
  7916. default_retain="1"
  7917. fi
  7918. zero_realloc_default_free="1"
  7919. ;;
  7920. *-*-nto-qnx)
  7921. abi="elf"
  7922. force_tls="0"
  7923. printf "%s\n" "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h
  7924. ;;
  7925. *)
  7926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
  7927. printf "%s\n" "Unsupported operating system: ${host}" >&6; }
  7928. abi="elf"
  7929. ;;
  7930. esac
  7931. JEMALLOC_USABLE_SIZE_CONST=const
  7932. for ac_header in malloc.h
  7933. do :
  7934. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  7935. if test "x$ac_cv_header_malloc_h" = xyes
  7936. then :
  7937. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  7938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
  7939. printf %s "checking whether malloc_usable_size definition can use const argument... " >&6; }
  7940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7941. /* end confdefs.h. */
  7942. #include <malloc.h>
  7943. #include <stddef.h>
  7944. size_t malloc_usable_size(const void *ptr);
  7945. int
  7946. main (void)
  7947. {
  7948. ;
  7949. return 0;
  7950. }
  7951. _ACEOF
  7952. if ac_fn_c_try_compile "$LINENO"
  7953. then :
  7954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7955. printf "%s\n" "yes" >&6; }
  7956. else $as_nop
  7957. JEMALLOC_USABLE_SIZE_CONST=
  7958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7959. printf "%s\n" "no" >&6; }
  7960. fi
  7961. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7962. fi
  7963. done
  7964. printf "%s\n" "#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST" >>confdefs.h
  7965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
  7966. printf %s "checking for library containing log... " >&6; }
  7967. if test ${ac_cv_search_log+y}
  7968. then :
  7969. printf %s "(cached) " >&6
  7970. else $as_nop
  7971. ac_func_search_save_LIBS=$LIBS
  7972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7973. /* end confdefs.h. */
  7974. /* Override any GCC internal prototype to avoid an error.
  7975. Use char because int might match the return type of a GCC
  7976. builtin and then its argument prototype would still apply. */
  7977. char log ();
  7978. int
  7979. main (void)
  7980. {
  7981. return log ();
  7982. ;
  7983. return 0;
  7984. }
  7985. _ACEOF
  7986. for ac_lib in '' m
  7987. do
  7988. if test -z "$ac_lib"; then
  7989. ac_res="none required"
  7990. else
  7991. ac_res=-l$ac_lib
  7992. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7993. fi
  7994. if ac_fn_c_try_link "$LINENO"
  7995. then :
  7996. ac_cv_search_log=$ac_res
  7997. fi
  7998. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7999. conftest$ac_exeext
  8000. if test ${ac_cv_search_log+y}
  8001. then :
  8002. break
  8003. fi
  8004. done
  8005. if test ${ac_cv_search_log+y}
  8006. then :
  8007. else $as_nop
  8008. ac_cv_search_log=no
  8009. fi
  8010. rm conftest.$ac_ext
  8011. LIBS=$ac_func_search_save_LIBS
  8012. fi
  8013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
  8014. printf "%s\n" "$ac_cv_search_log" >&6; }
  8015. ac_res=$ac_cv_search_log
  8016. if test "$ac_res" != no
  8017. then :
  8018. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8019. else $as_nop
  8020. as_fn_error $? "Missing math functions" "$LINENO" 5
  8021. fi
  8022. if test "x$ac_cv_search_log" != "xnone required" ; then
  8023. LM="$ac_cv_search_log"
  8024. else
  8025. LM=
  8026. fi
  8027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
  8028. printf %s "checking whether __attribute__ syntax is compilable... " >&6; }
  8029. if test ${je_cv_attribute+y}
  8030. then :
  8031. printf %s "(cached) " >&6
  8032. else $as_nop
  8033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8034. /* end confdefs.h. */
  8035. static __attribute__((unused)) void foo(void){}
  8036. int
  8037. main (void)
  8038. {
  8039. ;
  8040. return 0;
  8041. }
  8042. _ACEOF
  8043. if ac_fn_c_try_link "$LINENO"
  8044. then :
  8045. je_cv_attribute=yes
  8046. else $as_nop
  8047. je_cv_attribute=no
  8048. fi
  8049. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8050. conftest$ac_exeext conftest.$ac_ext
  8051. fi
  8052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
  8053. printf "%s\n" "$je_cv_attribute" >&6; }
  8054. if test "x${je_cv_attribute}" = "xyes" ; then
  8055. printf "%s\n" "#define JEMALLOC_HAVE_ATTR " >>confdefs.h
  8056. if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
  8057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
  8058. printf %s "checking whether compiler supports -fvisibility=hidden... " >&6; }
  8059. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8060. T_APPEND_V=-fvisibility=hidden
  8061. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8062. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8063. else
  8064. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8065. fi
  8066. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8067. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8068. else
  8069. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8070. fi
  8071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8072. /* end confdefs.h. */
  8073. int
  8074. main (void)
  8075. {
  8076. return 0;
  8077. ;
  8078. return 0;
  8079. }
  8080. _ACEOF
  8081. if ac_fn_c_try_compile "$LINENO"
  8082. then :
  8083. je_cv_cflags_added=-fvisibility=hidden
  8084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8085. printf "%s\n" "yes" >&6; }
  8086. else $as_nop
  8087. je_cv_cflags_added=
  8088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8089. printf "%s\n" "no" >&6; }
  8090. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8091. fi
  8092. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8093. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8094. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8095. else
  8096. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8097. fi
  8098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
  8099. printf %s "checking whether compiler supports -fvisibility=hidden... " >&6; }
  8100. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  8101. T_APPEND_V=-fvisibility=hidden
  8102. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8103. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  8104. else
  8105. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  8106. fi
  8107. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8108. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8109. else
  8110. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8111. fi
  8112. ac_ext=cpp
  8113. ac_cpp='$CXXCPP $CPPFLAGS'
  8114. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8115. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8116. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8118. /* end confdefs.h. */
  8119. int
  8120. main (void)
  8121. {
  8122. return 0;
  8123. ;
  8124. return 0;
  8125. }
  8126. _ACEOF
  8127. if ac_fn_cxx_try_compile "$LINENO"
  8128. then :
  8129. je_cv_cxxflags_added=-fvisibility=hidden
  8130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8131. printf "%s\n" "yes" >&6; }
  8132. else $as_nop
  8133. je_cv_cxxflags_added=
  8134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8135. printf "%s\n" "no" >&6; }
  8136. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  8137. fi
  8138. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8139. ac_ext=c
  8140. ac_cpp='$CPP $CPPFLAGS'
  8141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8144. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8145. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8146. else
  8147. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8148. fi
  8149. fi
  8150. fi
  8151. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  8153. printf %s "checking whether compiler supports -Werror... " >&6; }
  8154. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8155. T_APPEND_V=-Werror
  8156. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8157. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8158. else
  8159. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8160. fi
  8161. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8162. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8163. else
  8164. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8165. fi
  8166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8167. /* end confdefs.h. */
  8168. int
  8169. main (void)
  8170. {
  8171. return 0;
  8172. ;
  8173. return 0;
  8174. }
  8175. _ACEOF
  8176. if ac_fn_c_try_compile "$LINENO"
  8177. then :
  8178. je_cv_cflags_added=-Werror
  8179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8180. printf "%s\n" "yes" >&6; }
  8181. else $as_nop
  8182. je_cv_cflags_added=
  8183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8184. printf "%s\n" "no" >&6; }
  8185. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8186. fi
  8187. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8188. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8189. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8190. else
  8191. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8192. fi
  8193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  8194. printf %s "checking whether compiler supports -herror_on_warning... " >&6; }
  8195. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8196. T_APPEND_V=-herror_on_warning
  8197. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8198. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8199. else
  8200. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8201. fi
  8202. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8203. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8204. else
  8205. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8206. fi
  8207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8208. /* end confdefs.h. */
  8209. int
  8210. main (void)
  8211. {
  8212. return 0;
  8213. ;
  8214. return 0;
  8215. }
  8216. _ACEOF
  8217. if ac_fn_c_try_compile "$LINENO"
  8218. then :
  8219. je_cv_cflags_added=-herror_on_warning
  8220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8221. printf "%s\n" "yes" >&6; }
  8222. else $as_nop
  8223. je_cv_cflags_added=
  8224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8225. printf "%s\n" "no" >&6; }
  8226. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8227. fi
  8228. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8229. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8230. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8231. else
  8232. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8233. fi
  8234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
  8235. printf %s "checking whether tls_model attribute is compilable... " >&6; }
  8236. if test ${je_cv_tls_model+y}
  8237. then :
  8238. printf %s "(cached) " >&6
  8239. else $as_nop
  8240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8241. /* end confdefs.h. */
  8242. int
  8243. main (void)
  8244. {
  8245. static __thread int
  8246. __attribute__((tls_model("initial-exec"), unused)) foo;
  8247. foo = 0;
  8248. ;
  8249. return 0;
  8250. }
  8251. _ACEOF
  8252. if ac_fn_c_try_link "$LINENO"
  8253. then :
  8254. je_cv_tls_model=yes
  8255. else $as_nop
  8256. je_cv_tls_model=no
  8257. fi
  8258. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8259. conftest$ac_exeext conftest.$ac_ext
  8260. fi
  8261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
  8262. printf "%s\n" "$je_cv_tls_model" >&6; }
  8263. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  8264. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8265. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8266. else
  8267. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8268. fi
  8269. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  8271. printf %s "checking whether compiler supports -Werror... " >&6; }
  8272. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8273. T_APPEND_V=-Werror
  8274. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8275. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8276. else
  8277. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8278. fi
  8279. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8280. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8281. else
  8282. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8283. fi
  8284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8285. /* end confdefs.h. */
  8286. int
  8287. main (void)
  8288. {
  8289. return 0;
  8290. ;
  8291. return 0;
  8292. }
  8293. _ACEOF
  8294. if ac_fn_c_try_compile "$LINENO"
  8295. then :
  8296. je_cv_cflags_added=-Werror
  8297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8298. printf "%s\n" "yes" >&6; }
  8299. else $as_nop
  8300. je_cv_cflags_added=
  8301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8302. printf "%s\n" "no" >&6; }
  8303. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8304. fi
  8305. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8306. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8307. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8308. else
  8309. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8310. fi
  8311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  8312. printf %s "checking whether compiler supports -herror_on_warning... " >&6; }
  8313. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8314. T_APPEND_V=-herror_on_warning
  8315. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8316. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8317. else
  8318. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8319. fi
  8320. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8321. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8322. else
  8323. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8324. fi
  8325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8326. /* end confdefs.h. */
  8327. int
  8328. main (void)
  8329. {
  8330. return 0;
  8331. ;
  8332. return 0;
  8333. }
  8334. _ACEOF
  8335. if ac_fn_c_try_compile "$LINENO"
  8336. then :
  8337. je_cv_cflags_added=-herror_on_warning
  8338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8339. printf "%s\n" "yes" >&6; }
  8340. else $as_nop
  8341. je_cv_cflags_added=
  8342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8343. printf "%s\n" "no" >&6; }
  8344. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8345. fi
  8346. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8347. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8348. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8349. else
  8350. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8351. fi
  8352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
  8353. printf %s "checking whether alloc_size attribute is compilable... " >&6; }
  8354. if test ${je_cv_alloc_size+y}
  8355. then :
  8356. printf %s "(cached) " >&6
  8357. else $as_nop
  8358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8359. /* end confdefs.h. */
  8360. #include <stdlib.h>
  8361. int
  8362. main (void)
  8363. {
  8364. void *foo(size_t size) __attribute__((alloc_size(1)));
  8365. ;
  8366. return 0;
  8367. }
  8368. _ACEOF
  8369. if ac_fn_c_try_link "$LINENO"
  8370. then :
  8371. je_cv_alloc_size=yes
  8372. else $as_nop
  8373. je_cv_alloc_size=no
  8374. fi
  8375. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8376. conftest$ac_exeext conftest.$ac_ext
  8377. fi
  8378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
  8379. printf "%s\n" "$je_cv_alloc_size" >&6; }
  8380. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  8381. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8382. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8383. else
  8384. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8385. fi
  8386. if test "x${je_cv_alloc_size}" = "xyes" ; then
  8387. printf "%s\n" "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h
  8388. fi
  8389. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  8391. printf %s "checking whether compiler supports -Werror... " >&6; }
  8392. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8393. T_APPEND_V=-Werror
  8394. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8395. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8396. else
  8397. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8398. fi
  8399. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8400. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8401. else
  8402. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8403. fi
  8404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8405. /* end confdefs.h. */
  8406. int
  8407. main (void)
  8408. {
  8409. return 0;
  8410. ;
  8411. return 0;
  8412. }
  8413. _ACEOF
  8414. if ac_fn_c_try_compile "$LINENO"
  8415. then :
  8416. je_cv_cflags_added=-Werror
  8417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8418. printf "%s\n" "yes" >&6; }
  8419. else $as_nop
  8420. je_cv_cflags_added=
  8421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8422. printf "%s\n" "no" >&6; }
  8423. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8424. fi
  8425. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8426. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8427. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8428. else
  8429. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8430. fi
  8431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  8432. printf %s "checking whether compiler supports -herror_on_warning... " >&6; }
  8433. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8434. T_APPEND_V=-herror_on_warning
  8435. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8436. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8437. else
  8438. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8439. fi
  8440. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8441. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8442. else
  8443. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8444. fi
  8445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8446. /* end confdefs.h. */
  8447. int
  8448. main (void)
  8449. {
  8450. return 0;
  8451. ;
  8452. return 0;
  8453. }
  8454. _ACEOF
  8455. if ac_fn_c_try_compile "$LINENO"
  8456. then :
  8457. je_cv_cflags_added=-herror_on_warning
  8458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8459. printf "%s\n" "yes" >&6; }
  8460. else $as_nop
  8461. je_cv_cflags_added=
  8462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8463. printf "%s\n" "no" >&6; }
  8464. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8465. fi
  8466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8467. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8468. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8469. else
  8470. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8471. fi
  8472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
  8473. printf %s "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
  8474. if test ${je_cv_format_gnu_printf+y}
  8475. then :
  8476. printf %s "(cached) " >&6
  8477. else $as_nop
  8478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8479. /* end confdefs.h. */
  8480. #include <stdlib.h>
  8481. int
  8482. main (void)
  8483. {
  8484. void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
  8485. ;
  8486. return 0;
  8487. }
  8488. _ACEOF
  8489. if ac_fn_c_try_link "$LINENO"
  8490. then :
  8491. je_cv_format_gnu_printf=yes
  8492. else $as_nop
  8493. je_cv_format_gnu_printf=no
  8494. fi
  8495. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8496. conftest$ac_exeext conftest.$ac_ext
  8497. fi
  8498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
  8499. printf "%s\n" "$je_cv_format_gnu_printf" >&6; }
  8500. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  8501. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8502. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8503. else
  8504. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8505. fi
  8506. if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
  8507. printf "%s\n" "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h
  8508. fi
  8509. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  8511. printf %s "checking whether compiler supports -Werror... " >&6; }
  8512. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8513. T_APPEND_V=-Werror
  8514. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8515. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8516. else
  8517. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8518. fi
  8519. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8520. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8521. else
  8522. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8523. fi
  8524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8525. /* end confdefs.h. */
  8526. int
  8527. main (void)
  8528. {
  8529. return 0;
  8530. ;
  8531. return 0;
  8532. }
  8533. _ACEOF
  8534. if ac_fn_c_try_compile "$LINENO"
  8535. then :
  8536. je_cv_cflags_added=-Werror
  8537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8538. printf "%s\n" "yes" >&6; }
  8539. else $as_nop
  8540. je_cv_cflags_added=
  8541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8542. printf "%s\n" "no" >&6; }
  8543. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8544. fi
  8545. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8546. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8547. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8548. else
  8549. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8550. fi
  8551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  8552. printf %s "checking whether compiler supports -herror_on_warning... " >&6; }
  8553. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8554. T_APPEND_V=-herror_on_warning
  8555. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8556. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8557. else
  8558. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8559. fi
  8560. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8561. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8562. else
  8563. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8564. fi
  8565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8566. /* end confdefs.h. */
  8567. int
  8568. main (void)
  8569. {
  8570. return 0;
  8571. ;
  8572. return 0;
  8573. }
  8574. _ACEOF
  8575. if ac_fn_c_try_compile "$LINENO"
  8576. then :
  8577. je_cv_cflags_added=-herror_on_warning
  8578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8579. printf "%s\n" "yes" >&6; }
  8580. else $as_nop
  8581. je_cv_cflags_added=
  8582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8583. printf "%s\n" "no" >&6; }
  8584. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8585. fi
  8586. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8587. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8588. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8589. else
  8590. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8591. fi
  8592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
  8593. printf %s "checking whether format(printf, ...) attribute is compilable... " >&6; }
  8594. if test ${je_cv_format_printf+y}
  8595. then :
  8596. printf %s "(cached) " >&6
  8597. else $as_nop
  8598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8599. /* end confdefs.h. */
  8600. #include <stdlib.h>
  8601. int
  8602. main (void)
  8603. {
  8604. void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
  8605. ;
  8606. return 0;
  8607. }
  8608. _ACEOF
  8609. if ac_fn_c_try_link "$LINENO"
  8610. then :
  8611. je_cv_format_printf=yes
  8612. else $as_nop
  8613. je_cv_format_printf=no
  8614. fi
  8615. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8616. conftest$ac_exeext conftest.$ac_ext
  8617. fi
  8618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
  8619. printf "%s\n" "$je_cv_format_printf" >&6; }
  8620. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  8621. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8622. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8623. else
  8624. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8625. fi
  8626. if test "x${je_cv_format_printf}" = "xyes" ; then
  8627. printf "%s\n" "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h
  8628. fi
  8629. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  8631. printf %s "checking whether compiler supports -Werror... " >&6; }
  8632. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8633. T_APPEND_V=-Werror
  8634. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8635. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8636. else
  8637. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8638. fi
  8639. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8640. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8641. else
  8642. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8643. fi
  8644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8645. /* end confdefs.h. */
  8646. int
  8647. main (void)
  8648. {
  8649. return 0;
  8650. ;
  8651. return 0;
  8652. }
  8653. _ACEOF
  8654. if ac_fn_c_try_compile "$LINENO"
  8655. then :
  8656. je_cv_cflags_added=-Werror
  8657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8658. printf "%s\n" "yes" >&6; }
  8659. else $as_nop
  8660. je_cv_cflags_added=
  8661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8662. printf "%s\n" "no" >&6; }
  8663. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8664. fi
  8665. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8666. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8667. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8668. else
  8669. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8670. fi
  8671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  8672. printf %s "checking whether compiler supports -herror_on_warning... " >&6; }
  8673. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8674. T_APPEND_V=-herror_on_warning
  8675. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8676. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8677. else
  8678. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8679. fi
  8680. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8681. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8682. else
  8683. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8684. fi
  8685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8686. /* end confdefs.h. */
  8687. int
  8688. main (void)
  8689. {
  8690. return 0;
  8691. ;
  8692. return 0;
  8693. }
  8694. _ACEOF
  8695. if ac_fn_c_try_compile "$LINENO"
  8696. then :
  8697. je_cv_cflags_added=-herror_on_warning
  8698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8699. printf "%s\n" "yes" >&6; }
  8700. else $as_nop
  8701. je_cv_cflags_added=
  8702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8703. printf "%s\n" "no" >&6; }
  8704. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8705. fi
  8706. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8707. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8708. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8709. else
  8710. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8711. fi
  8712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
  8713. printf %s "checking whether format(printf, ...) attribute is compilable... " >&6; }
  8714. if test ${je_cv_format_arg+y}
  8715. then :
  8716. printf %s "(cached) " >&6
  8717. else $as_nop
  8718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8719. /* end confdefs.h. */
  8720. #include <stdlib.h>
  8721. int
  8722. main (void)
  8723. {
  8724. const char * __attribute__((__format_arg__(1))) foo(const char *format);
  8725. ;
  8726. return 0;
  8727. }
  8728. _ACEOF
  8729. if ac_fn_c_try_link "$LINENO"
  8730. then :
  8731. je_cv_format_arg=yes
  8732. else $as_nop
  8733. je_cv_format_arg=no
  8734. fi
  8735. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8736. conftest$ac_exeext conftest.$ac_ext
  8737. fi
  8738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_arg" >&5
  8739. printf "%s\n" "$je_cv_format_arg" >&6; }
  8740. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  8741. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8742. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8743. else
  8744. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8745. fi
  8746. if test "x${je_cv_format_arg}" = "xyes" ; then
  8747. printf "%s\n" "#define JEMALLOC_HAVE_ATTR_FORMAT_ARG " >>confdefs.h
  8748. fi
  8749. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
  8751. printf %s "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
  8752. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8753. T_APPEND_V=-Wimplicit-fallthrough
  8754. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8755. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8756. else
  8757. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8758. fi
  8759. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8760. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8761. else
  8762. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8763. fi
  8764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8765. /* end confdefs.h. */
  8766. int
  8767. main (void)
  8768. {
  8769. return 0;
  8770. ;
  8771. return 0;
  8772. }
  8773. _ACEOF
  8774. if ac_fn_c_try_compile "$LINENO"
  8775. then :
  8776. je_cv_cflags_added=-Wimplicit-fallthrough
  8777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8778. printf "%s\n" "yes" >&6; }
  8779. else $as_nop
  8780. je_cv_cflags_added=
  8781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8782. printf "%s\n" "no" >&6; }
  8783. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8784. fi
  8785. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8786. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8787. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8788. else
  8789. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8790. fi
  8791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fallthrough attribute is compilable" >&5
  8792. printf %s "checking whether fallthrough attribute is compilable... " >&6; }
  8793. if test ${je_cv_fallthrough+y}
  8794. then :
  8795. printf %s "(cached) " >&6
  8796. else $as_nop
  8797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8798. /* end confdefs.h. */
  8799. #if !__has_attribute(fallthrough)
  8800. #error "foo"
  8801. #endif
  8802. int
  8803. main (void)
  8804. {
  8805. int x = 0;
  8806. switch (x) {
  8807. case 0: __attribute__((__fallthrough__));
  8808. case 1: return 1;
  8809. }
  8810. ;
  8811. return 0;
  8812. }
  8813. _ACEOF
  8814. if ac_fn_c_try_link "$LINENO"
  8815. then :
  8816. je_cv_fallthrough=yes
  8817. else $as_nop
  8818. je_cv_fallthrough=no
  8819. fi
  8820. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8821. conftest$ac_exeext conftest.$ac_ext
  8822. fi
  8823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_fallthrough" >&5
  8824. printf "%s\n" "$je_cv_fallthrough" >&6; }
  8825. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  8826. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8827. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8828. else
  8829. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8830. fi
  8831. if test "x${je_cv_fallthrough}" = "xyes" ; then
  8832. printf "%s\n" "#define JEMALLOC_HAVE_ATTR_FALLTHROUGH " >>confdefs.h
  8833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
  8834. printf %s "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
  8835. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8836. T_APPEND_V=-Wimplicit-fallthrough
  8837. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8838. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8839. else
  8840. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8841. fi
  8842. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8843. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8844. else
  8845. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8846. fi
  8847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8848. /* end confdefs.h. */
  8849. int
  8850. main (void)
  8851. {
  8852. return 0;
  8853. ;
  8854. return 0;
  8855. }
  8856. _ACEOF
  8857. if ac_fn_c_try_compile "$LINENO"
  8858. then :
  8859. je_cv_cflags_added=-Wimplicit-fallthrough
  8860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8861. printf "%s\n" "yes" >&6; }
  8862. else $as_nop
  8863. je_cv_cflags_added=
  8864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8865. printf "%s\n" "no" >&6; }
  8866. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8867. fi
  8868. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8869. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8870. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8871. else
  8872. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8873. fi
  8874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
  8875. printf %s "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
  8876. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  8877. T_APPEND_V=-Wimplicit-fallthrough
  8878. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8879. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  8880. else
  8881. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  8882. fi
  8883. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8884. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8885. else
  8886. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8887. fi
  8888. ac_ext=cpp
  8889. ac_cpp='$CXXCPP $CPPFLAGS'
  8890. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8891. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8892. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8894. /* end confdefs.h. */
  8895. int
  8896. main (void)
  8897. {
  8898. return 0;
  8899. ;
  8900. return 0;
  8901. }
  8902. _ACEOF
  8903. if ac_fn_cxx_try_compile "$LINENO"
  8904. then :
  8905. je_cv_cxxflags_added=-Wimplicit-fallthrough
  8906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8907. printf "%s\n" "yes" >&6; }
  8908. else $as_nop
  8909. je_cv_cxxflags_added=
  8910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8911. printf "%s\n" "no" >&6; }
  8912. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  8913. fi
  8914. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8915. ac_ext=c
  8916. ac_cpp='$CPP $CPPFLAGS'
  8917. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8918. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8919. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8920. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8921. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8922. else
  8923. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8924. fi
  8925. fi
  8926. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  8928. printf %s "checking whether compiler supports -Werror... " >&6; }
  8929. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8930. T_APPEND_V=-Werror
  8931. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8932. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8933. else
  8934. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8935. fi
  8936. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8937. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8938. else
  8939. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8940. fi
  8941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8942. /* end confdefs.h. */
  8943. int
  8944. main (void)
  8945. {
  8946. return 0;
  8947. ;
  8948. return 0;
  8949. }
  8950. _ACEOF
  8951. if ac_fn_c_try_compile "$LINENO"
  8952. then :
  8953. je_cv_cflags_added=-Werror
  8954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8955. printf "%s\n" "yes" >&6; }
  8956. else $as_nop
  8957. je_cv_cflags_added=
  8958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8959. printf "%s\n" "no" >&6; }
  8960. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8961. fi
  8962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8963. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8964. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8965. else
  8966. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8967. fi
  8968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  8969. printf %s "checking whether compiler supports -herror_on_warning... " >&6; }
  8970. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8971. T_APPEND_V=-herror_on_warning
  8972. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8973. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8974. else
  8975. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8976. fi
  8977. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8978. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8979. else
  8980. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8981. fi
  8982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8983. /* end confdefs.h. */
  8984. int
  8985. main (void)
  8986. {
  8987. return 0;
  8988. ;
  8989. return 0;
  8990. }
  8991. _ACEOF
  8992. if ac_fn_c_try_compile "$LINENO"
  8993. then :
  8994. je_cv_cflags_added=-herror_on_warning
  8995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8996. printf "%s\n" "yes" >&6; }
  8997. else $as_nop
  8998. je_cv_cflags_added=
  8999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9000. printf "%s\n" "no" >&6; }
  9001. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9002. fi
  9003. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9004. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9005. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9006. else
  9007. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9008. fi
  9009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cold attribute is compilable" >&5
  9010. printf %s "checking whether cold attribute is compilable... " >&6; }
  9011. if test ${je_cv_cold+y}
  9012. then :
  9013. printf %s "(cached) " >&6
  9014. else $as_nop
  9015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9016. /* end confdefs.h. */
  9017. int
  9018. main (void)
  9019. {
  9020. __attribute__((__cold__)) void foo();
  9021. ;
  9022. return 0;
  9023. }
  9024. _ACEOF
  9025. if ac_fn_c_try_link "$LINENO"
  9026. then :
  9027. je_cv_cold=yes
  9028. else $as_nop
  9029. je_cv_cold=no
  9030. fi
  9031. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9032. conftest$ac_exeext conftest.$ac_ext
  9033. fi
  9034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_cold" >&5
  9035. printf "%s\n" "$je_cv_cold" >&6; }
  9036. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  9037. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9038. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9039. else
  9040. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9041. fi
  9042. if test "x${je_cv_cold}" = "xyes" ; then
  9043. printf "%s\n" "#define JEMALLOC_HAVE_ATTR_COLD " >>confdefs.h
  9044. fi
  9045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether vm_make_tag is compilable" >&5
  9046. printf %s "checking whether vm_make_tag is compilable... " >&6; }
  9047. if test ${je_cv_vm_make_tag+y}
  9048. then :
  9049. printf %s "(cached) " >&6
  9050. else $as_nop
  9051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9052. /* end confdefs.h. */
  9053. #include <sys/mman.h>
  9054. #include <mach/vm_statistics.h>
  9055. int
  9056. main (void)
  9057. {
  9058. void *p;
  9059. p = mmap(0, 16, PROT_READ, MAP_ANON|MAP_PRIVATE, VM_MAKE_TAG(1), 0);
  9060. munmap(p, 16);
  9061. ;
  9062. return 0;
  9063. }
  9064. _ACEOF
  9065. if ac_fn_c_try_link "$LINENO"
  9066. then :
  9067. je_cv_vm_make_tag=yes
  9068. else $as_nop
  9069. je_cv_vm_make_tag=no
  9070. fi
  9071. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9072. conftest$ac_exeext conftest.$ac_ext
  9073. fi
  9074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_vm_make_tag" >&5
  9075. printf "%s\n" "$je_cv_vm_make_tag" >&6; }
  9076. if test "x${je_cv_vm_make_tag}" = "xyes" ; then
  9077. printf "%s\n" "#define JEMALLOC_HAVE_VM_MAKE_TAG " >>confdefs.h
  9078. fi
  9079. # Check whether --with-rpath was given.
  9080. if test ${with_rpath+y}
  9081. then :
  9082. withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
  9083. RPATH_EXTRA=
  9084. else
  9085. RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
  9086. fi
  9087. else $as_nop
  9088. RPATH_EXTRA=
  9089. fi
  9090. # Check whether --enable-autogen was given.
  9091. if test ${enable_autogen+y}
  9092. then :
  9093. enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
  9094. enable_autogen="0"
  9095. else
  9096. enable_autogen="1"
  9097. fi
  9098. else $as_nop
  9099. enable_autogen="0"
  9100. fi
  9101. # Find a good install program. We prefer a C program (faster),
  9102. # so one script is as good as another. But avoid the broken or
  9103. # incompatible versions:
  9104. # SysV /etc/install, /usr/sbin/install
  9105. # SunOS /usr/etc/install
  9106. # IRIX /sbin/install
  9107. # AIX /bin/install
  9108. # AmigaOS /C/install, which installs bootblocks on floppy discs
  9109. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9110. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9111. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9112. # OS/2's system install, which has a completely different semantic
  9113. # ./install, which can be erroneously created by make from ./install.sh.
  9114. # Reject install programs that cannot install multiple files.
  9115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  9116. printf %s "checking for a BSD-compatible install... " >&6; }
  9117. if test -z "$INSTALL"; then
  9118. if test ${ac_cv_path_install+y}
  9119. then :
  9120. printf %s "(cached) " >&6
  9121. else $as_nop
  9122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9123. for as_dir in $PATH
  9124. do
  9125. IFS=$as_save_IFS
  9126. case $as_dir in #(((
  9127. '') as_dir=./ ;;
  9128. */) ;;
  9129. *) as_dir=$as_dir/ ;;
  9130. esac
  9131. # Account for fact that we put trailing slashes in our PATH walk.
  9132. case $as_dir in #((
  9133. ./ | /[cC]/* | \
  9134. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9135. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  9136. /usr/ucb/* ) ;;
  9137. *)
  9138. # OSF1 and SCO ODT 3.0 have their own names for install.
  9139. # Don't use installbsd from OSF since it installs stuff as root
  9140. # by default.
  9141. for ac_prog in ginstall scoinst install; do
  9142. for ac_exec_ext in '' $ac_executable_extensions; do
  9143. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  9144. if test $ac_prog = install &&
  9145. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9146. # AIX install. It has an incompatible calling convention.
  9147. :
  9148. elif test $ac_prog = install &&
  9149. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9150. # program-specific install script used by HP pwplus--don't use.
  9151. :
  9152. else
  9153. rm -rf conftest.one conftest.two conftest.dir
  9154. echo one > conftest.one
  9155. echo two > conftest.two
  9156. mkdir conftest.dir
  9157. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  9158. test -s conftest.one && test -s conftest.two &&
  9159. test -s conftest.dir/conftest.one &&
  9160. test -s conftest.dir/conftest.two
  9161. then
  9162. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  9163. break 3
  9164. fi
  9165. fi
  9166. fi
  9167. done
  9168. done
  9169. ;;
  9170. esac
  9171. done
  9172. IFS=$as_save_IFS
  9173. rm -rf conftest.one conftest.two conftest.dir
  9174. fi
  9175. if test ${ac_cv_path_install+y}; then
  9176. INSTALL=$ac_cv_path_install
  9177. else
  9178. # As a last resort, use the slow shell script. Don't cache a
  9179. # value for INSTALL within a source directory, because that will
  9180. # break other packages using the cache if that directory is
  9181. # removed, or if the value is a relative name.
  9182. INSTALL=$ac_install_sh
  9183. fi
  9184. fi
  9185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  9186. printf "%s\n" "$INSTALL" >&6; }
  9187. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9188. # It thinks the first close brace ends the variable substitution.
  9189. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9190. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  9191. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9192. if test -n "$ac_tool_prefix"; then
  9193. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  9194. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  9195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9196. printf %s "checking for $ac_word... " >&6; }
  9197. if test ${ac_cv_prog_RANLIB+y}
  9198. then :
  9199. printf %s "(cached) " >&6
  9200. else $as_nop
  9201. if test -n "$RANLIB"; then
  9202. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  9203. else
  9204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9205. for as_dir in $PATH
  9206. do
  9207. IFS=$as_save_IFS
  9208. case $as_dir in #(((
  9209. '') as_dir=./ ;;
  9210. */) ;;
  9211. *) as_dir=$as_dir/ ;;
  9212. esac
  9213. for ac_exec_ext in '' $ac_executable_extensions; do
  9214. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9215. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  9216. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9217. break 2
  9218. fi
  9219. done
  9220. done
  9221. IFS=$as_save_IFS
  9222. fi
  9223. fi
  9224. RANLIB=$ac_cv_prog_RANLIB
  9225. if test -n "$RANLIB"; then
  9226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  9227. printf "%s\n" "$RANLIB" >&6; }
  9228. else
  9229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9230. printf "%s\n" "no" >&6; }
  9231. fi
  9232. fi
  9233. if test -z "$ac_cv_prog_RANLIB"; then
  9234. ac_ct_RANLIB=$RANLIB
  9235. # Extract the first word of "ranlib", so it can be a program name with args.
  9236. set dummy ranlib; ac_word=$2
  9237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9238. printf %s "checking for $ac_word... " >&6; }
  9239. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  9240. then :
  9241. printf %s "(cached) " >&6
  9242. else $as_nop
  9243. if test -n "$ac_ct_RANLIB"; then
  9244. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  9245. else
  9246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9247. for as_dir in $PATH
  9248. do
  9249. IFS=$as_save_IFS
  9250. case $as_dir in #(((
  9251. '') as_dir=./ ;;
  9252. */) ;;
  9253. *) as_dir=$as_dir/ ;;
  9254. esac
  9255. for ac_exec_ext in '' $ac_executable_extensions; do
  9256. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9257. ac_cv_prog_ac_ct_RANLIB="ranlib"
  9258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9259. break 2
  9260. fi
  9261. done
  9262. done
  9263. IFS=$as_save_IFS
  9264. fi
  9265. fi
  9266. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  9267. if test -n "$ac_ct_RANLIB"; then
  9268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  9269. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  9270. else
  9271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9272. printf "%s\n" "no" >&6; }
  9273. fi
  9274. if test "x$ac_ct_RANLIB" = x; then
  9275. RANLIB=":"
  9276. else
  9277. case $cross_compiling:$ac_tool_warned in
  9278. yes:)
  9279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9280. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9281. ac_tool_warned=yes ;;
  9282. esac
  9283. RANLIB=$ac_ct_RANLIB
  9284. fi
  9285. else
  9286. RANLIB="$ac_cv_prog_RANLIB"
  9287. fi
  9288. # Extract the first word of "ld", so it can be a program name with args.
  9289. set dummy ld; ac_word=$2
  9290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9291. printf %s "checking for $ac_word... " >&6; }
  9292. if test ${ac_cv_path_LD+y}
  9293. then :
  9294. printf %s "(cached) " >&6
  9295. else $as_nop
  9296. case $LD in
  9297. [\\/]* | ?:[\\/]*)
  9298. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  9299. ;;
  9300. *)
  9301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9302. for as_dir in $PATH
  9303. do
  9304. IFS=$as_save_IFS
  9305. case $as_dir in #(((
  9306. '') as_dir=./ ;;
  9307. */) ;;
  9308. *) as_dir=$as_dir/ ;;
  9309. esac
  9310. for ac_exec_ext in '' $ac_executable_extensions; do
  9311. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9312. ac_cv_path_LD="$as_dir$ac_word$ac_exec_ext"
  9313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9314. break 2
  9315. fi
  9316. done
  9317. done
  9318. IFS=$as_save_IFS
  9319. test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
  9320. ;;
  9321. esac
  9322. fi
  9323. LD=$ac_cv_path_LD
  9324. if test -n "$LD"; then
  9325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9326. printf "%s\n" "$LD" >&6; }
  9327. else
  9328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9329. printf "%s\n" "no" >&6; }
  9330. fi
  9331. # Extract the first word of "autoconf", so it can be a program name with args.
  9332. set dummy autoconf; ac_word=$2
  9333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9334. printf %s "checking for $ac_word... " >&6; }
  9335. if test ${ac_cv_path_AUTOCONF+y}
  9336. then :
  9337. printf %s "(cached) " >&6
  9338. else $as_nop
  9339. case $AUTOCONF in
  9340. [\\/]* | ?:[\\/]*)
  9341. ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
  9342. ;;
  9343. *)
  9344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9345. for as_dir in $PATH
  9346. do
  9347. IFS=$as_save_IFS
  9348. case $as_dir in #(((
  9349. '') as_dir=./ ;;
  9350. */) ;;
  9351. *) as_dir=$as_dir/ ;;
  9352. esac
  9353. for ac_exec_ext in '' $ac_executable_extensions; do
  9354. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9355. ac_cv_path_AUTOCONF="$as_dir$ac_word$ac_exec_ext"
  9356. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9357. break 2
  9358. fi
  9359. done
  9360. done
  9361. IFS=$as_save_IFS
  9362. test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
  9363. ;;
  9364. esac
  9365. fi
  9366. AUTOCONF=$ac_cv_path_AUTOCONF
  9367. if test -n "$AUTOCONF"; then
  9368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  9369. printf "%s\n" "$AUTOCONF" >&6; }
  9370. else
  9371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9372. printf "%s\n" "no" >&6; }
  9373. fi
  9374. # Check whether --enable-doc was given.
  9375. if test ${enable_doc+y}
  9376. then :
  9377. enableval=$enable_doc; if test "x$enable_doc" = "xno" ; then
  9378. enable_doc="0"
  9379. else
  9380. enable_doc="1"
  9381. fi
  9382. else $as_nop
  9383. enable_doc="1"
  9384. fi
  9385. # Check whether --enable-shared was given.
  9386. if test ${enable_shared+y}
  9387. then :
  9388. enableval=$enable_shared; if test "x$enable_shared" = "xno" ; then
  9389. enable_shared="0"
  9390. else
  9391. enable_shared="1"
  9392. fi
  9393. else $as_nop
  9394. enable_shared="1"
  9395. fi
  9396. # Check whether --enable-static was given.
  9397. if test ${enable_static+y}
  9398. then :
  9399. enableval=$enable_static; if test "x$enable_static" = "xno" ; then
  9400. enable_static="0"
  9401. else
  9402. enable_static="1"
  9403. fi
  9404. else $as_nop
  9405. enable_static="1"
  9406. fi
  9407. if test "$enable_shared$enable_static" = "00" ; then
  9408. as_fn_error $? "Please enable one of shared or static builds" "$LINENO" 5
  9409. fi
  9410. # Check whether --with-mangling was given.
  9411. if test ${with_mangling+y}
  9412. then :
  9413. withval=$with_mangling; mangling_map="$with_mangling"
  9414. else $as_nop
  9415. mangling_map=""
  9416. fi
  9417. # Check whether --with-jemalloc_prefix was given.
  9418. if test ${with_jemalloc_prefix+y}
  9419. then :
  9420. withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
  9421. else $as_nop
  9422. if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
  9423. JEMALLOC_PREFIX=""
  9424. else
  9425. JEMALLOC_PREFIX="je_"
  9426. fi
  9427. fi
  9428. if test "x$JEMALLOC_PREFIX" = "x" ; then
  9429. printf "%s\n" "#define JEMALLOC_IS_MALLOC " >>confdefs.h
  9430. else
  9431. JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
  9432. printf "%s\n" "#define JEMALLOC_PREFIX \"$JEMALLOC_PREFIX\"" >>confdefs.h
  9433. printf "%s\n" "#define JEMALLOC_CPREFIX \"$JEMALLOC_CPREFIX\"" >>confdefs.h
  9434. fi
  9435. # Check whether --with-export was given.
  9436. if test ${with_export+y}
  9437. then :
  9438. withval=$with_export; if test "x$with_export" = "xno"; then
  9439. printf "%s\n" "#define JEMALLOC_EXPORT /**/" >>confdefs.h
  9440. fi
  9441. fi
  9442. public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_conf_2_conf_harder malloc_message malloc_stats_print malloc_usable_size mallocx smallocx_${jemalloc_version_gid} nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
  9443. ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
  9444. if test "x$ac_cv_func_memalign" = xyes
  9445. then :
  9446. printf "%s\n" "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h
  9447. public_syms="${public_syms} memalign"
  9448. fi
  9449. ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
  9450. if test "x$ac_cv_func_valloc" = xyes
  9451. then :
  9452. printf "%s\n" "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h
  9453. public_syms="${public_syms} valloc"
  9454. fi
  9455. ac_fn_c_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size"
  9456. if test "x$ac_cv_func_malloc_size" = xyes
  9457. then :
  9458. printf "%s\n" "#define JEMALLOC_HAVE_MALLOC_SIZE " >>confdefs.h
  9459. public_syms="${public_syms} malloc_size"
  9460. fi
  9461. wrap_syms=
  9462. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  9463. ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
  9464. if test "x$ac_cv_func___libc_calloc" = xyes
  9465. then :
  9466. printf "%s\n" "#define JEMALLOC_OVERRIDE___LIBC_CALLOC " >>confdefs.h
  9467. wrap_syms="${wrap_syms} __libc_calloc"
  9468. fi
  9469. ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
  9470. if test "x$ac_cv_func___libc_free" = xyes
  9471. then :
  9472. printf "%s\n" "#define JEMALLOC_OVERRIDE___LIBC_FREE " >>confdefs.h
  9473. wrap_syms="${wrap_syms} __libc_free"
  9474. fi
  9475. ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
  9476. if test "x$ac_cv_func___libc_malloc" = xyes
  9477. then :
  9478. printf "%s\n" "#define JEMALLOC_OVERRIDE___LIBC_MALLOC " >>confdefs.h
  9479. wrap_syms="${wrap_syms} __libc_malloc"
  9480. fi
  9481. ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
  9482. if test "x$ac_cv_func___libc_memalign" = xyes
  9483. then :
  9484. printf "%s\n" "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN " >>confdefs.h
  9485. wrap_syms="${wrap_syms} __libc_memalign"
  9486. fi
  9487. ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
  9488. if test "x$ac_cv_func___libc_realloc" = xyes
  9489. then :
  9490. printf "%s\n" "#define JEMALLOC_OVERRIDE___LIBC_REALLOC " >>confdefs.h
  9491. wrap_syms="${wrap_syms} __libc_realloc"
  9492. fi
  9493. ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
  9494. if test "x$ac_cv_func___libc_valloc" = xyes
  9495. then :
  9496. printf "%s\n" "#define JEMALLOC_OVERRIDE___LIBC_VALLOC " >>confdefs.h
  9497. wrap_syms="${wrap_syms} __libc_valloc"
  9498. fi
  9499. ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
  9500. if test "x$ac_cv_func___posix_memalign" = xyes
  9501. then :
  9502. printf "%s\n" "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN " >>confdefs.h
  9503. wrap_syms="${wrap_syms} __posix_memalign"
  9504. fi
  9505. fi
  9506. case "${host}" in
  9507. *-*-mingw* | *-*-cygwin*)
  9508. wrap_syms="${wrap_syms} tls_callback"
  9509. ;;
  9510. *)
  9511. ;;
  9512. esac
  9513. # Check whether --with-private_namespace was given.
  9514. if test ${with_private_namespace+y}
  9515. then :
  9516. withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
  9517. else $as_nop
  9518. JEMALLOC_PRIVATE_NAMESPACE="je_"
  9519. fi
  9520. printf "%s\n" "#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE" >>confdefs.h
  9521. private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
  9522. # Check whether --with-install_suffix was given.
  9523. if test ${with_install_suffix+y}
  9524. then :
  9525. withval=$with_install_suffix; case "$with_install_suffix" in
  9526. *\ * ) as_fn_error $? "Install suffix should not contain spaces" "$LINENO" 5 ;;
  9527. * ) INSTALL_SUFFIX="$with_install_suffix" ;;
  9528. esac
  9529. else $as_nop
  9530. INSTALL_SUFFIX=
  9531. fi
  9532. install_suffix="$INSTALL_SUFFIX"
  9533. # Check whether --with-malloc_conf was given.
  9534. if test ${with_malloc_conf+y}
  9535. then :
  9536. withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
  9537. else $as_nop
  9538. JEMALLOC_CONFIG_MALLOC_CONF=""
  9539. fi
  9540. config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
  9541. printf "%s\n" "#define JEMALLOC_CONFIG_MALLOC_CONF \"$config_malloc_conf\"" >>confdefs.h
  9542. je_="je_"
  9543. cfgoutputs_in="Makefile.in"
  9544. cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
  9545. cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
  9546. cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
  9547. cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
  9548. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
  9549. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
  9550. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
  9551. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
  9552. cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
  9553. cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
  9554. cfgoutputs_out="Makefile"
  9555. cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
  9556. cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
  9557. cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
  9558. cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
  9559. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
  9560. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
  9561. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
  9562. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
  9563. cfgoutputs_out="${cfgoutputs_out} test/test.sh"
  9564. cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
  9565. cfgoutputs_tup="Makefile"
  9566. cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
  9567. cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
  9568. cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
  9569. cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
  9570. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
  9571. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
  9572. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
  9573. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
  9574. cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
  9575. cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
  9576. cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
  9577. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
  9578. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
  9579. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
  9580. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
  9581. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
  9582. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
  9583. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
  9584. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
  9585. cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
  9586. cfghdrs_out="include/jemalloc/jemalloc_defs.h"
  9587. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
  9588. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
  9589. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
  9590. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
  9591. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
  9592. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
  9593. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
  9594. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
  9595. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
  9596. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
  9597. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
  9598. cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
  9599. cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
  9600. cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
  9601. cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
  9602. # Check whether --enable-debug was given.
  9603. if test ${enable_debug+y}
  9604. then :
  9605. enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
  9606. enable_debug="0"
  9607. else
  9608. enable_debug="1"
  9609. fi
  9610. else $as_nop
  9611. enable_debug="0"
  9612. fi
  9613. if test "x$enable_debug" = "x1" ; then
  9614. printf "%s\n" "#define JEMALLOC_DEBUG " >>confdefs.h
  9615. fi
  9616. if test "x$enable_debug" = "x0" ; then
  9617. if test "x$GCC" = "xyes" ; then
  9618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
  9619. printf %s "checking whether compiler supports -O3... " >&6; }
  9620. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9621. T_APPEND_V=-O3
  9622. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9623. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  9624. else
  9625. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  9626. fi
  9627. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9628. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9629. else
  9630. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9631. fi
  9632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9633. /* end confdefs.h. */
  9634. int
  9635. main (void)
  9636. {
  9637. return 0;
  9638. ;
  9639. return 0;
  9640. }
  9641. _ACEOF
  9642. if ac_fn_c_try_compile "$LINENO"
  9643. then :
  9644. je_cv_cflags_added=-O3
  9645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9646. printf "%s\n" "yes" >&6; }
  9647. else $as_nop
  9648. je_cv_cflags_added=
  9649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9650. printf "%s\n" "no" >&6; }
  9651. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9652. fi
  9653. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9654. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9655. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9656. else
  9657. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9658. fi
  9659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
  9660. printf %s "checking whether compiler supports -O3... " >&6; }
  9661. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  9662. T_APPEND_V=-O3
  9663. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9664. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  9665. else
  9666. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  9667. fi
  9668. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  9669. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  9670. else
  9671. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  9672. fi
  9673. ac_ext=cpp
  9674. ac_cpp='$CXXCPP $CPPFLAGS'
  9675. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9676. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9677. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9679. /* end confdefs.h. */
  9680. int
  9681. main (void)
  9682. {
  9683. return 0;
  9684. ;
  9685. return 0;
  9686. }
  9687. _ACEOF
  9688. if ac_fn_cxx_try_compile "$LINENO"
  9689. then :
  9690. je_cv_cxxflags_added=-O3
  9691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9692. printf "%s\n" "yes" >&6; }
  9693. else $as_nop
  9694. je_cv_cxxflags_added=
  9695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9696. printf "%s\n" "no" >&6; }
  9697. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  9698. fi
  9699. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9700. ac_ext=c
  9701. ac_cpp='$CPP $CPPFLAGS'
  9702. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9703. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9705. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  9706. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  9707. else
  9708. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  9709. fi
  9710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
  9711. printf %s "checking whether compiler supports -funroll-loops... " >&6; }
  9712. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9713. T_APPEND_V=-funroll-loops
  9714. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9715. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  9716. else
  9717. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  9718. fi
  9719. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9720. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9721. else
  9722. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9723. fi
  9724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9725. /* end confdefs.h. */
  9726. int
  9727. main (void)
  9728. {
  9729. return 0;
  9730. ;
  9731. return 0;
  9732. }
  9733. _ACEOF
  9734. if ac_fn_c_try_compile "$LINENO"
  9735. then :
  9736. je_cv_cflags_added=-funroll-loops
  9737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9738. printf "%s\n" "yes" >&6; }
  9739. else $as_nop
  9740. je_cv_cflags_added=
  9741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9742. printf "%s\n" "no" >&6; }
  9743. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9744. fi
  9745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9746. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9747. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9748. else
  9749. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9750. fi
  9751. elif test "x$je_cv_msvc" = "xyes" ; then
  9752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
  9753. printf %s "checking whether compiler supports -O2... " >&6; }
  9754. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9755. T_APPEND_V=-O2
  9756. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9757. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  9758. else
  9759. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  9760. fi
  9761. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9762. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9763. else
  9764. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9765. fi
  9766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9767. /* end confdefs.h. */
  9768. int
  9769. main (void)
  9770. {
  9771. return 0;
  9772. ;
  9773. return 0;
  9774. }
  9775. _ACEOF
  9776. if ac_fn_c_try_compile "$LINENO"
  9777. then :
  9778. je_cv_cflags_added=-O2
  9779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9780. printf "%s\n" "yes" >&6; }
  9781. else $as_nop
  9782. je_cv_cflags_added=
  9783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9784. printf "%s\n" "no" >&6; }
  9785. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9786. fi
  9787. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9788. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9789. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9790. else
  9791. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9792. fi
  9793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
  9794. printf %s "checking whether compiler supports -O2... " >&6; }
  9795. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  9796. T_APPEND_V=-O2
  9797. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9798. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  9799. else
  9800. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  9801. fi
  9802. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  9803. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  9804. else
  9805. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  9806. fi
  9807. ac_ext=cpp
  9808. ac_cpp='$CXXCPP $CPPFLAGS'
  9809. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9810. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9811. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9813. /* end confdefs.h. */
  9814. int
  9815. main (void)
  9816. {
  9817. return 0;
  9818. ;
  9819. return 0;
  9820. }
  9821. _ACEOF
  9822. if ac_fn_cxx_try_compile "$LINENO"
  9823. then :
  9824. je_cv_cxxflags_added=-O2
  9825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9826. printf "%s\n" "yes" >&6; }
  9827. else $as_nop
  9828. je_cv_cxxflags_added=
  9829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9830. printf "%s\n" "no" >&6; }
  9831. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  9832. fi
  9833. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9834. ac_ext=c
  9835. ac_cpp='$CPP $CPPFLAGS'
  9836. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9837. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9838. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9839. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  9840. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  9841. else
  9842. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  9843. fi
  9844. else
  9845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
  9846. printf %s "checking whether compiler supports -O... " >&6; }
  9847. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9848. T_APPEND_V=-O
  9849. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9850. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  9851. else
  9852. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  9853. fi
  9854. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9855. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9856. else
  9857. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9858. fi
  9859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9860. /* end confdefs.h. */
  9861. int
  9862. main (void)
  9863. {
  9864. return 0;
  9865. ;
  9866. return 0;
  9867. }
  9868. _ACEOF
  9869. if ac_fn_c_try_compile "$LINENO"
  9870. then :
  9871. je_cv_cflags_added=-O
  9872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9873. printf "%s\n" "yes" >&6; }
  9874. else $as_nop
  9875. je_cv_cflags_added=
  9876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9877. printf "%s\n" "no" >&6; }
  9878. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9879. fi
  9880. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9881. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9882. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9883. else
  9884. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9885. fi
  9886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
  9887. printf %s "checking whether compiler supports -O... " >&6; }
  9888. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  9889. T_APPEND_V=-O
  9890. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9891. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  9892. else
  9893. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  9894. fi
  9895. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  9896. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  9897. else
  9898. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  9899. fi
  9900. ac_ext=cpp
  9901. ac_cpp='$CXXCPP $CPPFLAGS'
  9902. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9903. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9904. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9906. /* end confdefs.h. */
  9907. int
  9908. main (void)
  9909. {
  9910. return 0;
  9911. ;
  9912. return 0;
  9913. }
  9914. _ACEOF
  9915. if ac_fn_cxx_try_compile "$LINENO"
  9916. then :
  9917. je_cv_cxxflags_added=-O
  9918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9919. printf "%s\n" "yes" >&6; }
  9920. else $as_nop
  9921. je_cv_cxxflags_added=
  9922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9923. printf "%s\n" "no" >&6; }
  9924. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  9925. fi
  9926. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9927. ac_ext=c
  9928. ac_cpp='$CPP $CPPFLAGS'
  9929. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9930. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9931. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9932. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  9933. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  9934. else
  9935. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  9936. fi
  9937. fi
  9938. fi
  9939. # Check whether --enable-stats was given.
  9940. if test ${enable_stats+y}
  9941. then :
  9942. enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
  9943. enable_stats="0"
  9944. else
  9945. enable_stats="1"
  9946. fi
  9947. else $as_nop
  9948. enable_stats="1"
  9949. fi
  9950. if test "x$enable_stats" = "x1" ; then
  9951. printf "%s\n" "#define JEMALLOC_STATS " >>confdefs.h
  9952. fi
  9953. # Check whether --enable-experimental_smallocx was given.
  9954. if test ${enable_experimental_smallocx+y}
  9955. then :
  9956. enableval=$enable_experimental_smallocx; if test "x$enable_experimental_smallocx" = "xno" ; then
  9957. enable_experimental_smallocx="0"
  9958. else
  9959. enable_experimental_smallocx="1"
  9960. fi
  9961. else $as_nop
  9962. enable_experimental_smallocx="0"
  9963. fi
  9964. if test "x$enable_experimental_smallocx" = "x1" ; then
  9965. printf "%s\n" "#define JEMALLOC_EXPERIMENTAL_SMALLOCX_API " >>confdefs.h
  9966. fi
  9967. # Check whether --enable-prof was given.
  9968. if test ${enable_prof+y}
  9969. then :
  9970. enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
  9971. enable_prof="0"
  9972. else
  9973. enable_prof="1"
  9974. fi
  9975. else $as_nop
  9976. enable_prof="0"
  9977. fi
  9978. if test "x$enable_prof" = "x1" ; then
  9979. backtrace_method=""
  9980. else
  9981. backtrace_method="N/A"
  9982. fi
  9983. # Check whether --enable-prof-libunwind was given.
  9984. if test ${enable_prof_libunwind+y}
  9985. then :
  9986. enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
  9987. enable_prof_libunwind="0"
  9988. else
  9989. enable_prof_libunwind="1"
  9990. if test "x$enable_prof" = "x0" ; then
  9991. as_fn_error $? "--enable-prof-libunwind should only be used with --enable-prof" "$LINENO" 5
  9992. fi
  9993. fi
  9994. else $as_nop
  9995. enable_prof_libunwind="0"
  9996. fi
  9997. # Check whether --with-static_libunwind was given.
  9998. if test ${with_static_libunwind+y}
  9999. then :
  10000. withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
  10001. LUNWIND="-lunwind"
  10002. else
  10003. if test ! -f "$with_static_libunwind" ; then
  10004. as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
  10005. fi
  10006. LUNWIND="$with_static_libunwind"
  10007. fi
  10008. else $as_nop
  10009. LUNWIND="-lunwind"
  10010. fi
  10011. if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
  10012. for ac_header in libunwind.h
  10013. do :
  10014. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  10015. if test "x$ac_cv_header_libunwind_h" = xyes
  10016. then :
  10017. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  10018. else $as_nop
  10019. enable_prof_libunwind="0"
  10020. fi
  10021. done
  10022. if test "x$LUNWIND" = "x-lunwind" ; then
  10023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
  10024. printf %s "checking for unw_backtrace in -lunwind... " >&6; }
  10025. if test ${ac_cv_lib_unwind_unw_backtrace+y}
  10026. then :
  10027. printf %s "(cached) " >&6
  10028. else $as_nop
  10029. ac_check_lib_save_LIBS=$LIBS
  10030. LIBS="-lunwind $LIBS"
  10031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10032. /* end confdefs.h. */
  10033. /* Override any GCC internal prototype to avoid an error.
  10034. Use char because int might match the return type of a GCC
  10035. builtin and then its argument prototype would still apply. */
  10036. char unw_backtrace ();
  10037. int
  10038. main (void)
  10039. {
  10040. return unw_backtrace ();
  10041. ;
  10042. return 0;
  10043. }
  10044. _ACEOF
  10045. if ac_fn_c_try_link "$LINENO"
  10046. then :
  10047. ac_cv_lib_unwind_unw_backtrace=yes
  10048. else $as_nop
  10049. ac_cv_lib_unwind_unw_backtrace=no
  10050. fi
  10051. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10052. conftest$ac_exeext conftest.$ac_ext
  10053. LIBS=$ac_check_lib_save_LIBS
  10054. fi
  10055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
  10056. printf "%s\n" "$ac_cv_lib_unwind_unw_backtrace" >&6; }
  10057. if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes
  10058. then :
  10059. T_APPEND_V=$LUNWIND
  10060. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10061. LIBS="${LIBS}${T_APPEND_V}"
  10062. else
  10063. LIBS="${LIBS} ${T_APPEND_V}"
  10064. fi
  10065. else $as_nop
  10066. enable_prof_libunwind="0"
  10067. fi
  10068. else
  10069. T_APPEND_V=$LUNWIND
  10070. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10071. LIBS="${LIBS}${T_APPEND_V}"
  10072. else
  10073. LIBS="${LIBS} ${T_APPEND_V}"
  10074. fi
  10075. fi
  10076. if test "x${enable_prof_libunwind}" = "x1" ; then
  10077. backtrace_method="libunwind"
  10078. printf "%s\n" "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h
  10079. fi
  10080. fi
  10081. # Check whether --enable-prof-libgcc was given.
  10082. if test ${enable_prof_libgcc+y}
  10083. then :
  10084. enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
  10085. enable_prof_libgcc="0"
  10086. else
  10087. enable_prof_libgcc="1"
  10088. fi
  10089. else $as_nop
  10090. enable_prof_libgcc="1"
  10091. fi
  10092. if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
  10093. -a "x$GCC" = "xyes" ; then
  10094. for ac_header in unwind.h
  10095. do :
  10096. ac_fn_c_check_header_compile "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  10097. if test "x$ac_cv_header_unwind_h" = xyes
  10098. then :
  10099. printf "%s\n" "#define HAVE_UNWIND_H 1" >>confdefs.h
  10100. else $as_nop
  10101. enable_prof_libgcc="0"
  10102. fi
  10103. done
  10104. if test "x${enable_prof_libgcc}" = "x1" ; then
  10105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
  10106. printf %s "checking for _Unwind_Backtrace in -lgcc... " >&6; }
  10107. if test ${ac_cv_lib_gcc__Unwind_Backtrace+y}
  10108. then :
  10109. printf %s "(cached) " >&6
  10110. else $as_nop
  10111. ac_check_lib_save_LIBS=$LIBS
  10112. LIBS="-lgcc $LIBS"
  10113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10114. /* end confdefs.h. */
  10115. /* Override any GCC internal prototype to avoid an error.
  10116. Use char because int might match the return type of a GCC
  10117. builtin and then its argument prototype would still apply. */
  10118. char _Unwind_Backtrace ();
  10119. int
  10120. main (void)
  10121. {
  10122. return _Unwind_Backtrace ();
  10123. ;
  10124. return 0;
  10125. }
  10126. _ACEOF
  10127. if ac_fn_c_try_link "$LINENO"
  10128. then :
  10129. ac_cv_lib_gcc__Unwind_Backtrace=yes
  10130. else $as_nop
  10131. ac_cv_lib_gcc__Unwind_Backtrace=no
  10132. fi
  10133. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10134. conftest$ac_exeext conftest.$ac_ext
  10135. LIBS=$ac_check_lib_save_LIBS
  10136. fi
  10137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
  10138. printf "%s\n" "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
  10139. if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes
  10140. then :
  10141. T_APPEND_V=-lgcc
  10142. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10143. LIBS="${LIBS}${T_APPEND_V}"
  10144. else
  10145. LIBS="${LIBS} ${T_APPEND_V}"
  10146. fi
  10147. else $as_nop
  10148. enable_prof_libgcc="0"
  10149. fi
  10150. fi
  10151. if test "x${enable_prof_libgcc}" = "x1" ; then
  10152. backtrace_method="libgcc"
  10153. printf "%s\n" "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h
  10154. fi
  10155. else
  10156. enable_prof_libgcc="0"
  10157. fi
  10158. # Check whether --enable-prof-gcc was given.
  10159. if test ${enable_prof_gcc+y}
  10160. then :
  10161. enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
  10162. enable_prof_gcc="0"
  10163. else
  10164. enable_prof_gcc="1"
  10165. fi
  10166. else $as_nop
  10167. enable_prof_gcc="1"
  10168. fi
  10169. if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
  10170. -a "x$GCC" = "xyes" ; then
  10171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
  10172. printf %s "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
  10173. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  10174. T_APPEND_V=-fno-omit-frame-pointer
  10175. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10176. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  10177. else
  10178. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  10179. fi
  10180. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10181. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10182. else
  10183. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10184. fi
  10185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10186. /* end confdefs.h. */
  10187. int
  10188. main (void)
  10189. {
  10190. return 0;
  10191. ;
  10192. return 0;
  10193. }
  10194. _ACEOF
  10195. if ac_fn_c_try_compile "$LINENO"
  10196. then :
  10197. je_cv_cflags_added=-fno-omit-frame-pointer
  10198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10199. printf "%s\n" "yes" >&6; }
  10200. else $as_nop
  10201. je_cv_cflags_added=
  10202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10203. printf "%s\n" "no" >&6; }
  10204. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  10205. fi
  10206. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  10207. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10208. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10209. else
  10210. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10211. fi
  10212. backtrace_method="gcc intrinsics"
  10213. printf "%s\n" "#define JEMALLOC_PROF_GCC " >>confdefs.h
  10214. else
  10215. enable_prof_gcc="0"
  10216. fi
  10217. if test "x$backtrace_method" = "x" ; then
  10218. backtrace_method="none (disabling profiling)"
  10219. enable_prof="0"
  10220. fi
  10221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
  10222. printf %s "checking configured backtracing method... " >&6; }
  10223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
  10224. printf "%s\n" "$backtrace_method" >&6; }
  10225. if test "x$enable_prof" = "x1" ; then
  10226. T_APPEND_V=$LM
  10227. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10228. LIBS="${LIBS}${T_APPEND_V}"
  10229. else
  10230. LIBS="${LIBS} ${T_APPEND_V}"
  10231. fi
  10232. printf "%s\n" "#define JEMALLOC_PROF " >>confdefs.h
  10233. fi
  10234. if test "x${maps_coalesce}" = "x1" ; then
  10235. printf "%s\n" "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h
  10236. fi
  10237. if test "x$default_retain" = "x1" ; then
  10238. printf "%s\n" "#define JEMALLOC_RETAIN " >>confdefs.h
  10239. fi
  10240. if test "x$zero_realloc_default_free" = "x1" ; then
  10241. printf "%s\n" "#define JEMALLOC_ZERO_REALLOC_DEFAULT_FREE " >>confdefs.h
  10242. fi
  10243. have_dss="1"
  10244. ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
  10245. if test "x$ac_cv_func_sbrk" = xyes
  10246. then :
  10247. have_sbrk="1"
  10248. else $as_nop
  10249. have_sbrk="0"
  10250. fi
  10251. if test "x$have_sbrk" = "x1" ; then
  10252. if test "x$sbrk_deprecated" = "x1" ; then
  10253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
  10254. printf "%s\n" "Disabling dss allocation because sbrk is deprecated" >&6; }
  10255. have_dss="0"
  10256. fi
  10257. else
  10258. have_dss="0"
  10259. fi
  10260. if test "x$have_dss" = "x1" ; then
  10261. printf "%s\n" "#define JEMALLOC_DSS " >>confdefs.h
  10262. fi
  10263. # Check whether --enable-fill was given.
  10264. if test ${enable_fill+y}
  10265. then :
  10266. enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
  10267. enable_fill="0"
  10268. else
  10269. enable_fill="1"
  10270. fi
  10271. else $as_nop
  10272. enable_fill="1"
  10273. fi
  10274. if test "x$enable_fill" = "x1" ; then
  10275. printf "%s\n" "#define JEMALLOC_FILL " >>confdefs.h
  10276. fi
  10277. # Check whether --enable-utrace was given.
  10278. if test ${enable_utrace+y}
  10279. then :
  10280. enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
  10281. enable_utrace="0"
  10282. else
  10283. enable_utrace="1"
  10284. fi
  10285. else $as_nop
  10286. enable_utrace="0"
  10287. fi
  10288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
  10289. printf %s "checking whether utrace(2) is compilable... " >&6; }
  10290. if test ${je_cv_utrace+y}
  10291. then :
  10292. printf %s "(cached) " >&6
  10293. else $as_nop
  10294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10295. /* end confdefs.h. */
  10296. #include <sys/types.h>
  10297. #include <sys/param.h>
  10298. #include <sys/time.h>
  10299. #include <sys/uio.h>
  10300. #include <sys/ktrace.h>
  10301. int
  10302. main (void)
  10303. {
  10304. utrace((void *)0, 0);
  10305. ;
  10306. return 0;
  10307. }
  10308. _ACEOF
  10309. if ac_fn_c_try_link "$LINENO"
  10310. then :
  10311. je_cv_utrace=yes
  10312. else $as_nop
  10313. je_cv_utrace=no
  10314. fi
  10315. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10316. conftest$ac_exeext conftest.$ac_ext
  10317. fi
  10318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
  10319. printf "%s\n" "$je_cv_utrace" >&6; }
  10320. if test "x${je_cv_utrace}" = "xno" ; then
  10321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) with label is compilable" >&5
  10322. printf %s "checking whether utrace(2) with label is compilable... " >&6; }
  10323. if test ${je_cv_utrace_label+y}
  10324. then :
  10325. printf %s "(cached) " >&6
  10326. else $as_nop
  10327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10328. /* end confdefs.h. */
  10329. #include <sys/types.h>
  10330. #include <sys/param.h>
  10331. #include <sys/time.h>
  10332. #include <sys/uio.h>
  10333. #include <sys/ktrace.h>
  10334. int
  10335. main (void)
  10336. {
  10337. utrace((void *)0, (void *)0, 0);
  10338. ;
  10339. return 0;
  10340. }
  10341. _ACEOF
  10342. if ac_fn_c_try_link "$LINENO"
  10343. then :
  10344. je_cv_utrace_label=yes
  10345. else $as_nop
  10346. je_cv_utrace_label=no
  10347. fi
  10348. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10349. conftest$ac_exeext conftest.$ac_ext
  10350. fi
  10351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace_label" >&5
  10352. printf "%s\n" "$je_cv_utrace_label" >&6; }
  10353. if test "x${je_cv_utrace_label}" = "xno"; then
  10354. enable_utrace="0"
  10355. fi
  10356. if test "x$enable_utrace" = "x1" ; then
  10357. printf "%s\n" "#define JEMALLOC_UTRACE_LABEL " >>confdefs.h
  10358. fi
  10359. else
  10360. if test "x$enable_utrace" = "x1" ; then
  10361. printf "%s\n" "#define JEMALLOC_UTRACE " >>confdefs.h
  10362. fi
  10363. fi
  10364. # Check whether --enable-xmalloc was given.
  10365. if test ${enable_xmalloc+y}
  10366. then :
  10367. enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
  10368. enable_xmalloc="0"
  10369. else
  10370. enable_xmalloc="1"
  10371. fi
  10372. else $as_nop
  10373. enable_xmalloc="0"
  10374. fi
  10375. if test "x$enable_xmalloc" = "x1" ; then
  10376. printf "%s\n" "#define JEMALLOC_XMALLOC " >>confdefs.h
  10377. fi
  10378. # Check whether --enable-cache-oblivious was given.
  10379. if test ${enable_cache_oblivious+y}
  10380. then :
  10381. enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
  10382. enable_cache_oblivious="0"
  10383. else
  10384. enable_cache_oblivious="1"
  10385. fi
  10386. else $as_nop
  10387. enable_cache_oblivious="1"
  10388. fi
  10389. if test "x$enable_cache_oblivious" = "x1" ; then
  10390. printf "%s\n" "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h
  10391. fi
  10392. # Check whether --enable-log was given.
  10393. if test ${enable_log+y}
  10394. then :
  10395. enableval=$enable_log; if test "x$enable_log" = "xno" ; then
  10396. enable_log="0"
  10397. else
  10398. enable_log="1"
  10399. fi
  10400. else $as_nop
  10401. enable_log="0"
  10402. fi
  10403. if test "x$enable_log" = "x1" ; then
  10404. printf "%s\n" "#define JEMALLOC_LOG " >>confdefs.h
  10405. fi
  10406. # Check whether --enable-readlinkat was given.
  10407. if test ${enable_readlinkat+y}
  10408. then :
  10409. enableval=$enable_readlinkat; if test "x$enable_readlinkat" = "xno" ; then
  10410. enable_readlinkat="0"
  10411. else
  10412. enable_readlinkat="1"
  10413. fi
  10414. else $as_nop
  10415. enable_readlinkat="0"
  10416. fi
  10417. if test "x$enable_readlinkat" = "x1" ; then
  10418. printf "%s\n" "#define JEMALLOC_READLINKAT " >>confdefs.h
  10419. fi
  10420. # Check whether --enable-opt-safety-checks was given.
  10421. if test ${enable_opt_safety_checks+y}
  10422. then :
  10423. enableval=$enable_opt_safety_checks; if test "x$enable_opt_safety_checks" = "xno" ; then
  10424. enable_opt_safety_checks="0"
  10425. else
  10426. enable_opt_safety_checks="1"
  10427. fi
  10428. else $as_nop
  10429. enable_opt_safety_checks="0"
  10430. fi
  10431. if test "x$enable_opt_safety_checks" = "x1" ; then
  10432. printf "%s\n" "#define JEMALLOC_OPT_SAFETY_CHECKS " >>confdefs.h
  10433. fi
  10434. # Check whether --enable-opt-size-checks was given.
  10435. if test ${enable_opt_size_checks+y}
  10436. then :
  10437. enableval=$enable_opt_size_checks; if test "x$enable_opt_size_checks" = "xno" ; then
  10438. enable_opt_size_checks="0"
  10439. else
  10440. enable_opt_size_checks="1"
  10441. fi
  10442. else $as_nop
  10443. enable_opt_size_checks="0"
  10444. fi
  10445. if test "x$enable_opt_size_checks" = "x1" ; then
  10446. printf "%s\n" "#define JEMALLOC_OPT_SIZE_CHECKS " >>confdefs.h
  10447. fi
  10448. # Check whether --enable-uaf-detection was given.
  10449. if test ${enable_uaf_detection+y}
  10450. then :
  10451. enableval=$enable_uaf_detection; if test "x$enable_uaf_detection" = "xno" ; then
  10452. enable_uaf_detection="0"
  10453. else
  10454. enable_uaf_detection="1"
  10455. fi
  10456. else $as_nop
  10457. enable_uaf_detection="0"
  10458. fi
  10459. if test "x$enable_uaf_detection" = "x1" ; then
  10460. printf "%s\n" "#define JEMALLOC_UAF_DETECTION " >>confdefs.h
  10461. fi
  10462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
  10463. printf %s "checking whether a program using __builtin_unreachable is compilable... " >&6; }
  10464. if test ${je_cv_gcc_builtin_unreachable+y}
  10465. then :
  10466. printf %s "(cached) " >&6
  10467. else $as_nop
  10468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10469. /* end confdefs.h. */
  10470. void foo (void) {
  10471. __builtin_unreachable();
  10472. }
  10473. int
  10474. main (void)
  10475. {
  10476. {
  10477. foo();
  10478. }
  10479. ;
  10480. return 0;
  10481. }
  10482. _ACEOF
  10483. if ac_fn_c_try_link "$LINENO"
  10484. then :
  10485. je_cv_gcc_builtin_unreachable=yes
  10486. else $as_nop
  10487. je_cv_gcc_builtin_unreachable=no
  10488. fi
  10489. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10490. conftest$ac_exeext conftest.$ac_ext
  10491. fi
  10492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
  10493. printf "%s\n" "$je_cv_gcc_builtin_unreachable" >&6; }
  10494. if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
  10495. printf "%s\n" "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
  10496. else
  10497. printf "%s\n" "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
  10498. fi
  10499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
  10500. printf %s "checking whether a program using __builtin_ffsl is compilable... " >&6; }
  10501. if test ${je_cv_gcc_builtin_ffsl+y}
  10502. then :
  10503. printf %s "(cached) " >&6
  10504. else $as_nop
  10505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10506. /* end confdefs.h. */
  10507. #include <stdio.h>
  10508. #include <strings.h>
  10509. #include <string.h>
  10510. int
  10511. main (void)
  10512. {
  10513. {
  10514. int rv = __builtin_ffsl(0x08);
  10515. printf("%d\n", rv);
  10516. }
  10517. ;
  10518. return 0;
  10519. }
  10520. _ACEOF
  10521. if ac_fn_c_try_link "$LINENO"
  10522. then :
  10523. je_cv_gcc_builtin_ffsl=yes
  10524. else $as_nop
  10525. je_cv_gcc_builtin_ffsl=no
  10526. fi
  10527. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10528. conftest$ac_exeext conftest.$ac_ext
  10529. fi
  10530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
  10531. printf "%s\n" "$je_cv_gcc_builtin_ffsl" >&6; }
  10532. if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
  10533. printf "%s\n" "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
  10534. printf "%s\n" "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
  10535. printf "%s\n" "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
  10536. else
  10537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
  10538. printf %s "checking whether a program using ffsl is compilable... " >&6; }
  10539. if test ${je_cv_function_ffsl+y}
  10540. then :
  10541. printf %s "(cached) " >&6
  10542. else $as_nop
  10543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10544. /* end confdefs.h. */
  10545. #include <stdio.h>
  10546. #include <strings.h>
  10547. #include <string.h>
  10548. int
  10549. main (void)
  10550. {
  10551. {
  10552. int rv = ffsl(0x08);
  10553. printf("%d\n", rv);
  10554. }
  10555. ;
  10556. return 0;
  10557. }
  10558. _ACEOF
  10559. if ac_fn_c_try_link "$LINENO"
  10560. then :
  10561. je_cv_function_ffsl=yes
  10562. else $as_nop
  10563. je_cv_function_ffsl=no
  10564. fi
  10565. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10566. conftest$ac_exeext conftest.$ac_ext
  10567. fi
  10568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
  10569. printf "%s\n" "$je_cv_function_ffsl" >&6; }
  10570. if test "x${je_cv_function_ffsl}" = "xyes" ; then
  10571. printf "%s\n" "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
  10572. printf "%s\n" "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
  10573. printf "%s\n" "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
  10574. else
  10575. as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
  10576. fi
  10577. fi
  10578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_popcountl is compilable" >&5
  10579. printf %s "checking whether a program using __builtin_popcountl is compilable... " >&6; }
  10580. if test ${je_cv_gcc_builtin_popcountl+y}
  10581. then :
  10582. printf %s "(cached) " >&6
  10583. else $as_nop
  10584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10585. /* end confdefs.h. */
  10586. #include <stdio.h>
  10587. #include <strings.h>
  10588. #include <string.h>
  10589. int
  10590. main (void)
  10591. {
  10592. {
  10593. int rv = __builtin_popcountl(0x08);
  10594. printf("%d\n", rv);
  10595. }
  10596. ;
  10597. return 0;
  10598. }
  10599. _ACEOF
  10600. if ac_fn_c_try_link "$LINENO"
  10601. then :
  10602. je_cv_gcc_builtin_popcountl=yes
  10603. else $as_nop
  10604. je_cv_gcc_builtin_popcountl=no
  10605. fi
  10606. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10607. conftest$ac_exeext conftest.$ac_ext
  10608. fi
  10609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_popcountl" >&5
  10610. printf "%s\n" "$je_cv_gcc_builtin_popcountl" >&6; }
  10611. if test "x${je_cv_gcc_builtin_popcountl}" = "xyes" ; then
  10612. printf "%s\n" "#define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount" >>confdefs.h
  10613. printf "%s\n" "#define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl" >>confdefs.h
  10614. printf "%s\n" "#define JEMALLOC_INTERNAL_POPCOUNTLL __builtin_popcountll" >>confdefs.h
  10615. fi
  10616. # Check whether --with-lg_quantum was given.
  10617. if test ${with_lg_quantum+y}
  10618. then :
  10619. withval=$with_lg_quantum;
  10620. fi
  10621. if test "x$with_lg_quantum" != "x" ; then
  10622. printf "%s\n" "#define LG_QUANTUM $with_lg_quantum" >>confdefs.h
  10623. fi
  10624. # Check whether --with-lg_slab_maxregs was given.
  10625. if test ${with_lg_slab_maxregs+y}
  10626. then :
  10627. withval=$with_lg_slab_maxregs; CONFIG_LG_SLAB_MAXREGS="with_lg_slab_maxregs"
  10628. else $as_nop
  10629. CONFIG_LG_SLAB_MAXREGS=""
  10630. fi
  10631. if test "x$with_lg_slab_maxregs" != "x" ; then
  10632. printf "%s\n" "#define CONFIG_LG_SLAB_MAXREGS $with_lg_slab_maxregs" >>confdefs.h
  10633. fi
  10634. # Check whether --with-lg_page was given.
  10635. if test ${with_lg_page+y}
  10636. then :
  10637. withval=$with_lg_page; LG_PAGE="$with_lg_page"
  10638. else $as_nop
  10639. LG_PAGE="detect"
  10640. fi
  10641. case "${host}" in
  10642. aarch64-apple-darwin*)
  10643. if test "x${host}" != "x${build}" -a "x$LG_PAGE" = "xdetect"; then
  10644. LG_PAGE=14
  10645. fi
  10646. ;;
  10647. esac
  10648. if test "x$LG_PAGE" = "xdetect"; then
  10649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
  10650. printf %s "checking LG_PAGE... " >&6; }
  10651. if test ${je_cv_lg_page+y}
  10652. then :
  10653. printf %s "(cached) " >&6
  10654. else $as_nop
  10655. if test "$cross_compiling" = yes
  10656. then :
  10657. je_cv_lg_page=12
  10658. else $as_nop
  10659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10660. /* end confdefs.h. */
  10661. #include <strings.h>
  10662. #ifdef _WIN32
  10663. #include <windows.h>
  10664. #else
  10665. #include <unistd.h>
  10666. #endif
  10667. #include <stdio.h>
  10668. int
  10669. main (void)
  10670. {
  10671. int result;
  10672. FILE *f;
  10673. #ifdef _WIN32
  10674. SYSTEM_INFO si;
  10675. GetSystemInfo(&si);
  10676. result = si.dwPageSize;
  10677. #else
  10678. result = sysconf(_SC_PAGESIZE);
  10679. #endif
  10680. if (result == -1) {
  10681. return 1;
  10682. }
  10683. result = JEMALLOC_INTERNAL_FFSL(result) - 1;
  10684. f = fopen("conftest.out", "w");
  10685. if (f == NULL) {
  10686. return 1;
  10687. }
  10688. fprintf(f, "%d", result);
  10689. fclose(f);
  10690. return 0;
  10691. ;
  10692. return 0;
  10693. }
  10694. _ACEOF
  10695. if ac_fn_c_try_run "$LINENO"
  10696. then :
  10697. je_cv_lg_page=`cat conftest.out`
  10698. else $as_nop
  10699. je_cv_lg_page=undefined
  10700. fi
  10701. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10702. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10703. fi
  10704. fi
  10705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
  10706. printf "%s\n" "$je_cv_lg_page" >&6; }
  10707. fi
  10708. if test "x${je_cv_lg_page}" != "x" ; then
  10709. LG_PAGE="${je_cv_lg_page}"
  10710. fi
  10711. if test "x${LG_PAGE}" != "xundefined" ; then
  10712. printf "%s\n" "#define LG_PAGE $LG_PAGE" >>confdefs.h
  10713. else
  10714. as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
  10715. fi
  10716. # Check whether --with-lg_hugepage was given.
  10717. if test ${with_lg_hugepage+y}
  10718. then :
  10719. withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
  10720. else $as_nop
  10721. je_cv_lg_hugepage=""
  10722. fi
  10723. if test "x${je_cv_lg_hugepage}" = "x" ; then
  10724. if test -e "/proc/meminfo" ; then
  10725. hpsk=`cat /proc/meminfo 2>/dev/null | \
  10726. grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
  10727. awk '{print $2}'`
  10728. if test "x${hpsk}" != "x" ; then
  10729. je_cv_lg_hugepage=10
  10730. while test "${hpsk}" -gt 1 ; do
  10731. hpsk="$((hpsk / 2))"
  10732. je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
  10733. done
  10734. fi
  10735. fi
  10736. if test "x${je_cv_lg_hugepage}" = "x" ; then
  10737. je_cv_lg_hugepage=21
  10738. fi
  10739. fi
  10740. if test "x${LG_PAGE}" != "xundefined" -a \
  10741. "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
  10742. as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
  10743. fi
  10744. printf "%s\n" "#define LG_HUGEPAGE ${je_cv_lg_hugepage}" >>confdefs.h
  10745. # Check whether --enable-libdl was given.
  10746. if test ${enable_libdl+y}
  10747. then :
  10748. enableval=$enable_libdl; if test "x$enable_libdl" = "xno" ; then
  10749. enable_libdl="0"
  10750. else
  10751. enable_libdl="1"
  10752. fi
  10753. else $as_nop
  10754. enable_libdl="1"
  10755. fi
  10756. if test "x$abi" != "xpecoff" ; then
  10757. printf "%s\n" "#define JEMALLOC_HAVE_PTHREAD " >>confdefs.h
  10758. for ac_header in pthread.h
  10759. do :
  10760. ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  10761. if test "x$ac_cv_header_pthread_h" = xyes
  10762. then :
  10763. printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
  10764. else $as_nop
  10765. as_fn_error $? "pthread.h is missing" "$LINENO" 5
  10766. fi
  10767. done
  10768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  10769. printf %s "checking for pthread_create in -lpthread... " >&6; }
  10770. if test ${ac_cv_lib_pthread_pthread_create+y}
  10771. then :
  10772. printf %s "(cached) " >&6
  10773. else $as_nop
  10774. ac_check_lib_save_LIBS=$LIBS
  10775. LIBS="-lpthread $LIBS"
  10776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10777. /* end confdefs.h. */
  10778. /* Override any GCC internal prototype to avoid an error.
  10779. Use char because int might match the return type of a GCC
  10780. builtin and then its argument prototype would still apply. */
  10781. char pthread_create ();
  10782. int
  10783. main (void)
  10784. {
  10785. return pthread_create ();
  10786. ;
  10787. return 0;
  10788. }
  10789. _ACEOF
  10790. if ac_fn_c_try_link "$LINENO"
  10791. then :
  10792. ac_cv_lib_pthread_pthread_create=yes
  10793. else $as_nop
  10794. ac_cv_lib_pthread_pthread_create=no
  10795. fi
  10796. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10797. conftest$ac_exeext conftest.$ac_ext
  10798. LIBS=$ac_check_lib_save_LIBS
  10799. fi
  10800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  10801. printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
  10802. if test "x$ac_cv_lib_pthread_pthread_create" = xyes
  10803. then :
  10804. T_APPEND_V=-pthread
  10805. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10806. LIBS="${LIBS}${T_APPEND_V}"
  10807. else
  10808. LIBS="${LIBS} ${T_APPEND_V}"
  10809. fi
  10810. else $as_nop
  10811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  10812. printf %s "checking for library containing pthread_create... " >&6; }
  10813. if test ${ac_cv_search_pthread_create+y}
  10814. then :
  10815. printf %s "(cached) " >&6
  10816. else $as_nop
  10817. ac_func_search_save_LIBS=$LIBS
  10818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10819. /* end confdefs.h. */
  10820. /* Override any GCC internal prototype to avoid an error.
  10821. Use char because int might match the return type of a GCC
  10822. builtin and then its argument prototype would still apply. */
  10823. char pthread_create ();
  10824. int
  10825. main (void)
  10826. {
  10827. return pthread_create ();
  10828. ;
  10829. return 0;
  10830. }
  10831. _ACEOF
  10832. for ac_lib in ''
  10833. do
  10834. if test -z "$ac_lib"; then
  10835. ac_res="none required"
  10836. else
  10837. ac_res=-l$ac_lib
  10838. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10839. fi
  10840. if ac_fn_c_try_link "$LINENO"
  10841. then :
  10842. ac_cv_search_pthread_create=$ac_res
  10843. fi
  10844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10845. conftest$ac_exeext
  10846. if test ${ac_cv_search_pthread_create+y}
  10847. then :
  10848. break
  10849. fi
  10850. done
  10851. if test ${ac_cv_search_pthread_create+y}
  10852. then :
  10853. else $as_nop
  10854. ac_cv_search_pthread_create=no
  10855. fi
  10856. rm conftest.$ac_ext
  10857. LIBS=$ac_func_search_save_LIBS
  10858. fi
  10859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  10860. printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
  10861. ac_res=$ac_cv_search_pthread_create
  10862. if test "$ac_res" != no
  10863. then :
  10864. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10865. else $as_nop
  10866. as_fn_error $? "libpthread is missing" "$LINENO" 5
  10867. fi
  10868. fi
  10869. wrap_syms="${wrap_syms} pthread_create"
  10870. have_pthread="1"
  10871. if test "x$enable_libdl" = "x1" ; then
  10872. have_dlsym="1"
  10873. for ac_header in dlfcn.h
  10874. do :
  10875. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  10876. if test "x$ac_cv_header_dlfcn_h" = xyes
  10877. then :
  10878. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  10879. ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
  10880. if test "x$ac_cv_func_dlsym" = xyes
  10881. then :
  10882. else $as_nop
  10883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  10884. printf %s "checking for dlsym in -ldl... " >&6; }
  10885. if test ${ac_cv_lib_dl_dlsym+y}
  10886. then :
  10887. printf %s "(cached) " >&6
  10888. else $as_nop
  10889. ac_check_lib_save_LIBS=$LIBS
  10890. LIBS="-ldl $LIBS"
  10891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10892. /* end confdefs.h. */
  10893. /* Override any GCC internal prototype to avoid an error.
  10894. Use char because int might match the return type of a GCC
  10895. builtin and then its argument prototype would still apply. */
  10896. char dlsym ();
  10897. int
  10898. main (void)
  10899. {
  10900. return dlsym ();
  10901. ;
  10902. return 0;
  10903. }
  10904. _ACEOF
  10905. if ac_fn_c_try_link "$LINENO"
  10906. then :
  10907. ac_cv_lib_dl_dlsym=yes
  10908. else $as_nop
  10909. ac_cv_lib_dl_dlsym=no
  10910. fi
  10911. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10912. conftest$ac_exeext conftest.$ac_ext
  10913. LIBS=$ac_check_lib_save_LIBS
  10914. fi
  10915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  10916. printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; }
  10917. if test "x$ac_cv_lib_dl_dlsym" = xyes
  10918. then :
  10919. LIBS="$LIBS -ldl"
  10920. else $as_nop
  10921. have_dlsym="0"
  10922. fi
  10923. fi
  10924. else $as_nop
  10925. have_dlsym="0"
  10926. fi
  10927. done
  10928. if test "x$have_dlsym" = "x1" ; then
  10929. printf "%s\n" "#define JEMALLOC_HAVE_DLSYM " >>confdefs.h
  10930. fi
  10931. else
  10932. have_dlsym="0"
  10933. fi
  10934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
  10935. printf %s "checking whether pthread_atfork(3) is compilable... " >&6; }
  10936. if test ${je_cv_pthread_atfork+y}
  10937. then :
  10938. printf %s "(cached) " >&6
  10939. else $as_nop
  10940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10941. /* end confdefs.h. */
  10942. #include <pthread.h>
  10943. int
  10944. main (void)
  10945. {
  10946. pthread_atfork((void *)0, (void *)0, (void *)0);
  10947. ;
  10948. return 0;
  10949. }
  10950. _ACEOF
  10951. if ac_fn_c_try_link "$LINENO"
  10952. then :
  10953. je_cv_pthread_atfork=yes
  10954. else $as_nop
  10955. je_cv_pthread_atfork=no
  10956. fi
  10957. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10958. conftest$ac_exeext conftest.$ac_ext
  10959. fi
  10960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
  10961. printf "%s\n" "$je_cv_pthread_atfork" >&6; }
  10962. if test "x${je_cv_pthread_atfork}" = "xyes" ; then
  10963. printf "%s\n" "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h
  10964. fi
  10965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
  10966. printf %s "checking whether pthread_setname_np(3) is compilable... " >&6; }
  10967. if test ${je_cv_pthread_setname_np+y}
  10968. then :
  10969. printf %s "(cached) " >&6
  10970. else $as_nop
  10971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10972. /* end confdefs.h. */
  10973. #include <pthread.h>
  10974. int
  10975. main (void)
  10976. {
  10977. pthread_setname_np(pthread_self(), "setname_test");
  10978. ;
  10979. return 0;
  10980. }
  10981. _ACEOF
  10982. if ac_fn_c_try_link "$LINENO"
  10983. then :
  10984. je_cv_pthread_setname_np=yes
  10985. else $as_nop
  10986. je_cv_pthread_setname_np=no
  10987. fi
  10988. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10989. conftest$ac_exeext conftest.$ac_ext
  10990. fi
  10991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
  10992. printf "%s\n" "$je_cv_pthread_setname_np" >&6; }
  10993. if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
  10994. printf "%s\n" "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP " >>confdefs.h
  10995. fi
  10996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_getname_np(3) is compilable" >&5
  10997. printf %s "checking whether pthread_getname_np(3) is compilable... " >&6; }
  10998. if test ${je_cv_pthread_getname_np+y}
  10999. then :
  11000. printf %s "(cached) " >&6
  11001. else $as_nop
  11002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11003. /* end confdefs.h. */
  11004. #include <pthread.h>
  11005. #include <stdlib.h>
  11006. int
  11007. main (void)
  11008. {
  11009. {
  11010. char *name = malloc(16);
  11011. pthread_getname_np(pthread_self(), name, 16);
  11012. free(name);
  11013. }
  11014. ;
  11015. return 0;
  11016. }
  11017. _ACEOF
  11018. if ac_fn_c_try_link "$LINENO"
  11019. then :
  11020. je_cv_pthread_getname_np=yes
  11021. else $as_nop
  11022. je_cv_pthread_getname_np=no
  11023. fi
  11024. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11025. conftest$ac_exeext conftest.$ac_ext
  11026. fi
  11027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_getname_np" >&5
  11028. printf "%s\n" "$je_cv_pthread_getname_np" >&6; }
  11029. if test "x${je_cv_pthread_getname_np}" = "xyes" ; then
  11030. printf "%s\n" "#define JEMALLOC_HAVE_PTHREAD_GETNAME_NP " >>confdefs.h
  11031. fi
  11032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_get_name_np(3) is compilable" >&5
  11033. printf %s "checking whether pthread_get_name_np(3) is compilable... " >&6; }
  11034. if test ${je_cv_pthread_get_name_np+y}
  11035. then :
  11036. printf %s "(cached) " >&6
  11037. else $as_nop
  11038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11039. /* end confdefs.h. */
  11040. #include <pthread.h>
  11041. #include <pthread_np.h>
  11042. #include <stdlib.h>
  11043. int
  11044. main (void)
  11045. {
  11046. {
  11047. char *name = malloc(16);
  11048. pthread_get_name_np(pthread_self(), name, 16);
  11049. free(name);
  11050. }
  11051. ;
  11052. return 0;
  11053. }
  11054. _ACEOF
  11055. if ac_fn_c_try_link "$LINENO"
  11056. then :
  11057. je_cv_pthread_get_name_np=yes
  11058. else $as_nop
  11059. je_cv_pthread_get_name_np=no
  11060. fi
  11061. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11062. conftest$ac_exeext conftest.$ac_ext
  11063. fi
  11064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_get_name_np" >&5
  11065. printf "%s\n" "$je_cv_pthread_get_name_np" >&6; }
  11066. if test "x${je_cv_pthread_get_name_np}" = "xyes" ; then
  11067. printf "%s\n" "#define JEMALLOC_HAVE_PTHREAD_GET_NAME_NP " >>confdefs.h
  11068. fi
  11069. fi
  11070. T_APPEND_V=-D_REENTRANT
  11071. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  11072. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  11073. else
  11074. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  11075. fi
  11076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  11077. printf %s "checking for library containing clock_gettime... " >&6; }
  11078. if test ${ac_cv_search_clock_gettime+y}
  11079. then :
  11080. printf %s "(cached) " >&6
  11081. else $as_nop
  11082. ac_func_search_save_LIBS=$LIBS
  11083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11084. /* end confdefs.h. */
  11085. /* Override any GCC internal prototype to avoid an error.
  11086. Use char because int might match the return type of a GCC
  11087. builtin and then its argument prototype would still apply. */
  11088. char clock_gettime ();
  11089. int
  11090. main (void)
  11091. {
  11092. return clock_gettime ();
  11093. ;
  11094. return 0;
  11095. }
  11096. _ACEOF
  11097. for ac_lib in '' rt
  11098. do
  11099. if test -z "$ac_lib"; then
  11100. ac_res="none required"
  11101. else
  11102. ac_res=-l$ac_lib
  11103. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11104. fi
  11105. if ac_fn_c_try_link "$LINENO"
  11106. then :
  11107. ac_cv_search_clock_gettime=$ac_res
  11108. fi
  11109. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11110. conftest$ac_exeext
  11111. if test ${ac_cv_search_clock_gettime+y}
  11112. then :
  11113. break
  11114. fi
  11115. done
  11116. if test ${ac_cv_search_clock_gettime+y}
  11117. then :
  11118. else $as_nop
  11119. ac_cv_search_clock_gettime=no
  11120. fi
  11121. rm conftest.$ac_ext
  11122. LIBS=$ac_func_search_save_LIBS
  11123. fi
  11124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  11125. printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
  11126. ac_res=$ac_cv_search_clock_gettime
  11127. if test "$ac_res" != no
  11128. then :
  11129. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11130. fi
  11131. if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
  11132. if test "$ac_cv_search_clock_gettime" != "-lrt"; then
  11133. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  11134. unset ac_cv_search_clock_gettime
  11135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
  11136. printf %s "checking whether compiler supports -dynamic... " >&6; }
  11137. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  11138. T_APPEND_V=-dynamic
  11139. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  11140. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  11141. else
  11142. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  11143. fi
  11144. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  11145. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  11146. else
  11147. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  11148. fi
  11149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11150. /* end confdefs.h. */
  11151. int
  11152. main (void)
  11153. {
  11154. return 0;
  11155. ;
  11156. return 0;
  11157. }
  11158. _ACEOF
  11159. if ac_fn_c_try_compile "$LINENO"
  11160. then :
  11161. je_cv_cflags_added=-dynamic
  11162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11163. printf "%s\n" "yes" >&6; }
  11164. else $as_nop
  11165. je_cv_cflags_added=
  11166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11167. printf "%s\n" "no" >&6; }
  11168. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  11169. fi
  11170. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11171. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  11172. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  11173. else
  11174. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  11175. fi
  11176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  11177. printf %s "checking for library containing clock_gettime... " >&6; }
  11178. if test ${ac_cv_search_clock_gettime+y}
  11179. then :
  11180. printf %s "(cached) " >&6
  11181. else $as_nop
  11182. ac_func_search_save_LIBS=$LIBS
  11183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11184. /* end confdefs.h. */
  11185. /* Override any GCC internal prototype to avoid an error.
  11186. Use char because int might match the return type of a GCC
  11187. builtin and then its argument prototype would still apply. */
  11188. char clock_gettime ();
  11189. int
  11190. main (void)
  11191. {
  11192. return clock_gettime ();
  11193. ;
  11194. return 0;
  11195. }
  11196. _ACEOF
  11197. for ac_lib in '' rt
  11198. do
  11199. if test -z "$ac_lib"; then
  11200. ac_res="none required"
  11201. else
  11202. ac_res=-l$ac_lib
  11203. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11204. fi
  11205. if ac_fn_c_try_link "$LINENO"
  11206. then :
  11207. ac_cv_search_clock_gettime=$ac_res
  11208. fi
  11209. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11210. conftest$ac_exeext
  11211. if test ${ac_cv_search_clock_gettime+y}
  11212. then :
  11213. break
  11214. fi
  11215. done
  11216. if test ${ac_cv_search_clock_gettime+y}
  11217. then :
  11218. else $as_nop
  11219. ac_cv_search_clock_gettime=no
  11220. fi
  11221. rm conftest.$ac_ext
  11222. LIBS=$ac_func_search_save_LIBS
  11223. fi
  11224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  11225. printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
  11226. ac_res=$ac_cv_search_clock_gettime
  11227. if test "$ac_res" != no
  11228. then :
  11229. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11230. fi
  11231. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  11232. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  11233. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  11234. else
  11235. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  11236. fi
  11237. fi
  11238. fi
  11239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
  11240. printf %s "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
  11241. if test ${je_cv_clock_monotonic_coarse+y}
  11242. then :
  11243. printf %s "(cached) " >&6
  11244. else $as_nop
  11245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11246. /* end confdefs.h. */
  11247. #include <time.h>
  11248. int
  11249. main (void)
  11250. {
  11251. struct timespec ts;
  11252. clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
  11253. ;
  11254. return 0;
  11255. }
  11256. _ACEOF
  11257. if ac_fn_c_try_link "$LINENO"
  11258. then :
  11259. je_cv_clock_monotonic_coarse=yes
  11260. else $as_nop
  11261. je_cv_clock_monotonic_coarse=no
  11262. fi
  11263. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11264. conftest$ac_exeext conftest.$ac_ext
  11265. fi
  11266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
  11267. printf "%s\n" "$je_cv_clock_monotonic_coarse" >&6; }
  11268. if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
  11269. printf "%s\n" "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE " >>confdefs.h
  11270. fi
  11271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
  11272. printf %s "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
  11273. if test ${je_cv_clock_monotonic+y}
  11274. then :
  11275. printf %s "(cached) " >&6
  11276. else $as_nop
  11277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11278. /* end confdefs.h. */
  11279. #include <unistd.h>
  11280. #include <time.h>
  11281. int
  11282. main (void)
  11283. {
  11284. struct timespec ts;
  11285. clock_gettime(CLOCK_MONOTONIC, &ts);
  11286. #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
  11287. # error _POSIX_MONOTONIC_CLOCK missing/invalid
  11288. #endif
  11289. ;
  11290. return 0;
  11291. }
  11292. _ACEOF
  11293. if ac_fn_c_try_link "$LINENO"
  11294. then :
  11295. je_cv_clock_monotonic=yes
  11296. else $as_nop
  11297. je_cv_clock_monotonic=no
  11298. fi
  11299. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11300. conftest$ac_exeext conftest.$ac_ext
  11301. fi
  11302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
  11303. printf "%s\n" "$je_cv_clock_monotonic" >&6; }
  11304. if test "x${je_cv_clock_monotonic}" = "xyes" ; then
  11305. printf "%s\n" "#define JEMALLOC_HAVE_CLOCK_MONOTONIC " >>confdefs.h
  11306. fi
  11307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
  11308. printf %s "checking whether mach_absolute_time() is compilable... " >&6; }
  11309. if test ${je_cv_mach_absolute_time+y}
  11310. then :
  11311. printf %s "(cached) " >&6
  11312. else $as_nop
  11313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11314. /* end confdefs.h. */
  11315. #include <mach/mach_time.h>
  11316. int
  11317. main (void)
  11318. {
  11319. mach_absolute_time();
  11320. ;
  11321. return 0;
  11322. }
  11323. _ACEOF
  11324. if ac_fn_c_try_link "$LINENO"
  11325. then :
  11326. je_cv_mach_absolute_time=yes
  11327. else $as_nop
  11328. je_cv_mach_absolute_time=no
  11329. fi
  11330. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11331. conftest$ac_exeext conftest.$ac_ext
  11332. fi
  11333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
  11334. printf "%s\n" "$je_cv_mach_absolute_time" >&6; }
  11335. if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
  11336. printf "%s\n" "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME " >>confdefs.h
  11337. fi
  11338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable" >&5
  11339. printf %s "checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable... " >&6; }
  11340. if test ${je_cv_clock_realtime+y}
  11341. then :
  11342. printf %s "(cached) " >&6
  11343. else $as_nop
  11344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11345. /* end confdefs.h. */
  11346. #include <time.h>
  11347. int
  11348. main (void)
  11349. {
  11350. struct timespec ts;
  11351. clock_gettime(CLOCK_REALTIME, &ts);
  11352. ;
  11353. return 0;
  11354. }
  11355. _ACEOF
  11356. if ac_fn_c_try_link "$LINENO"
  11357. then :
  11358. je_cv_clock_realtime=yes
  11359. else $as_nop
  11360. je_cv_clock_realtime=no
  11361. fi
  11362. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11363. conftest$ac_exeext conftest.$ac_ext
  11364. fi
  11365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_realtime" >&5
  11366. printf "%s\n" "$je_cv_clock_realtime" >&6; }
  11367. if test "x${je_cv_clock_realtime}" = "xyes" ; then
  11368. printf "%s\n" "#define JEMALLOC_HAVE_CLOCK_REALTIME " >>confdefs.h
  11369. fi
  11370. # Check whether --enable-syscall was given.
  11371. if test ${enable_syscall+y}
  11372. then :
  11373. enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
  11374. enable_syscall="0"
  11375. else
  11376. enable_syscall="1"
  11377. fi
  11378. else $as_nop
  11379. enable_syscall="1"
  11380. fi
  11381. if test "x$enable_syscall" = "x1" ; then
  11382. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  11383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  11384. printf %s "checking whether compiler supports -Werror... " >&6; }
  11385. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  11386. T_APPEND_V=-Werror
  11387. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  11388. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  11389. else
  11390. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  11391. fi
  11392. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  11393. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  11394. else
  11395. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  11396. fi
  11397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11398. /* end confdefs.h. */
  11399. int
  11400. main (void)
  11401. {
  11402. return 0;
  11403. ;
  11404. return 0;
  11405. }
  11406. _ACEOF
  11407. if ac_fn_c_try_compile "$LINENO"
  11408. then :
  11409. je_cv_cflags_added=-Werror
  11410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11411. printf "%s\n" "yes" >&6; }
  11412. else $as_nop
  11413. je_cv_cflags_added=
  11414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11415. printf "%s\n" "no" >&6; }
  11416. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  11417. fi
  11418. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11419. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  11420. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  11421. else
  11422. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  11423. fi
  11424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
  11425. printf %s "checking whether syscall(2) is compilable... " >&6; }
  11426. if test ${je_cv_syscall+y}
  11427. then :
  11428. printf %s "(cached) " >&6
  11429. else $as_nop
  11430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11431. /* end confdefs.h. */
  11432. #include <sys/syscall.h>
  11433. #include <unistd.h>
  11434. int
  11435. main (void)
  11436. {
  11437. syscall(SYS_write, 2, "hello", 5);
  11438. ;
  11439. return 0;
  11440. }
  11441. _ACEOF
  11442. if ac_fn_c_try_link "$LINENO"
  11443. then :
  11444. je_cv_syscall=yes
  11445. else $as_nop
  11446. je_cv_syscall=no
  11447. fi
  11448. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11449. conftest$ac_exeext conftest.$ac_ext
  11450. fi
  11451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
  11452. printf "%s\n" "$je_cv_syscall" >&6; }
  11453. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  11454. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  11455. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  11456. else
  11457. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  11458. fi
  11459. if test "x$je_cv_syscall" = "xyes" ; then
  11460. printf "%s\n" "#define JEMALLOC_USE_SYSCALL " >>confdefs.h
  11461. fi
  11462. fi
  11463. ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
  11464. if test "x$ac_cv_func_secure_getenv" = xyes
  11465. then :
  11466. have_secure_getenv="1"
  11467. else $as_nop
  11468. have_secure_getenv="0"
  11469. fi
  11470. if test "x$have_secure_getenv" = "x1" ; then
  11471. printf "%s\n" "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h
  11472. fi
  11473. ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
  11474. if test "x$ac_cv_func_sched_getcpu" = xyes
  11475. then :
  11476. have_sched_getcpu="1"
  11477. else $as_nop
  11478. have_sched_getcpu="0"
  11479. fi
  11480. if test "x$have_sched_getcpu" = "x1" ; then
  11481. printf "%s\n" "#define JEMALLOC_HAVE_SCHED_GETCPU " >>confdefs.h
  11482. fi
  11483. ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
  11484. if test "x$ac_cv_func_sched_setaffinity" = xyes
  11485. then :
  11486. have_sched_setaffinity="1"
  11487. else $as_nop
  11488. have_sched_setaffinity="0"
  11489. fi
  11490. if test "x$have_sched_setaffinity" = "x1" ; then
  11491. printf "%s\n" "#define JEMALLOC_HAVE_SCHED_SETAFFINITY " >>confdefs.h
  11492. fi
  11493. ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
  11494. if test "x$ac_cv_func_issetugid" = xyes
  11495. then :
  11496. have_issetugid="1"
  11497. else $as_nop
  11498. have_issetugid="0"
  11499. fi
  11500. if test "x$have_issetugid" = "x1" ; then
  11501. printf "%s\n" "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h
  11502. fi
  11503. ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
  11504. if test "x$ac_cv_func__malloc_thread_cleanup" = xyes
  11505. then :
  11506. have__malloc_thread_cleanup="1"
  11507. else $as_nop
  11508. have__malloc_thread_cleanup="0"
  11509. fi
  11510. if test "x$have__malloc_thread_cleanup" = "x1" ; then
  11511. printf "%s\n" "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h
  11512. wrap_syms="${wrap_syms} _malloc_thread_cleanup _malloc_tsd_cleanup_register"
  11513. force_tls="1"
  11514. fi
  11515. ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
  11516. if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes
  11517. then :
  11518. have__pthread_mutex_init_calloc_cb="1"
  11519. else $as_nop
  11520. have__pthread_mutex_init_calloc_cb="0"
  11521. fi
  11522. if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
  11523. printf "%s\n" "#define JEMALLOC_MUTEX_INIT_CB " >>confdefs.h
  11524. wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
  11525. fi
  11526. ac_fn_c_check_func "$LINENO" "memcntl" "ac_cv_func_memcntl"
  11527. if test "x$ac_cv_func_memcntl" = xyes
  11528. then :
  11529. have_memcntl="1"
  11530. else $as_nop
  11531. have_memcntl="0"
  11532. fi
  11533. if test "x$have_memcntl" = "x1" ; then
  11534. printf "%s\n" "#define JEMALLOC_HAVE_MEMCNTL " >>confdefs.h
  11535. fi
  11536. # Check whether --enable-lazy_lock was given.
  11537. if test ${enable_lazy_lock+y}
  11538. then :
  11539. enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
  11540. enable_lazy_lock="0"
  11541. else
  11542. enable_lazy_lock="1"
  11543. fi
  11544. else $as_nop
  11545. enable_lazy_lock=""
  11546. fi
  11547. if test "x${enable_lazy_lock}" = "x" ; then
  11548. if test "x${force_lazy_lock}" = "x1" ; then
  11549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
  11550. printf "%s\n" "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
  11551. enable_lazy_lock="1"
  11552. else
  11553. enable_lazy_lock="0"
  11554. fi
  11555. fi
  11556. if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
  11557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
  11558. printf "%s\n" "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
  11559. enable_lazy_lock="0"
  11560. fi
  11561. if test "x$enable_lazy_lock" = "x1" ; then
  11562. if test "x$have_dlsym" = "x1" ; then
  11563. printf "%s\n" "#define JEMALLOC_LAZY_LOCK " >>confdefs.h
  11564. else
  11565. as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
  11566. fi
  11567. fi
  11568. if test "x${force_tls}" = "x1" ; then
  11569. enable_tls="1"
  11570. elif test "x${force_tls}" = "x0" ; then
  11571. enable_tls="0"
  11572. else
  11573. enable_tls="1"
  11574. fi
  11575. if test "x${enable_tls}" = "x1" ; then
  11576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
  11577. printf %s "checking for TLS... " >&6; }
  11578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11579. /* end confdefs.h. */
  11580. __thread int x;
  11581. int
  11582. main (void)
  11583. {
  11584. x = 42;
  11585. return 0;
  11586. ;
  11587. return 0;
  11588. }
  11589. _ACEOF
  11590. if ac_fn_c_try_compile "$LINENO"
  11591. then :
  11592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11593. printf "%s\n" "yes" >&6; }
  11594. else $as_nop
  11595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11596. printf "%s\n" "no" >&6; }
  11597. enable_tls="0"
  11598. fi
  11599. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11600. else
  11601. enable_tls="0"
  11602. fi
  11603. if test "x${enable_tls}" = "x1" ; then
  11604. printf "%s\n" "#define JEMALLOC_TLS " >>confdefs.h
  11605. fi
  11606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
  11607. printf %s "checking whether C11 atomics is compilable... " >&6; }
  11608. if test ${je_cv_c11_atomics+y}
  11609. then :
  11610. printf %s "(cached) " >&6
  11611. else $as_nop
  11612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11613. /* end confdefs.h. */
  11614. #include <stdint.h>
  11615. #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
  11616. #include <stdatomic.h>
  11617. #else
  11618. #error Atomics not available
  11619. #endif
  11620. int
  11621. main (void)
  11622. {
  11623. uint64_t *p = (uint64_t *)0;
  11624. uint64_t x = 1;
  11625. volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
  11626. uint64_t r = atomic_fetch_add(a, x) + x;
  11627. return r == 0;
  11628. ;
  11629. return 0;
  11630. }
  11631. _ACEOF
  11632. if ac_fn_c_try_link "$LINENO"
  11633. then :
  11634. je_cv_c11_atomics=yes
  11635. else $as_nop
  11636. je_cv_c11_atomics=no
  11637. fi
  11638. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11639. conftest$ac_exeext conftest.$ac_ext
  11640. fi
  11641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
  11642. printf "%s\n" "$je_cv_c11_atomics" >&6; }
  11643. if test "x${je_cv_c11_atomics}" = "xyes" ; then
  11644. printf "%s\n" "#define JEMALLOC_C11_ATOMICS " >>confdefs.h
  11645. fi
  11646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
  11647. printf %s "checking whether GCC __atomic atomics is compilable... " >&6; }
  11648. if test ${je_cv_gcc_atomic_atomics+y}
  11649. then :
  11650. printf %s "(cached) " >&6
  11651. else $as_nop
  11652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11653. /* end confdefs.h. */
  11654. int
  11655. main (void)
  11656. {
  11657. int x = 0;
  11658. int val = 1;
  11659. int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
  11660. int after_add = x;
  11661. return after_add == 1;
  11662. ;
  11663. return 0;
  11664. }
  11665. _ACEOF
  11666. if ac_fn_c_try_link "$LINENO"
  11667. then :
  11668. je_cv_gcc_atomic_atomics=yes
  11669. else $as_nop
  11670. je_cv_gcc_atomic_atomics=no
  11671. fi
  11672. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11673. conftest$ac_exeext conftest.$ac_ext
  11674. fi
  11675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
  11676. printf "%s\n" "$je_cv_gcc_atomic_atomics" >&6; }
  11677. if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
  11678. printf "%s\n" "#define JEMALLOC_GCC_ATOMIC_ATOMICS " >>confdefs.h
  11679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __atomic atomics is compilable" >&5
  11680. printf %s "checking whether GCC 8-bit __atomic atomics is compilable... " >&6; }
  11681. if test ${je_cv_gcc_u8_atomic_atomics+y}
  11682. then :
  11683. printf %s "(cached) " >&6
  11684. else $as_nop
  11685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11686. /* end confdefs.h. */
  11687. int
  11688. main (void)
  11689. {
  11690. unsigned char x = 0;
  11691. int val = 1;
  11692. int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
  11693. int after_add = (int)x;
  11694. return after_add == 1;
  11695. ;
  11696. return 0;
  11697. }
  11698. _ACEOF
  11699. if ac_fn_c_try_link "$LINENO"
  11700. then :
  11701. je_cv_gcc_u8_atomic_atomics=yes
  11702. else $as_nop
  11703. je_cv_gcc_u8_atomic_atomics=no
  11704. fi
  11705. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11706. conftest$ac_exeext conftest.$ac_ext
  11707. fi
  11708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_atomic_atomics" >&5
  11709. printf "%s\n" "$je_cv_gcc_u8_atomic_atomics" >&6; }
  11710. if test "x${je_cv_gcc_u8_atomic_atomics}" = "xyes" ; then
  11711. printf "%s\n" "#define JEMALLOC_GCC_U8_ATOMIC_ATOMICS " >>confdefs.h
  11712. fi
  11713. fi
  11714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
  11715. printf %s "checking whether GCC __sync atomics is compilable... " >&6; }
  11716. if test ${je_cv_gcc_sync_atomics+y}
  11717. then :
  11718. printf %s "(cached) " >&6
  11719. else $as_nop
  11720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11721. /* end confdefs.h. */
  11722. int
  11723. main (void)
  11724. {
  11725. int x = 0;
  11726. int before_add = __sync_fetch_and_add(&x, 1);
  11727. int after_add = x;
  11728. return (before_add == 0) && (after_add == 1);
  11729. ;
  11730. return 0;
  11731. }
  11732. _ACEOF
  11733. if ac_fn_c_try_link "$LINENO"
  11734. then :
  11735. je_cv_gcc_sync_atomics=yes
  11736. else $as_nop
  11737. je_cv_gcc_sync_atomics=no
  11738. fi
  11739. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11740. conftest$ac_exeext conftest.$ac_ext
  11741. fi
  11742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
  11743. printf "%s\n" "$je_cv_gcc_sync_atomics" >&6; }
  11744. if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
  11745. printf "%s\n" "#define JEMALLOC_GCC_SYNC_ATOMICS " >>confdefs.h
  11746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __sync atomics is compilable" >&5
  11747. printf %s "checking whether GCC 8-bit __sync atomics is compilable... " >&6; }
  11748. if test ${je_cv_gcc_u8_sync_atomics+y}
  11749. then :
  11750. printf %s "(cached) " >&6
  11751. else $as_nop
  11752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11753. /* end confdefs.h. */
  11754. int
  11755. main (void)
  11756. {
  11757. unsigned char x = 0;
  11758. int before_add = __sync_fetch_and_add(&x, 1);
  11759. int after_add = (int)x;
  11760. return (before_add == 0) && (after_add == 1);
  11761. ;
  11762. return 0;
  11763. }
  11764. _ACEOF
  11765. if ac_fn_c_try_link "$LINENO"
  11766. then :
  11767. je_cv_gcc_u8_sync_atomics=yes
  11768. else $as_nop
  11769. je_cv_gcc_u8_sync_atomics=no
  11770. fi
  11771. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11772. conftest$ac_exeext conftest.$ac_ext
  11773. fi
  11774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_sync_atomics" >&5
  11775. printf "%s\n" "$je_cv_gcc_u8_sync_atomics" >&6; }
  11776. if test "x${je_cv_gcc_u8_sync_atomics}" = "xyes" ; then
  11777. printf "%s\n" "#define JEMALLOC_GCC_U8_SYNC_ATOMICS " >>confdefs.h
  11778. fi
  11779. fi
  11780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
  11781. printf %s "checking whether Darwin OSAtomic*() is compilable... " >&6; }
  11782. if test ${je_cv_osatomic+y}
  11783. then :
  11784. printf %s "(cached) " >&6
  11785. else $as_nop
  11786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11787. /* end confdefs.h. */
  11788. #include <libkern/OSAtomic.h>
  11789. #include <inttypes.h>
  11790. int
  11791. main (void)
  11792. {
  11793. {
  11794. int32_t x32 = 0;
  11795. volatile int32_t *x32p = &x32;
  11796. OSAtomicAdd32(1, x32p);
  11797. }
  11798. {
  11799. int64_t x64 = 0;
  11800. volatile int64_t *x64p = &x64;
  11801. OSAtomicAdd64(1, x64p);
  11802. }
  11803. ;
  11804. return 0;
  11805. }
  11806. _ACEOF
  11807. if ac_fn_c_try_link "$LINENO"
  11808. then :
  11809. je_cv_osatomic=yes
  11810. else $as_nop
  11811. je_cv_osatomic=no
  11812. fi
  11813. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11814. conftest$ac_exeext conftest.$ac_ext
  11815. fi
  11816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
  11817. printf "%s\n" "$je_cv_osatomic" >&6; }
  11818. if test "x${je_cv_osatomic}" = "xyes" ; then
  11819. printf "%s\n" "#define JEMALLOC_OSATOMIC " >>confdefs.h
  11820. fi
  11821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
  11822. printf %s "checking whether madvise(2) is compilable... " >&6; }
  11823. if test ${je_cv_madvise+y}
  11824. then :
  11825. printf %s "(cached) " >&6
  11826. else $as_nop
  11827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11828. /* end confdefs.h. */
  11829. #include <sys/mman.h>
  11830. int
  11831. main (void)
  11832. {
  11833. madvise((void *)0, 0, 0);
  11834. ;
  11835. return 0;
  11836. }
  11837. _ACEOF
  11838. if ac_fn_c_try_link "$LINENO"
  11839. then :
  11840. je_cv_madvise=yes
  11841. else $as_nop
  11842. je_cv_madvise=no
  11843. fi
  11844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11845. conftest$ac_exeext conftest.$ac_ext
  11846. fi
  11847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
  11848. printf "%s\n" "$je_cv_madvise" >&6; }
  11849. if test "x${je_cv_madvise}" = "xyes" ; then
  11850. printf "%s\n" "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h
  11851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
  11852. printf %s "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
  11853. if test ${je_cv_madv_free+y}
  11854. then :
  11855. printf %s "(cached) " >&6
  11856. else $as_nop
  11857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11858. /* end confdefs.h. */
  11859. #include <sys/mman.h>
  11860. int
  11861. main (void)
  11862. {
  11863. madvise((void *)0, 0, MADV_FREE);
  11864. ;
  11865. return 0;
  11866. }
  11867. _ACEOF
  11868. if ac_fn_c_try_link "$LINENO"
  11869. then :
  11870. je_cv_madv_free=yes
  11871. else $as_nop
  11872. je_cv_madv_free=no
  11873. fi
  11874. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11875. conftest$ac_exeext conftest.$ac_ext
  11876. fi
  11877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
  11878. printf "%s\n" "$je_cv_madv_free" >&6; }
  11879. if test "x${je_cv_madv_free}" = "xyes" ; then
  11880. printf "%s\n" "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
  11881. elif test "x${je_cv_madvise}" = "xyes" ; then
  11882. case "${host_cpu}" in i686|x86_64)
  11883. case "${host}" in *-*-linux*)
  11884. printf "%s\n" "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
  11885. printf "%s\n" "#define JEMALLOC_DEFINE_MADVISE_FREE " >>confdefs.h
  11886. ;;
  11887. esac
  11888. ;;
  11889. esac
  11890. fi
  11891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
  11892. printf %s "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
  11893. if test ${je_cv_madv_dontneed+y}
  11894. then :
  11895. printf %s "(cached) " >&6
  11896. else $as_nop
  11897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11898. /* end confdefs.h. */
  11899. #include <sys/mman.h>
  11900. int
  11901. main (void)
  11902. {
  11903. madvise((void *)0, 0, MADV_DONTNEED);
  11904. ;
  11905. return 0;
  11906. }
  11907. _ACEOF
  11908. if ac_fn_c_try_link "$LINENO"
  11909. then :
  11910. je_cv_madv_dontneed=yes
  11911. else $as_nop
  11912. je_cv_madv_dontneed=no
  11913. fi
  11914. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11915. conftest$ac_exeext conftest.$ac_ext
  11916. fi
  11917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
  11918. printf "%s\n" "$je_cv_madv_dontneed" >&6; }
  11919. if test "x${je_cv_madv_dontneed}" = "xyes" ; then
  11920. printf "%s\n" "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h
  11921. fi
  11922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
  11923. printf %s "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
  11924. if test ${je_cv_madv_dontdump+y}
  11925. then :
  11926. printf %s "(cached) " >&6
  11927. else $as_nop
  11928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11929. /* end confdefs.h. */
  11930. #include <sys/mman.h>
  11931. int
  11932. main (void)
  11933. {
  11934. madvise((void *)0, 0, MADV_DONTDUMP);
  11935. madvise((void *)0, 0, MADV_DODUMP);
  11936. ;
  11937. return 0;
  11938. }
  11939. _ACEOF
  11940. if ac_fn_c_try_link "$LINENO"
  11941. then :
  11942. je_cv_madv_dontdump=yes
  11943. else $as_nop
  11944. je_cv_madv_dontdump=no
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11947. conftest$ac_exeext conftest.$ac_ext
  11948. fi
  11949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
  11950. printf "%s\n" "$je_cv_madv_dontdump" >&6; }
  11951. if test "x${je_cv_madv_dontdump}" = "xyes" ; then
  11952. printf "%s\n" "#define JEMALLOC_MADVISE_DONTDUMP " >>confdefs.h
  11953. fi
  11954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
  11955. printf %s "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
  11956. if test ${je_cv_thp+y}
  11957. then :
  11958. printf %s "(cached) " >&6
  11959. else $as_nop
  11960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11961. /* end confdefs.h. */
  11962. #include <sys/mman.h>
  11963. int
  11964. main (void)
  11965. {
  11966. madvise((void *)0, 0, MADV_HUGEPAGE);
  11967. madvise((void *)0, 0, MADV_NOHUGEPAGE);
  11968. ;
  11969. return 0;
  11970. }
  11971. _ACEOF
  11972. if ac_fn_c_try_link "$LINENO"
  11973. then :
  11974. je_cv_thp=yes
  11975. else $as_nop
  11976. je_cv_thp=no
  11977. fi
  11978. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11979. conftest$ac_exeext conftest.$ac_ext
  11980. fi
  11981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
  11982. printf "%s\n" "$je_cv_thp" >&6; }
  11983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]CORE) is compilable" >&5
  11984. printf %s "checking whether madvise(..., MADV_[NO]CORE) is compilable... " >&6; }
  11985. if test ${je_cv_madv_nocore+y}
  11986. then :
  11987. printf %s "(cached) " >&6
  11988. else $as_nop
  11989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11990. /* end confdefs.h. */
  11991. #include <sys/mman.h>
  11992. int
  11993. main (void)
  11994. {
  11995. madvise((void *)0, 0, MADV_NOCORE);
  11996. madvise((void *)0, 0, MADV_CORE);
  11997. ;
  11998. return 0;
  11999. }
  12000. _ACEOF
  12001. if ac_fn_c_try_link "$LINENO"
  12002. then :
  12003. je_cv_madv_nocore=yes
  12004. else $as_nop
  12005. je_cv_madv_nocore=no
  12006. fi
  12007. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12008. conftest$ac_exeext conftest.$ac_ext
  12009. fi
  12010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_nocore" >&5
  12011. printf "%s\n" "$je_cv_madv_nocore" >&6; }
  12012. if test "x${je_cv_madv_nocore}" = "xyes" ; then
  12013. printf "%s\n" "#define JEMALLOC_MADVISE_NOCORE " >>confdefs.h
  12014. fi
  12015. case "${host_cpu}" in
  12016. arm*)
  12017. ;;
  12018. *)
  12019. if test "x${je_cv_thp}" = "xyes" ; then
  12020. printf "%s\n" "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h
  12021. fi
  12022. ;;
  12023. esac
  12024. else
  12025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether posix_madvise is compilable" >&5
  12026. printf %s "checking whether posix_madvise is compilable... " >&6; }
  12027. if test ${je_cv_posix_madvise+y}
  12028. then :
  12029. printf %s "(cached) " >&6
  12030. else $as_nop
  12031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12032. /* end confdefs.h. */
  12033. #include <sys/mman.h>
  12034. int
  12035. main (void)
  12036. {
  12037. posix_madvise((void *)0, 0, 0);
  12038. ;
  12039. return 0;
  12040. }
  12041. _ACEOF
  12042. if ac_fn_c_try_link "$LINENO"
  12043. then :
  12044. je_cv_posix_madvise=yes
  12045. else $as_nop
  12046. je_cv_posix_madvise=no
  12047. fi
  12048. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12049. conftest$ac_exeext conftest.$ac_ext
  12050. fi
  12051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_posix_madvise" >&5
  12052. printf "%s\n" "$je_cv_posix_madvise" >&6; }
  12053. if test "x${je_cv_posix_madvise}" = "xyes" ; then
  12054. printf "%s\n" "#define JEMALLOC_HAVE_POSIX_MADVISE " >>confdefs.h
  12055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether posix_madvise(..., POSIX_MADV_DONTNEED) is compilable" >&5
  12056. printf %s "checking whether posix_madvise(..., POSIX_MADV_DONTNEED) is compilable... " >&6; }
  12057. if test ${je_cv_posix_madv_dontneed+y}
  12058. then :
  12059. printf %s "(cached) " >&6
  12060. else $as_nop
  12061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12062. /* end confdefs.h. */
  12063. #include <sys/mman.h>
  12064. int
  12065. main (void)
  12066. {
  12067. posix_madvise((void *)0, 0, POSIX_MADV_DONTNEED);
  12068. ;
  12069. return 0;
  12070. }
  12071. _ACEOF
  12072. if ac_fn_c_try_link "$LINENO"
  12073. then :
  12074. je_cv_posix_madv_dontneed=yes
  12075. else $as_nop
  12076. je_cv_posix_madv_dontneed=no
  12077. fi
  12078. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12079. conftest$ac_exeext conftest.$ac_ext
  12080. fi
  12081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_posix_madv_dontneed" >&5
  12082. printf "%s\n" "$je_cv_posix_madv_dontneed" >&6; }
  12083. if test "x${je_cv_posix_madv_dontneed}" = "xyes" ; then
  12084. printf "%s\n" "#define JEMALLOC_PURGE_POSIX_MADVISE_DONTNEED " >>confdefs.h
  12085. fi
  12086. fi
  12087. fi
  12088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mprotect(2) is compilable" >&5
  12089. printf %s "checking whether mprotect(2) is compilable... " >&6; }
  12090. if test ${je_cv_mprotect+y}
  12091. then :
  12092. printf %s "(cached) " >&6
  12093. else $as_nop
  12094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12095. /* end confdefs.h. */
  12096. #include <sys/mman.h>
  12097. int
  12098. main (void)
  12099. {
  12100. mprotect((void *)0, 0, PROT_NONE);
  12101. ;
  12102. return 0;
  12103. }
  12104. _ACEOF
  12105. if ac_fn_c_try_link "$LINENO"
  12106. then :
  12107. je_cv_mprotect=yes
  12108. else $as_nop
  12109. je_cv_mprotect=no
  12110. fi
  12111. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12112. conftest$ac_exeext conftest.$ac_ext
  12113. fi
  12114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_mprotect" >&5
  12115. printf "%s\n" "$je_cv_mprotect" >&6; }
  12116. if test "x${je_cv_mprotect}" = "xyes" ; then
  12117. printf "%s\n" "#define JEMALLOC_HAVE_MPROTECT " >>confdefs.h
  12118. fi
  12119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
  12120. printf %s "checking for __builtin_clz... " >&6; }
  12121. if test ${je_cv_builtin_clz+y}
  12122. then :
  12123. printf %s "(cached) " >&6
  12124. else $as_nop
  12125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12126. /* end confdefs.h. */
  12127. int
  12128. main (void)
  12129. {
  12130. {
  12131. unsigned x = 0;
  12132. int y = __builtin_clz(x);
  12133. }
  12134. {
  12135. unsigned long x = 0;
  12136. int y = __builtin_clzl(x);
  12137. }
  12138. {
  12139. unsigned long long x = 0;
  12140. int y = __builtin_clzll(x);
  12141. }
  12142. ;
  12143. return 0;
  12144. }
  12145. _ACEOF
  12146. if ac_fn_c_try_link "$LINENO"
  12147. then :
  12148. je_cv_builtin_clz=yes
  12149. else $as_nop
  12150. je_cv_builtin_clz=no
  12151. fi
  12152. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12153. conftest$ac_exeext conftest.$ac_ext
  12154. fi
  12155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
  12156. printf "%s\n" "$je_cv_builtin_clz" >&6; }
  12157. if test "x${je_cv_builtin_clz}" = "xyes" ; then
  12158. printf "%s\n" "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h
  12159. fi
  12160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
  12161. printf %s "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
  12162. if test ${je_cv_os_unfair_lock+y}
  12163. then :
  12164. printf %s "(cached) " >&6
  12165. else $as_nop
  12166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12167. /* end confdefs.h. */
  12168. #include <os/lock.h>
  12169. #include <AvailabilityMacros.h>
  12170. int
  12171. main (void)
  12172. {
  12173. #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
  12174. #error "os_unfair_lock is not supported"
  12175. #else
  12176. os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
  12177. os_unfair_lock_lock(&lock);
  12178. os_unfair_lock_unlock(&lock);
  12179. #endif
  12180. ;
  12181. return 0;
  12182. }
  12183. _ACEOF
  12184. if ac_fn_c_try_link "$LINENO"
  12185. then :
  12186. je_cv_os_unfair_lock=yes
  12187. else $as_nop
  12188. je_cv_os_unfair_lock=no
  12189. fi
  12190. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12191. conftest$ac_exeext conftest.$ac_ext
  12192. fi
  12193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
  12194. printf "%s\n" "$je_cv_os_unfair_lock" >&6; }
  12195. if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
  12196. printf "%s\n" "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h
  12197. fi
  12198. # Check whether --enable-zone-allocator was given.
  12199. if test ${enable_zone_allocator+y}
  12200. then :
  12201. enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
  12202. enable_zone_allocator="0"
  12203. else
  12204. enable_zone_allocator="1"
  12205. fi
  12206. else $as_nop
  12207. if test "x${abi}" = "xmacho"; then
  12208. enable_zone_allocator="1"
  12209. fi
  12210. fi
  12211. if test "x${enable_zone_allocator}" = "x1" ; then
  12212. if test "x${abi}" != "xmacho"; then
  12213. as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
  12214. fi
  12215. printf "%s\n" "#define JEMALLOC_ZONE " >>confdefs.h
  12216. fi
  12217. # Check whether --enable-initial-exec-tls was given.
  12218. if test ${enable_initial_exec_tls+y}
  12219. then :
  12220. enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
  12221. enable_initial_exec_tls="0"
  12222. else
  12223. enable_initial_exec_tls="1"
  12224. fi
  12225. else $as_nop
  12226. enable_initial_exec_tls="1"
  12227. fi
  12228. if test "x${je_cv_tls_model}" = "xyes" -a \
  12229. "x${enable_initial_exec_tls}" = "x1" ; then
  12230. printf "%s\n" "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
  12231. else
  12232. printf "%s\n" "#define JEMALLOC_TLS_MODEL " >>confdefs.h
  12233. fi
  12234. if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" -a \
  12235. "x${abi}" != "xmacho" ; then
  12236. printf "%s\n" "#define JEMALLOC_BACKGROUND_THREAD " >>confdefs.h
  12237. fi
  12238. if test "x$glibc" = "x1" ; then
  12239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
  12240. printf %s "checking whether glibc malloc hook is compilable... " >&6; }
  12241. if test ${je_cv_glibc_malloc_hook+y}
  12242. then :
  12243. printf %s "(cached) " >&6
  12244. else $as_nop
  12245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12246. /* end confdefs.h. */
  12247. #include <stddef.h>
  12248. extern void (* __free_hook)(void *ptr);
  12249. extern void *(* __malloc_hook)(size_t size);
  12250. extern void *(* __realloc_hook)(void *ptr, size_t size);
  12251. int
  12252. main (void)
  12253. {
  12254. void *ptr = 0L;
  12255. if (__malloc_hook) ptr = __malloc_hook(1);
  12256. if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
  12257. if (__free_hook && ptr) __free_hook(ptr);
  12258. ;
  12259. return 0;
  12260. }
  12261. _ACEOF
  12262. if ac_fn_c_try_link "$LINENO"
  12263. then :
  12264. je_cv_glibc_malloc_hook=yes
  12265. else $as_nop
  12266. je_cv_glibc_malloc_hook=no
  12267. fi
  12268. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12269. conftest$ac_exeext conftest.$ac_ext
  12270. fi
  12271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
  12272. printf "%s\n" "$je_cv_glibc_malloc_hook" >&6; }
  12273. if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
  12274. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  12275. printf "%s\n" "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h
  12276. wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
  12277. fi
  12278. fi
  12279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
  12280. printf %s "checking whether glibc memalign hook is compilable... " >&6; }
  12281. if test ${je_cv_glibc_memalign_hook+y}
  12282. then :
  12283. printf %s "(cached) " >&6
  12284. else $as_nop
  12285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12286. /* end confdefs.h. */
  12287. #include <stddef.h>
  12288. extern void *(* __memalign_hook)(size_t alignment, size_t size);
  12289. int
  12290. main (void)
  12291. {
  12292. void *ptr = 0L;
  12293. if (__memalign_hook) ptr = __memalign_hook(16, 7);
  12294. ;
  12295. return 0;
  12296. }
  12297. _ACEOF
  12298. if ac_fn_c_try_link "$LINENO"
  12299. then :
  12300. je_cv_glibc_memalign_hook=yes
  12301. else $as_nop
  12302. je_cv_glibc_memalign_hook=no
  12303. fi
  12304. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12305. conftest$ac_exeext conftest.$ac_ext
  12306. fi
  12307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
  12308. printf "%s\n" "$je_cv_glibc_memalign_hook" >&6; }
  12309. if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
  12310. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  12311. printf "%s\n" "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h
  12312. wrap_syms="${wrap_syms} __memalign_hook"
  12313. fi
  12314. fi
  12315. fi
  12316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
  12317. printf %s "checking whether pthreads adaptive mutexes is compilable... " >&6; }
  12318. if test ${je_cv_pthread_mutex_adaptive_np+y}
  12319. then :
  12320. printf %s "(cached) " >&6
  12321. else $as_nop
  12322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12323. /* end confdefs.h. */
  12324. #include <pthread.h>
  12325. int
  12326. main (void)
  12327. {
  12328. pthread_mutexattr_t attr;
  12329. pthread_mutexattr_init(&attr);
  12330. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
  12331. pthread_mutexattr_destroy(&attr);
  12332. ;
  12333. return 0;
  12334. }
  12335. _ACEOF
  12336. if ac_fn_c_try_link "$LINENO"
  12337. then :
  12338. je_cv_pthread_mutex_adaptive_np=yes
  12339. else $as_nop
  12340. je_cv_pthread_mutex_adaptive_np=no
  12341. fi
  12342. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12343. conftest$ac_exeext conftest.$ac_ext
  12344. fi
  12345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
  12346. printf "%s\n" "$je_cv_pthread_mutex_adaptive_np" >&6; }
  12347. if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
  12348. printf "%s\n" "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h
  12349. fi
  12350. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  12351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
  12352. printf %s "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
  12353. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  12354. T_APPEND_V=-D_GNU_SOURCE
  12355. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  12356. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  12357. else
  12358. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  12359. fi
  12360. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  12361. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  12362. else
  12363. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  12364. fi
  12365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12366. /* end confdefs.h. */
  12367. int
  12368. main (void)
  12369. {
  12370. return 0;
  12371. ;
  12372. return 0;
  12373. }
  12374. _ACEOF
  12375. if ac_fn_c_try_compile "$LINENO"
  12376. then :
  12377. je_cv_cflags_added=-D_GNU_SOURCE
  12378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12379. printf "%s\n" "yes" >&6; }
  12380. else $as_nop
  12381. je_cv_cflags_added=
  12382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12383. printf "%s\n" "no" >&6; }
  12384. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  12385. fi
  12386. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12387. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  12388. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  12389. else
  12390. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  12391. fi
  12392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  12393. printf %s "checking whether compiler supports -Werror... " >&6; }
  12394. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  12395. T_APPEND_V=-Werror
  12396. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  12397. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  12398. else
  12399. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  12400. fi
  12401. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  12402. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  12403. else
  12404. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  12405. fi
  12406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12407. /* end confdefs.h. */
  12408. int
  12409. main (void)
  12410. {
  12411. return 0;
  12412. ;
  12413. return 0;
  12414. }
  12415. _ACEOF
  12416. if ac_fn_c_try_compile "$LINENO"
  12417. then :
  12418. je_cv_cflags_added=-Werror
  12419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12420. printf "%s\n" "yes" >&6; }
  12421. else $as_nop
  12422. je_cv_cflags_added=
  12423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12424. printf "%s\n" "no" >&6; }
  12425. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  12426. fi
  12427. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12428. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  12429. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  12430. else
  12431. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  12432. fi
  12433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  12434. printf %s "checking whether compiler supports -herror_on_warning... " >&6; }
  12435. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  12436. T_APPEND_V=-herror_on_warning
  12437. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  12438. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  12439. else
  12440. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  12441. fi
  12442. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  12443. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  12444. else
  12445. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  12446. fi
  12447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12448. /* end confdefs.h. */
  12449. int
  12450. main (void)
  12451. {
  12452. return 0;
  12453. ;
  12454. return 0;
  12455. }
  12456. _ACEOF
  12457. if ac_fn_c_try_compile "$LINENO"
  12458. then :
  12459. je_cv_cflags_added=-herror_on_warning
  12460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12461. printf "%s\n" "yes" >&6; }
  12462. else $as_nop
  12463. je_cv_cflags_added=
  12464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12465. printf "%s\n" "no" >&6; }
  12466. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  12467. fi
  12468. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12469. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  12470. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  12471. else
  12472. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  12473. fi
  12474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
  12475. printf %s "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
  12476. if test ${je_cv_strerror_r_returns_char_with_gnu_source+y}
  12477. then :
  12478. printf %s "(cached) " >&6
  12479. else $as_nop
  12480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12481. /* end confdefs.h. */
  12482. #include <errno.h>
  12483. #include <stdio.h>
  12484. #include <stdlib.h>
  12485. #include <string.h>
  12486. int
  12487. main (void)
  12488. {
  12489. char *buffer = (char *) malloc(100);
  12490. char *error = strerror_r(EINVAL, buffer, 100);
  12491. printf("%s\n", error);
  12492. ;
  12493. return 0;
  12494. }
  12495. _ACEOF
  12496. if ac_fn_c_try_link "$LINENO"
  12497. then :
  12498. je_cv_strerror_r_returns_char_with_gnu_source=yes
  12499. else $as_nop
  12500. je_cv_strerror_r_returns_char_with_gnu_source=no
  12501. fi
  12502. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12503. conftest$ac_exeext conftest.$ac_ext
  12504. fi
  12505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
  12506. printf "%s\n" "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
  12507. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  12508. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  12509. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  12510. else
  12511. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  12512. fi
  12513. if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
  12514. printf "%s\n" "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE " >>confdefs.h
  12515. fi
  12516. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  12517. if test "x$ac_cv_type__Bool" = xyes
  12518. then :
  12519. printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
  12520. fi
  12521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  12522. printf %s "checking for stdbool.h that conforms to C99... " >&6; }
  12523. if test ${ac_cv_header_stdbool_h+y}
  12524. then :
  12525. printf %s "(cached) " >&6
  12526. else $as_nop
  12527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12528. /* end confdefs.h. */
  12529. #include <stdbool.h>
  12530. #ifndef __bool_true_false_are_defined
  12531. #error "__bool_true_false_are_defined is not defined"
  12532. #endif
  12533. char a[__bool_true_false_are_defined == 1 ? 1 : -1];
  12534. /* Regardless of whether this is C++ or "_Bool" is a
  12535. valid type name, "true" and "false" should be usable
  12536. in #if expressions and integer constant expressions,
  12537. and "bool" should be a valid type name. */
  12538. #if !true
  12539. #error "'true' is not true"
  12540. #endif
  12541. #if true != 1
  12542. #error "'true' is not equal to 1"
  12543. #endif
  12544. char b[true == 1 ? 1 : -1];
  12545. char c[true];
  12546. #if false
  12547. #error "'false' is not false"
  12548. #endif
  12549. #if false != 0
  12550. #error "'false' is not equal to 0"
  12551. #endif
  12552. char d[false == 0 ? 1 : -1];
  12553. enum { e = false, f = true, g = false * true, h = true * 256 };
  12554. char i[(bool) 0.5 == true ? 1 : -1];
  12555. char j[(bool) 0.0 == false ? 1 : -1];
  12556. char k[sizeof (bool) > 0 ? 1 : -1];
  12557. struct sb { bool s: 1; bool t; } s;
  12558. char l[sizeof s.t > 0 ? 1 : -1];
  12559. /* The following fails for
  12560. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  12561. bool m[h];
  12562. char n[sizeof m == h * sizeof m[0] ? 1 : -1];
  12563. char o[-1 - (bool) 0 < 0 ? 1 : -1];
  12564. /* Catch a bug in an HP-UX C compiler. See
  12565. https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  12566. https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  12567. */
  12568. bool p = true;
  12569. bool *pp = &p;
  12570. /* C 1999 specifies that bool, true, and false are to be
  12571. macros, but C++ 2011 and later overrule this. */
  12572. #if __cplusplus < 201103
  12573. #ifndef bool
  12574. #error "bool is not defined"
  12575. #endif
  12576. #ifndef false
  12577. #error "false is not defined"
  12578. #endif
  12579. #ifndef true
  12580. #error "true is not defined"
  12581. #endif
  12582. #endif
  12583. /* If _Bool is available, repeat with it all the tests
  12584. above that used bool. */
  12585. #ifdef HAVE__BOOL
  12586. struct sB { _Bool s: 1; _Bool t; } t;
  12587. char q[(_Bool) 0.5 == true ? 1 : -1];
  12588. char r[(_Bool) 0.0 == false ? 1 : -1];
  12589. char u[sizeof (_Bool) > 0 ? 1 : -1];
  12590. char v[sizeof t.t > 0 ? 1 : -1];
  12591. _Bool w[h];
  12592. char x[sizeof m == h * sizeof m[0] ? 1 : -1];
  12593. char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
  12594. _Bool z = true;
  12595. _Bool *pz = &p;
  12596. #endif
  12597. int
  12598. main (void)
  12599. {
  12600. bool ps = &s;
  12601. *pp |= p;
  12602. *pp |= ! p;
  12603. #ifdef HAVE__BOOL
  12604. _Bool pt = &t;
  12605. *pz |= z;
  12606. *pz |= ! z;
  12607. #endif
  12608. /* Refer to every declared value, so they cannot be
  12609. discarded as unused. */
  12610. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
  12611. + !l + !m + !n + !o + !p + !pp + !ps
  12612. #ifdef HAVE__BOOL
  12613. + !q + !r + !u + !v + !w + !x + !y + !z + !pt
  12614. #endif
  12615. );
  12616. ;
  12617. return 0;
  12618. }
  12619. _ACEOF
  12620. if ac_fn_c_try_compile "$LINENO"
  12621. then :
  12622. ac_cv_header_stdbool_h=yes
  12623. else $as_nop
  12624. ac_cv_header_stdbool_h=no
  12625. fi
  12626. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12627. fi
  12628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  12629. printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
  12630. if test $ac_cv_header_stdbool_h = yes; then
  12631. printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
  12632. fi
  12633. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
  12634. ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
  12635. ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
  12636. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
  12637. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
  12638. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
  12639. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
  12640. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
  12641. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
  12642. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
  12643. ac_config_headers="$ac_config_headers $cfghdrs_tup"
  12644. ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
  12645. cat >confcache <<\_ACEOF
  12646. # This file is a shell script that caches the results of configure
  12647. # tests run on this system so they can be shared between configure
  12648. # scripts and configure runs, see configure's option --config-cache.
  12649. # It is not useful on other systems. If it contains results you don't
  12650. # want to keep, you may remove or edit it.
  12651. #
  12652. # config.status only pays attention to the cache file if you give it
  12653. # the --recheck option to rerun configure.
  12654. #
  12655. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12656. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12657. # following values.
  12658. _ACEOF
  12659. # The following way of writing the cache mishandles newlines in values,
  12660. # but we know of no workaround that is simple, portable, and efficient.
  12661. # So, we kill variables containing newlines.
  12662. # Ultrix sh set writes to stderr and can't be redirected directly,
  12663. # and sets the high bit in the cache file unless we assign to the vars.
  12664. (
  12665. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12666. eval ac_val=\$$ac_var
  12667. case $ac_val in #(
  12668. *${as_nl}*)
  12669. case $ac_var in #(
  12670. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12671. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12672. esac
  12673. case $ac_var in #(
  12674. _ | IFS | as_nl) ;; #(
  12675. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12676. *) { eval $ac_var=; unset $ac_var;} ;;
  12677. esac ;;
  12678. esac
  12679. done
  12680. (set) 2>&1 |
  12681. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12682. *${as_nl}ac_space=\ *)
  12683. # `set' does not quote correctly, so add quotes: double-quote
  12684. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12685. sed -n \
  12686. "s/'/'\\\\''/g;
  12687. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12688. ;; #(
  12689. *)
  12690. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12691. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12692. ;;
  12693. esac |
  12694. sort
  12695. ) |
  12696. sed '
  12697. /^ac_cv_env_/b end
  12698. t clear
  12699. :clear
  12700. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  12701. t end
  12702. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12703. :end' >>confcache
  12704. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12705. if test -w "$cache_file"; then
  12706. if test "x$cache_file" != "x/dev/null"; then
  12707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12708. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  12709. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12710. cat confcache >"$cache_file"
  12711. else
  12712. case $cache_file in #(
  12713. */* | ?:*)
  12714. mv -f confcache "$cache_file"$$ &&
  12715. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12716. *)
  12717. mv -f confcache "$cache_file" ;;
  12718. esac
  12719. fi
  12720. fi
  12721. else
  12722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12723. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  12724. fi
  12725. fi
  12726. rm -f confcache
  12727. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12728. # Let make expand exec_prefix.
  12729. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12730. DEFS=-DHAVE_CONFIG_H
  12731. ac_libobjs=
  12732. ac_ltlibobjs=
  12733. U=
  12734. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12735. # 1. Remove the extension, and $U if already installed.
  12736. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12737. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  12738. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12739. # will be set to the directory where LIBOBJS objects are built.
  12740. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12741. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12742. done
  12743. LIBOBJS=$ac_libobjs
  12744. LTLIBOBJS=$ac_ltlibobjs
  12745. : "${CONFIG_STATUS=./config.status}"
  12746. ac_write_fail=0
  12747. ac_clean_files_save=$ac_clean_files
  12748. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12750. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  12751. as_write_fail=0
  12752. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12753. #! $SHELL
  12754. # Generated by $as_me.
  12755. # Run this file to recreate the current configuration.
  12756. # Compiler output produced by configure, useful for debugging
  12757. # configure, is in config.log if it exists.
  12758. debug=false
  12759. ac_cs_recheck=false
  12760. ac_cs_silent=false
  12761. SHELL=\${CONFIG_SHELL-$SHELL}
  12762. export SHELL
  12763. _ASEOF
  12764. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12765. ## -------------------- ##
  12766. ## M4sh Initialization. ##
  12767. ## -------------------- ##
  12768. # Be more Bourne compatible
  12769. DUALCASE=1; export DUALCASE # for MKS sh
  12770. as_nop=:
  12771. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  12772. then :
  12773. emulate sh
  12774. NULLCMD=:
  12775. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12776. # is contrary to our usage. Disable this feature.
  12777. alias -g '${1+"$@"}'='"$@"'
  12778. setopt NO_GLOB_SUBST
  12779. else $as_nop
  12780. case `(set -o) 2>/dev/null` in #(
  12781. *posix*) :
  12782. set -o posix ;; #(
  12783. *) :
  12784. ;;
  12785. esac
  12786. fi
  12787. # Reset variables that may have inherited troublesome values from
  12788. # the environment.
  12789. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  12790. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  12791. # side effect of setting IFS to empty, thus disabling word splitting.)
  12792. # Quoting is to prevent editors from complaining about space-tab.
  12793. as_nl='
  12794. '
  12795. export as_nl
  12796. IFS=" "" $as_nl"
  12797. PS1='$ '
  12798. PS2='> '
  12799. PS4='+ '
  12800. # Ensure predictable behavior from utilities with locale-dependent output.
  12801. LC_ALL=C
  12802. export LC_ALL
  12803. LANGUAGE=C
  12804. export LANGUAGE
  12805. # We cannot yet rely on "unset" to work, but we need these variables
  12806. # to be unset--not just set to an empty or harmless value--now, to
  12807. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  12808. # also avoids known problems related to "unset" and subshell syntax
  12809. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  12810. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  12811. do eval test \${$as_var+y} \
  12812. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12813. done
  12814. # Ensure that fds 0, 1, and 2 are open.
  12815. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  12816. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  12817. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  12818. # The user is always right.
  12819. if ${PATH_SEPARATOR+false} :; then
  12820. PATH_SEPARATOR=:
  12821. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12822. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12823. PATH_SEPARATOR=';'
  12824. }
  12825. fi
  12826. # Find who we are. Look in the path if we contain no directory separator.
  12827. as_myself=
  12828. case $0 in #((
  12829. *[\\/]* ) as_myself=$0 ;;
  12830. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12831. for as_dir in $PATH
  12832. do
  12833. IFS=$as_save_IFS
  12834. case $as_dir in #(((
  12835. '') as_dir=./ ;;
  12836. */) ;;
  12837. *) as_dir=$as_dir/ ;;
  12838. esac
  12839. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  12840. done
  12841. IFS=$as_save_IFS
  12842. ;;
  12843. esac
  12844. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12845. # in which case we are not to be found in the path.
  12846. if test "x$as_myself" = x; then
  12847. as_myself=$0
  12848. fi
  12849. if test ! -f "$as_myself"; then
  12850. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12851. exit 1
  12852. fi
  12853. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12854. # ----------------------------------------
  12855. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12856. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12857. # script with STATUS, using 1 if that was 0.
  12858. as_fn_error ()
  12859. {
  12860. as_status=$1; test $as_status -eq 0 && as_status=1
  12861. if test "$4"; then
  12862. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12863. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12864. fi
  12865. printf "%s\n" "$as_me: error: $2" >&2
  12866. as_fn_exit $as_status
  12867. } # as_fn_error
  12868. # as_fn_set_status STATUS
  12869. # -----------------------
  12870. # Set $? to STATUS, without forking.
  12871. as_fn_set_status ()
  12872. {
  12873. return $1
  12874. } # as_fn_set_status
  12875. # as_fn_exit STATUS
  12876. # -----------------
  12877. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12878. as_fn_exit ()
  12879. {
  12880. set +e
  12881. as_fn_set_status $1
  12882. exit $1
  12883. } # as_fn_exit
  12884. # as_fn_unset VAR
  12885. # ---------------
  12886. # Portably unset VAR.
  12887. as_fn_unset ()
  12888. {
  12889. { eval $1=; unset $1;}
  12890. }
  12891. as_unset=as_fn_unset
  12892. # as_fn_append VAR VALUE
  12893. # ----------------------
  12894. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12895. # advantage of any shell optimizations that allow amortized linear growth over
  12896. # repeated appends, instead of the typical quadratic growth present in naive
  12897. # implementations.
  12898. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  12899. then :
  12900. eval 'as_fn_append ()
  12901. {
  12902. eval $1+=\$2
  12903. }'
  12904. else $as_nop
  12905. as_fn_append ()
  12906. {
  12907. eval $1=\$$1\$2
  12908. }
  12909. fi # as_fn_append
  12910. # as_fn_arith ARG...
  12911. # ------------------
  12912. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12913. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12914. # must be portable across $(()) and expr.
  12915. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  12916. then :
  12917. eval 'as_fn_arith ()
  12918. {
  12919. as_val=$(( $* ))
  12920. }'
  12921. else $as_nop
  12922. as_fn_arith ()
  12923. {
  12924. as_val=`expr "$@" || test $? -eq 1`
  12925. }
  12926. fi # as_fn_arith
  12927. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12928. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12929. as_expr=expr
  12930. else
  12931. as_expr=false
  12932. fi
  12933. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12934. as_basename=basename
  12935. else
  12936. as_basename=false
  12937. fi
  12938. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12939. as_dirname=dirname
  12940. else
  12941. as_dirname=false
  12942. fi
  12943. as_me=`$as_basename -- "$0" ||
  12944. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12945. X"$0" : 'X\(//\)$' \| \
  12946. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12947. printf "%s\n" X/"$0" |
  12948. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12949. s//\1/
  12950. q
  12951. }
  12952. /^X\/\(\/\/\)$/{
  12953. s//\1/
  12954. q
  12955. }
  12956. /^X\/\(\/\).*/{
  12957. s//\1/
  12958. q
  12959. }
  12960. s/.*/./; q'`
  12961. # Avoid depending upon Character Ranges.
  12962. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12963. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12964. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12965. as_cr_digits='0123456789'
  12966. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12967. # Determine whether it's possible to make 'echo' print without a newline.
  12968. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  12969. # for compatibility with existing Makefiles.
  12970. ECHO_C= ECHO_N= ECHO_T=
  12971. case `echo -n x` in #(((((
  12972. -n*)
  12973. case `echo 'xy\c'` in
  12974. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12975. xy) ECHO_C='\c';;
  12976. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12977. ECHO_T=' ';;
  12978. esac;;
  12979. *)
  12980. ECHO_N='-n';;
  12981. esac
  12982. # For backward compatibility with old third-party macros, we provide
  12983. # the shell variables $as_echo and $as_echo_n. New code should use
  12984. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  12985. as_echo='printf %s\n'
  12986. as_echo_n='printf %s'
  12987. rm -f conf$$ conf$$.exe conf$$.file
  12988. if test -d conf$$.dir; then
  12989. rm -f conf$$.dir/conf$$.file
  12990. else
  12991. rm -f conf$$.dir
  12992. mkdir conf$$.dir 2>/dev/null
  12993. fi
  12994. if (echo >conf$$.file) 2>/dev/null; then
  12995. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12996. as_ln_s='ln -s'
  12997. # ... but there are two gotchas:
  12998. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12999. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13000. # In both cases, we have to default to `cp -pR'.
  13001. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13002. as_ln_s='cp -pR'
  13003. elif ln conf$$.file conf$$ 2>/dev/null; then
  13004. as_ln_s=ln
  13005. else
  13006. as_ln_s='cp -pR'
  13007. fi
  13008. else
  13009. as_ln_s='cp -pR'
  13010. fi
  13011. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13012. rmdir conf$$.dir 2>/dev/null
  13013. # as_fn_mkdir_p
  13014. # -------------
  13015. # Create "$as_dir" as a directory, including parents if necessary.
  13016. as_fn_mkdir_p ()
  13017. {
  13018. case $as_dir in #(
  13019. -*) as_dir=./$as_dir;;
  13020. esac
  13021. test -d "$as_dir" || eval $as_mkdir_p || {
  13022. as_dirs=
  13023. while :; do
  13024. case $as_dir in #(
  13025. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13026. *) as_qdir=$as_dir;;
  13027. esac
  13028. as_dirs="'$as_qdir' $as_dirs"
  13029. as_dir=`$as_dirname -- "$as_dir" ||
  13030. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13031. X"$as_dir" : 'X\(//\)[^/]' \| \
  13032. X"$as_dir" : 'X\(//\)$' \| \
  13033. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13034. printf "%s\n" X"$as_dir" |
  13035. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13036. s//\1/
  13037. q
  13038. }
  13039. /^X\(\/\/\)[^/].*/{
  13040. s//\1/
  13041. q
  13042. }
  13043. /^X\(\/\/\)$/{
  13044. s//\1/
  13045. q
  13046. }
  13047. /^X\(\/\).*/{
  13048. s//\1/
  13049. q
  13050. }
  13051. s/.*/./; q'`
  13052. test -d "$as_dir" && break
  13053. done
  13054. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13055. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13056. } # as_fn_mkdir_p
  13057. if mkdir -p . 2>/dev/null; then
  13058. as_mkdir_p='mkdir -p "$as_dir"'
  13059. else
  13060. test -d ./-p && rmdir ./-p
  13061. as_mkdir_p=false
  13062. fi
  13063. # as_fn_executable_p FILE
  13064. # -----------------------
  13065. # Test if FILE is an executable regular file.
  13066. as_fn_executable_p ()
  13067. {
  13068. test -f "$1" && test -x "$1"
  13069. } # as_fn_executable_p
  13070. as_test_x='test -x'
  13071. as_executable_p=as_fn_executable_p
  13072. # Sed expression to map a string onto a valid CPP name.
  13073. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13074. # Sed expression to map a string onto a valid variable name.
  13075. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13076. exec 6>&1
  13077. ## ----------------------------------- ##
  13078. ## Main body of $CONFIG_STATUS script. ##
  13079. ## ----------------------------------- ##
  13080. _ASEOF
  13081. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13082. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13083. # Save the log message, to keep $0 and so on meaningful, and to
  13084. # report actual input values of CONFIG_FILES etc. instead of their
  13085. # values after options handling.
  13086. ac_log="
  13087. This file was extended by $as_me, which was
  13088. generated by GNU Autoconf 2.71. Invocation command line was
  13089. CONFIG_FILES = $CONFIG_FILES
  13090. CONFIG_HEADERS = $CONFIG_HEADERS
  13091. CONFIG_LINKS = $CONFIG_LINKS
  13092. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13093. $ $0 $@
  13094. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13095. "
  13096. _ACEOF
  13097. case $ac_config_files in *"
  13098. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13099. esac
  13100. case $ac_config_headers in *"
  13101. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13102. esac
  13103. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13104. # Files that config.status was made for.
  13105. config_files="$ac_config_files"
  13106. config_headers="$ac_config_headers"
  13107. config_commands="$ac_config_commands"
  13108. _ACEOF
  13109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13110. ac_cs_usage="\
  13111. \`$as_me' instantiates files and other configuration actions
  13112. from templates according to the current configuration. Unless the files
  13113. and actions are specified as TAGs, all are instantiated by default.
  13114. Usage: $0 [OPTION]... [TAG]...
  13115. -h, --help print this help, then exit
  13116. -V, --version print version number and configuration settings, then exit
  13117. --config print configuration, then exit
  13118. -q, --quiet, --silent
  13119. do not print progress messages
  13120. -d, --debug don't remove temporary files
  13121. --recheck update $as_me by reconfiguring in the same conditions
  13122. --file=FILE[:TEMPLATE]
  13123. instantiate the configuration file FILE
  13124. --header=FILE[:TEMPLATE]
  13125. instantiate the configuration header FILE
  13126. Configuration files:
  13127. $config_files
  13128. Configuration headers:
  13129. $config_headers
  13130. Configuration commands:
  13131. $config_commands
  13132. Report bugs to the package provider."
  13133. _ACEOF
  13134. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  13135. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  13136. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13137. ac_cs_config='$ac_cs_config_escaped'
  13138. ac_cs_version="\\
  13139. config.status
  13140. configured by $0, generated by GNU Autoconf 2.71,
  13141. with options \\"\$ac_cs_config\\"
  13142. Copyright (C) 2021 Free Software Foundation, Inc.
  13143. This config.status script is free software; the Free Software Foundation
  13144. gives unlimited permission to copy, distribute and modify it."
  13145. ac_pwd='$ac_pwd'
  13146. srcdir='$srcdir'
  13147. INSTALL='$INSTALL'
  13148. AWK='$AWK'
  13149. test -n "\$AWK" || AWK=awk
  13150. _ACEOF
  13151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13152. # The default lists apply if the user does not specify any file.
  13153. ac_need_defaults=:
  13154. while test $# != 0
  13155. do
  13156. case $1 in
  13157. --*=?*)
  13158. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13159. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13160. ac_shift=:
  13161. ;;
  13162. --*=)
  13163. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13164. ac_optarg=
  13165. ac_shift=:
  13166. ;;
  13167. *)
  13168. ac_option=$1
  13169. ac_optarg=$2
  13170. ac_shift=shift
  13171. ;;
  13172. esac
  13173. case $ac_option in
  13174. # Handling of the options.
  13175. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13176. ac_cs_recheck=: ;;
  13177. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13178. printf "%s\n" "$ac_cs_version"; exit ;;
  13179. --config | --confi | --conf | --con | --co | --c )
  13180. printf "%s\n" "$ac_cs_config"; exit ;;
  13181. --debug | --debu | --deb | --de | --d | -d )
  13182. debug=: ;;
  13183. --file | --fil | --fi | --f )
  13184. $ac_shift
  13185. case $ac_optarg in
  13186. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13187. '') as_fn_error $? "missing file argument" ;;
  13188. esac
  13189. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13190. ac_need_defaults=false;;
  13191. --header | --heade | --head | --hea )
  13192. $ac_shift
  13193. case $ac_optarg in
  13194. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13195. esac
  13196. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13197. ac_need_defaults=false;;
  13198. --he | --h)
  13199. # Conflict between --help and --header
  13200. as_fn_error $? "ambiguous option: \`$1'
  13201. Try \`$0 --help' for more information.";;
  13202. --help | --hel | -h )
  13203. printf "%s\n" "$ac_cs_usage"; exit ;;
  13204. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13205. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13206. ac_cs_silent=: ;;
  13207. # This is an error.
  13208. -*) as_fn_error $? "unrecognized option: \`$1'
  13209. Try \`$0 --help' for more information." ;;
  13210. *) as_fn_append ac_config_targets " $1"
  13211. ac_need_defaults=false ;;
  13212. esac
  13213. shift
  13214. done
  13215. ac_configure_extra_args=
  13216. if $ac_cs_silent; then
  13217. exec 6>/dev/null
  13218. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13219. fi
  13220. _ACEOF
  13221. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13222. if \$ac_cs_recheck; then
  13223. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13224. shift
  13225. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  13226. CONFIG_SHELL='$SHELL'
  13227. export CONFIG_SHELL
  13228. exec "\$@"
  13229. fi
  13230. _ACEOF
  13231. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13232. exec 5>>config.log
  13233. {
  13234. echo
  13235. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13236. ## Running $as_me. ##
  13237. _ASBOX
  13238. printf "%s\n" "$ac_log"
  13239. } >&5
  13240. _ACEOF
  13241. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13242. #
  13243. # INIT-COMMANDS
  13244. #
  13245. srcdir="${srcdir}"
  13246. objroot="${objroot}"
  13247. mangling_map="${mangling_map}"
  13248. public_syms="${public_syms}"
  13249. JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
  13250. srcdir="${srcdir}"
  13251. objroot="${objroot}"
  13252. public_syms="${public_syms}"
  13253. wrap_syms="${wrap_syms}"
  13254. SYM_PREFIX="${SYM_PREFIX}"
  13255. JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
  13256. srcdir="${srcdir}"
  13257. objroot="${objroot}"
  13258. public_syms="${public_syms}"
  13259. wrap_syms="${wrap_syms}"
  13260. SYM_PREFIX="${SYM_PREFIX}"
  13261. srcdir="${srcdir}"
  13262. objroot="${objroot}"
  13263. srcdir="${srcdir}"
  13264. objroot="${objroot}"
  13265. srcdir="${srcdir}"
  13266. objroot="${objroot}"
  13267. srcdir="${srcdir}"
  13268. objroot="${objroot}"
  13269. srcdir="${srcdir}"
  13270. objroot="${objroot}"
  13271. srcdir="${srcdir}"
  13272. objroot="${objroot}"
  13273. srcdir="${srcdir}"
  13274. objroot="${objroot}"
  13275. install_suffix="${install_suffix}"
  13276. _ACEOF
  13277. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13278. # Handling of arguments.
  13279. for ac_config_target in $ac_config_targets
  13280. do
  13281. case $ac_config_target in
  13282. "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
  13283. "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
  13284. "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
  13285. "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
  13286. "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
  13287. "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
  13288. "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
  13289. "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
  13290. "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
  13291. "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
  13292. "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
  13293. "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
  13294. "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
  13295. "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
  13296. "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
  13297. "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
  13298. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13299. esac
  13300. done
  13301. # If the user did not use the arguments to specify the items to instantiate,
  13302. # then the envvar interface is used. Set only those that are not.
  13303. # We use the long form for the default assignment because of an extremely
  13304. # bizarre bug on SunOS 4.1.3.
  13305. if $ac_need_defaults; then
  13306. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  13307. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  13308. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  13309. fi
  13310. # Have a temporary directory for convenience. Make it in the build tree
  13311. # simply because there is no reason against having it here, and in addition,
  13312. # creating and moving files from /tmp can sometimes cause problems.
  13313. # Hook for its removal unless debugging.
  13314. # Note that there is a small window in which the directory will not be cleaned:
  13315. # after its creation but before its name has been assigned to `$tmp'.
  13316. $debug ||
  13317. {
  13318. tmp= ac_tmp=
  13319. trap 'exit_status=$?
  13320. : "${ac_tmp:=$tmp}"
  13321. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13322. ' 0
  13323. trap 'as_fn_exit 1' 1 2 13 15
  13324. }
  13325. # Create a (secure) tmp directory for tmp files.
  13326. {
  13327. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13328. test -d "$tmp"
  13329. } ||
  13330. {
  13331. tmp=./conf$$-$RANDOM
  13332. (umask 077 && mkdir "$tmp")
  13333. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13334. ac_tmp=$tmp
  13335. # Set up the scripts for CONFIG_FILES section.
  13336. # No need to generate them if there are no CONFIG_FILES.
  13337. # This happens for instance with `./config.status config.h'.
  13338. if test -n "$CONFIG_FILES"; then
  13339. ac_cr=`echo X | tr X '\015'`
  13340. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13341. # But we know of no other shell where ac_cr would be empty at this
  13342. # point, so we can use a bashism as a fallback.
  13343. if test "x$ac_cr" = x; then
  13344. eval ac_cr=\$\'\\r\'
  13345. fi
  13346. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13347. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13348. ac_cs_awk_cr='\\r'
  13349. else
  13350. ac_cs_awk_cr=$ac_cr
  13351. fi
  13352. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13353. _ACEOF
  13354. {
  13355. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13356. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13357. echo "_ACEOF"
  13358. } >conf$$subs.sh ||
  13359. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13360. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13361. ac_delim='%!_!# '
  13362. for ac_last_try in false false false false false :; do
  13363. . ./conf$$subs.sh ||
  13364. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13365. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13366. if test $ac_delim_n = $ac_delim_num; then
  13367. break
  13368. elif $ac_last_try; then
  13369. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13370. else
  13371. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13372. fi
  13373. done
  13374. rm -f conf$$subs.sh
  13375. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13376. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13377. _ACEOF
  13378. sed -n '
  13379. h
  13380. s/^/S["/; s/!.*/"]=/
  13381. p
  13382. g
  13383. s/^[^!]*!//
  13384. :repl
  13385. t repl
  13386. s/'"$ac_delim"'$//
  13387. t delim
  13388. :nl
  13389. h
  13390. s/\(.\{148\}\)..*/\1/
  13391. t more1
  13392. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13393. p
  13394. n
  13395. b repl
  13396. :more1
  13397. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13398. p
  13399. g
  13400. s/.\{148\}//
  13401. t nl
  13402. :delim
  13403. h
  13404. s/\(.\{148\}\)..*/\1/
  13405. t more2
  13406. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13407. p
  13408. b
  13409. :more2
  13410. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13411. p
  13412. g
  13413. s/.\{148\}//
  13414. t delim
  13415. ' <conf$$subs.awk | sed '
  13416. /^[^""]/{
  13417. N
  13418. s/\n//
  13419. }
  13420. ' >>$CONFIG_STATUS || ac_write_fail=1
  13421. rm -f conf$$subs.awk
  13422. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13423. _ACAWK
  13424. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13425. for (key in S) S_is_set[key] = 1
  13426. FS = ""
  13427. }
  13428. {
  13429. line = $ 0
  13430. nfields = split(line, field, "@")
  13431. substed = 0
  13432. len = length(field[1])
  13433. for (i = 2; i < nfields; i++) {
  13434. key = field[i]
  13435. keylen = length(key)
  13436. if (S_is_set[key]) {
  13437. value = S[key]
  13438. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13439. len += length(value) + length(field[++i])
  13440. substed = 1
  13441. } else
  13442. len += 1 + keylen
  13443. }
  13444. print line
  13445. }
  13446. _ACAWK
  13447. _ACEOF
  13448. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13449. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13450. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13451. else
  13452. cat
  13453. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13454. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13455. _ACEOF
  13456. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13457. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13458. # trailing colons and then remove the whole line if VPATH becomes empty
  13459. # (actually we leave an empty line to preserve line numbers).
  13460. if test "x$srcdir" = x.; then
  13461. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13462. h
  13463. s///
  13464. s/^/:/
  13465. s/[ ]*$/:/
  13466. s/:\$(srcdir):/:/g
  13467. s/:\${srcdir}:/:/g
  13468. s/:@srcdir@:/:/g
  13469. s/^:*//
  13470. s/:*$//
  13471. x
  13472. s/\(=[ ]*\).*/\1/
  13473. G
  13474. s/\n//
  13475. s/^[^=]*=[ ]*$//
  13476. }'
  13477. fi
  13478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13479. fi # test -n "$CONFIG_FILES"
  13480. # Set up the scripts for CONFIG_HEADERS section.
  13481. # No need to generate them if there are no CONFIG_HEADERS.
  13482. # This happens for instance with `./config.status Makefile'.
  13483. if test -n "$CONFIG_HEADERS"; then
  13484. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13485. BEGIN {
  13486. _ACEOF
  13487. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13488. # here-document in config.status, that substitutes the proper values into
  13489. # config.h.in to produce config.h.
  13490. # Create a delimiter string that does not exist in confdefs.h, to ease
  13491. # handling of long lines.
  13492. ac_delim='%!_!# '
  13493. for ac_last_try in false false :; do
  13494. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13495. if test -z "$ac_tt"; then
  13496. break
  13497. elif $ac_last_try; then
  13498. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13499. else
  13500. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13501. fi
  13502. done
  13503. # For the awk script, D is an array of macro values keyed by name,
  13504. # likewise P contains macro parameters if any. Preserve backslash
  13505. # newline sequences.
  13506. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13507. sed -n '
  13508. s/.\{148\}/&'"$ac_delim"'/g
  13509. t rset
  13510. :rset
  13511. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13512. t def
  13513. d
  13514. :def
  13515. s/\\$//
  13516. t bsnl
  13517. s/["\\]/\\&/g
  13518. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13519. D["\1"]=" \3"/p
  13520. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13521. d
  13522. :bsnl
  13523. s/["\\]/\\&/g
  13524. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13525. D["\1"]=" \3\\\\\\n"\\/p
  13526. t cont
  13527. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13528. t cont
  13529. d
  13530. :cont
  13531. n
  13532. s/.\{148\}/&'"$ac_delim"'/g
  13533. t clear
  13534. :clear
  13535. s/\\$//
  13536. t bsnlc
  13537. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13538. d
  13539. :bsnlc
  13540. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13541. b cont
  13542. ' <confdefs.h | sed '
  13543. s/'"$ac_delim"'/"\\\
  13544. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13545. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13546. for (key in D) D_is_set[key] = 1
  13547. FS = ""
  13548. }
  13549. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13550. line = \$ 0
  13551. split(line, arg, " ")
  13552. if (arg[1] == "#") {
  13553. defundef = arg[2]
  13554. mac1 = arg[3]
  13555. } else {
  13556. defundef = substr(arg[1], 2)
  13557. mac1 = arg[2]
  13558. }
  13559. split(mac1, mac2, "(") #)
  13560. macro = mac2[1]
  13561. prefix = substr(line, 1, index(line, defundef) - 1)
  13562. if (D_is_set[macro]) {
  13563. # Preserve the white space surrounding the "#".
  13564. print prefix "define", macro P[macro] D[macro]
  13565. next
  13566. } else {
  13567. # Replace #undef with comments. This is necessary, for example,
  13568. # in the case of _POSIX_SOURCE, which is predefined and required
  13569. # on some systems where configure will not decide to define it.
  13570. if (defundef == "undef") {
  13571. print "/*", prefix defundef, macro, "*/"
  13572. next
  13573. }
  13574. }
  13575. }
  13576. { print }
  13577. _ACAWK
  13578. _ACEOF
  13579. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13580. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13581. fi # test -n "$CONFIG_HEADERS"
  13582. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13583. shift
  13584. for ac_tag
  13585. do
  13586. case $ac_tag in
  13587. :[FHLC]) ac_mode=$ac_tag; continue;;
  13588. esac
  13589. case $ac_mode$ac_tag in
  13590. :[FHL]*:*);;
  13591. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13592. :[FH]-) ac_tag=-:-;;
  13593. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13594. esac
  13595. ac_save_IFS=$IFS
  13596. IFS=:
  13597. set x $ac_tag
  13598. IFS=$ac_save_IFS
  13599. shift
  13600. ac_file=$1
  13601. shift
  13602. case $ac_mode in
  13603. :L) ac_source=$1;;
  13604. :[FH])
  13605. ac_file_inputs=
  13606. for ac_f
  13607. do
  13608. case $ac_f in
  13609. -) ac_f="$ac_tmp/stdin";;
  13610. *) # Look for the file first in the build tree, then in the source tree
  13611. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13612. # because $ac_f cannot contain `:'.
  13613. test -f "$ac_f" ||
  13614. case $ac_f in
  13615. [\\/$]*) false;;
  13616. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13617. esac ||
  13618. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13619. esac
  13620. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13621. as_fn_append ac_file_inputs " '$ac_f'"
  13622. done
  13623. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13624. # use $as_me), people would be surprised to read:
  13625. # /* config.h. Generated by config.status. */
  13626. configure_input='Generated from '`
  13627. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13628. `' by configure.'
  13629. if test x"$ac_file" != x-; then
  13630. configure_input="$ac_file. $configure_input"
  13631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13632. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  13633. fi
  13634. # Neutralize special characters interpreted by sed in replacement strings.
  13635. case $configure_input in #(
  13636. *\&* | *\|* | *\\* )
  13637. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  13638. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13639. *) ac_sed_conf_input=$configure_input;;
  13640. esac
  13641. case $ac_tag in
  13642. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13643. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13644. esac
  13645. ;;
  13646. esac
  13647. ac_dir=`$as_dirname -- "$ac_file" ||
  13648. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13649. X"$ac_file" : 'X\(//\)[^/]' \| \
  13650. X"$ac_file" : 'X\(//\)$' \| \
  13651. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13652. printf "%s\n" X"$ac_file" |
  13653. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13654. s//\1/
  13655. q
  13656. }
  13657. /^X\(\/\/\)[^/].*/{
  13658. s//\1/
  13659. q
  13660. }
  13661. /^X\(\/\/\)$/{
  13662. s//\1/
  13663. q
  13664. }
  13665. /^X\(\/\).*/{
  13666. s//\1/
  13667. q
  13668. }
  13669. s/.*/./; q'`
  13670. as_dir="$ac_dir"; as_fn_mkdir_p
  13671. ac_builddir=.
  13672. case "$ac_dir" in
  13673. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13674. *)
  13675. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  13676. # A ".." for each directory in $ac_dir_suffix.
  13677. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13678. case $ac_top_builddir_sub in
  13679. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13680. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13681. esac ;;
  13682. esac
  13683. ac_abs_top_builddir=$ac_pwd
  13684. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13685. # for backward compatibility:
  13686. ac_top_builddir=$ac_top_build_prefix
  13687. case $srcdir in
  13688. .) # We are building in place.
  13689. ac_srcdir=.
  13690. ac_top_srcdir=$ac_top_builddir_sub
  13691. ac_abs_top_srcdir=$ac_pwd ;;
  13692. [\\/]* | ?:[\\/]* ) # Absolute name.
  13693. ac_srcdir=$srcdir$ac_dir_suffix;
  13694. ac_top_srcdir=$srcdir
  13695. ac_abs_top_srcdir=$srcdir ;;
  13696. *) # Relative name.
  13697. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13698. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13699. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13700. esac
  13701. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13702. case $ac_mode in
  13703. :F)
  13704. #
  13705. # CONFIG_FILE
  13706. #
  13707. case $INSTALL in
  13708. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13709. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13710. esac
  13711. _ACEOF
  13712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13713. # If the template does not know about datarootdir, expand it.
  13714. # FIXME: This hack should be removed a few years after 2.60.
  13715. ac_datarootdir_hack=; ac_datarootdir_seen=
  13716. ac_sed_dataroot='
  13717. /datarootdir/ {
  13718. p
  13719. q
  13720. }
  13721. /@datadir@/p
  13722. /@docdir@/p
  13723. /@infodir@/p
  13724. /@localedir@/p
  13725. /@mandir@/p'
  13726. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13727. *datarootdir*) ac_datarootdir_seen=yes;;
  13728. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13730. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13731. _ACEOF
  13732. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13733. ac_datarootdir_hack='
  13734. s&@datadir@&$datadir&g
  13735. s&@docdir@&$docdir&g
  13736. s&@infodir@&$infodir&g
  13737. s&@localedir@&$localedir&g
  13738. s&@mandir@&$mandir&g
  13739. s&\\\${datarootdir}&$datarootdir&g' ;;
  13740. esac
  13741. _ACEOF
  13742. # Neutralize VPATH when `$srcdir' = `.'.
  13743. # Shell code in configure.ac might set extrasub.
  13744. # FIXME: do we really want to maintain this feature?
  13745. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13746. ac_sed_extra="$ac_vpsub
  13747. $extrasub
  13748. _ACEOF
  13749. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13750. :t
  13751. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13752. s|@configure_input@|$ac_sed_conf_input|;t t
  13753. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13754. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13755. s&@srcdir@&$ac_srcdir&;t t
  13756. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13757. s&@top_srcdir@&$ac_top_srcdir&;t t
  13758. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13759. s&@builddir@&$ac_builddir&;t t
  13760. s&@abs_builddir@&$ac_abs_builddir&;t t
  13761. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13762. s&@INSTALL@&$ac_INSTALL&;t t
  13763. $ac_datarootdir_hack
  13764. "
  13765. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13766. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13767. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13768. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13769. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13770. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13772. which seems to be undefined. Please make sure it is defined" >&5
  13773. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13774. which seems to be undefined. Please make sure it is defined" >&2;}
  13775. rm -f "$ac_tmp/stdin"
  13776. case $ac_file in
  13777. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13778. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13779. esac \
  13780. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13781. ;;
  13782. :H)
  13783. #
  13784. # CONFIG_HEADER
  13785. #
  13786. if test x"$ac_file" != x-; then
  13787. {
  13788. printf "%s\n" "/* $configure_input */" >&1 \
  13789. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13790. } >"$ac_tmp/config.h" \
  13791. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13792. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13794. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  13795. else
  13796. rm -f "$ac_file"
  13797. mv "$ac_tmp/config.h" "$ac_file" \
  13798. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13799. fi
  13800. else
  13801. printf "%s\n" "/* $configure_input */" >&1 \
  13802. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13803. || as_fn_error $? "could not create -" "$LINENO" 5
  13804. fi
  13805. ;;
  13806. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13807. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  13808. ;;
  13809. esac
  13810. case $ac_file$ac_mode in
  13811. "include/jemalloc/internal/public_symbols.txt":C)
  13812. f="${objroot}include/jemalloc/internal/public_symbols.txt"
  13813. mkdir -p "${objroot}include/jemalloc/internal"
  13814. cp /dev/null "${f}"
  13815. for nm in `echo ${mangling_map} |tr ',' ' '` ; do
  13816. n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
  13817. m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
  13818. echo "${n}:${m}" >> "${f}"
  13819. public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
  13820. done
  13821. for sym in ${public_syms} ; do
  13822. n="${sym}"
  13823. m="${JEMALLOC_PREFIX}${sym}"
  13824. echo "${n}:${m}" >> "${f}"
  13825. done
  13826. ;;
  13827. "include/jemalloc/internal/private_symbols.awk":C)
  13828. f="${objroot}include/jemalloc/internal/private_symbols.awk"
  13829. mkdir -p "${objroot}include/jemalloc/internal"
  13830. export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
  13831. "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
  13832. ;;
  13833. "include/jemalloc/internal/private_symbols_jet.awk":C)
  13834. f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
  13835. mkdir -p "${objroot}include/jemalloc/internal"
  13836. export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
  13837. "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
  13838. ;;
  13839. "include/jemalloc/internal/public_namespace.h":C)
  13840. mkdir -p "${objroot}include/jemalloc/internal"
  13841. "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
  13842. ;;
  13843. "include/jemalloc/internal/public_unnamespace.h":C)
  13844. mkdir -p "${objroot}include/jemalloc/internal"
  13845. "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
  13846. ;;
  13847. "include/jemalloc/jemalloc_protos_jet.h":C)
  13848. mkdir -p "${objroot}include/jemalloc"
  13849. cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
  13850. ;;
  13851. "include/jemalloc/jemalloc_rename.h":C)
  13852. mkdir -p "${objroot}include/jemalloc"
  13853. "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
  13854. ;;
  13855. "include/jemalloc/jemalloc_mangle.h":C)
  13856. mkdir -p "${objroot}include/jemalloc"
  13857. "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
  13858. ;;
  13859. "include/jemalloc/jemalloc_mangle_jet.h":C)
  13860. mkdir -p "${objroot}include/jemalloc"
  13861. "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
  13862. ;;
  13863. "include/jemalloc/jemalloc.h":C)
  13864. mkdir -p "${objroot}include/jemalloc"
  13865. "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
  13866. ;;
  13867. esac
  13868. done # for ac_tag
  13869. as_fn_exit 0
  13870. _ACEOF
  13871. ac_clean_files=$ac_clean_files_save
  13872. test $ac_write_fail = 0 ||
  13873. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13874. # configure is writing to config.log, and then calls config.status.
  13875. # config.status does its own redirection, appending to config.log.
  13876. # Unfortunately, on DOS this fails, as config.log is still kept open
  13877. # by configure, so config.status won't be able to write to it; its
  13878. # output is simply discarded. So we exec the FD to /dev/null,
  13879. # effectively closing config.log, so it can be properly (re)opened and
  13880. # appended to by config.status. When coming back to configure, we
  13881. # need to make the FD available again.
  13882. if test "$no_create" != yes; then
  13883. ac_cs_success=:
  13884. ac_config_status_args=
  13885. test "$silent" = yes &&
  13886. ac_config_status_args="$ac_config_status_args --quiet"
  13887. exec 5>/dev/null
  13888. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13889. exec 5>>config.log
  13890. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13891. # would make configure fail if this is the last instruction.
  13892. $ac_cs_success || as_fn_exit 1
  13893. fi
  13894. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13896. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13897. fi
  13898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
  13899. printf "%s\n" "===============================================================================" >&6; }
  13900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5
  13901. printf "%s\n" "jemalloc version : ${jemalloc_version}" >&6; }
  13902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5
  13903. printf "%s\n" "library revision : ${rev}" >&6; }
  13904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  13905. printf "%s\n" "" >&6; }
  13906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5
  13907. printf "%s\n" "CONFIG : ${CONFIG}" >&6; }
  13908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5
  13909. printf "%s\n" "CC : ${CC}" >&6; }
  13910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5
  13911. printf "%s\n" "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; }
  13912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5
  13913. printf "%s\n" "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; }
  13914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5
  13915. printf "%s\n" "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; }
  13916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5
  13917. printf "%s\n" "CPPFLAGS : ${CPPFLAGS}" >&6; }
  13918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CXX : ${CXX}" >&5
  13919. printf "%s\n" "CXX : ${CXX}" >&6; }
  13920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
  13921. printf "%s\n" "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
  13922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
  13923. printf "%s\n" "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
  13924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&5
  13925. printf "%s\n" "EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&6; }
  13926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5
  13927. printf "%s\n" "LDFLAGS : ${LDFLAGS}" >&6; }
  13928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5
  13929. printf "%s\n" "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; }
  13930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS : ${DSO_LDFLAGS}" >&5
  13931. printf "%s\n" "DSO_LDFLAGS : ${DSO_LDFLAGS}" >&6; }
  13932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5
  13933. printf "%s\n" "LIBS : ${LIBS}" >&6; }
  13934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5
  13935. printf "%s\n" "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; }
  13936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  13937. printf "%s\n" "" >&6; }
  13938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5
  13939. printf "%s\n" "XSLTPROC : ${XSLTPROC}" >&6; }
  13940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5
  13941. printf "%s\n" "XSLROOT : ${XSLROOT}" >&6; }
  13942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  13943. printf "%s\n" "" >&6; }
  13944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5
  13945. printf "%s\n" "PREFIX : ${PREFIX}" >&6; }
  13946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5
  13947. printf "%s\n" "BINDIR : ${BINDIR}" >&6; }
  13948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5
  13949. printf "%s\n" "DATADIR : ${DATADIR}" >&6; }
  13950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5
  13951. printf "%s\n" "INCLUDEDIR : ${INCLUDEDIR}" >&6; }
  13952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5
  13953. printf "%s\n" "LIBDIR : ${LIBDIR}" >&6; }
  13954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5
  13955. printf "%s\n" "MANDIR : ${MANDIR}" >&6; }
  13956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  13957. printf "%s\n" "" >&6; }
  13958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5
  13959. printf "%s\n" "srcroot : ${srcroot}" >&6; }
  13960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5
  13961. printf "%s\n" "abs_srcroot : ${abs_srcroot}" >&6; }
  13962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5
  13963. printf "%s\n" "objroot : ${objroot}" >&6; }
  13964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5
  13965. printf "%s\n" "abs_objroot : ${abs_objroot}" >&6; }
  13966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  13967. printf "%s\n" "" >&6; }
  13968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5
  13969. printf "%s\n" "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; }
  13970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
  13971. printf "%s\n" "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
  13972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
  13973. printf "%s\n" " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
  13974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5
  13975. printf "%s\n" "install_suffix : ${install_suffix}" >&6; }
  13976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5
  13977. printf "%s\n" "malloc_conf : ${config_malloc_conf}" >&6; }
  13978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: documentation : ${enable_doc}" >&5
  13979. printf "%s\n" "documentation : ${enable_doc}" >&6; }
  13980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared libs : ${enable_shared}" >&5
  13981. printf "%s\n" "shared libs : ${enable_shared}" >&6; }
  13982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static libs : ${enable_static}" >&5
  13983. printf "%s\n" "static libs : ${enable_static}" >&6; }
  13984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5
  13985. printf "%s\n" "autogen : ${enable_autogen}" >&6; }
  13986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5
  13987. printf "%s\n" "debug : ${enable_debug}" >&6; }
  13988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5
  13989. printf "%s\n" "stats : ${enable_stats}" >&6; }
  13990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: experimental_smallocx : ${enable_experimental_smallocx}" >&5
  13991. printf "%s\n" "experimental_smallocx : ${enable_experimental_smallocx}" >&6; }
  13992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5
  13993. printf "%s\n" "prof : ${enable_prof}" >&6; }
  13994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5
  13995. printf "%s\n" "prof-libunwind : ${enable_prof_libunwind}" >&6; }
  13996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5
  13997. printf "%s\n" "prof-libgcc : ${enable_prof_libgcc}" >&6; }
  13998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5
  13999. printf "%s\n" "prof-gcc : ${enable_prof_gcc}" >&6; }
  14000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5
  14001. printf "%s\n" "fill : ${enable_fill}" >&6; }
  14002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5
  14003. printf "%s\n" "utrace : ${enable_utrace}" >&6; }
  14004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5
  14005. printf "%s\n" "xmalloc : ${enable_xmalloc}" >&6; }
  14006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: log : ${enable_log}" >&5
  14007. printf "%s\n" "log : ${enable_log}" >&6; }
  14008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5
  14009. printf "%s\n" "lazy_lock : ${enable_lazy_lock}" >&6; }
  14010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5
  14011. printf "%s\n" "cache-oblivious : ${enable_cache_oblivious}" >&6; }
  14012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cxx : ${enable_cxx}" >&5
  14013. printf "%s\n" "cxx : ${enable_cxx}" >&6; }
  14014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
  14015. printf "%s\n" "===============================================================================" >&6; }