configure 223 KB

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