configure 306 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for GNU C Library (see version.h).
  4. #
  5. # Report bugs to <https://sourceware.org/bugzilla/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  20. then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else case e in #(
  28. e) case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed 'exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  129. then :
  130. emulate sh
  131. NULLCMD=:
  132. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  133. # is contrary to our usage. Disable this feature.
  134. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  135. setopt NO_GLOB_SUBST
  136. else case e in #(
  137. e) case \`(set -o) 2>/dev/null\` in #(
  138. *posix*) :
  139. set -o posix ;; #(
  140. *) :
  141. ;;
  142. esac ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else case e in #(
  159. e) exitcode=1; echo positional parameters were not saved. ;;
  160. esac
  161. fi
  162. test x\$exitcode = x0 || exit 1
  163. blah=\$(echo \$(echo blah))
  164. test x\"\$blah\" = xblah || exit 1
  165. test -x / || exit 1"
  166. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  167. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  168. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  169. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  170. if (eval "$as_required") 2>/dev/null
  171. then :
  172. as_have_required=yes
  173. else case e in #(
  174. e) as_have_required=no ;;
  175. esac
  176. fi
  177. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  178. then :
  179. else case e in #(
  180. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  181. as_found=false
  182. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  183. do
  184. IFS=$as_save_IFS
  185. case $as_dir in #(((
  186. '') as_dir=./ ;;
  187. */) ;;
  188. *) as_dir=$as_dir/ ;;
  189. esac
  190. as_found=:
  191. case $as_dir in #(
  192. /*)
  193. for as_base in sh bash ksh sh5; do
  194. # Try only shells that exist, to save several forks.
  195. as_shell=$as_dir$as_base
  196. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  197. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  198. then :
  199. CONFIG_SHELL=$as_shell as_have_required=yes
  200. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  201. then :
  202. break 2
  203. fi
  204. fi
  205. done;;
  206. esac
  207. as_found=false
  208. done
  209. IFS=$as_save_IFS
  210. if $as_found
  211. then :
  212. else case e in #(
  213. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  214. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  215. then :
  216. CONFIG_SHELL=$SHELL as_have_required=yes
  217. fi ;;
  218. esac
  219. fi
  220. if test "x$CONFIG_SHELL" != x
  221. then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed 'exec'.
  239. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno
  243. then :
  244. printf "%s\n" "$0: This script requires a shell more modern than all"
  245. printf "%s\n" "$0: the shells that I found on your system."
  246. if test ${ZSH_VERSION+y} ; then
  247. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  248. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  249. else
  250. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
  251. $0: https://sourceware.org/bugzilla/ about your system,
  252. $0: including any error possibly output before this
  253. $0: message. Then install a modern shell, or manually run
  254. $0: the script under such a shell if you do have one."
  255. fi
  256. exit 1
  257. fi ;;
  258. esac
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. printf "%s\n" X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  351. then :
  352. eval 'as_fn_append ()
  353. {
  354. eval $1+=\$2
  355. }'
  356. else case e in #(
  357. e) as_fn_append ()
  358. {
  359. eval $1=\$$1\$2
  360. } ;;
  361. esac
  362. fi # as_fn_append
  363. # as_fn_arith ARG...
  364. # ------------------
  365. # Perform arithmetic evaluation on the ARGs, and store the result in the
  366. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  367. # must be portable across $(()) and expr.
  368. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  369. then :
  370. eval 'as_fn_arith ()
  371. {
  372. as_val=$(( $* ))
  373. }'
  374. else case e in #(
  375. e) as_fn_arith ()
  376. {
  377. as_val=`expr "$@" || test $? -eq 1`
  378. } ;;
  379. esac
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. printf "%s\n" "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. printf "%s\n" X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. t clear
  447. :clear
  448. s/[$]LINENO.*/&-/
  449. t lineno
  450. b
  451. :lineno
  452. N
  453. :loop
  454. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  455. t loop
  456. s/-\n.*//
  457. ' >$as_me.lineno &&
  458. chmod +x "$as_me.lineno" ||
  459. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  460. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  461. # already done that, so ensure we don't try to do so again and fall
  462. # in an infinite loop. This has already happened in practice.
  463. _as_can_reexec=no; export _as_can_reexec
  464. # Don't try to exec as it changes $[0], causing all sort of problems
  465. # (the dirname of $[0] is not the place where we might find the
  466. # original and so on. Autoconf is especially sensitive to this).
  467. . "./$as_me.lineno"
  468. # Exit status is that of the last command.
  469. exit
  470. }
  471. # Determine whether it's possible to make 'echo' print without a newline.
  472. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  473. # for compatibility with existing Makefiles.
  474. ECHO_C= ECHO_N= ECHO_T=
  475. case `echo -n x` in #(((((
  476. -n*)
  477. case `echo 'xy\c'` in
  478. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  479. xy) ECHO_C='\c';;
  480. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  481. ECHO_T=' ';;
  482. esac;;
  483. *)
  484. ECHO_N='-n';;
  485. esac
  486. # For backward compatibility with old third-party macros, we provide
  487. # the shell variables $as_echo and $as_echo_n. New code should use
  488. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  489. as_echo='printf %s\n'
  490. as_echo_n='printf %s'
  491. rm -f conf$$ conf$$.exe conf$$.file
  492. if test -d conf$$.dir; then
  493. rm -f conf$$.dir/conf$$.file
  494. else
  495. rm -f conf$$.dir
  496. mkdir conf$$.dir 2>/dev/null
  497. fi
  498. if (echo >conf$$.file) 2>/dev/null; then
  499. if ln -s conf$$.file conf$$ 2>/dev/null; then
  500. as_ln_s='ln -s'
  501. # ... but there are two gotchas:
  502. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  503. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  504. # In both cases, we have to default to 'cp -pR'.
  505. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  506. as_ln_s='cp -pR'
  507. elif ln conf$$.file conf$$ 2>/dev/null; then
  508. as_ln_s=ln
  509. else
  510. as_ln_s='cp -pR'
  511. fi
  512. else
  513. as_ln_s='cp -pR'
  514. fi
  515. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  516. rmdir conf$$.dir 2>/dev/null
  517. if mkdir -p . 2>/dev/null; then
  518. as_mkdir_p='mkdir -p "$as_dir"'
  519. else
  520. test -d ./-p && rmdir ./-p
  521. as_mkdir_p=false
  522. fi
  523. as_test_x='test -x'
  524. as_executable_p=as_fn_executable_p
  525. # Sed expression to map a string onto a valid CPP name.
  526. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  527. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  528. # Sed expression to map a string onto a valid variable name.
  529. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  530. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  531. test -n "$DJDIR" || exec 7<&0 </dev/null
  532. exec 6>&1
  533. # Name of the host.
  534. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  535. # so uname gets run too.
  536. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  537. #
  538. # Initializations.
  539. #
  540. ac_default_prefix=/usr/local
  541. ac_clean_files=
  542. ac_config_libobj_dir=.
  543. LIBOBJS=
  544. cross_compiling=no
  545. subdirs=
  546. MFLAGS=
  547. MAKEFLAGS=
  548. # Identity of this package.
  549. PACKAGE_NAME='GNU C Library'
  550. PACKAGE_TARNAME='glibc'
  551. PACKAGE_VERSION='(see version.h)'
  552. PACKAGE_STRING='GNU C Library (see version.h)'
  553. PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/'
  554. PACKAGE_URL='https://www.gnu.org/software/glibc/'
  555. ac_unique_file="include/features.h"
  556. enable_option_checking=no
  557. ac_subst_vars='LTLIBOBJS
  558. LIBOBJS
  559. pthread_in_libc
  560. RELEASE
  561. VERSION
  562. mach_interface_list
  563. DEFINES
  564. static_nss
  565. profile
  566. libc_cv_multidir
  567. test_enable_cet
  568. libc_cv_test_cc_mprefer_vector_width
  569. shared
  570. static
  571. ldd_rewrite_script
  572. use_ldconfig
  573. libc_cv_rootsbindir
  574. libc_cv_localstatedir
  575. libc_cv_sysconfdir
  576. libc_cv_complocaledir
  577. libc_cv_rtlddir
  578. libc_cv_slibdir
  579. use_nscd
  580. libc_cv_gcc_unwind_find_fde
  581. libc_extra_cppflags
  582. libc_extra_cflags
  583. libc_cv_cxx_thread_local
  584. no_time_bits_source
  585. no_file_offset_bits_source
  586. fortify_source
  587. no_fortify_source
  588. libc_cv_fortify_source
  589. enable_fortify_source
  590. libc_cv_test_supported_fortify_source
  591. have_selinux
  592. have_libcap
  593. have_libaudit
  594. LIBGD
  595. libc_cv_test_cc_wmissing_parameter_name
  596. libc_cv_test_cc_wfree_labels
  597. libc_cv_test_cc_wimplicit_fallthrough
  598. libc_cv_cc_loop_to_function
  599. libc_cv_test_cc_signaling_nans
  600. libc_cv_cc_submachine
  601. libc_cv_cc_nofma
  602. libc_cv_has_glob_dat
  603. libc_cv_fpie
  604. libc_cv_test_static_pie
  605. libc_cv_z_execstack
  606. libc_cv_test_no_error_execstack
  607. ASFLAGS_config
  608. libc_cv_cc_with_libunwind
  609. libc_cv_insert
  610. libc_cv_protected_data
  611. INSTALL_INFO
  612. PERL
  613. BASH_SHELL
  614. CXX_BITS_STD_ABS_H
  615. CXX_CMATH_HEADER
  616. CXX_CSTDLIB_HEADER
  617. CXX_SYSINCLUDES
  618. SYSINCLUDES
  619. sysnames
  620. submachine
  621. multi_arch
  622. libc_cv_textrel_ifunc
  623. no_stack_protector
  624. stack_protector
  625. libc_cv_ssp
  626. libc_cv_with_fp
  627. PYTHON
  628. PYTHON_PROG
  629. AUTOCONF
  630. BISON
  631. AWK
  632. SED
  633. MAKEINFO
  634. MSGFMT
  635. MAKE
  636. LD
  637. STRIP
  638. NM
  639. OBJDUMP
  640. READELF
  641. GPROF
  642. OBJCOPY
  643. AR
  644. LN_S
  645. INSTALL_DATA
  646. INSTALL_SCRIPT
  647. INSTALL_PROGRAM
  648. base_machine
  649. build_pt_chown
  650. build_nscd
  651. memory_tagging
  652. enable_werror
  653. force_install
  654. bindnow
  655. hardcoded_path_in_tests
  656. enable_timezone_tools
  657. man_pages_version
  658. rtld_early_cflags
  659. extra_nonshared_cflags
  660. sysheaders
  661. TEST_CXX
  662. ac_ct_CXX
  663. CXXFLAGS
  664. CXX
  665. CPP
  666. cross_compiling
  667. BUILD_CC
  668. TEST_CC
  669. OBJEXT
  670. ac_ct_CC
  671. CPPFLAGS
  672. LDFLAGS
  673. CFLAGS
  674. CC
  675. host_os
  676. host_vendor
  677. host_cpu
  678. host
  679. build_os
  680. build_vendor
  681. build_cpu
  682. build
  683. subdirs
  684. REPORT_BUGS_TEXI
  685. REPORT_BUGS_TO
  686. PKGVERSION_TEXI
  687. PKGVERSION
  688. target_alias
  689. host_alias
  690. build_alias
  691. LIBS
  692. ECHO_T
  693. ECHO_N
  694. ECHO_C
  695. DEFS
  696. mandir
  697. localedir
  698. libdir
  699. psdir
  700. pdfdir
  701. dvidir
  702. htmldir
  703. infodir
  704. docdir
  705. oldincludedir
  706. includedir
  707. runstatedir
  708. localstatedir
  709. sharedstatedir
  710. sysconfdir
  711. datadir
  712. datarootdir
  713. libexecdir
  714. sbindir
  715. bindir
  716. program_transform_name
  717. prefix
  718. exec_prefix
  719. PACKAGE_URL
  720. PACKAGE_BUGREPORT
  721. PACKAGE_STRING
  722. PACKAGE_VERSION
  723. PACKAGE_TARNAME
  724. PACKAGE_NAME
  725. PATH_SEPARATOR
  726. SHELL'
  727. ac_subst_files=''
  728. ac_user_opts='
  729. enable_option_checking
  730. with_pkgversion
  731. with_bugurl
  732. enable_static_c___tests
  733. enable_static_c___link_check
  734. with_gd
  735. with_gd_include
  736. with_gd_lib
  737. with_binutils
  738. with_selinux
  739. with_headers
  740. with_nonshared_cflags
  741. with_rtld_early_cflags
  742. with_timeoutfactor
  743. with_man_pages
  744. enable_sanity_checks
  745. enable_shared
  746. enable_profile
  747. enable_default_pie
  748. enable_timezone_tools
  749. enable_hardcoded_path_in_tests
  750. enable_hidden_plt
  751. enable_bind_now
  752. enable_stack_protector
  753. enable_static_nss
  754. enable_force_install
  755. enable_maintainer_mode
  756. enable_kernel
  757. enable_werror
  758. enable_multi_arch
  759. enable_memory_tagging
  760. enable_systemtap
  761. enable_build_nscd
  762. enable_nscd
  763. enable_pt_chown
  764. enable_mathvec
  765. enable_cet
  766. enable_scv
  767. enable_fortify_source
  768. enable_sframe
  769. with_cpu
  770. '
  771. ac_precious_vars='build_alias
  772. host_alias
  773. target_alias
  774. CC
  775. CFLAGS
  776. LDFLAGS
  777. LIBS
  778. CPPFLAGS
  779. TEST_CC
  780. CPP
  781. CXX
  782. CXXFLAGS
  783. CCC
  784. TEST_CXX'
  785. ac_subdirs_all=''
  786. # Initialize some variables set by options.
  787. ac_init_help=
  788. ac_init_version=false
  789. ac_unrecognized_opts=
  790. ac_unrecognized_sep=
  791. # The variables have the same names as the options, with
  792. # dashes changed to underlines.
  793. cache_file=/dev/null
  794. exec_prefix=NONE
  795. no_create=
  796. no_recursion=
  797. prefix=NONE
  798. program_prefix=NONE
  799. program_suffix=NONE
  800. program_transform_name=s,x,x,
  801. silent=
  802. site=
  803. srcdir=
  804. verbose=
  805. x_includes=NONE
  806. x_libraries=NONE
  807. # Installation directory options.
  808. # These are left unexpanded so users can "make install exec_prefix=/foo"
  809. # and all the variables that are supposed to be based on exec_prefix
  810. # by default will actually change.
  811. # Use braces instead of parens because sh, perl, etc. also accept them.
  812. # (The list follows the same order as the GNU Coding Standards.)
  813. bindir='${exec_prefix}/bin'
  814. sbindir='${exec_prefix}/sbin'
  815. libexecdir='${exec_prefix}/libexec'
  816. datarootdir='${prefix}/share'
  817. datadir='${datarootdir}'
  818. sysconfdir='${prefix}/etc'
  819. sharedstatedir='${prefix}/com'
  820. localstatedir='${prefix}/var'
  821. runstatedir='${localstatedir}/run'
  822. includedir='${prefix}/include'
  823. oldincludedir='/usr/include'
  824. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  825. infodir='${datarootdir}/info'
  826. htmldir='${docdir}'
  827. dvidir='${docdir}'
  828. pdfdir='${docdir}'
  829. psdir='${docdir}'
  830. libdir='${exec_prefix}/lib'
  831. localedir='${datarootdir}/locale'
  832. mandir='${datarootdir}/man'
  833. ac_prev=
  834. ac_dashdash=
  835. for ac_option
  836. do
  837. # If the previous option needs an argument, assign it.
  838. if test -n "$ac_prev"; then
  839. eval $ac_prev=\$ac_option
  840. ac_prev=
  841. continue
  842. fi
  843. case $ac_option in
  844. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  845. *=) ac_optarg= ;;
  846. *) ac_optarg=yes ;;
  847. esac
  848. case $ac_dashdash$ac_option in
  849. --)
  850. ac_dashdash=yes ;;
  851. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  852. ac_prev=bindir ;;
  853. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  854. bindir=$ac_optarg ;;
  855. -build | --build | --buil | --bui | --bu)
  856. ac_prev=build_alias ;;
  857. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  858. build_alias=$ac_optarg ;;
  859. -cache-file | --cache-file | --cache-fil | --cache-fi \
  860. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  861. ac_prev=cache_file ;;
  862. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  863. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  864. cache_file=$ac_optarg ;;
  865. --config-cache | -C)
  866. cache_file=config.cache ;;
  867. -datadir | --datadir | --datadi | --datad)
  868. ac_prev=datadir ;;
  869. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  870. datadir=$ac_optarg ;;
  871. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  872. | --dataroo | --dataro | --datar)
  873. ac_prev=datarootdir ;;
  874. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  875. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  876. datarootdir=$ac_optarg ;;
  877. -disable-* | --disable-*)
  878. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  879. # Reject names that are not valid shell variable names.
  880. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  881. as_fn_error $? "invalid feature name: '$ac_useropt'"
  882. ac_useropt_orig=$ac_useropt
  883. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  884. case $ac_user_opts in
  885. *"
  886. "enable_$ac_useropt"
  887. "*) ;;
  888. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  889. ac_unrecognized_sep=', ';;
  890. esac
  891. eval enable_$ac_useropt=no ;;
  892. -docdir | --docdir | --docdi | --doc | --do)
  893. ac_prev=docdir ;;
  894. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  895. docdir=$ac_optarg ;;
  896. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  897. ac_prev=dvidir ;;
  898. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  899. dvidir=$ac_optarg ;;
  900. -enable-* | --enable-*)
  901. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  902. # Reject names that are not valid shell variable names.
  903. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  904. as_fn_error $? "invalid feature name: '$ac_useropt'"
  905. ac_useropt_orig=$ac_useropt
  906. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  907. case $ac_user_opts in
  908. *"
  909. "enable_$ac_useropt"
  910. "*) ;;
  911. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  912. ac_unrecognized_sep=', ';;
  913. esac
  914. eval enable_$ac_useropt=\$ac_optarg ;;
  915. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  916. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  917. | --exec | --exe | --ex)
  918. ac_prev=exec_prefix ;;
  919. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  920. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  921. | --exec=* | --exe=* | --ex=*)
  922. exec_prefix=$ac_optarg ;;
  923. -gas | --gas | --ga | --g)
  924. # Obsolete; use --with-gas.
  925. with_gas=yes ;;
  926. -help | --help | --hel | --he | -h)
  927. ac_init_help=long ;;
  928. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  929. ac_init_help=recursive ;;
  930. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  931. ac_init_help=short ;;
  932. -host | --host | --hos | --ho)
  933. ac_prev=host_alias ;;
  934. -host=* | --host=* | --hos=* | --ho=*)
  935. host_alias=$ac_optarg ;;
  936. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  937. ac_prev=htmldir ;;
  938. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  939. | --ht=*)
  940. htmldir=$ac_optarg ;;
  941. -includedir | --includedir | --includedi | --included | --include \
  942. | --includ | --inclu | --incl | --inc)
  943. ac_prev=includedir ;;
  944. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  945. | --includ=* | --inclu=* | --incl=* | --inc=*)
  946. includedir=$ac_optarg ;;
  947. -infodir | --infodir | --infodi | --infod | --info | --inf)
  948. ac_prev=infodir ;;
  949. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  950. infodir=$ac_optarg ;;
  951. -libdir | --libdir | --libdi | --libd)
  952. ac_prev=libdir ;;
  953. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  954. libdir=$ac_optarg ;;
  955. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  956. | --libexe | --libex | --libe)
  957. ac_prev=libexecdir ;;
  958. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  959. | --libexe=* | --libex=* | --libe=*)
  960. libexecdir=$ac_optarg ;;
  961. -localedir | --localedir | --localedi | --localed | --locale)
  962. ac_prev=localedir ;;
  963. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  964. localedir=$ac_optarg ;;
  965. -localstatedir | --localstatedir | --localstatedi | --localstated \
  966. | --localstate | --localstat | --localsta | --localst | --locals)
  967. ac_prev=localstatedir ;;
  968. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  969. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  970. localstatedir=$ac_optarg ;;
  971. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  972. ac_prev=mandir ;;
  973. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  974. mandir=$ac_optarg ;;
  975. -nfp | --nfp | --nf)
  976. # Obsolete; use --without-fp.
  977. with_fp=no ;;
  978. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  979. | --no-cr | --no-c | -n)
  980. no_create=yes ;;
  981. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  982. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  983. no_recursion=yes ;;
  984. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  985. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  986. | --oldin | --oldi | --old | --ol | --o)
  987. ac_prev=oldincludedir ;;
  988. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  989. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  990. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  991. oldincludedir=$ac_optarg ;;
  992. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  993. ac_prev=prefix ;;
  994. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  995. prefix=$ac_optarg ;;
  996. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  997. | --program-pre | --program-pr | --program-p)
  998. ac_prev=program_prefix ;;
  999. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1000. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1001. program_prefix=$ac_optarg ;;
  1002. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1003. | --program-suf | --program-su | --program-s)
  1004. ac_prev=program_suffix ;;
  1005. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1006. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1007. program_suffix=$ac_optarg ;;
  1008. -program-transform-name | --program-transform-name \
  1009. | --program-transform-nam | --program-transform-na \
  1010. | --program-transform-n | --program-transform- \
  1011. | --program-transform | --program-transfor \
  1012. | --program-transfo | --program-transf \
  1013. | --program-trans | --program-tran \
  1014. | --progr-tra | --program-tr | --program-t)
  1015. ac_prev=program_transform_name ;;
  1016. -program-transform-name=* | --program-transform-name=* \
  1017. | --program-transform-nam=* | --program-transform-na=* \
  1018. | --program-transform-n=* | --program-transform-=* \
  1019. | --program-transform=* | --program-transfor=* \
  1020. | --program-transfo=* | --program-transf=* \
  1021. | --program-trans=* | --program-tran=* \
  1022. | --progr-tra=* | --program-tr=* | --program-t=*)
  1023. program_transform_name=$ac_optarg ;;
  1024. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1025. ac_prev=pdfdir ;;
  1026. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1027. pdfdir=$ac_optarg ;;
  1028. -psdir | --psdir | --psdi | --psd | --ps)
  1029. ac_prev=psdir ;;
  1030. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1031. psdir=$ac_optarg ;;
  1032. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1033. | -silent | --silent | --silen | --sile | --sil)
  1034. silent=yes ;;
  1035. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1036. | --runstate | --runstat | --runsta | --runst | --runs \
  1037. | --run | --ru | --r)
  1038. ac_prev=runstatedir ;;
  1039. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1040. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1041. | --run=* | --ru=* | --r=*)
  1042. runstatedir=$ac_optarg ;;
  1043. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1044. ac_prev=sbindir ;;
  1045. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1046. | --sbi=* | --sb=*)
  1047. sbindir=$ac_optarg ;;
  1048. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1049. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1050. | --sharedst | --shareds | --shared | --share | --shar \
  1051. | --sha | --sh)
  1052. ac_prev=sharedstatedir ;;
  1053. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1054. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1055. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1056. | --sha=* | --sh=*)
  1057. sharedstatedir=$ac_optarg ;;
  1058. -site | --site | --sit)
  1059. ac_prev=site ;;
  1060. -site=* | --site=* | --sit=*)
  1061. site=$ac_optarg ;;
  1062. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1063. ac_prev=srcdir ;;
  1064. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1065. srcdir=$ac_optarg ;;
  1066. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1067. | --syscon | --sysco | --sysc | --sys | --sy)
  1068. ac_prev=sysconfdir ;;
  1069. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1070. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1071. sysconfdir=$ac_optarg ;;
  1072. -target | --target | --targe | --targ | --tar | --ta | --t)
  1073. ac_prev=target_alias ;;
  1074. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1075. target_alias=$ac_optarg ;;
  1076. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1077. verbose=yes ;;
  1078. -version | --version | --versio | --versi | --vers | -V)
  1079. ac_init_version=: ;;
  1080. -with-* | --with-*)
  1081. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1082. # Reject names that are not valid shell variable names.
  1083. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1084. as_fn_error $? "invalid package name: '$ac_useropt'"
  1085. ac_useropt_orig=$ac_useropt
  1086. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1087. case $ac_user_opts in
  1088. *"
  1089. "with_$ac_useropt"
  1090. "*) ;;
  1091. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1092. ac_unrecognized_sep=', ';;
  1093. esac
  1094. eval with_$ac_useropt=\$ac_optarg ;;
  1095. -without-* | --without-*)
  1096. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1097. # Reject names that are not valid shell variable names.
  1098. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1099. as_fn_error $? "invalid package name: '$ac_useropt'"
  1100. ac_useropt_orig=$ac_useropt
  1101. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1102. case $ac_user_opts in
  1103. *"
  1104. "with_$ac_useropt"
  1105. "*) ;;
  1106. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1107. ac_unrecognized_sep=', ';;
  1108. esac
  1109. eval with_$ac_useropt=no ;;
  1110. --x)
  1111. # Obsolete; use --with-x.
  1112. with_x=yes ;;
  1113. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1114. | --x-incl | --x-inc | --x-in | --x-i)
  1115. ac_prev=x_includes ;;
  1116. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1117. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1118. x_includes=$ac_optarg ;;
  1119. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1120. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1121. ac_prev=x_libraries ;;
  1122. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1123. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1124. x_libraries=$ac_optarg ;;
  1125. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1126. Try '$0 --help' for more information"
  1127. ;;
  1128. *=*)
  1129. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1130. # Reject names that are not valid shell variable names.
  1131. case $ac_envvar in #(
  1132. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1133. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1134. esac
  1135. eval $ac_envvar=\$ac_optarg
  1136. export $ac_envvar ;;
  1137. *)
  1138. # FIXME: should be removed in autoconf 3.0.
  1139. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1140. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1141. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1142. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1143. ;;
  1144. esac
  1145. done
  1146. if test -n "$ac_prev"; then
  1147. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1148. as_fn_error $? "missing argument to $ac_option"
  1149. fi
  1150. if test -n "$ac_unrecognized_opts"; then
  1151. case $enable_option_checking in
  1152. no) ;;
  1153. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1154. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1155. esac
  1156. fi
  1157. # Check all directory arguments for consistency.
  1158. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1159. datadir sysconfdir sharedstatedir localstatedir includedir \
  1160. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1161. libdir localedir mandir runstatedir
  1162. do
  1163. eval ac_val=\$$ac_var
  1164. # Remove trailing slashes.
  1165. case $ac_val in
  1166. */ )
  1167. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1168. eval $ac_var=\$ac_val;;
  1169. esac
  1170. # Be sure to have absolute directory names.
  1171. case $ac_val in
  1172. [\\/$]* | ?:[\\/]* ) continue;;
  1173. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1174. esac
  1175. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1176. done
  1177. # There might be people who depend on the old broken behavior: '$host'
  1178. # used to hold the argument of --host etc.
  1179. # FIXME: To remove some day.
  1180. build=$build_alias
  1181. host=$host_alias
  1182. target=$target_alias
  1183. # FIXME: To remove some day.
  1184. if test "x$host_alias" != x; then
  1185. if test "x$build_alias" = x; then
  1186. cross_compiling=maybe
  1187. elif test "x$build_alias" != "x$host_alias"; then
  1188. cross_compiling=yes
  1189. fi
  1190. fi
  1191. ac_tool_prefix=
  1192. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1193. test "$silent" = yes && exec 6>/dev/null
  1194. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1195. ac_ls_di=`ls -di .` &&
  1196. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1197. as_fn_error $? "working directory cannot be determined"
  1198. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1199. as_fn_error $? "pwd does not report name of working directory"
  1200. # Find the source files, if location was not specified.
  1201. if test -z "$srcdir"; then
  1202. ac_srcdir_defaulted=yes
  1203. # Try the directory containing this script, then the parent directory.
  1204. ac_confdir=`$as_dirname -- "$as_myself" ||
  1205. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1206. X"$as_myself" : 'X\(//\)[^/]' \| \
  1207. X"$as_myself" : 'X\(//\)$' \| \
  1208. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1209. printf "%s\n" X"$as_myself" |
  1210. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1211. s//\1/
  1212. q
  1213. }
  1214. /^X\(\/\/\)[^/].*/{
  1215. s//\1/
  1216. q
  1217. }
  1218. /^X\(\/\/\)$/{
  1219. s//\1/
  1220. q
  1221. }
  1222. /^X\(\/\).*/{
  1223. s//\1/
  1224. q
  1225. }
  1226. s/.*/./; q'`
  1227. srcdir=$ac_confdir
  1228. if test ! -r "$srcdir/$ac_unique_file"; then
  1229. srcdir=..
  1230. fi
  1231. else
  1232. ac_srcdir_defaulted=no
  1233. fi
  1234. if test ! -r "$srcdir/$ac_unique_file"; then
  1235. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1236. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1237. fi
  1238. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1239. ac_abs_confdir=`(
  1240. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1241. pwd)`
  1242. # When building in place, set srcdir=.
  1243. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1244. srcdir=.
  1245. fi
  1246. # Remove unnecessary trailing slashes from srcdir.
  1247. # Double slashes in file names in object file debugging info
  1248. # mess up M-x gdb in Emacs.
  1249. case $srcdir in
  1250. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1251. esac
  1252. for ac_var in $ac_precious_vars; do
  1253. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1254. eval ac_env_${ac_var}_value=\$${ac_var}
  1255. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1256. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1257. done
  1258. #
  1259. # Report the --help message.
  1260. #
  1261. if test "$ac_init_help" = "long"; then
  1262. # Omit some internal or obsolete options to make the list less imposing.
  1263. # This message is too long to be a string in the A/UX 3.1 sh.
  1264. cat <<_ACEOF
  1265. 'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
  1266. Usage: $0 [OPTION]... [VAR=VALUE]...
  1267. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1268. VAR=VALUE. See below for descriptions of some of the useful variables.
  1269. Defaults for the options are specified in brackets.
  1270. Configuration:
  1271. -h, --help display this help and exit
  1272. --help=short display options specific to this package
  1273. --help=recursive display the short help of all the included packages
  1274. -V, --version display version information and exit
  1275. -q, --quiet, --silent do not print 'checking ...' messages
  1276. --cache-file=FILE cache test results in FILE [disabled]
  1277. -C, --config-cache alias for '--cache-file=config.cache'
  1278. -n, --no-create do not create output files
  1279. --srcdir=DIR find the sources in DIR [configure dir or '..']
  1280. Installation directories:
  1281. --prefix=PREFIX install architecture-independent files in PREFIX
  1282. [$ac_default_prefix]
  1283. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1284. [PREFIX]
  1285. By default, 'make install' will install all the files in
  1286. '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
  1287. an installation prefix other than '$ac_default_prefix' using '--prefix',
  1288. for instance '--prefix=\$HOME'.
  1289. For better control, use the options below.
  1290. Fine tuning of the installation directories:
  1291. --bindir=DIR user executables [EPREFIX/bin]
  1292. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1293. --libexecdir=DIR program executables [EPREFIX/libexec]
  1294. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1295. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1296. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1297. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1298. --libdir=DIR object code libraries [EPREFIX/lib]
  1299. --includedir=DIR C header files [PREFIX/include]
  1300. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1301. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1302. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1303. --infodir=DIR info documentation [DATAROOTDIR/info]
  1304. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1305. --mandir=DIR man documentation [DATAROOTDIR/man]
  1306. --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
  1307. --htmldir=DIR html documentation [DOCDIR]
  1308. --dvidir=DIR dvi documentation [DOCDIR]
  1309. --pdfdir=DIR pdf documentation [DOCDIR]
  1310. --psdir=DIR ps documentation [DOCDIR]
  1311. _ACEOF
  1312. cat <<\_ACEOF
  1313. System types:
  1314. --build=BUILD configure for building on BUILD [guessed]
  1315. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1316. _ACEOF
  1317. fi
  1318. if test -n "$ac_init_help"; then
  1319. case $ac_init_help in
  1320. short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
  1321. esac
  1322. cat <<\_ACEOF
  1323. Optional Features:
  1324. --disable-option-checking ignore unrecognized --enable/--with options
  1325. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1326. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1327. --disable-static-c++-tests
  1328. disable static C++ tests[default=no]
  1329. --disable-static-c++-link-check
  1330. disable static C++ link check [default=no]
  1331. --disable-sanity-checks really do not use threads (should not be used except
  1332. in special situations) [default=yes]
  1333. --enable-shared build shared library [default=yes if GNU ld]
  1334. --enable-profile build profiled library [default=no]
  1335. --disable-default-pie Do not build glibc programs and the testsuite as PIE
  1336. [default=no]
  1337. --disable-timezone-tools
  1338. do not install timezone tools [default=install]
  1339. --enable-hardcoded-path-in-tests
  1340. hardcode newly built glibc path in tests
  1341. [default=no]
  1342. --disable-hidden-plt do not hide internal function calls to avoid PLT
  1343. --enable-bind-now disable lazy relocations in DSOs
  1344. --enable-stack-protector=[yes|no|all|strong]
  1345. Use -fstack-protector[-all|-strong] to detect glibc
  1346. buffer overflows
  1347. --enable-static-nss build static NSS modules [default=no]
  1348. --disable-force-install don't force installation of files from this package,
  1349. even if they are older than the installed files
  1350. --enable-maintainer-mode
  1351. enable make rules and dependencies not useful (and
  1352. sometimes confusing) to the casual installer
  1353. --enable-kernel=VERSION compile for compatibility with kernel not older than
  1354. VERSION
  1355. --disable-werror do not build with -Werror
  1356. --enable-multi-arch enable single DSO with optimizations for multiple
  1357. architectures
  1358. --enable-memory-tagging enable memory tagging if supported by the
  1359. architecture [default=no]
  1360. --enable-systemtap enable systemtap static probe points [default=no]
  1361. --disable-build-nscd disable building and installing the nscd daemon
  1362. --disable-nscd library functions will not contact the nscd daemon
  1363. --enable-pt_chown Enable building and installing pt_chown
  1364. --enable-mathvec Enable building and installing mathvec [default
  1365. depends on architecture]
  1366. --enable-cet enable Intel Control-flow Enforcement Technology
  1367. (CET), x86 only
  1368. --disable-scv syscalls will not use scv instruction, even if the
  1369. kernel supports it, powerpc only
  1370. --enable-fortify-source[=1|2|3]
  1371. Use -D_FORTIFY_SOURCE=[1|2|3] to control code
  1372. hardening, defaults to highest possible value
  1373. supported by the build compiler.
  1374. --enable-sframe Enable building with SFrame support [default=no]
  1375. Optional Packages:
  1376. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1377. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1378. --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
  1379. --with-bugurl=URL Direct users to URL to report a bug
  1380. --with-gd=DIR find libgd include dir and library with prefix DIR
  1381. --with-gd-include=DIR find libgd include files in DIR
  1382. --with-gd-lib=DIR find libgd library files in DIR
  1383. --with-binutils=PATH specify location of binutils (as and ld)
  1384. --with-selinux if building with SELinux support
  1385. --with-headers=PATH location of system headers to use (for example
  1386. /usr/src/linux/include) [default=compiler default]
  1387. --with-nonshared-cflags=CFLAGS
  1388. build nonshared libraries with additional CFLAGS
  1389. --with-rtld-early-cflags=CFLAGS
  1390. build early initialization with additional CFLAGS
  1391. --with-timeoutfactor=NUM
  1392. specify an integer to scale the timeout
  1393. --with-man-pages=VERSION
  1394. tie manual to a specific man-pages version
  1395. --with-cpu=CPU select code for CPU variant
  1396. Some influential environment variables:
  1397. CC C compiler command
  1398. CFLAGS C compiler flags
  1399. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1400. nonstandard directory <lib dir>
  1401. LIBS libraries to pass to the linker, e.g. -l<library>
  1402. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1403. you have headers in a nonstandard directory <include dir>
  1404. TEST_CC C compiler for testing
  1405. CPP C preprocessor
  1406. CXX C++ compiler command
  1407. CXXFLAGS C++ compiler flags
  1408. TEST_CXX C++ compiler for testing
  1409. Use these variables to override the choices made by 'configure' or to help
  1410. it to find libraries and programs with nonstandard names/locations.
  1411. Report bugs to <https://sourceware.org/bugzilla/>.
  1412. GNU C Library home page: <https://www.gnu.org/software/glibc/>.
  1413. General help using GNU software: <https://www.gnu.org/gethelp/>.
  1414. _ACEOF
  1415. ac_status=$?
  1416. fi
  1417. if test "$ac_init_help" = "recursive"; then
  1418. # If there are subdirs, report their specific --help.
  1419. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1420. test -d "$ac_dir" ||
  1421. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1422. continue
  1423. ac_builddir=.
  1424. case "$ac_dir" in
  1425. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1426. *)
  1427. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1428. # A ".." for each directory in $ac_dir_suffix.
  1429. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1430. case $ac_top_builddir_sub in
  1431. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1432. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1433. esac ;;
  1434. esac
  1435. ac_abs_top_builddir=$ac_pwd
  1436. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1437. # for backward compatibility:
  1438. ac_top_builddir=$ac_top_build_prefix
  1439. case $srcdir in
  1440. .) # We are building in place.
  1441. ac_srcdir=.
  1442. ac_top_srcdir=$ac_top_builddir_sub
  1443. ac_abs_top_srcdir=$ac_pwd ;;
  1444. [\\/]* | ?:[\\/]* ) # Absolute name.
  1445. ac_srcdir=$srcdir$ac_dir_suffix;
  1446. ac_top_srcdir=$srcdir
  1447. ac_abs_top_srcdir=$srcdir ;;
  1448. *) # Relative name.
  1449. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1450. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1451. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1452. esac
  1453. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1454. cd "$ac_dir" || { ac_status=$?; continue; }
  1455. # Check for configure.gnu first; this name is used for a wrapper for
  1456. # Metaconfig's "Configure" on case-insensitive file systems.
  1457. if test -f "$ac_srcdir/configure.gnu"; then
  1458. echo &&
  1459. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1460. elif test -f "$ac_srcdir/configure"; then
  1461. echo &&
  1462. $SHELL "$ac_srcdir/configure" --help=recursive
  1463. else
  1464. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1465. fi || ac_status=$?
  1466. cd "$ac_pwd" || { ac_status=$?; break; }
  1467. done
  1468. fi
  1469. test -n "$ac_init_help" && exit $ac_status
  1470. if $ac_init_version; then
  1471. cat <<\_ACEOF
  1472. GNU C Library configure (see version.h)
  1473. generated by GNU Autoconf 2.72
  1474. Copyright (C) 2023 Free Software Foundation, Inc.
  1475. This configure script is free software; the Free Software Foundation
  1476. gives unlimited permission to copy, distribute and modify it.
  1477. _ACEOF
  1478. exit
  1479. fi
  1480. ## ------------------------ ##
  1481. ## Autoconf initialization. ##
  1482. ## ------------------------ ##
  1483. # ac_fn_c_try_compile LINENO
  1484. # --------------------------
  1485. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1486. ac_fn_c_try_compile ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. rm -f conftest.$ac_objext conftest.beam
  1490. if { { ac_try="$ac_compile"
  1491. case "(($ac_try" in
  1492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1493. *) ac_try_echo=$ac_try;;
  1494. esac
  1495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1496. printf "%s\n" "$ac_try_echo"; } >&5
  1497. (eval "$ac_compile") 2>conftest.err
  1498. ac_status=$?
  1499. if test -s conftest.err; then
  1500. grep -v '^ *+' conftest.err >conftest.er1
  1501. cat conftest.er1 >&5
  1502. mv -f conftest.er1 conftest.err
  1503. fi
  1504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1505. test $ac_status = 0; } && {
  1506. test -z "$ac_c_werror_flag" ||
  1507. test ! -s conftest.err
  1508. } && test -s conftest.$ac_objext
  1509. then :
  1510. ac_retval=0
  1511. else case e in #(
  1512. e) printf "%s\n" "$as_me: failed program was:" >&5
  1513. sed 's/^/| /' conftest.$ac_ext >&5
  1514. ac_retval=1 ;;
  1515. esac
  1516. fi
  1517. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1518. as_fn_set_status $ac_retval
  1519. } # ac_fn_c_try_compile
  1520. # ac_fn_cxx_try_compile LINENO
  1521. # ----------------------------
  1522. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1523. ac_fn_cxx_try_compile ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. rm -f conftest.$ac_objext conftest.beam
  1527. if { { ac_try="$ac_compile"
  1528. case "(($ac_try" in
  1529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1530. *) ac_try_echo=$ac_try;;
  1531. esac
  1532. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1533. printf "%s\n" "$ac_try_echo"; } >&5
  1534. (eval "$ac_compile") 2>conftest.err
  1535. ac_status=$?
  1536. if test -s conftest.err; then
  1537. grep -v '^ *+' conftest.err >conftest.er1
  1538. cat conftest.er1 >&5
  1539. mv -f conftest.er1 conftest.err
  1540. fi
  1541. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1542. test $ac_status = 0; } && {
  1543. test -z "$ac_cxx_werror_flag" ||
  1544. test ! -s conftest.err
  1545. } && test -s conftest.$ac_objext
  1546. then :
  1547. ac_retval=0
  1548. else case e in #(
  1549. e) printf "%s\n" "$as_me: failed program was:" >&5
  1550. sed 's/^/| /' conftest.$ac_ext >&5
  1551. ac_retval=1 ;;
  1552. esac
  1553. fi
  1554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1555. as_fn_set_status $ac_retval
  1556. } # ac_fn_cxx_try_compile
  1557. # ac_fn_cxx_try_link LINENO
  1558. # -------------------------
  1559. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1560. ac_fn_cxx_try_link ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1564. if { { ac_try="$ac_link"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. printf "%s\n" "$ac_try_echo"; } >&5
  1571. (eval "$ac_link") 2>conftest.err
  1572. ac_status=$?
  1573. if test -s conftest.err; then
  1574. grep -v '^ *+' conftest.err >conftest.er1
  1575. cat conftest.er1 >&5
  1576. mv -f conftest.er1 conftest.err
  1577. fi
  1578. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } && {
  1580. test -z "$ac_cxx_werror_flag" ||
  1581. test ! -s conftest.err
  1582. } && test -s conftest$ac_exeext && {
  1583. test "$cross_compiling" = yes ||
  1584. test -x conftest$ac_exeext
  1585. }
  1586. then :
  1587. ac_retval=0
  1588. else case e in #(
  1589. e) printf "%s\n" "$as_me: failed program was:" >&5
  1590. sed 's/^/| /' conftest.$ac_ext >&5
  1591. ac_retval=1 ;;
  1592. esac
  1593. fi
  1594. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1595. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1596. # interfere with the next link command; also delete a directory that is
  1597. # left behind by Apple's compiler. We do this before executing the actions.
  1598. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1599. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1600. as_fn_set_status $ac_retval
  1601. } # ac_fn_cxx_try_link
  1602. # ac_fn_c_try_cpp LINENO
  1603. # ----------------------
  1604. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1605. ac_fn_c_try_cpp ()
  1606. {
  1607. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1608. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1609. case "(($ac_try" in
  1610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1611. *) ac_try_echo=$ac_try;;
  1612. esac
  1613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1614. printf "%s\n" "$ac_try_echo"; } >&5
  1615. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1616. ac_status=$?
  1617. if test -s conftest.err; then
  1618. grep -v '^ *+' conftest.err >conftest.er1
  1619. cat conftest.er1 >&5
  1620. mv -f conftest.er1 conftest.err
  1621. fi
  1622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1623. test $ac_status = 0; } > conftest.i && {
  1624. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1625. test ! -s conftest.err
  1626. }
  1627. then :
  1628. ac_retval=0
  1629. else case e in #(
  1630. e) printf "%s\n" "$as_me: failed program was:" >&5
  1631. sed 's/^/| /' conftest.$ac_ext >&5
  1632. ac_retval=1 ;;
  1633. esac
  1634. fi
  1635. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1636. as_fn_set_status $ac_retval
  1637. } # ac_fn_c_try_cpp
  1638. # ac_fn_c_try_link LINENO
  1639. # -----------------------
  1640. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1641. ac_fn_c_try_link ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1645. if { { ac_try="$ac_link"
  1646. case "(($ac_try" in
  1647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1648. *) ac_try_echo=$ac_try;;
  1649. esac
  1650. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1651. printf "%s\n" "$ac_try_echo"; } >&5
  1652. (eval "$ac_link") 2>conftest.err
  1653. ac_status=$?
  1654. if test -s conftest.err; then
  1655. grep -v '^ *+' conftest.err >conftest.er1
  1656. cat conftest.er1 >&5
  1657. mv -f conftest.er1 conftest.err
  1658. fi
  1659. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1660. test $ac_status = 0; } && {
  1661. test -z "$ac_c_werror_flag" ||
  1662. test ! -s conftest.err
  1663. } && test -s conftest$ac_exeext && {
  1664. test "$cross_compiling" = yes ||
  1665. test -x conftest$ac_exeext
  1666. }
  1667. then :
  1668. ac_retval=0
  1669. else case e in #(
  1670. e) printf "%s\n" "$as_me: failed program was:" >&5
  1671. sed 's/^/| /' conftest.$ac_ext >&5
  1672. ac_retval=1 ;;
  1673. esac
  1674. fi
  1675. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1676. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1677. # interfere with the next link command; also delete a directory that is
  1678. # left behind by Apple's compiler. We do this before executing the actions.
  1679. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1680. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1681. as_fn_set_status $ac_retval
  1682. } # ac_fn_c_try_link
  1683. ac_configure_args_raw=
  1684. for ac_arg
  1685. do
  1686. case $ac_arg in
  1687. *\'*)
  1688. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1689. esac
  1690. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1691. done
  1692. case $ac_configure_args_raw in
  1693. *$as_nl*)
  1694. ac_safe_unquote= ;;
  1695. *)
  1696. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1697. ac_unsafe_a="$ac_unsafe_z#~"
  1698. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1699. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1700. esac
  1701. cat >config.log <<_ACEOF
  1702. This file contains any messages produced by compilers while
  1703. running configure, to aid debugging if configure makes a mistake.
  1704. It was created by GNU C Library $as_me (see version.h), which was
  1705. generated by GNU Autoconf 2.72. Invocation command line was
  1706. $ $0$ac_configure_args_raw
  1707. _ACEOF
  1708. exec 5>>config.log
  1709. {
  1710. cat <<_ASUNAME
  1711. ## --------- ##
  1712. ## Platform. ##
  1713. ## --------- ##
  1714. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1715. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1716. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1717. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1718. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1719. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1720. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1721. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1722. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1723. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1724. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1725. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1726. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1727. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1728. _ASUNAME
  1729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1730. for as_dir in $PATH
  1731. do
  1732. IFS=$as_save_IFS
  1733. case $as_dir in #(((
  1734. '') as_dir=./ ;;
  1735. */) ;;
  1736. *) as_dir=$as_dir/ ;;
  1737. esac
  1738. printf "%s\n" "PATH: $as_dir"
  1739. done
  1740. IFS=$as_save_IFS
  1741. } >&5
  1742. cat >&5 <<_ACEOF
  1743. ## ----------- ##
  1744. ## Core tests. ##
  1745. ## ----------- ##
  1746. _ACEOF
  1747. # Keep a trace of the command line.
  1748. # Strip out --no-create and --no-recursion so they do not pile up.
  1749. # Strip out --silent because we don't want to record it for future runs.
  1750. # Also quote any args containing shell meta-characters.
  1751. # Make two passes to allow for proper duplicate-argument suppression.
  1752. ac_configure_args=
  1753. ac_configure_args0=
  1754. ac_configure_args1=
  1755. ac_must_keep_next=false
  1756. for ac_pass in 1 2
  1757. do
  1758. for ac_arg
  1759. do
  1760. case $ac_arg in
  1761. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1762. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1763. | -silent | --silent | --silen | --sile | --sil)
  1764. continue ;;
  1765. *\'*)
  1766. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1767. esac
  1768. case $ac_pass in
  1769. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1770. 2)
  1771. as_fn_append ac_configure_args1 " '$ac_arg'"
  1772. if test $ac_must_keep_next = true; then
  1773. ac_must_keep_next=false # Got value, back to normal.
  1774. else
  1775. case $ac_arg in
  1776. *=* | --config-cache | -C | -disable-* | --disable-* \
  1777. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1778. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1779. | -with-* | --with-* | -without-* | --without-* | --x)
  1780. case "$ac_configure_args0 " in
  1781. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1782. esac
  1783. ;;
  1784. -* ) ac_must_keep_next=true ;;
  1785. esac
  1786. fi
  1787. as_fn_append ac_configure_args " '$ac_arg'"
  1788. ;;
  1789. esac
  1790. done
  1791. done
  1792. { ac_configure_args0=; unset ac_configure_args0;}
  1793. { ac_configure_args1=; unset ac_configure_args1;}
  1794. # When interrupted or exit'd, cleanup temporary files, and complete
  1795. # config.log. We remove comments because anyway the quotes in there
  1796. # would cause problems or look ugly.
  1797. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1798. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1799. trap 'exit_status=$?
  1800. # Sanitize IFS.
  1801. IFS=" "" $as_nl"
  1802. # Save into config.log some information that might help in debugging.
  1803. {
  1804. echo
  1805. printf "%s\n" "## ---------------- ##
  1806. ## Cache variables. ##
  1807. ## ---------------- ##"
  1808. echo
  1809. # The following way of writing the cache mishandles newlines in values,
  1810. (
  1811. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1812. eval ac_val=\$$ac_var
  1813. case $ac_val in #(
  1814. *${as_nl}*)
  1815. case $ac_var in #(
  1816. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1817. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1818. esac
  1819. case $ac_var in #(
  1820. _ | IFS | as_nl) ;; #(
  1821. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1822. *) { eval $ac_var=; unset $ac_var;} ;;
  1823. esac ;;
  1824. esac
  1825. done
  1826. (set) 2>&1 |
  1827. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1828. *${as_nl}ac_space=\ *)
  1829. sed -n \
  1830. "s/'\''/'\''\\\\'\'''\''/g;
  1831. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1832. ;; #(
  1833. *)
  1834. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1835. ;;
  1836. esac |
  1837. sort
  1838. )
  1839. echo
  1840. printf "%s\n" "## ----------------- ##
  1841. ## Output variables. ##
  1842. ## ----------------- ##"
  1843. echo
  1844. for ac_var in $ac_subst_vars
  1845. do
  1846. eval ac_val=\$$ac_var
  1847. case $ac_val in
  1848. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1849. esac
  1850. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1851. done | sort
  1852. echo
  1853. if test -n "$ac_subst_files"; then
  1854. printf "%s\n" "## ------------------- ##
  1855. ## File substitutions. ##
  1856. ## ------------------- ##"
  1857. echo
  1858. for ac_var in $ac_subst_files
  1859. do
  1860. eval ac_val=\$$ac_var
  1861. case $ac_val in
  1862. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1863. esac
  1864. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1865. done | sort
  1866. echo
  1867. fi
  1868. if test -s confdefs.h; then
  1869. printf "%s\n" "## ----------- ##
  1870. ## confdefs.h. ##
  1871. ## ----------- ##"
  1872. echo
  1873. cat confdefs.h
  1874. echo
  1875. fi
  1876. test "$ac_signal" != 0 &&
  1877. printf "%s\n" "$as_me: caught signal $ac_signal"
  1878. printf "%s\n" "$as_me: exit $exit_status"
  1879. } >&5
  1880. rm -f core *.core core.conftest.* &&
  1881. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1882. exit $exit_status
  1883. ' 0
  1884. for ac_signal in 1 2 13 15; do
  1885. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1886. done
  1887. ac_signal=0
  1888. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1889. rm -f -r conftest* confdefs.h
  1890. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1891. # Predefined preprocessor variables.
  1892. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1893. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1894. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1895. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1896. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1897. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1898. # Let the site file select an alternate cache file if it wants to.
  1899. # Prefer an explicitly selected file to automatically selected ones.
  1900. if test -n "$CONFIG_SITE"; then
  1901. ac_site_files="$CONFIG_SITE"
  1902. elif test "x$prefix" != xNONE; then
  1903. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1904. else
  1905. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1906. fi
  1907. for ac_site_file in $ac_site_files
  1908. do
  1909. case $ac_site_file in #(
  1910. */*) :
  1911. ;; #(
  1912. *) :
  1913. ac_site_file=./$ac_site_file ;;
  1914. esac
  1915. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1917. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1918. sed 's/^/| /' "$ac_site_file" >&5
  1919. . "$ac_site_file" \
  1920. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  1921. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  1922. as_fn_error $? "failed to load site script $ac_site_file
  1923. See 'config.log' for more details" "$LINENO" 5; }
  1924. fi
  1925. done
  1926. if test -r "$cache_file"; then
  1927. # Some versions of bash will fail to source /dev/null (special files
  1928. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1929. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1931. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  1932. case $cache_file in
  1933. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1934. *) . "./$cache_file";;
  1935. esac
  1936. fi
  1937. else
  1938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1939. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  1940. >$cache_file
  1941. fi
  1942. # Test code for whether the C compiler supports C89 (global declarations)
  1943. ac_c_conftest_c89_globals='
  1944. /* Does the compiler advertise C89 conformance?
  1945. Do not test the value of __STDC__, because some compilers set it to 0
  1946. while being otherwise adequately conformant. */
  1947. #if !defined __STDC__
  1948. # error "Compiler does not advertise C89 conformance"
  1949. #endif
  1950. #include <stddef.h>
  1951. #include <stdarg.h>
  1952. struct stat;
  1953. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  1954. struct buf { int x; };
  1955. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  1956. static char *e (char **p, int i)
  1957. {
  1958. return p[i];
  1959. }
  1960. static char *f (char * (*g) (char **, int), char **p, ...)
  1961. {
  1962. char *s;
  1963. va_list v;
  1964. va_start (v,p);
  1965. s = g (p, va_arg (v,int));
  1966. va_end (v);
  1967. return s;
  1968. }
  1969. /* C89 style stringification. */
  1970. #define noexpand_stringify(a) #a
  1971. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  1972. /* C89 style token pasting. Exercises some of the corner cases that
  1973. e.g. old MSVC gets wrong, but not very hard. */
  1974. #define noexpand_concat(a,b) a##b
  1975. #define expand_concat(a,b) noexpand_concat(a,b)
  1976. extern int vA;
  1977. extern int vbee;
  1978. #define aye A
  1979. #define bee B
  1980. int *pvA = &expand_concat(v,aye);
  1981. int *pvbee = &noexpand_concat(v,bee);
  1982. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1983. function prototypes and stuff, but not \xHH hex character constants.
  1984. These do not provoke an error unfortunately, instead are silently treated
  1985. as an "x". The following induces an error, until -std is added to get
  1986. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  1987. array size at least. It is necessary to write \x00 == 0 to get something
  1988. that is true only with -std. */
  1989. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  1990. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1991. inside strings and character constants. */
  1992. #define FOO(x) '\''x'\''
  1993. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  1994. int test (int i, double x);
  1995. struct s1 {int (*f) (int a);};
  1996. struct s2 {int (*f) (double a);};
  1997. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  1998. int, int);'
  1999. # Test code for whether the C compiler supports C89 (body of main).
  2000. ac_c_conftest_c89_main='
  2001. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2002. '
  2003. # Test code for whether the C compiler supports C99 (global declarations)
  2004. ac_c_conftest_c99_globals='
  2005. /* Does the compiler advertise C99 conformance? */
  2006. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2007. # error "Compiler does not advertise C99 conformance"
  2008. #endif
  2009. // See if C++-style comments work.
  2010. #include <stdbool.h>
  2011. extern int puts (const char *);
  2012. extern int printf (const char *, ...);
  2013. extern int dprintf (int, const char *, ...);
  2014. extern void *malloc (size_t);
  2015. extern void free (void *);
  2016. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2017. // dprintf is used instead of fprintf to avoid needing to declare
  2018. // FILE and stderr.
  2019. #define debug(...) dprintf (2, __VA_ARGS__)
  2020. #define showlist(...) puts (#__VA_ARGS__)
  2021. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2022. static void
  2023. test_varargs_macros (void)
  2024. {
  2025. int x = 1234;
  2026. int y = 5678;
  2027. debug ("Flag");
  2028. debug ("X = %d\n", x);
  2029. showlist (The first, second, and third items.);
  2030. report (x>y, "x is %d but y is %d", x, y);
  2031. }
  2032. // Check long long types.
  2033. #define BIG64 18446744073709551615ull
  2034. #define BIG32 4294967295ul
  2035. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2036. #if !BIG_OK
  2037. #error "your preprocessor is broken"
  2038. #endif
  2039. #if BIG_OK
  2040. #else
  2041. #error "your preprocessor is broken"
  2042. #endif
  2043. static long long int bignum = -9223372036854775807LL;
  2044. static unsigned long long int ubignum = BIG64;
  2045. struct incomplete_array
  2046. {
  2047. int datasize;
  2048. double data[];
  2049. };
  2050. struct named_init {
  2051. int number;
  2052. const wchar_t *name;
  2053. double average;
  2054. };
  2055. typedef const char *ccp;
  2056. static inline int
  2057. test_restrict (ccp restrict text)
  2058. {
  2059. // Iterate through items via the restricted pointer.
  2060. // Also check for declarations in for loops.
  2061. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2062. continue;
  2063. return 0;
  2064. }
  2065. // Check varargs and va_copy.
  2066. static bool
  2067. test_varargs (const char *format, ...)
  2068. {
  2069. va_list args;
  2070. va_start (args, format);
  2071. va_list args_copy;
  2072. va_copy (args_copy, args);
  2073. const char *str = "";
  2074. int number = 0;
  2075. float fnumber = 0;
  2076. while (*format)
  2077. {
  2078. switch (*format++)
  2079. {
  2080. case '\''s'\'': // string
  2081. str = va_arg (args_copy, const char *);
  2082. break;
  2083. case '\''d'\'': // int
  2084. number = va_arg (args_copy, int);
  2085. break;
  2086. case '\''f'\'': // float
  2087. fnumber = va_arg (args_copy, double);
  2088. break;
  2089. default:
  2090. break;
  2091. }
  2092. }
  2093. va_end (args_copy);
  2094. va_end (args);
  2095. return *str && number && fnumber;
  2096. }
  2097. '
  2098. # Test code for whether the C compiler supports C99 (body of main).
  2099. ac_c_conftest_c99_main='
  2100. // Check bool.
  2101. _Bool success = false;
  2102. success |= (argc != 0);
  2103. // Check restrict.
  2104. if (test_restrict ("String literal") == 0)
  2105. success = true;
  2106. char *restrict newvar = "Another string";
  2107. // Check varargs.
  2108. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2109. test_varargs_macros ();
  2110. // Check flexible array members.
  2111. struct incomplete_array *ia =
  2112. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2113. ia->datasize = 10;
  2114. for (int i = 0; i < ia->datasize; ++i)
  2115. ia->data[i] = i * 1.234;
  2116. // Work around memory leak warnings.
  2117. free (ia);
  2118. // Check named initializers.
  2119. struct named_init ni = {
  2120. .number = 34,
  2121. .name = L"Test wide string",
  2122. .average = 543.34343,
  2123. };
  2124. ni.number = 58;
  2125. int dynamic_array[ni.number];
  2126. dynamic_array[0] = argv[0][0];
  2127. dynamic_array[ni.number - 1] = 543;
  2128. // work around unused variable warnings
  2129. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2130. || dynamic_array[ni.number - 1] != 543);
  2131. '
  2132. # Test code for whether the C compiler supports C11 (global declarations)
  2133. ac_c_conftest_c11_globals='
  2134. /* Does the compiler advertise C11 conformance? */
  2135. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2136. # error "Compiler does not advertise C11 conformance"
  2137. #endif
  2138. // Check _Alignas.
  2139. char _Alignas (double) aligned_as_double;
  2140. char _Alignas (0) no_special_alignment;
  2141. extern char aligned_as_int;
  2142. char _Alignas (0) _Alignas (int) aligned_as_int;
  2143. // Check _Alignof.
  2144. enum
  2145. {
  2146. int_alignment = _Alignof (int),
  2147. int_array_alignment = _Alignof (int[100]),
  2148. char_alignment = _Alignof (char)
  2149. };
  2150. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2151. // Check _Noreturn.
  2152. int _Noreturn does_not_return (void) { for (;;) continue; }
  2153. // Check _Static_assert.
  2154. struct test_static_assert
  2155. {
  2156. int x;
  2157. _Static_assert (sizeof (int) <= sizeof (long int),
  2158. "_Static_assert does not work in struct");
  2159. long int y;
  2160. };
  2161. // Check UTF-8 literals.
  2162. #define u8 syntax error!
  2163. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2164. // Check duplicate typedefs.
  2165. typedef long *long_ptr;
  2166. typedef long int *long_ptr;
  2167. typedef long_ptr long_ptr;
  2168. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2169. struct anonymous
  2170. {
  2171. union {
  2172. struct { int i; int j; };
  2173. struct { int k; long int l; } w;
  2174. };
  2175. int m;
  2176. } v1;
  2177. '
  2178. # Test code for whether the C compiler supports C11 (body of main).
  2179. ac_c_conftest_c11_main='
  2180. _Static_assert ((offsetof (struct anonymous, i)
  2181. == offsetof (struct anonymous, w.k)),
  2182. "Anonymous union alignment botch");
  2183. v1.i = 2;
  2184. v1.w.k = 5;
  2185. ok |= v1.i != 5;
  2186. '
  2187. # Test code for whether the C compiler supports C11 (complete).
  2188. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2189. ${ac_c_conftest_c99_globals}
  2190. ${ac_c_conftest_c11_globals}
  2191. int
  2192. main (int argc, char **argv)
  2193. {
  2194. int ok = 0;
  2195. ${ac_c_conftest_c89_main}
  2196. ${ac_c_conftest_c99_main}
  2197. ${ac_c_conftest_c11_main}
  2198. return ok;
  2199. }
  2200. "
  2201. # Test code for whether the C compiler supports C99 (complete).
  2202. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2203. ${ac_c_conftest_c99_globals}
  2204. int
  2205. main (int argc, char **argv)
  2206. {
  2207. int ok = 0;
  2208. ${ac_c_conftest_c89_main}
  2209. ${ac_c_conftest_c99_main}
  2210. return ok;
  2211. }
  2212. "
  2213. # Test code for whether the C compiler supports C89 (complete).
  2214. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2215. int
  2216. main (int argc, char **argv)
  2217. {
  2218. int ok = 0;
  2219. ${ac_c_conftest_c89_main}
  2220. return ok;
  2221. }
  2222. "
  2223. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2224. ac_cxx_conftest_cxx98_globals='
  2225. // Does the compiler advertise C++98 conformance?
  2226. #if !defined __cplusplus || __cplusplus < 199711L
  2227. # error "Compiler does not advertise C++98 conformance"
  2228. #endif
  2229. // These inclusions are to reject old compilers that
  2230. // lack the unsuffixed header files.
  2231. #include <cstdlib>
  2232. #include <exception>
  2233. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2234. extern void assert (int);
  2235. namespace std {
  2236. extern int strcmp (const char *, const char *);
  2237. }
  2238. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2239. using std::exception;
  2240. using std::strcmp;
  2241. namespace {
  2242. void test_exception_syntax()
  2243. {
  2244. try {
  2245. throw "test";
  2246. } catch (const char *s) {
  2247. // Extra parentheses suppress a warning when building autoconf itself,
  2248. // due to lint rules shared with more typical C programs.
  2249. assert (!(strcmp) (s, "test"));
  2250. }
  2251. }
  2252. template <typename T> struct test_template
  2253. {
  2254. T const val;
  2255. explicit test_template(T t) : val(t) {}
  2256. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2257. };
  2258. } // anonymous namespace
  2259. '
  2260. # Test code for whether the C++ compiler supports C++98 (body of main)
  2261. ac_cxx_conftest_cxx98_main='
  2262. assert (argc);
  2263. assert (! argv[0]);
  2264. {
  2265. test_exception_syntax ();
  2266. test_template<double> tt (2.0);
  2267. assert (tt.add (4) == 6.0);
  2268. assert (true && !false);
  2269. }
  2270. '
  2271. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2272. ac_cxx_conftest_cxx11_globals='
  2273. // Does the compiler advertise C++ 2011 conformance?
  2274. #if !defined __cplusplus || __cplusplus < 201103L
  2275. # error "Compiler does not advertise C++11 conformance"
  2276. #endif
  2277. namespace cxx11test
  2278. {
  2279. constexpr int get_val() { return 20; }
  2280. struct testinit
  2281. {
  2282. int i;
  2283. double d;
  2284. };
  2285. class delegate
  2286. {
  2287. public:
  2288. delegate(int n) : n(n) {}
  2289. delegate(): delegate(2354) {}
  2290. virtual int getval() { return this->n; };
  2291. protected:
  2292. int n;
  2293. };
  2294. class overridden : public delegate
  2295. {
  2296. public:
  2297. overridden(int n): delegate(n) {}
  2298. virtual int getval() override final { return this->n * 2; }
  2299. };
  2300. class nocopy
  2301. {
  2302. public:
  2303. nocopy(int i): i(i) {}
  2304. nocopy() = default;
  2305. nocopy(const nocopy&) = delete;
  2306. nocopy & operator=(const nocopy&) = delete;
  2307. private:
  2308. int i;
  2309. };
  2310. // for testing lambda expressions
  2311. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2312. {
  2313. return f(v);
  2314. }
  2315. // for testing variadic templates and trailing return types
  2316. template <typename V> auto sum(V first) -> V
  2317. {
  2318. return first;
  2319. }
  2320. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2321. {
  2322. return first + sum(rest...);
  2323. }
  2324. }
  2325. '
  2326. # Test code for whether the C++ compiler supports C++11 (body of main)
  2327. ac_cxx_conftest_cxx11_main='
  2328. {
  2329. // Test auto and decltype
  2330. auto a1 = 6538;
  2331. auto a2 = 48573953.4;
  2332. auto a3 = "String literal";
  2333. int total = 0;
  2334. for (auto i = a3; *i; ++i) { total += *i; }
  2335. decltype(a2) a4 = 34895.034;
  2336. }
  2337. {
  2338. // Test constexpr
  2339. short sa[cxx11test::get_val()] = { 0 };
  2340. }
  2341. {
  2342. // Test initializer lists
  2343. cxx11test::testinit il = { 4323, 435234.23544 };
  2344. }
  2345. {
  2346. // Test range-based for
  2347. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2348. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2349. for (auto &x : array) { x += 23; }
  2350. }
  2351. {
  2352. // Test lambda expressions
  2353. using cxx11test::eval;
  2354. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2355. double d = 2.0;
  2356. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2357. assert (d == 5.0);
  2358. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2359. assert (d == 5.0);
  2360. }
  2361. {
  2362. // Test use of variadic templates
  2363. using cxx11test::sum;
  2364. auto a = sum(1);
  2365. auto b = sum(1, 2);
  2366. auto c = sum(1.0, 2.0, 3.0);
  2367. }
  2368. {
  2369. // Test constructor delegation
  2370. cxx11test::delegate d1;
  2371. cxx11test::delegate d2();
  2372. cxx11test::delegate d3(45);
  2373. }
  2374. {
  2375. // Test override and final
  2376. cxx11test::overridden o1(55464);
  2377. }
  2378. {
  2379. // Test nullptr
  2380. char *c = nullptr;
  2381. }
  2382. {
  2383. // Test template brackets
  2384. test_template<::test_template<int>> v(test_template<int>(12));
  2385. }
  2386. {
  2387. // Unicode literals
  2388. char const *utf8 = u8"UTF-8 string \u2500";
  2389. char16_t const *utf16 = u"UTF-8 string \u2500";
  2390. char32_t const *utf32 = U"UTF-32 string \u2500";
  2391. }
  2392. '
  2393. # Test code for whether the C compiler supports C++11 (complete).
  2394. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2395. ${ac_cxx_conftest_cxx11_globals}
  2396. int
  2397. main (int argc, char **argv)
  2398. {
  2399. int ok = 0;
  2400. ${ac_cxx_conftest_cxx98_main}
  2401. ${ac_cxx_conftest_cxx11_main}
  2402. return ok;
  2403. }
  2404. "
  2405. # Test code for whether the C compiler supports C++98 (complete).
  2406. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2407. int
  2408. main (int argc, char **argv)
  2409. {
  2410. int ok = 0;
  2411. ${ac_cxx_conftest_cxx98_main}
  2412. return ok;
  2413. }
  2414. "
  2415. # Auxiliary files required by this configure script.
  2416. ac_aux_files="install-sh config.guess config.sub"
  2417. # Locations in which to look for auxiliary files.
  2418. ac_aux_dir_candidates="${srcdir}/scripts"
  2419. # Search for a directory containing all of the required auxiliary files,
  2420. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2421. # If we don't find one directory that contains all the files we need,
  2422. # we report the set of missing files from the *first* directory in
  2423. # $ac_aux_dir_candidates and give up.
  2424. ac_missing_aux_files=""
  2425. ac_first_candidate=:
  2426. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2428. as_found=false
  2429. for as_dir in $ac_aux_dir_candidates
  2430. do
  2431. IFS=$as_save_IFS
  2432. case $as_dir in #(((
  2433. '') as_dir=./ ;;
  2434. */) ;;
  2435. *) as_dir=$as_dir/ ;;
  2436. esac
  2437. as_found=:
  2438. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2439. ac_aux_dir_found=yes
  2440. ac_install_sh=
  2441. for ac_aux in $ac_aux_files
  2442. do
  2443. # As a special case, if "install-sh" is required, that requirement
  2444. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2445. # and $ac_install_sh is set appropriately for whichever one is found.
  2446. if test x"$ac_aux" = x"install-sh"
  2447. then
  2448. if test -f "${as_dir}install-sh"; then
  2449. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2450. ac_install_sh="${as_dir}install-sh -c"
  2451. elif test -f "${as_dir}install.sh"; then
  2452. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2453. ac_install_sh="${as_dir}install.sh -c"
  2454. elif test -f "${as_dir}shtool"; then
  2455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2456. ac_install_sh="${as_dir}shtool install -c"
  2457. else
  2458. ac_aux_dir_found=no
  2459. if $ac_first_candidate; then
  2460. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2461. else
  2462. break
  2463. fi
  2464. fi
  2465. else
  2466. if test -f "${as_dir}${ac_aux}"; then
  2467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2468. else
  2469. ac_aux_dir_found=no
  2470. if $ac_first_candidate; then
  2471. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2472. else
  2473. break
  2474. fi
  2475. fi
  2476. fi
  2477. done
  2478. if test "$ac_aux_dir_found" = yes; then
  2479. ac_aux_dir="$as_dir"
  2480. break
  2481. fi
  2482. ac_first_candidate=false
  2483. as_found=false
  2484. done
  2485. IFS=$as_save_IFS
  2486. if $as_found
  2487. then :
  2488. else case e in #(
  2489. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  2490. esac
  2491. fi
  2492. # These three variables are undocumented and unsupported,
  2493. # and are intended to be withdrawn in a future Autoconf release.
  2494. # They can cause serious problems if a builder's source tree is in a directory
  2495. # whose full name contains unusual characters.
  2496. if test -f "${ac_aux_dir}config.guess"; then
  2497. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2498. fi
  2499. if test -f "${ac_aux_dir}config.sub"; then
  2500. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2501. fi
  2502. if test -f "$ac_aux_dir/configure"; then
  2503. ac_configure="$SHELL ${ac_aux_dir}configure"
  2504. fi
  2505. # Check that the precious variables saved in the cache have kept the same
  2506. # value.
  2507. ac_cache_corrupted=false
  2508. for ac_var in $ac_precious_vars; do
  2509. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2510. eval ac_new_set=\$ac_env_${ac_var}_set
  2511. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2512. eval ac_new_val=\$ac_env_${ac_var}_value
  2513. case $ac_old_set,$ac_new_set in
  2514. set,)
  2515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2516. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2517. ac_cache_corrupted=: ;;
  2518. ,set)
  2519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2520. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2521. ac_cache_corrupted=: ;;
  2522. ,);;
  2523. *)
  2524. if test "x$ac_old_val" != "x$ac_new_val"; then
  2525. # differences in whitespace do not lead to failure.
  2526. ac_old_val_w=`echo x $ac_old_val`
  2527. ac_new_val_w=`echo x $ac_new_val`
  2528. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2530. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2531. ac_cache_corrupted=:
  2532. else
  2533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2534. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2535. eval $ac_var=\$ac_old_val
  2536. fi
  2537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2538. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2540. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2541. fi;;
  2542. esac
  2543. # Pass precious variables to config.status.
  2544. if test "$ac_new_set" = set; then
  2545. case $ac_new_val in
  2546. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2547. *) ac_arg=$ac_var=$ac_new_val ;;
  2548. esac
  2549. case " $ac_configure_args " in
  2550. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2551. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2552. esac
  2553. fi
  2554. done
  2555. if $ac_cache_corrupted; then
  2556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2557. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2559. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2560. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2561. and start over" "$LINENO" 5
  2562. fi
  2563. ## -------------------- ##
  2564. ## Main body of script. ##
  2565. ## -------------------- ##
  2566. ac_ext=c
  2567. ac_cpp='$CPP $CPPFLAGS'
  2568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2571. ac_config_headers="$ac_config_headers config.h"
  2572. # Check whether --with-pkgversion was given.
  2573. if test ${with_pkgversion+y}
  2574. then :
  2575. withval=$with_pkgversion; case "$withval" in
  2576. yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
  2577. no) PKGVERSION= ;;
  2578. *) PKGVERSION="($withval) " ;;
  2579. esac
  2580. else case e in #(
  2581. e) PKGVERSION="(GNU libc) "
  2582. ;;
  2583. esac
  2584. fi
  2585. PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
  2586. # Check whether --with-bugurl was given.
  2587. if test ${with_bugurl+y}
  2588. then :
  2589. withval=$with_bugurl; case "$withval" in
  2590. yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
  2591. no) BUGURL=
  2592. ;;
  2593. *) BUGURL="$withval"
  2594. ;;
  2595. esac
  2596. else case e in #(
  2597. e) BUGURL="https://www.gnu.org/software/libc/bugs.html"
  2598. ;;
  2599. esac
  2600. fi
  2601. case ${BUGURL} in
  2602. "")
  2603. REPORT_BUGS_TO=
  2604. REPORT_BUGS_TEXI=
  2605. ;;
  2606. *)
  2607. REPORT_BUGS_TO="<$BUGURL>"
  2608. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  2609. ;;
  2610. esac;
  2611. printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
  2612. printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
  2613. # Glibc should not depend on any header files
  2614. # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
  2615. # here to work around the Autoconf issue discussed in
  2616. # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
  2617. # AC_PROG_CPP
  2618. # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
  2619. # issue discussed in
  2620. # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
  2621. subdirs="$subdirs "
  2622. # Make sure we can run config.sub.
  2623. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2624. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2626. printf %s "checking build system type... " >&6; }
  2627. if test ${ac_cv_build+y}
  2628. then :
  2629. printf %s "(cached) " >&6
  2630. else case e in #(
  2631. e) ac_build_alias=$build_alias
  2632. test "x$ac_build_alias" = x &&
  2633. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2634. test "x$ac_build_alias" = x &&
  2635. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2636. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2637. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2638. ;;
  2639. esac
  2640. fi
  2641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2642. printf "%s\n" "$ac_cv_build" >&6; }
  2643. case $ac_cv_build in
  2644. *-*-*) ;;
  2645. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2646. esac
  2647. build=$ac_cv_build
  2648. ac_save_IFS=$IFS; IFS='-'
  2649. set x $ac_cv_build
  2650. shift
  2651. build_cpu=$1
  2652. build_vendor=$2
  2653. shift; shift
  2654. # Remember, the first character of IFS is used to create $*,
  2655. # except with old shells:
  2656. build_os=$*
  2657. IFS=$ac_save_IFS
  2658. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2660. printf %s "checking host system type... " >&6; }
  2661. if test ${ac_cv_host+y}
  2662. then :
  2663. printf %s "(cached) " >&6
  2664. else case e in #(
  2665. e) if test "x$host_alias" = x; then
  2666. ac_cv_host=$ac_cv_build
  2667. else
  2668. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2669. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2670. fi
  2671. ;;
  2672. esac
  2673. fi
  2674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2675. printf "%s\n" "$ac_cv_host" >&6; }
  2676. case $ac_cv_host in
  2677. *-*-*) ;;
  2678. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2679. esac
  2680. host=$ac_cv_host
  2681. ac_save_IFS=$IFS; IFS='-'
  2682. set x $ac_cv_host
  2683. shift
  2684. host_cpu=$1
  2685. host_vendor=$2
  2686. shift; shift
  2687. # Remember, the first character of IFS is used to create $*,
  2688. # except with old shells:
  2689. host_os=$*
  2690. IFS=$ac_save_IFS
  2691. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2692. ac_ext=c
  2693. ac_cpp='$CPP $CPPFLAGS'
  2694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2697. if test -n "$ac_tool_prefix"; then
  2698. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2699. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2701. printf %s "checking for $ac_word... " >&6; }
  2702. if test ${ac_cv_prog_CC+y}
  2703. then :
  2704. printf %s "(cached) " >&6
  2705. else case e in #(
  2706. e) if test -n "$CC"; then
  2707. ac_cv_prog_CC="$CC" # Let the user override the test.
  2708. else
  2709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2710. for as_dir in $PATH
  2711. do
  2712. IFS=$as_save_IFS
  2713. case $as_dir in #(((
  2714. '') as_dir=./ ;;
  2715. */) ;;
  2716. *) as_dir=$as_dir/ ;;
  2717. esac
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2720. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2721. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2722. break 2
  2723. fi
  2724. done
  2725. done
  2726. IFS=$as_save_IFS
  2727. fi ;;
  2728. esac
  2729. fi
  2730. CC=$ac_cv_prog_CC
  2731. if test -n "$CC"; then
  2732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2733. printf "%s\n" "$CC" >&6; }
  2734. else
  2735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2736. printf "%s\n" "no" >&6; }
  2737. fi
  2738. fi
  2739. if test -z "$ac_cv_prog_CC"; then
  2740. ac_ct_CC=$CC
  2741. # Extract the first word of "gcc", so it can be a program name with args.
  2742. set dummy gcc; ac_word=$2
  2743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2744. printf %s "checking for $ac_word... " >&6; }
  2745. if test ${ac_cv_prog_ac_ct_CC+y}
  2746. then :
  2747. printf %s "(cached) " >&6
  2748. else case e in #(
  2749. e) if test -n "$ac_ct_CC"; then
  2750. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2751. else
  2752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2753. for as_dir in $PATH
  2754. do
  2755. IFS=$as_save_IFS
  2756. case $as_dir in #(((
  2757. '') as_dir=./ ;;
  2758. */) ;;
  2759. *) as_dir=$as_dir/ ;;
  2760. esac
  2761. for ac_exec_ext in '' $ac_executable_extensions; do
  2762. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2763. ac_cv_prog_ac_ct_CC="gcc"
  2764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. IFS=$as_save_IFS
  2770. fi ;;
  2771. esac
  2772. fi
  2773. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2774. if test -n "$ac_ct_CC"; then
  2775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2776. printf "%s\n" "$ac_ct_CC" >&6; }
  2777. else
  2778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2779. printf "%s\n" "no" >&6; }
  2780. fi
  2781. if test "x$ac_ct_CC" = x; then
  2782. CC=""
  2783. else
  2784. case $cross_compiling:$ac_tool_warned in
  2785. yes:)
  2786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2787. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2788. ac_tool_warned=yes ;;
  2789. esac
  2790. CC=$ac_ct_CC
  2791. fi
  2792. else
  2793. CC="$ac_cv_prog_CC"
  2794. fi
  2795. if test -z "$CC"; then
  2796. if test -n "$ac_tool_prefix"; then
  2797. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2798. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2800. printf %s "checking for $ac_word... " >&6; }
  2801. if test ${ac_cv_prog_CC+y}
  2802. then :
  2803. printf %s "(cached) " >&6
  2804. else case e in #(
  2805. e) if test -n "$CC"; then
  2806. ac_cv_prog_CC="$CC" # Let the user override the test.
  2807. else
  2808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2809. for as_dir in $PATH
  2810. do
  2811. IFS=$as_save_IFS
  2812. case $as_dir in #(((
  2813. '') as_dir=./ ;;
  2814. */) ;;
  2815. *) as_dir=$as_dir/ ;;
  2816. esac
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2819. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. IFS=$as_save_IFS
  2826. fi ;;
  2827. esac
  2828. fi
  2829. CC=$ac_cv_prog_CC
  2830. if test -n "$CC"; then
  2831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2832. printf "%s\n" "$CC" >&6; }
  2833. else
  2834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2835. printf "%s\n" "no" >&6; }
  2836. fi
  2837. fi
  2838. fi
  2839. if test -z "$CC"; then
  2840. # Extract the first word of "cc", so it can be a program name with args.
  2841. set dummy cc; ac_word=$2
  2842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2843. printf %s "checking for $ac_word... " >&6; }
  2844. if test ${ac_cv_prog_CC+y}
  2845. then :
  2846. printf %s "(cached) " >&6
  2847. else case e in #(
  2848. e) if test -n "$CC"; then
  2849. ac_cv_prog_CC="$CC" # Let the user override the test.
  2850. else
  2851. ac_prog_rejected=no
  2852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2853. for as_dir in $PATH
  2854. do
  2855. IFS=$as_save_IFS
  2856. case $as_dir in #(((
  2857. '') as_dir=./ ;;
  2858. */) ;;
  2859. *) as_dir=$as_dir/ ;;
  2860. esac
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2863. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2864. ac_prog_rejected=yes
  2865. continue
  2866. fi
  2867. ac_cv_prog_CC="cc"
  2868. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2869. break 2
  2870. fi
  2871. done
  2872. done
  2873. IFS=$as_save_IFS
  2874. if test $ac_prog_rejected = yes; then
  2875. # We found a bogon in the path, so make sure we never use it.
  2876. set dummy $ac_cv_prog_CC
  2877. shift
  2878. if test $# != 0; then
  2879. # We chose a different compiler from the bogus one.
  2880. # However, it has the same basename, so the bogon will be chosen
  2881. # first if we set CC to just the basename; use the full file name.
  2882. shift
  2883. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  2884. fi
  2885. fi
  2886. fi ;;
  2887. esac
  2888. fi
  2889. CC=$ac_cv_prog_CC
  2890. if test -n "$CC"; then
  2891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2892. printf "%s\n" "$CC" >&6; }
  2893. else
  2894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. printf "%s\n" "no" >&6; }
  2896. fi
  2897. fi
  2898. if test -z "$CC"; then
  2899. if test -n "$ac_tool_prefix"; then
  2900. for ac_prog in cl.exe
  2901. do
  2902. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2903. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. printf %s "checking for $ac_word... " >&6; }
  2906. if test ${ac_cv_prog_CC+y}
  2907. then :
  2908. printf %s "(cached) " >&6
  2909. else case e in #(
  2910. e) if test -n "$CC"; then
  2911. ac_cv_prog_CC="$CC" # Let the user override the test.
  2912. else
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH
  2915. do
  2916. IFS=$as_save_IFS
  2917. case $as_dir in #(((
  2918. '') as_dir=./ ;;
  2919. */) ;;
  2920. *) as_dir=$as_dir/ ;;
  2921. esac
  2922. for ac_exec_ext in '' $ac_executable_extensions; do
  2923. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2924. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2926. break 2
  2927. fi
  2928. done
  2929. done
  2930. IFS=$as_save_IFS
  2931. fi ;;
  2932. esac
  2933. fi
  2934. CC=$ac_cv_prog_CC
  2935. if test -n "$CC"; then
  2936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2937. printf "%s\n" "$CC" >&6; }
  2938. else
  2939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. printf "%s\n" "no" >&6; }
  2941. fi
  2942. test -n "$CC" && break
  2943. done
  2944. fi
  2945. if test -z "$CC"; then
  2946. ac_ct_CC=$CC
  2947. for ac_prog in cl.exe
  2948. do
  2949. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2950. set dummy $ac_prog; ac_word=$2
  2951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2952. printf %s "checking for $ac_word... " >&6; }
  2953. if test ${ac_cv_prog_ac_ct_CC+y}
  2954. then :
  2955. printf %s "(cached) " >&6
  2956. else case e in #(
  2957. e) if test -n "$ac_ct_CC"; then
  2958. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2959. else
  2960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2961. for as_dir in $PATH
  2962. do
  2963. IFS=$as_save_IFS
  2964. case $as_dir in #(((
  2965. '') as_dir=./ ;;
  2966. */) ;;
  2967. *) as_dir=$as_dir/ ;;
  2968. esac
  2969. for ac_exec_ext in '' $ac_executable_extensions; do
  2970. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2971. ac_cv_prog_ac_ct_CC="$ac_prog"
  2972. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2973. break 2
  2974. fi
  2975. done
  2976. done
  2977. IFS=$as_save_IFS
  2978. fi ;;
  2979. esac
  2980. fi
  2981. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2982. if test -n "$ac_ct_CC"; then
  2983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2984. printf "%s\n" "$ac_ct_CC" >&6; }
  2985. else
  2986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2987. printf "%s\n" "no" >&6; }
  2988. fi
  2989. test -n "$ac_ct_CC" && break
  2990. done
  2991. if test "x$ac_ct_CC" = x; then
  2992. CC=""
  2993. else
  2994. case $cross_compiling:$ac_tool_warned in
  2995. yes:)
  2996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2997. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2998. ac_tool_warned=yes ;;
  2999. esac
  3000. CC=$ac_ct_CC
  3001. fi
  3002. fi
  3003. fi
  3004. if test -z "$CC"; then
  3005. if test -n "$ac_tool_prefix"; then
  3006. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3007. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3009. printf %s "checking for $ac_word... " >&6; }
  3010. if test ${ac_cv_prog_CC+y}
  3011. then :
  3012. printf %s "(cached) " >&6
  3013. else case e in #(
  3014. e) if test -n "$CC"; then
  3015. ac_cv_prog_CC="$CC" # Let the user override the test.
  3016. else
  3017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3018. for as_dir in $PATH
  3019. do
  3020. IFS=$as_save_IFS
  3021. case $as_dir in #(((
  3022. '') as_dir=./ ;;
  3023. */) ;;
  3024. *) as_dir=$as_dir/ ;;
  3025. esac
  3026. for ac_exec_ext in '' $ac_executable_extensions; do
  3027. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3028. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3029. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3030. break 2
  3031. fi
  3032. done
  3033. done
  3034. IFS=$as_save_IFS
  3035. fi ;;
  3036. esac
  3037. fi
  3038. CC=$ac_cv_prog_CC
  3039. if test -n "$CC"; then
  3040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3041. printf "%s\n" "$CC" >&6; }
  3042. else
  3043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3044. printf "%s\n" "no" >&6; }
  3045. fi
  3046. fi
  3047. if test -z "$ac_cv_prog_CC"; then
  3048. ac_ct_CC=$CC
  3049. # Extract the first word of "clang", so it can be a program name with args.
  3050. set dummy clang; ac_word=$2
  3051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3052. printf %s "checking for $ac_word... " >&6; }
  3053. if test ${ac_cv_prog_ac_ct_CC+y}
  3054. then :
  3055. printf %s "(cached) " >&6
  3056. else case e in #(
  3057. e) if test -n "$ac_ct_CC"; then
  3058. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3059. else
  3060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3061. for as_dir in $PATH
  3062. do
  3063. IFS=$as_save_IFS
  3064. case $as_dir in #(((
  3065. '') as_dir=./ ;;
  3066. */) ;;
  3067. *) as_dir=$as_dir/ ;;
  3068. esac
  3069. for ac_exec_ext in '' $ac_executable_extensions; do
  3070. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3071. ac_cv_prog_ac_ct_CC="clang"
  3072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3073. break 2
  3074. fi
  3075. done
  3076. done
  3077. IFS=$as_save_IFS
  3078. fi ;;
  3079. esac
  3080. fi
  3081. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3082. if test -n "$ac_ct_CC"; then
  3083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3084. printf "%s\n" "$ac_ct_CC" >&6; }
  3085. else
  3086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3087. printf "%s\n" "no" >&6; }
  3088. fi
  3089. if test "x$ac_ct_CC" = x; then
  3090. CC=""
  3091. else
  3092. case $cross_compiling:$ac_tool_warned in
  3093. yes:)
  3094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3095. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3096. ac_tool_warned=yes ;;
  3097. esac
  3098. CC=$ac_ct_CC
  3099. fi
  3100. else
  3101. CC="$ac_cv_prog_CC"
  3102. fi
  3103. fi
  3104. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3105. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3106. as_fn_error $? "no acceptable C compiler found in \$PATH
  3107. See 'config.log' for more details" "$LINENO" 5; }
  3108. # Provide some information about the compiler.
  3109. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3110. set X $ac_compile
  3111. ac_compiler=$2
  3112. for ac_option in --version -v -V -qversion -version; do
  3113. { { ac_try="$ac_compiler $ac_option >&5"
  3114. case "(($ac_try" in
  3115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3116. *) ac_try_echo=$ac_try;;
  3117. esac
  3118. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3119. printf "%s\n" "$ac_try_echo"; } >&5
  3120. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3121. ac_status=$?
  3122. if test -s conftest.err; then
  3123. sed '10a\
  3124. ... rest of stderr output deleted ...
  3125. 10q' conftest.err >conftest.er1
  3126. cat conftest.er1 >&5
  3127. fi
  3128. rm -f conftest.er1 conftest.err
  3129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3130. test $ac_status = 0; }
  3131. done
  3132. EXEEXT=
  3133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3134. printf %s "checking for suffix of object files... " >&6; }
  3135. if test ${ac_cv_objext+y}
  3136. then :
  3137. printf %s "(cached) " >&6
  3138. else case e in #(
  3139. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3140. /* end confdefs.h. */
  3141. int
  3142. main (void)
  3143. {
  3144. ;
  3145. return 0;
  3146. }
  3147. _ACEOF
  3148. rm -f conftest.o conftest.obj
  3149. if { { ac_try="$ac_compile"
  3150. case "(($ac_try" in
  3151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3152. *) ac_try_echo=$ac_try;;
  3153. esac
  3154. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3155. printf "%s\n" "$ac_try_echo"; } >&5
  3156. (eval "$ac_compile") 2>&5
  3157. ac_status=$?
  3158. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3159. test $ac_status = 0; }
  3160. then :
  3161. for ac_file in conftest.o conftest.obj conftest.*; do
  3162. test -f "$ac_file" || continue;
  3163. case $ac_file in
  3164. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3165. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3166. break;;
  3167. esac
  3168. done
  3169. else case e in #(
  3170. e) printf "%s\n" "$as_me: failed program was:" >&5
  3171. sed 's/^/| /' conftest.$ac_ext >&5
  3172. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3173. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3174. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3175. See 'config.log' for more details" "$LINENO" 5; } ;;
  3176. esac
  3177. fi
  3178. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  3179. esac
  3180. fi
  3181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3182. printf "%s\n" "$ac_cv_objext" >&6; }
  3183. OBJEXT=$ac_cv_objext
  3184. ac_objext=$OBJEXT
  3185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3186. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3187. if test ${ac_cv_c_compiler_gnu+y}
  3188. then :
  3189. printf %s "(cached) " >&6
  3190. else case e in #(
  3191. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main (void)
  3195. {
  3196. #ifndef __GNUC__
  3197. choke me
  3198. #endif
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. if ac_fn_c_try_compile "$LINENO"
  3204. then :
  3205. ac_compiler_gnu=yes
  3206. else case e in #(
  3207. e) ac_compiler_gnu=no ;;
  3208. esac
  3209. fi
  3210. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3211. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3212. ;;
  3213. esac
  3214. fi
  3215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3216. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3218. if test $ac_compiler_gnu = yes; then
  3219. GCC=yes
  3220. else
  3221. GCC=
  3222. fi
  3223. ac_test_CFLAGS=${CFLAGS+y}
  3224. ac_save_CFLAGS=$CFLAGS
  3225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3226. printf %s "checking whether $CC accepts -g... " >&6; }
  3227. if test ${ac_cv_prog_cc_g+y}
  3228. then :
  3229. printf %s "(cached) " >&6
  3230. else case e in #(
  3231. e) ac_save_c_werror_flag=$ac_c_werror_flag
  3232. ac_c_werror_flag=yes
  3233. ac_cv_prog_cc_g=no
  3234. CFLAGS="-g"
  3235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h. */
  3237. int
  3238. main (void)
  3239. {
  3240. ;
  3241. return 0;
  3242. }
  3243. _ACEOF
  3244. if ac_fn_c_try_compile "$LINENO"
  3245. then :
  3246. ac_cv_prog_cc_g=yes
  3247. else case e in #(
  3248. e) CFLAGS=""
  3249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3250. /* end confdefs.h. */
  3251. int
  3252. main (void)
  3253. {
  3254. ;
  3255. return 0;
  3256. }
  3257. _ACEOF
  3258. if ac_fn_c_try_compile "$LINENO"
  3259. then :
  3260. else case e in #(
  3261. e) ac_c_werror_flag=$ac_save_c_werror_flag
  3262. CFLAGS="-g"
  3263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3264. /* end confdefs.h. */
  3265. int
  3266. main (void)
  3267. {
  3268. ;
  3269. return 0;
  3270. }
  3271. _ACEOF
  3272. if ac_fn_c_try_compile "$LINENO"
  3273. then :
  3274. ac_cv_prog_cc_g=yes
  3275. fi
  3276. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3277. esac
  3278. fi
  3279. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3280. esac
  3281. fi
  3282. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3283. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  3284. esac
  3285. fi
  3286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3287. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3288. if test $ac_test_CFLAGS; then
  3289. CFLAGS=$ac_save_CFLAGS
  3290. elif test $ac_cv_prog_cc_g = yes; then
  3291. if test "$GCC" = yes; then
  3292. CFLAGS="-g -O2"
  3293. else
  3294. CFLAGS="-g"
  3295. fi
  3296. else
  3297. if test "$GCC" = yes; then
  3298. CFLAGS="-O2"
  3299. else
  3300. CFLAGS=
  3301. fi
  3302. fi
  3303. ac_prog_cc_stdc=no
  3304. if test x$ac_prog_cc_stdc = xno
  3305. then :
  3306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3307. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3308. if test ${ac_cv_prog_cc_c11+y}
  3309. then :
  3310. printf %s "(cached) " >&6
  3311. else case e in #(
  3312. e) ac_cv_prog_cc_c11=no
  3313. ac_save_CC=$CC
  3314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3315. /* end confdefs.h. */
  3316. $ac_c_conftest_c11_program
  3317. _ACEOF
  3318. for ac_arg in '' -std=gnu11
  3319. do
  3320. CC="$ac_save_CC $ac_arg"
  3321. if ac_fn_c_try_compile "$LINENO"
  3322. then :
  3323. ac_cv_prog_cc_c11=$ac_arg
  3324. fi
  3325. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3326. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3327. done
  3328. rm -f conftest.$ac_ext
  3329. CC=$ac_save_CC ;;
  3330. esac
  3331. fi
  3332. if test "x$ac_cv_prog_cc_c11" = xno
  3333. then :
  3334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3335. printf "%s\n" "unsupported" >&6; }
  3336. else case e in #(
  3337. e) if test "x$ac_cv_prog_cc_c11" = x
  3338. then :
  3339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3340. printf "%s\n" "none needed" >&6; }
  3341. else case e in #(
  3342. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3343. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3344. CC="$CC $ac_cv_prog_cc_c11" ;;
  3345. esac
  3346. fi
  3347. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3348. ac_prog_cc_stdc=c11 ;;
  3349. esac
  3350. fi
  3351. fi
  3352. if test x$ac_prog_cc_stdc = xno
  3353. then :
  3354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3355. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3356. if test ${ac_cv_prog_cc_c99+y}
  3357. then :
  3358. printf %s "(cached) " >&6
  3359. else case e in #(
  3360. e) ac_cv_prog_cc_c99=no
  3361. ac_save_CC=$CC
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. $ac_c_conftest_c99_program
  3365. _ACEOF
  3366. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3367. do
  3368. CC="$ac_save_CC $ac_arg"
  3369. if ac_fn_c_try_compile "$LINENO"
  3370. then :
  3371. ac_cv_prog_cc_c99=$ac_arg
  3372. fi
  3373. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3374. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3375. done
  3376. rm -f conftest.$ac_ext
  3377. CC=$ac_save_CC ;;
  3378. esac
  3379. fi
  3380. if test "x$ac_cv_prog_cc_c99" = xno
  3381. then :
  3382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3383. printf "%s\n" "unsupported" >&6; }
  3384. else case e in #(
  3385. e) if test "x$ac_cv_prog_cc_c99" = x
  3386. then :
  3387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3388. printf "%s\n" "none needed" >&6; }
  3389. else case e in #(
  3390. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3391. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3392. CC="$CC $ac_cv_prog_cc_c99" ;;
  3393. esac
  3394. fi
  3395. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3396. ac_prog_cc_stdc=c99 ;;
  3397. esac
  3398. fi
  3399. fi
  3400. if test x$ac_prog_cc_stdc = xno
  3401. then :
  3402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3403. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3404. if test ${ac_cv_prog_cc_c89+y}
  3405. then :
  3406. printf %s "(cached) " >&6
  3407. else case e in #(
  3408. e) ac_cv_prog_cc_c89=no
  3409. ac_save_CC=$CC
  3410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3411. /* end confdefs.h. */
  3412. $ac_c_conftest_c89_program
  3413. _ACEOF
  3414. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3415. do
  3416. CC="$ac_save_CC $ac_arg"
  3417. if ac_fn_c_try_compile "$LINENO"
  3418. then :
  3419. ac_cv_prog_cc_c89=$ac_arg
  3420. fi
  3421. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3422. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3423. done
  3424. rm -f conftest.$ac_ext
  3425. CC=$ac_save_CC ;;
  3426. esac
  3427. fi
  3428. if test "x$ac_cv_prog_cc_c89" = xno
  3429. then :
  3430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3431. printf "%s\n" "unsupported" >&6; }
  3432. else case e in #(
  3433. e) if test "x$ac_cv_prog_cc_c89" = x
  3434. then :
  3435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3436. printf "%s\n" "none needed" >&6; }
  3437. else case e in #(
  3438. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3439. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3440. CC="$CC $ac_cv_prog_cc_c89" ;;
  3441. esac
  3442. fi
  3443. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3444. ac_prog_cc_stdc=c89 ;;
  3445. esac
  3446. fi
  3447. fi
  3448. ac_ext=c
  3449. ac_cpp='$CPP $CPPFLAGS'
  3450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3453. if test -z "$TEST_CC"; then
  3454. TEST_CC="$CC"
  3455. fi
  3456. if test $host != $build; then
  3457. for ac_prog in gcc cc
  3458. do
  3459. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3460. set dummy $ac_prog; ac_word=$2
  3461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3462. printf %s "checking for $ac_word... " >&6; }
  3463. if test ${ac_cv_prog_BUILD_CC+y}
  3464. then :
  3465. printf %s "(cached) " >&6
  3466. else case e in #(
  3467. e) if test -n "$BUILD_CC"; then
  3468. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  3469. else
  3470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3471. for as_dir in $PATH
  3472. do
  3473. IFS=$as_save_IFS
  3474. case $as_dir in #(((
  3475. '') as_dir=./ ;;
  3476. */) ;;
  3477. *) as_dir=$as_dir/ ;;
  3478. esac
  3479. for ac_exec_ext in '' $ac_executable_extensions; do
  3480. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3481. ac_cv_prog_BUILD_CC="$ac_prog"
  3482. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3483. break 2
  3484. fi
  3485. done
  3486. done
  3487. IFS=$as_save_IFS
  3488. fi ;;
  3489. esac
  3490. fi
  3491. BUILD_CC=$ac_cv_prog_BUILD_CC
  3492. if test -n "$BUILD_CC"; then
  3493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
  3494. printf "%s\n" "$BUILD_CC" >&6; }
  3495. else
  3496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3497. printf "%s\n" "no" >&6; }
  3498. fi
  3499. test -n "$BUILD_CC" && break
  3500. done
  3501. fi
  3502. # On Suns, sometimes $CPP names a directory.
  3503. if test -n "$CPP" && test -d "$CPP"; then
  3504. CPP=
  3505. fi
  3506. if test -z "$CPP"; then
  3507. CPP="$CC -E"
  3508. fi
  3509. # This will get text that should go into config.make.
  3510. config_vars=
  3511. # Check whether --enable-static-c++-tests was given.
  3512. if test ${enable_static_c___tests+y}
  3513. then :
  3514. enableval=$enable_static_c___tests; static_cxx_tests=$enableval
  3515. else case e in #(
  3516. e) static_cxx_tests=yes ;;
  3517. esac
  3518. fi
  3519. config_vars="$config_vars
  3520. static-cxx-tests = $static_cxx_tests"
  3521. # Check whether --enable-static-c++-link-check was given.
  3522. if test ${enable_static_c___link_check+y}
  3523. then :
  3524. enableval=$enable_static_c___link_check; static_cxx_link_check=$enableval
  3525. else case e in #(
  3526. e) static_cxx_link_check=yes ;;
  3527. esac
  3528. fi
  3529. # We need the C++ compiler for testing and libsupport.
  3530. ac_ext=cpp
  3531. ac_cpp='$CXXCPP $CPPFLAGS'
  3532. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3533. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3534. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3535. if test -z "$CXX"; then
  3536. if test -n "$CCC"; then
  3537. CXX=$CCC
  3538. else
  3539. if test -n "$ac_tool_prefix"; then
  3540. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  3541. do
  3542. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3543. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3545. printf %s "checking for $ac_word... " >&6; }
  3546. if test ${ac_cv_prog_CXX+y}
  3547. then :
  3548. printf %s "(cached) " >&6
  3549. else case e in #(
  3550. e) if test -n "$CXX"; then
  3551. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3552. else
  3553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3554. for as_dir in $PATH
  3555. do
  3556. IFS=$as_save_IFS
  3557. case $as_dir in #(((
  3558. '') as_dir=./ ;;
  3559. */) ;;
  3560. *) as_dir=$as_dir/ ;;
  3561. esac
  3562. for ac_exec_ext in '' $ac_executable_extensions; do
  3563. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3564. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3565. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3566. break 2
  3567. fi
  3568. done
  3569. done
  3570. IFS=$as_save_IFS
  3571. fi ;;
  3572. esac
  3573. fi
  3574. CXX=$ac_cv_prog_CXX
  3575. if test -n "$CXX"; then
  3576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3577. printf "%s\n" "$CXX" >&6; }
  3578. else
  3579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3580. printf "%s\n" "no" >&6; }
  3581. fi
  3582. test -n "$CXX" && break
  3583. done
  3584. fi
  3585. if test -z "$CXX"; then
  3586. ac_ct_CXX=$CXX
  3587. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  3588. do
  3589. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3590. set dummy $ac_prog; ac_word=$2
  3591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3592. printf %s "checking for $ac_word... " >&6; }
  3593. if test ${ac_cv_prog_ac_ct_CXX+y}
  3594. then :
  3595. printf %s "(cached) " >&6
  3596. else case e in #(
  3597. e) if test -n "$ac_ct_CXX"; then
  3598. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3599. else
  3600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3601. for as_dir in $PATH
  3602. do
  3603. IFS=$as_save_IFS
  3604. case $as_dir in #(((
  3605. '') as_dir=./ ;;
  3606. */) ;;
  3607. *) as_dir=$as_dir/ ;;
  3608. esac
  3609. for ac_exec_ext in '' $ac_executable_extensions; do
  3610. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3611. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3612. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3613. break 2
  3614. fi
  3615. done
  3616. done
  3617. IFS=$as_save_IFS
  3618. fi ;;
  3619. esac
  3620. fi
  3621. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3622. if test -n "$ac_ct_CXX"; then
  3623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3624. printf "%s\n" "$ac_ct_CXX" >&6; }
  3625. else
  3626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3627. printf "%s\n" "no" >&6; }
  3628. fi
  3629. test -n "$ac_ct_CXX" && break
  3630. done
  3631. if test "x$ac_ct_CXX" = x; then
  3632. CXX="g++"
  3633. else
  3634. case $cross_compiling:$ac_tool_warned in
  3635. yes:)
  3636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3637. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3638. ac_tool_warned=yes ;;
  3639. esac
  3640. CXX=$ac_ct_CXX
  3641. fi
  3642. fi
  3643. fi
  3644. fi
  3645. # Provide some information about the compiler.
  3646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3647. set X $ac_compile
  3648. ac_compiler=$2
  3649. for ac_option in --version -v -V -qversion; do
  3650. { { ac_try="$ac_compiler $ac_option >&5"
  3651. case "(($ac_try" in
  3652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3653. *) ac_try_echo=$ac_try;;
  3654. esac
  3655. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3656. printf "%s\n" "$ac_try_echo"; } >&5
  3657. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3658. ac_status=$?
  3659. if test -s conftest.err; then
  3660. sed '10a\
  3661. ... rest of stderr output deleted ...
  3662. 10q' conftest.err >conftest.er1
  3663. cat conftest.er1 >&5
  3664. fi
  3665. rm -f conftest.er1 conftest.err
  3666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3667. test $ac_status = 0; }
  3668. done
  3669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  3670. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  3671. if test ${ac_cv_cxx_compiler_gnu+y}
  3672. then :
  3673. printf %s "(cached) " >&6
  3674. else case e in #(
  3675. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3676. /* end confdefs.h. */
  3677. int
  3678. main (void)
  3679. {
  3680. #ifndef __GNUC__
  3681. choke me
  3682. #endif
  3683. ;
  3684. return 0;
  3685. }
  3686. _ACEOF
  3687. if ac_fn_cxx_try_compile "$LINENO"
  3688. then :
  3689. ac_compiler_gnu=yes
  3690. else case e in #(
  3691. e) ac_compiler_gnu=no ;;
  3692. esac
  3693. fi
  3694. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3695. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3696. ;;
  3697. esac
  3698. fi
  3699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3700. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  3701. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3702. if test $ac_compiler_gnu = yes; then
  3703. GXX=yes
  3704. else
  3705. GXX=
  3706. fi
  3707. ac_test_CXXFLAGS=${CXXFLAGS+y}
  3708. ac_save_CXXFLAGS=$CXXFLAGS
  3709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3710. printf %s "checking whether $CXX accepts -g... " >&6; }
  3711. if test ${ac_cv_prog_cxx_g+y}
  3712. then :
  3713. printf %s "(cached) " >&6
  3714. else case e in #(
  3715. e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3716. ac_cxx_werror_flag=yes
  3717. ac_cv_prog_cxx_g=no
  3718. CXXFLAGS="-g"
  3719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3720. /* end confdefs.h. */
  3721. int
  3722. main (void)
  3723. {
  3724. ;
  3725. return 0;
  3726. }
  3727. _ACEOF
  3728. if ac_fn_cxx_try_compile "$LINENO"
  3729. then :
  3730. ac_cv_prog_cxx_g=yes
  3731. else case e in #(
  3732. e) CXXFLAGS=""
  3733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3734. /* end confdefs.h. */
  3735. int
  3736. main (void)
  3737. {
  3738. ;
  3739. return 0;
  3740. }
  3741. _ACEOF
  3742. if ac_fn_cxx_try_compile "$LINENO"
  3743. then :
  3744. else case e in #(
  3745. e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3746. CXXFLAGS="-g"
  3747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3748. /* end confdefs.h. */
  3749. int
  3750. main (void)
  3751. {
  3752. ;
  3753. return 0;
  3754. }
  3755. _ACEOF
  3756. if ac_fn_cxx_try_compile "$LINENO"
  3757. then :
  3758. ac_cv_prog_cxx_g=yes
  3759. fi
  3760. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3761. esac
  3762. fi
  3763. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3764. esac
  3765. fi
  3766. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3767. ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
  3768. esac
  3769. fi
  3770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3771. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  3772. if test $ac_test_CXXFLAGS; then
  3773. CXXFLAGS=$ac_save_CXXFLAGS
  3774. elif test $ac_cv_prog_cxx_g = yes; then
  3775. if test "$GXX" = yes; then
  3776. CXXFLAGS="-g -O2"
  3777. else
  3778. CXXFLAGS="-g"
  3779. fi
  3780. else
  3781. if test "$GXX" = yes; then
  3782. CXXFLAGS="-O2"
  3783. else
  3784. CXXFLAGS=
  3785. fi
  3786. fi
  3787. ac_prog_cxx_stdcxx=no
  3788. if test x$ac_prog_cxx_stdcxx = xno
  3789. then :
  3790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  3791. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  3792. if test ${ac_cv_prog_cxx_cxx11+y}
  3793. then :
  3794. printf %s "(cached) " >&6
  3795. else case e in #(
  3796. e) ac_cv_prog_cxx_cxx11=no
  3797. ac_save_CXX=$CXX
  3798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3799. /* end confdefs.h. */
  3800. $ac_cxx_conftest_cxx11_program
  3801. _ACEOF
  3802. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  3803. do
  3804. CXX="$ac_save_CXX $ac_arg"
  3805. if ac_fn_cxx_try_compile "$LINENO"
  3806. then :
  3807. ac_cv_prog_cxx_cxx11=$ac_arg
  3808. fi
  3809. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3810. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  3811. done
  3812. rm -f conftest.$ac_ext
  3813. CXX=$ac_save_CXX ;;
  3814. esac
  3815. fi
  3816. if test "x$ac_cv_prog_cxx_cxx11" = xno
  3817. then :
  3818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3819. printf "%s\n" "unsupported" >&6; }
  3820. else case e in #(
  3821. e) if test "x$ac_cv_prog_cxx_cxx11" = x
  3822. then :
  3823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3824. printf "%s\n" "none needed" >&6; }
  3825. else case e in #(
  3826. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  3827. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  3828. CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
  3829. esac
  3830. fi
  3831. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  3832. ac_prog_cxx_stdcxx=cxx11 ;;
  3833. esac
  3834. fi
  3835. fi
  3836. if test x$ac_prog_cxx_stdcxx = xno
  3837. then :
  3838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  3839. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  3840. if test ${ac_cv_prog_cxx_cxx98+y}
  3841. then :
  3842. printf %s "(cached) " >&6
  3843. else case e in #(
  3844. e) ac_cv_prog_cxx_cxx98=no
  3845. ac_save_CXX=$CXX
  3846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3847. /* end confdefs.h. */
  3848. $ac_cxx_conftest_cxx98_program
  3849. _ACEOF
  3850. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  3851. do
  3852. CXX="$ac_save_CXX $ac_arg"
  3853. if ac_fn_cxx_try_compile "$LINENO"
  3854. then :
  3855. ac_cv_prog_cxx_cxx98=$ac_arg
  3856. fi
  3857. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3858. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  3859. done
  3860. rm -f conftest.$ac_ext
  3861. CXX=$ac_save_CXX ;;
  3862. esac
  3863. fi
  3864. if test "x$ac_cv_prog_cxx_cxx98" = xno
  3865. then :
  3866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3867. printf "%s\n" "unsupported" >&6; }
  3868. else case e in #(
  3869. e) if test "x$ac_cv_prog_cxx_cxx98" = x
  3870. then :
  3871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3872. printf "%s\n" "none needed" >&6; }
  3873. else case e in #(
  3874. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  3875. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  3876. CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
  3877. esac
  3878. fi
  3879. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  3880. ac_prog_cxx_stdcxx=cxx98 ;;
  3881. esac
  3882. fi
  3883. fi
  3884. ac_ext=c
  3885. ac_cpp='$CPP $CPPFLAGS'
  3886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3889. saved_CXX="$CXX"
  3890. if test -z "$TEST_CXX"; then
  3891. TEST_CXX="$CXX"
  3892. else
  3893. CXX="$TEST_CXX"
  3894. fi
  3895. # It's useless to us if it can't link programs (e.g. missing -lstdc++).
  3896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
  3897. printf %s "checking whether $CXX can link programs... " >&6; }
  3898. if test ${libc_cv_cxx_link_ok+y}
  3899. then :
  3900. printf %s "(cached) " >&6
  3901. else case e in #(
  3902. e) ac_ext=cpp
  3903. ac_cpp='$CXXCPP $CPPFLAGS'
  3904. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3905. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3906. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3907. # Default, dynamic case.
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main (void)
  3912. {
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. if ac_fn_cxx_try_link "$LINENO"
  3918. then :
  3919. libc_cv_cxx_link_ok=yes
  3920. else case e in #(
  3921. e) libc_cv_cxx_link_ok=no ;;
  3922. esac
  3923. fi
  3924. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  3925. conftest$ac_exeext conftest.$ac_ext
  3926. if test $static_cxx_link_check$static_cxx_tests = yesyes; then
  3927. # Static case.
  3928. old_LDFLAGS="$LDFLAGS"
  3929. LDFLAGS="$LDFLAGS -static"
  3930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3931. /* end confdefs.h. */
  3932. #include <iostream>
  3933. int
  3934. main()
  3935. {
  3936. std::cout << "Hello, world!";
  3937. return 0;
  3938. }
  3939. _ACEOF
  3940. if ac_fn_cxx_try_link "$LINENO"
  3941. then :
  3942. else case e in #(
  3943. e) libc_cv_cxx_link_ok=no ;;
  3944. esac
  3945. fi
  3946. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  3947. conftest$ac_exeext conftest.$ac_ext
  3948. LDFLAGS="$old_LDFLAGS"
  3949. fi
  3950. ac_ext=c
  3951. ac_cpp='$CPP $CPPFLAGS'
  3952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3955. ;;
  3956. esac
  3957. fi
  3958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
  3959. printf "%s\n" "$libc_cv_cxx_link_ok" >&6; }
  3960. CXX="$saved_CXX"
  3961. if test $libc_cv_cxx_link_ok != yes
  3962. then :
  3963. CXX=; TEST_CXX=
  3964. fi
  3965. if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
  3966. as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
  3967. fi
  3968. # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
  3969. # Check whether --with-gd was given.
  3970. if test ${with_gd+y}
  3971. then :
  3972. withval=$with_gd; case "$with_gd" in
  3973. yes|''|no) ;;
  3974. *) libgd_include="-I$withval/include"
  3975. libgd_ldflags="-L$withval/lib" ;;
  3976. esac
  3977. fi
  3978. # Check whether --with-gd-include was given.
  3979. if test ${with_gd_include+y}
  3980. then :
  3981. withval=$with_gd_include; case "$with_gd_include" in
  3982. ''|no) ;;
  3983. *) libgd_include="-I$withval" ;;
  3984. esac
  3985. fi
  3986. # Check whether --with-gd-lib was given.
  3987. if test ${with_gd_lib+y}
  3988. then :
  3989. withval=$with_gd_lib; case "$with_gd_lib" in
  3990. ''|no) ;;
  3991. *) libgd_ldflags="-L$withval" ;;
  3992. esac
  3993. fi
  3994. if test -n "$libgd_include"; then
  3995. config_vars="$config_vars
  3996. CFLAGS-memusagestat.c = $libgd_include"
  3997. fi
  3998. if test -n "$libgd_ldflags"; then
  3999. config_vars="$config_vars
  4000. libgd-LDFLAGS = $libgd_ldflags"
  4001. fi
  4002. # Check whether --with-binutils was given.
  4003. if test ${with_binutils+y}
  4004. then :
  4005. withval=$with_binutils; path_binutils=$withval
  4006. else case e in #(
  4007. e) path_binutils='' ;;
  4008. esac
  4009. fi
  4010. # Check whether --with-selinux was given.
  4011. if test ${with_selinux+y}
  4012. then :
  4013. withval=$with_selinux; with_selinux=$withval
  4014. else case e in #(
  4015. e) with_selinux=auto ;;
  4016. esac
  4017. fi
  4018. # Check whether --with-headers was given.
  4019. if test ${with_headers+y}
  4020. then :
  4021. withval=$with_headers; sysheaders=$withval
  4022. else case e in #(
  4023. e) sysheaders='' ;;
  4024. esac
  4025. fi
  4026. # Check whether --with-nonshared-cflags was given.
  4027. if test ${with_nonshared_cflags+y}
  4028. then :
  4029. withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
  4030. else case e in #(
  4031. e) extra_nonshared_cflags= ;;
  4032. esac
  4033. fi
  4034. # Check whether --with-rtld-early-cflags was given.
  4035. if test ${with_rtld_early_cflags+y}
  4036. then :
  4037. withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
  4038. else case e in #(
  4039. e) rtld_early_cflags= ;;
  4040. esac
  4041. fi
  4042. # Check whether --with-timeoutfactor was given.
  4043. if test ${with_timeoutfactor+y}
  4044. then :
  4045. withval=$with_timeoutfactor; timeoutfactor=$withval
  4046. else case e in #(
  4047. e) timeoutfactor=1 ;;
  4048. esac
  4049. fi
  4050. printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
  4051. man_pages_version=6.9.1
  4052. # Check whether --with-man-pages was given.
  4053. if test ${with_man_pages+y}
  4054. then :
  4055. withval=$with_man_pages; man_pages_version=$withval
  4056. fi
  4057. # Check whether --enable-sanity-checks was given.
  4058. if test ${enable_sanity_checks+y}
  4059. then :
  4060. enableval=$enable_sanity_checks; enable_sanity=$enableval
  4061. else case e in #(
  4062. e) enable_sanity=yes ;;
  4063. esac
  4064. fi
  4065. # Check whether --enable-shared was given.
  4066. if test ${enable_shared+y}
  4067. then :
  4068. enableval=$enable_shared; shared=$enableval
  4069. else case e in #(
  4070. e) shared=yes ;;
  4071. esac
  4072. fi
  4073. # Check whether --enable-profile was given.
  4074. if test ${enable_profile+y}
  4075. then :
  4076. enableval=$enable_profile; profile=$enableval
  4077. else case e in #(
  4078. e) profile=no ;;
  4079. esac
  4080. fi
  4081. # Check whether --enable-default-pie was given.
  4082. if test ${enable_default_pie+y}
  4083. then :
  4084. enableval=$enable_default_pie; default_pie=$enableval
  4085. else case e in #(
  4086. e) default_pie=yes ;;
  4087. esac
  4088. fi
  4089. # Check whether --enable-timezone-tools was given.
  4090. if test ${enable_timezone_tools+y}
  4091. then :
  4092. enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
  4093. else case e in #(
  4094. e) enable_timezone_tools=yes ;;
  4095. esac
  4096. fi
  4097. # Check whether --enable-hardcoded-path-in-tests was given.
  4098. if test ${enable_hardcoded_path_in_tests+y}
  4099. then :
  4100. enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
  4101. else case e in #(
  4102. e) hardcoded_path_in_tests=no ;;
  4103. esac
  4104. fi
  4105. # Check whether --enable-hidden-plt was given.
  4106. if test ${enable_hidden_plt+y}
  4107. then :
  4108. enableval=$enable_hidden_plt; hidden=$enableval
  4109. else case e in #(
  4110. e) hidden=yes ;;
  4111. esac
  4112. fi
  4113. if test "x$hidden" = xno; then
  4114. printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
  4115. fi
  4116. # Check whether --enable-bind-now was given.
  4117. if test ${enable_bind_now+y}
  4118. then :
  4119. enableval=$enable_bind_now; bindnow=$enableval
  4120. else case e in #(
  4121. e) bindnow=no ;;
  4122. esac
  4123. fi
  4124. if test "x$bindnow" = xyes; then
  4125. printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
  4126. fi
  4127. # Check whether --enable-stack-protector was given.
  4128. if test ${enable_stack_protector+y}
  4129. then :
  4130. enableval=$enable_stack_protector; enable_stack_protector=$enableval
  4131. else case e in #(
  4132. e) enable_stack_protector=no ;;
  4133. esac
  4134. fi
  4135. case "$enable_stack_protector" in
  4136. all|yes|no|strong) ;;
  4137. *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
  4138. esac
  4139. # Check whether --enable-static-nss was given.
  4140. if test ${enable_static_nss+y}
  4141. then :
  4142. enableval=$enable_static_nss; static_nss=$enableval
  4143. else case e in #(
  4144. e) static_nss=no ;;
  4145. esac
  4146. fi
  4147. if test x"$static_nss" = xyes || test x"$shared" = xno; then
  4148. static_nss=yes
  4149. printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
  4150. fi
  4151. # Check whether --enable-force-install was given.
  4152. if test ${enable_force_install+y}
  4153. then :
  4154. enableval=$enable_force_install; force_install=$enableval
  4155. else case e in #(
  4156. e) force_install=yes ;;
  4157. esac
  4158. fi
  4159. # Check whether --enable-maintainer-mode was given.
  4160. if test ${enable_maintainer_mode+y}
  4161. then :
  4162. enableval=$enable_maintainer_mode; maintainer=$enableval
  4163. else case e in #(
  4164. e) maintainer=no ;;
  4165. esac
  4166. fi
  4167. # Check whether --enable-kernel was given.
  4168. if test ${enable_kernel+y}
  4169. then :
  4170. enableval=$enable_kernel; minimum_kernel=$enableval
  4171. fi
  4172. if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
  4173. # Better nothing than this.
  4174. minimum_kernel=""
  4175. else
  4176. if test "$minimum_kernel" = current; then
  4177. minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
  4178. fi
  4179. fi
  4180. # Check whether --enable-werror was given.
  4181. if test ${enable_werror+y}
  4182. then :
  4183. enableval=$enable_werror; enable_werror=$enableval
  4184. else case e in #(
  4185. e) enable_werror=yes ;;
  4186. esac
  4187. fi
  4188. # Check whether --enable-multi-arch was given.
  4189. if test ${enable_multi_arch+y}
  4190. then :
  4191. enableval=$enable_multi_arch; multi_arch=$enableval
  4192. else case e in #(
  4193. e) multi_arch=default ;;
  4194. esac
  4195. fi
  4196. # Check whether --enable-memory-tagging was given.
  4197. if test ${enable_memory_tagging+y}
  4198. then :
  4199. enableval=$enable_memory_tagging; memory_tagging=$enableval
  4200. else case e in #(
  4201. e) memory_tagging=no ;;
  4202. esac
  4203. fi
  4204. if test "$memory_tagging" = yes; then
  4205. # Only enable this on architectures that support it.
  4206. case $host_cpu in
  4207. aarch64)
  4208. printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
  4209. ;;
  4210. esac
  4211. fi
  4212. # Check whether --enable-systemtap was given.
  4213. if test ${enable_systemtap+y}
  4214. then :
  4215. enableval=$enable_systemtap; systemtap=$enableval
  4216. else case e in #(
  4217. e) systemtap=no ;;
  4218. esac
  4219. fi
  4220. if test "x$systemtap" != xno; then
  4221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
  4222. printf %s "checking for systemtap static probe support... " >&6; }
  4223. if test ${libc_cv_sdt+y}
  4224. then :
  4225. printf %s "(cached) " >&6
  4226. else case e in #(
  4227. e) old_CFLAGS="$CFLAGS"
  4228. CFLAGS="-std=gnu11 $CFLAGS"
  4229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4230. /* end confdefs.h. */
  4231. #include <sys/sdt.h>
  4232. void foo (int i, void *p)
  4233. {
  4234. asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
  4235. :: STAP_PROBE_ASM_OPERANDS (2, i, p));
  4236. }
  4237. _ACEOF
  4238. if ac_fn_c_try_compile "$LINENO"
  4239. then :
  4240. libc_cv_sdt=yes
  4241. else case e in #(
  4242. e) libc_cv_sdt=no ;;
  4243. esac
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4246. CFLAGS="$old_CFLAGS" ;;
  4247. esac
  4248. fi
  4249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
  4250. printf "%s\n" "$libc_cv_sdt" >&6; }
  4251. if test $libc_cv_sdt = yes; then
  4252. printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
  4253. elif test "x$systemtap" != xauto; then
  4254. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4255. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4256. as_fn_error $? "systemtap support needs sys/sdt.h with asm support
  4257. See 'config.log' for more details" "$LINENO" 5; }
  4258. fi
  4259. fi
  4260. # Check whether --enable-build-nscd was given.
  4261. if test ${enable_build_nscd+y}
  4262. then :
  4263. enableval=$enable_build_nscd; build_nscd=$enableval
  4264. else case e in #(
  4265. e) build_nscd=default ;;
  4266. esac
  4267. fi
  4268. # Note the use of $use_nscd is near the bottom of the file.
  4269. # Check whether --enable-nscd was given.
  4270. if test ${enable_nscd+y}
  4271. then :
  4272. enableval=$enable_nscd; use_nscd=$enableval
  4273. else case e in #(
  4274. e) use_nscd=yes ;;
  4275. esac
  4276. fi
  4277. # Check whether --enable-pt_chown was given.
  4278. if test ${enable_pt_chown+y}
  4279. then :
  4280. enableval=$enable_pt_chown; build_pt_chown=$enableval
  4281. else case e in #(
  4282. e) build_pt_chown=no ;;
  4283. esac
  4284. fi
  4285. if test "$build_pt_chown" = yes; then
  4286. printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
  4287. fi
  4288. # The abi-tags file uses a fairly simplistic model for name recognition that
  4289. # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
  4290. # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
  4291. # This doesn't get used much beyond that, so it's fairly safe.
  4292. case "$host_os" in
  4293. linux*)
  4294. ;;
  4295. gnu*)
  4296. host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
  4297. ;;
  4298. esac
  4299. # Check whether --enable-mathvec was given.
  4300. if test ${enable_mathvec+y}
  4301. then :
  4302. enableval=$enable_mathvec; build_mathvec=$enableval
  4303. else case e in #(
  4304. e) build_mathvec=notset ;;
  4305. esac
  4306. fi
  4307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4308. /* end confdefs.h. */
  4309. int
  4310. main (void)
  4311. {
  4312. #ifndef __CET__
  4313. # error no CET compiler support
  4314. #endif
  4315. ;
  4316. return 0;
  4317. }
  4318. _ACEOF
  4319. if ac_fn_c_try_cpp "$LINENO"
  4320. then :
  4321. libc_cv_compiler_default_cet=yes
  4322. else case e in #(
  4323. e) libc_cv_compiler_default_cet=no ;;
  4324. esac
  4325. fi
  4326. rm -f conftest.err conftest.i conftest.$ac_ext
  4327. # Check whether --enable-cet was given.
  4328. if test ${enable_cet+y}
  4329. then :
  4330. enableval=$enable_cet; enable_cet=$enableval
  4331. else case e in #(
  4332. e) enable_cet=$libc_cv_compiler_default_cet ;;
  4333. esac
  4334. fi
  4335. # Check whether --enable-scv was given.
  4336. if test ${enable_scv+y}
  4337. then :
  4338. enableval=$enable_scv; use_scv=$enableval
  4339. else case e in #(
  4340. e) use_scv=yes ;;
  4341. esac
  4342. fi
  4343. if test "$use_scv" != "no"
  4344. then :
  4345. printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
  4346. fi
  4347. # Check whether --enable-fortify-source was given.
  4348. if test ${enable_fortify_source+y}
  4349. then :
  4350. enableval=$enable_fortify_source; enable_fortify_source=$enableval
  4351. else case e in #(
  4352. e) enable_fortify_source=no ;;
  4353. esac
  4354. fi
  4355. case "$enable_fortify_source" in
  4356. 1|2|3|no|yes) ;;
  4357. *) as_fn_error $? "Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
  4358. esac
  4359. # Check whether --enable-sframe was given.
  4360. if test ${enable_sframe+y}
  4361. then :
  4362. enableval=$enable_sframe; use_sframe=$enableval
  4363. else case e in #(
  4364. e) use_sframe=no ;;
  4365. esac
  4366. fi
  4367. # We keep the original values in `$config_*' and never modify them, so we
  4368. # can write them unchanged into config.make. Everything else uses
  4369. # $machine, $vendor, and $os, and changes them whenever convenient.
  4370. config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
  4371. # Don't allow vendor == "unknown"
  4372. test "$config_vendor" = unknown && config_vendor=
  4373. config_os="`echo $config_os | sed 's/^unknown-//'`"
  4374. # Some configurations imply other options.
  4375. elf=yes
  4376. # The configure fragment of a port can modify these to supplement
  4377. # or override the table in the case statement below. No fragment should
  4378. # ever change the config_* variables, however.
  4379. machine=$config_machine
  4380. vendor=$config_vendor
  4381. os=$config_os
  4382. base_os=''
  4383. submachine=
  4384. # Check whether --with-cpu was given.
  4385. if test ${with_cpu+y}
  4386. then :
  4387. withval=$with_cpu; case "$withval" in
  4388. yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
  4389. no) ;;
  4390. *) submachine="$withval" ;;
  4391. esac
  4392. fi
  4393. # An preconfigure script can set this when it wants to disable the sanity
  4394. # check below.
  4395. libc_config_ok=no
  4396. # A preconfigure script for a system that may or may not use fpu
  4397. # sysdeps directories sets this to a preprocessor conditional for
  4398. # whether to use such directories.
  4399. with_fp_cond=1
  4400. # A preconfigure script may define another name to TLS descriptor variant
  4401. mtls_descriptor=gnu2
  4402. # A preconfigure script may define another name to traditional TLS variant
  4403. mtls_traditional=gnu
  4404. if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
  4405. then
  4406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
  4407. printf %s "checking for sysdeps preconfigure fragments... " >&6; }
  4408. for frag in $frags; do
  4409. name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
  4410. echo $ECHO_N "$name $ECHO_C" >&6
  4411. . "$frag"
  4412. done
  4413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  4414. printf "%s\n" "" >&6; }
  4415. fi
  4416. ###
  4417. ### By using the undocumented --enable-hacker-mode option for configure
  4418. ### one can skip this test to make the configuration not fail for unsupported
  4419. ### platforms.
  4420. ###
  4421. if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
  4422. case "$machine-$host_os" in
  4423. *-linux* | *-gnu*)
  4424. ;;
  4425. *)
  4426. as_fn_error $? "
  4427. *** The GNU C library is currently unavailable for this platform.
  4428. *** If you are interested in seeing glibc on this platform visit
  4429. *** the \"How to submit a new port\" in the wiki:
  4430. *** https://sourceware.org/glibc/wiki/#Development
  4431. *** and join the community!" "$LINENO" 5
  4432. ;;
  4433. esac
  4434. fi
  4435. # Set base_machine if not set by a preconfigure fragment.
  4436. test -n "$base_machine" || base_machine=$machine
  4437. ### Locate tools.
  4438. # Find a good install program. We prefer a C program (faster),
  4439. # so one script is as good as another. But avoid the broken or
  4440. # incompatible versions:
  4441. # SysV /etc/install, /usr/sbin/install
  4442. # SunOS /usr/etc/install
  4443. # IRIX /sbin/install
  4444. # AIX /bin/install
  4445. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4446. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4447. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4448. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4449. # OS/2's system install, which has a completely different semantic
  4450. # ./install, which can be erroneously created by make from ./install.sh.
  4451. # Reject install programs that cannot install multiple files.
  4452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4453. printf %s "checking for a BSD-compatible install... " >&6; }
  4454. if test -z "$INSTALL"; then
  4455. if test ${ac_cv_path_install+y}
  4456. then :
  4457. printf %s "(cached) " >&6
  4458. else case e in #(
  4459. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4460. for as_dir in $PATH
  4461. do
  4462. IFS=$as_save_IFS
  4463. case $as_dir in #(((
  4464. '') as_dir=./ ;;
  4465. */) ;;
  4466. *) as_dir=$as_dir/ ;;
  4467. esac
  4468. # Account for fact that we put trailing slashes in our PATH walk.
  4469. case $as_dir in #((
  4470. ./ | /[cC]/* | \
  4471. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4472. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4473. /usr/ucb/* ) ;;
  4474. *)
  4475. # OSF1 and SCO ODT 3.0 have their own names for install.
  4476. # Don't use installbsd from OSF since it installs stuff as root
  4477. # by default.
  4478. for ac_prog in ginstall scoinst install; do
  4479. for ac_exec_ext in '' $ac_executable_extensions; do
  4480. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  4481. if test $ac_prog = install &&
  4482. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4483. # AIX install. It has an incompatible calling convention.
  4484. :
  4485. elif test $ac_prog = install &&
  4486. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4487. # program-specific install script used by HP pwplus--don't use.
  4488. :
  4489. else
  4490. rm -rf conftest.one conftest.two conftest.dir
  4491. echo one > conftest.one
  4492. echo two > conftest.two
  4493. mkdir conftest.dir
  4494. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  4495. test -s conftest.one && test -s conftest.two &&
  4496. test -s conftest.dir/conftest.one &&
  4497. test -s conftest.dir/conftest.two
  4498. then
  4499. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  4500. break 3
  4501. fi
  4502. fi
  4503. fi
  4504. done
  4505. done
  4506. ;;
  4507. esac
  4508. done
  4509. IFS=$as_save_IFS
  4510. rm -rf conftest.one conftest.two conftest.dir
  4511. ;;
  4512. esac
  4513. fi
  4514. if test ${ac_cv_path_install+y}; then
  4515. INSTALL=$ac_cv_path_install
  4516. else
  4517. # As a last resort, use the slow shell script. Don't cache a
  4518. # value for INSTALL within a source directory, because that will
  4519. # break other packages using the cache if that directory is
  4520. # removed, or if the value is a relative name.
  4521. INSTALL=$ac_install_sh
  4522. fi
  4523. fi
  4524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4525. printf "%s\n" "$INSTALL" >&6; }
  4526. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4527. # It thinks the first close brace ends the variable substitution.
  4528. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4529. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4530. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4531. if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
  4532. # The makefiles need to use a different form to find it in $srcdir.
  4533. INSTALL='\$(..)./scripts/install-sh -c'
  4534. fi
  4535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4536. printf %s "checking whether ln -s works... " >&6; }
  4537. LN_S=$as_ln_s
  4538. if test "$LN_S" = "ln -s"; then
  4539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4540. printf "%s\n" "yes" >&6; }
  4541. else
  4542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4543. printf "%s\n" "no, using $LN_S" >&6; }
  4544. fi
  4545. # Was a --with-binutils option given?
  4546. if test -n "$path_binutils"; then
  4547. # Make absolute; ensure a single trailing slash.
  4548. path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
  4549. CC="$CC -B$path_binutils"
  4550. fi
  4551. case "$CC" in
  4552. *fuse-ld=lld*) LDNAME=ld.lld;;
  4553. *) LDNAME=ld;;
  4554. esac
  4555. if test -z "$LD"; then
  4556. LD=`$CC -print-prog-name=$LDNAME`
  4557. fi
  4558. if test -z "$AR"; then
  4559. AR=`$CC -print-prog-name=ar`
  4560. fi
  4561. if test -z "$OBJCOPY"; then
  4562. OBJCOPY=`$CC -print-prog-name=objcopy`
  4563. fi
  4564. if test -z "$GPROF"; then
  4565. GPROF=`$CC -print-prog-name=gprof`
  4566. fi
  4567. if test -z "$READELF"; then
  4568. READELF=`$CC -print-prog-name=readelf`
  4569. fi
  4570. if test -z "$OBJDUMP"; then
  4571. OBJDUMP=`$CC -print-prog-name=objdump`
  4572. fi
  4573. if test -z "$NM"; then
  4574. NM=`$CC -print-prog-name=nm`
  4575. fi
  4576. if test -z "$STRIP"; then
  4577. STRIP=`$CC -print-prog-name=strip`
  4578. fi
  4579. # Accept binutils 2.39 or newer.
  4580. libc_cv_with_lld=no
  4581. case $($LD --version) in
  4582. "GNU gold"*)
  4583. # Accept gold 1.14 or higher
  4584. for ac_prog in $LD
  4585. do
  4586. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4587. set dummy $ac_prog; ac_word=$2
  4588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4589. printf %s "checking for $ac_word... " >&6; }
  4590. if test ${ac_cv_prog_LD+y}
  4591. then :
  4592. printf %s "(cached) " >&6
  4593. else case e in #(
  4594. e) if test -n "$LD"; then
  4595. ac_cv_prog_LD="$LD" # Let the user override the test.
  4596. else
  4597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4598. for as_dir in $PATH
  4599. do
  4600. IFS=$as_save_IFS
  4601. case $as_dir in #(((
  4602. '') as_dir=./ ;;
  4603. */) ;;
  4604. *) as_dir=$as_dir/ ;;
  4605. esac
  4606. for ac_exec_ext in '' $ac_executable_extensions; do
  4607. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4608. ac_cv_prog_LD="$ac_prog"
  4609. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4610. break 2
  4611. fi
  4612. done
  4613. done
  4614. IFS=$as_save_IFS
  4615. fi ;;
  4616. esac
  4617. fi
  4618. LD=$ac_cv_prog_LD
  4619. if test -n "$LD"; then
  4620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4621. printf "%s\n" "$LD" >&6; }
  4622. else
  4623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. printf "%s\n" "no" >&6; }
  4625. fi
  4626. test -n "$LD" && break
  4627. done
  4628. if test -z "$LD"; then
  4629. ac_verc_fail=yes
  4630. else
  4631. # Found it, now check the version.
  4632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
  4633. printf %s "checking version of $LD... " >&6; }
  4634. ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
  4635. case $ac_prog_version in
  4636. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  4637. 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
  4638. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  4639. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  4640. esac
  4641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  4642. printf "%s\n" "$ac_prog_version" >&6; }
  4643. fi
  4644. if test $ac_verc_fail = yes; then
  4645. LD=: critic_missing="$critic_missing GNU gold"
  4646. fi
  4647. ;;
  4648. "LLD"*)
  4649. # Accept LLD 13.0.0 or higher
  4650. for ac_prog in $LD
  4651. do
  4652. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4653. set dummy $ac_prog; ac_word=$2
  4654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4655. printf %s "checking for $ac_word... " >&6; }
  4656. if test ${ac_cv_prog_LD+y}
  4657. then :
  4658. printf %s "(cached) " >&6
  4659. else case e in #(
  4660. e) if test -n "$LD"; then
  4661. ac_cv_prog_LD="$LD" # Let the user override the test.
  4662. else
  4663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4664. for as_dir in $PATH
  4665. do
  4666. IFS=$as_save_IFS
  4667. case $as_dir in #(((
  4668. '') as_dir=./ ;;
  4669. */) ;;
  4670. *) as_dir=$as_dir/ ;;
  4671. esac
  4672. for ac_exec_ext in '' $ac_executable_extensions; do
  4673. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4674. ac_cv_prog_LD="$ac_prog"
  4675. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4676. break 2
  4677. fi
  4678. done
  4679. done
  4680. IFS=$as_save_IFS
  4681. fi ;;
  4682. esac
  4683. fi
  4684. LD=$ac_cv_prog_LD
  4685. if test -n "$LD"; then
  4686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4687. printf "%s\n" "$LD" >&6; }
  4688. else
  4689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4690. printf "%s\n" "no" >&6; }
  4691. fi
  4692. test -n "$LD" && break
  4693. done
  4694. if test -z "$LD"; then
  4695. ac_verc_fail=yes
  4696. else
  4697. # Found it, now check the version.
  4698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
  4699. printf %s "checking version of $LD... " >&6; }
  4700. ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
  4701. case $ac_prog_version in
  4702. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  4703. 1[3-9].*|[2-9][0-9].*)
  4704. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  4705. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  4706. esac
  4707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  4708. printf "%s\n" "$ac_prog_version" >&6; }
  4709. fi
  4710. if test $ac_verc_fail = yes; then
  4711. LD=: critic_missing="$critic_missing LLD"
  4712. fi
  4713. libc_cv_with_lld=yes
  4714. ;;
  4715. *)
  4716. for ac_prog in $LD
  4717. do
  4718. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4719. set dummy $ac_prog; ac_word=$2
  4720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4721. printf %s "checking for $ac_word... " >&6; }
  4722. if test ${ac_cv_prog_LD+y}
  4723. then :
  4724. printf %s "(cached) " >&6
  4725. else case e in #(
  4726. e) if test -n "$LD"; then
  4727. ac_cv_prog_LD="$LD" # Let the user override the test.
  4728. else
  4729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4730. for as_dir in $PATH
  4731. do
  4732. IFS=$as_save_IFS
  4733. case $as_dir in #(((
  4734. '') as_dir=./ ;;
  4735. */) ;;
  4736. *) as_dir=$as_dir/ ;;
  4737. esac
  4738. for ac_exec_ext in '' $ac_executable_extensions; do
  4739. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4740. ac_cv_prog_LD="$ac_prog"
  4741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4742. break 2
  4743. fi
  4744. done
  4745. done
  4746. IFS=$as_save_IFS
  4747. fi ;;
  4748. esac
  4749. fi
  4750. LD=$ac_cv_prog_LD
  4751. if test -n "$LD"; then
  4752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4753. printf "%s\n" "$LD" >&6; }
  4754. else
  4755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4756. printf "%s\n" "no" >&6; }
  4757. fi
  4758. test -n "$LD" && break
  4759. done
  4760. if test -z "$LD"; then
  4761. ac_verc_fail=yes
  4762. else
  4763. # Found it, now check the version.
  4764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
  4765. printf %s "checking version of $LD... " >&6; }
  4766. ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
  4767. case $ac_prog_version in
  4768. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  4769. 2.[1-9][0-9][0-9]*|2.39*|2.[4-9][0-9]*|[3-9].*|[1-9][0-9]*)
  4770. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  4771. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  4772. esac
  4773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  4774. printf "%s\n" "$ac_prog_version" >&6; }
  4775. fi
  4776. if test $ac_verc_fail = yes; then
  4777. LD=: critic_missing="$critic_missing GNU ld"
  4778. fi
  4779. ;;
  4780. esac
  4781. config_vars="$config_vars
  4782. with-lld = $libc_cv_with_lld"
  4783. # These programs are version sensitive.
  4784. for ac_prog in gnumake gmake make
  4785. do
  4786. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4787. set dummy $ac_prog; ac_word=$2
  4788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4789. printf %s "checking for $ac_word... " >&6; }
  4790. if test ${ac_cv_prog_MAKE+y}
  4791. then :
  4792. printf %s "(cached) " >&6
  4793. else case e in #(
  4794. e) if test -n "$MAKE"; then
  4795. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  4796. else
  4797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4798. for as_dir in $PATH
  4799. do
  4800. IFS=$as_save_IFS
  4801. case $as_dir in #(((
  4802. '') as_dir=./ ;;
  4803. */) ;;
  4804. *) as_dir=$as_dir/ ;;
  4805. esac
  4806. for ac_exec_ext in '' $ac_executable_extensions; do
  4807. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4808. ac_cv_prog_MAKE="$ac_prog"
  4809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4810. break 2
  4811. fi
  4812. done
  4813. done
  4814. IFS=$as_save_IFS
  4815. fi ;;
  4816. esac
  4817. fi
  4818. MAKE=$ac_cv_prog_MAKE
  4819. if test -n "$MAKE"; then
  4820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  4821. printf "%s\n" "$MAKE" >&6; }
  4822. else
  4823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4824. printf "%s\n" "no" >&6; }
  4825. fi
  4826. test -n "$MAKE" && break
  4827. done
  4828. if test -z "$MAKE"; then
  4829. ac_verc_fail=yes
  4830. else
  4831. # Found it, now check the version.
  4832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
  4833. printf %s "checking version of $MAKE... " >&6; }
  4834. ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
  4835. case $ac_prog_version in
  4836. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  4837. [4-9].* | [1-9][0-9]*)
  4838. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  4839. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  4840. esac
  4841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  4842. printf "%s\n" "$ac_prog_version" >&6; }
  4843. fi
  4844. if test $ac_verc_fail = yes; then
  4845. critic_missing="$critic_missing make"
  4846. fi
  4847. for ac_prog in gnumsgfmt gmsgfmt msgfmt
  4848. do
  4849. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4850. set dummy $ac_prog; ac_word=$2
  4851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4852. printf %s "checking for $ac_word... " >&6; }
  4853. if test ${ac_cv_prog_MSGFMT+y}
  4854. then :
  4855. printf %s "(cached) " >&6
  4856. else case e in #(
  4857. e) if test -n "$MSGFMT"; then
  4858. ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
  4859. else
  4860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4861. for as_dir in $PATH
  4862. do
  4863. IFS=$as_save_IFS
  4864. case $as_dir in #(((
  4865. '') as_dir=./ ;;
  4866. */) ;;
  4867. *) as_dir=$as_dir/ ;;
  4868. esac
  4869. for ac_exec_ext in '' $ac_executable_extensions; do
  4870. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4871. ac_cv_prog_MSGFMT="$ac_prog"
  4872. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4873. break 2
  4874. fi
  4875. done
  4876. done
  4877. IFS=$as_save_IFS
  4878. fi ;;
  4879. esac
  4880. fi
  4881. MSGFMT=$ac_cv_prog_MSGFMT
  4882. if test -n "$MSGFMT"; then
  4883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  4884. printf "%s\n" "$MSGFMT" >&6; }
  4885. else
  4886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4887. printf "%s\n" "no" >&6; }
  4888. fi
  4889. test -n "$MSGFMT" && break
  4890. done
  4891. if test -z "$MSGFMT"; then
  4892. ac_verc_fail=yes
  4893. else
  4894. # Found it, now check the version.
  4895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
  4896. printf %s "checking version of $MSGFMT... " >&6; }
  4897. ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  4898. case $ac_prog_version in
  4899. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  4900. 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
  4901. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  4902. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  4903. esac
  4904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  4905. printf "%s\n" "$ac_prog_version" >&6; }
  4906. fi
  4907. if test $ac_verc_fail = yes; then
  4908. MSGFMT=: aux_missing="$aux_missing msgfmt"
  4909. fi
  4910. for ac_prog in makeinfo
  4911. do
  4912. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4913. set dummy $ac_prog; ac_word=$2
  4914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4915. printf %s "checking for $ac_word... " >&6; }
  4916. if test ${ac_cv_prog_MAKEINFO+y}
  4917. then :
  4918. printf %s "(cached) " >&6
  4919. else case e in #(
  4920. e) if test -n "$MAKEINFO"; then
  4921. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  4922. else
  4923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4924. for as_dir in $PATH
  4925. do
  4926. IFS=$as_save_IFS
  4927. case $as_dir in #(((
  4928. '') as_dir=./ ;;
  4929. */) ;;
  4930. *) as_dir=$as_dir/ ;;
  4931. esac
  4932. for ac_exec_ext in '' $ac_executable_extensions; do
  4933. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4934. ac_cv_prog_MAKEINFO="$ac_prog"
  4935. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4936. break 2
  4937. fi
  4938. done
  4939. done
  4940. IFS=$as_save_IFS
  4941. fi ;;
  4942. esac
  4943. fi
  4944. MAKEINFO=$ac_cv_prog_MAKEINFO
  4945. if test -n "$MAKEINFO"; then
  4946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  4947. printf "%s\n" "$MAKEINFO" >&6; }
  4948. else
  4949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4950. printf "%s\n" "no" >&6; }
  4951. fi
  4952. test -n "$MAKEINFO" && break
  4953. done
  4954. if test -z "$MAKEINFO"; then
  4955. ac_verc_fail=yes
  4956. else
  4957. # Found it, now check the version.
  4958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
  4959. printf %s "checking version of $MAKEINFO... " >&6; }
  4960. ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  4961. case $ac_prog_version in
  4962. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  4963. 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
  4964. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  4965. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  4966. esac
  4967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  4968. printf "%s\n" "$ac_prog_version" >&6; }
  4969. fi
  4970. if test $ac_verc_fail = yes; then
  4971. MAKEINFO=: aux_missing="$aux_missing makeinfo"
  4972. fi
  4973. for ac_prog in sed
  4974. do
  4975. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4976. set dummy $ac_prog; ac_word=$2
  4977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4978. printf %s "checking for $ac_word... " >&6; }
  4979. if test ${ac_cv_prog_SED+y}
  4980. then :
  4981. printf %s "(cached) " >&6
  4982. else case e in #(
  4983. e) if test -n "$SED"; then
  4984. ac_cv_prog_SED="$SED" # Let the user override the test.
  4985. else
  4986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4987. for as_dir in $PATH
  4988. do
  4989. IFS=$as_save_IFS
  4990. case $as_dir in #(((
  4991. '') as_dir=./ ;;
  4992. */) ;;
  4993. *) as_dir=$as_dir/ ;;
  4994. esac
  4995. for ac_exec_ext in '' $ac_executable_extensions; do
  4996. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4997. ac_cv_prog_SED="$ac_prog"
  4998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4999. break 2
  5000. fi
  5001. done
  5002. done
  5003. IFS=$as_save_IFS
  5004. fi ;;
  5005. esac
  5006. fi
  5007. SED=$ac_cv_prog_SED
  5008. if test -n "$SED"; then
  5009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  5010. printf "%s\n" "$SED" >&6; }
  5011. else
  5012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5013. printf "%s\n" "no" >&6; }
  5014. fi
  5015. test -n "$SED" && break
  5016. done
  5017. if test -z "$SED"; then
  5018. ac_verc_fail=yes
  5019. else
  5020. # Found it, now check the version.
  5021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
  5022. printf %s "checking version of $SED... " >&6; }
  5023. ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  5024. case $ac_prog_version in
  5025. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  5026. 3.0[2-9]*|3.[1-9]*|[4-9]*)
  5027. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  5028. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  5029. esac
  5030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  5031. printf "%s\n" "$ac_prog_version" >&6; }
  5032. fi
  5033. if test $ac_verc_fail = yes; then
  5034. SED=: aux_missing="$aux_missing sed"
  5035. fi
  5036. for ac_prog in gawk
  5037. do
  5038. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5039. set dummy $ac_prog; ac_word=$2
  5040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5041. printf %s "checking for $ac_word... " >&6; }
  5042. if test ${ac_cv_prog_AWK+y}
  5043. then :
  5044. printf %s "(cached) " >&6
  5045. else case e in #(
  5046. e) if test -n "$AWK"; then
  5047. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5048. else
  5049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5050. for as_dir in $PATH
  5051. do
  5052. IFS=$as_save_IFS
  5053. case $as_dir in #(((
  5054. '') as_dir=./ ;;
  5055. */) ;;
  5056. *) as_dir=$as_dir/ ;;
  5057. esac
  5058. for ac_exec_ext in '' $ac_executable_extensions; do
  5059. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5060. ac_cv_prog_AWK="$ac_prog"
  5061. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5062. break 2
  5063. fi
  5064. done
  5065. done
  5066. IFS=$as_save_IFS
  5067. fi ;;
  5068. esac
  5069. fi
  5070. AWK=$ac_cv_prog_AWK
  5071. if test -n "$AWK"; then
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5073. printf "%s\n" "$AWK" >&6; }
  5074. else
  5075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5076. printf "%s\n" "no" >&6; }
  5077. fi
  5078. test -n "$AWK" && break
  5079. done
  5080. if test -z "$AWK"; then
  5081. ac_verc_fail=yes
  5082. else
  5083. # Found it, now check the version.
  5084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
  5085. printf %s "checking version of $AWK... " >&6; }
  5086. ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
  5087. case $ac_prog_version in
  5088. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  5089. 3.1.[2-9]*|3.[2-9]*|[4-9]*)
  5090. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  5091. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  5092. esac
  5093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  5094. printf "%s\n" "$ac_prog_version" >&6; }
  5095. fi
  5096. if test $ac_verc_fail = yes; then
  5097. critic_missing="$critic_missing gawk"
  5098. fi
  5099. for ac_prog in bison
  5100. do
  5101. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5102. set dummy $ac_prog; ac_word=$2
  5103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5104. printf %s "checking for $ac_word... " >&6; }
  5105. if test ${ac_cv_prog_BISON+y}
  5106. then :
  5107. printf %s "(cached) " >&6
  5108. else case e in #(
  5109. e) if test -n "$BISON"; then
  5110. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  5111. else
  5112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5113. for as_dir in $PATH
  5114. do
  5115. IFS=$as_save_IFS
  5116. case $as_dir in #(((
  5117. '') as_dir=./ ;;
  5118. */) ;;
  5119. *) as_dir=$as_dir/ ;;
  5120. esac
  5121. for ac_exec_ext in '' $ac_executable_extensions; do
  5122. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5123. ac_cv_prog_BISON="$ac_prog"
  5124. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5125. break 2
  5126. fi
  5127. done
  5128. done
  5129. IFS=$as_save_IFS
  5130. fi ;;
  5131. esac
  5132. fi
  5133. BISON=$ac_cv_prog_BISON
  5134. if test -n "$BISON"; then
  5135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  5136. printf "%s\n" "$BISON" >&6; }
  5137. else
  5138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5139. printf "%s\n" "no" >&6; }
  5140. fi
  5141. test -n "$BISON" && break
  5142. done
  5143. if test -z "$BISON"; then
  5144. ac_verc_fail=yes
  5145. else
  5146. # Found it, now check the version.
  5147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
  5148. printf %s "checking version of $BISON... " >&6; }
  5149. ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
  5150. case $ac_prog_version in
  5151. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  5152. 2.7*|[3-9].*|[1-9][0-9]*)
  5153. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  5154. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  5155. esac
  5156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  5157. printf "%s\n" "$ac_prog_version" >&6; }
  5158. fi
  5159. if test $ac_verc_fail = yes; then
  5160. critic_missing="$critic_missing bison"
  5161. fi
  5162. # Require GCC 12.1 to build.
  5163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
  5164. printf %s "checking if $CC is sufficient to build libc... " >&6; }
  5165. if test ${libc_cv_compiler_ok+y}
  5166. then :
  5167. printf %s "(cached) " >&6
  5168. else case e in #(
  5169. e)
  5170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5171. /* end confdefs.h. */
  5172. int
  5173. main (void)
  5174. {
  5175. #if (!defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)) && (!defined __clang__ || __clang_major__ < 18)
  5176. #error insufficient compiler
  5177. #endif
  5178. ;
  5179. return 0;
  5180. }
  5181. _ACEOF
  5182. if ac_fn_c_try_cpp "$LINENO"
  5183. then :
  5184. libc_cv_compiler_ok=yes
  5185. else case e in #(
  5186. e) libc_cv_compiler_ok=no ;;
  5187. esac
  5188. fi
  5189. rm -f conftest.err conftest.i conftest.$ac_ext ;;
  5190. esac
  5191. fi
  5192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
  5193. printf "%s\n" "$libc_cv_compiler_ok" >&6; }
  5194. if test $libc_cv_compiler_ok != yes
  5195. then :
  5196. critic_missing="$critic_missing compiler"
  5197. fi
  5198. if test "x$maintainer" = "xyes"; then
  5199. for ac_prog in autoconf
  5200. do
  5201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5202. set dummy $ac_prog; ac_word=$2
  5203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5204. printf %s "checking for $ac_word... " >&6; }
  5205. if test ${ac_cv_prog_AUTOCONF+y}
  5206. then :
  5207. printf %s "(cached) " >&6
  5208. else case e in #(
  5209. e) if test -n "$AUTOCONF"; then
  5210. ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
  5211. else
  5212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5213. for as_dir in $PATH
  5214. do
  5215. IFS=$as_save_IFS
  5216. case $as_dir in #(((
  5217. '') as_dir=./ ;;
  5218. */) ;;
  5219. *) as_dir=$as_dir/ ;;
  5220. esac
  5221. for ac_exec_ext in '' $ac_executable_extensions; do
  5222. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5223. ac_cv_prog_AUTOCONF="$ac_prog"
  5224. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5225. break 2
  5226. fi
  5227. done
  5228. done
  5229. IFS=$as_save_IFS
  5230. fi ;;
  5231. esac
  5232. fi
  5233. AUTOCONF=$ac_cv_prog_AUTOCONF
  5234. if test -n "$AUTOCONF"; then
  5235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  5236. printf "%s\n" "$AUTOCONF" >&6; }
  5237. else
  5238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5239. printf "%s\n" "no" >&6; }
  5240. fi
  5241. test -n "$AUTOCONF" && break
  5242. done
  5243. test -n "$AUTOCONF" || AUTOCONF="no"
  5244. case "x$AUTOCONF" in
  5245. xno|x|x:) AUTOCONF=no ;;
  5246. *)
  5247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
  5248. printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
  5249. if test ${libc_cv_autoconf_works+y}
  5250. then :
  5251. printf %s "(cached) " >&6
  5252. else case e in #(
  5253. e) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
  5254. libc_cv_autoconf_works=yes
  5255. else
  5256. libc_cv_autoconf_works=no
  5257. fi ;;
  5258. esac
  5259. fi
  5260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
  5261. printf "%s\n" "$libc_cv_autoconf_works" >&6; }
  5262. test $libc_cv_autoconf_works = yes || AUTOCONF=no
  5263. ;;
  5264. esac
  5265. if test "x$AUTOCONF" = xno; then
  5266. aux_missing="$aux_missing autoconf"
  5267. fi
  5268. else
  5269. AUTOCONF=no
  5270. fi
  5271. # Check for python3 if available, or else python.
  5272. for ac_prog in python3 python
  5273. do
  5274. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5275. set dummy $ac_prog; ac_word=$2
  5276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5277. printf %s "checking for $ac_word... " >&6; }
  5278. if test ${ac_cv_prog_PYTHON_PROG+y}
  5279. then :
  5280. printf %s "(cached) " >&6
  5281. else case e in #(
  5282. e) if test -n "$PYTHON_PROG"; then
  5283. ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
  5284. else
  5285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5286. for as_dir in $PATH
  5287. do
  5288. IFS=$as_save_IFS
  5289. case $as_dir in #(((
  5290. '') as_dir=./ ;;
  5291. */) ;;
  5292. *) as_dir=$as_dir/ ;;
  5293. esac
  5294. for ac_exec_ext in '' $ac_executable_extensions; do
  5295. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5296. ac_cv_prog_PYTHON_PROG="$ac_prog"
  5297. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5298. break 2
  5299. fi
  5300. done
  5301. done
  5302. IFS=$as_save_IFS
  5303. fi ;;
  5304. esac
  5305. fi
  5306. PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
  5307. if test -n "$PYTHON_PROG"; then
  5308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
  5309. printf "%s\n" "$PYTHON_PROG" >&6; }
  5310. else
  5311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5312. printf "%s\n" "no" >&6; }
  5313. fi
  5314. test -n "$PYTHON_PROG" && break
  5315. done
  5316. if test -z "$PYTHON_PROG"; then
  5317. ac_verc_fail=yes
  5318. else
  5319. # Found it, now check the version.
  5320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
  5321. printf %s "checking version of $PYTHON_PROG... " >&6; }
  5322. ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
  5323. case $ac_prog_version in
  5324. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  5325. 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
  5326. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  5327. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  5328. esac
  5329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  5330. printf "%s\n" "$ac_prog_version" >&6; }
  5331. fi
  5332. if test $ac_verc_fail = yes; then
  5333. critic_missing="$critic_missing python"
  5334. fi
  5335. PYTHON="$PYTHON_PROG -B"
  5336. test -n "$critic_missing" && as_fn_error $? "
  5337. *** These critical programs are missing or too old:$critic_missing
  5338. *** Check the INSTALL file for required versions." "$LINENO" 5
  5339. test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
  5340. *** These auxiliary programs are missing or incompatible versions:$aux_missing
  5341. *** some features or tests will be disabled.
  5342. *** Check the INSTALL file for required versions." >&5
  5343. printf "%s\n" "$as_me: WARNING:
  5344. *** These auxiliary programs are missing or incompatible versions:$aux_missing
  5345. *** some features or tests will be disabled.
  5346. *** Check the INSTALL file for required versions." >&2;}
  5347. # Determine whether to use fpu or nofpu sysdeps directories.
  5348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
  5349. printf %s "checking for use of fpu sysdeps directories... " >&6; }
  5350. if test ${libc_cv_with_fp+y}
  5351. then :
  5352. printf %s "(cached) " >&6
  5353. else case e in #(
  5354. e) cat > conftest.c <<EOF
  5355. #if $with_fp_cond
  5356. int dummy;
  5357. #else
  5358. # error "no hardware floating point"
  5359. #endif
  5360. EOF
  5361. libc_cv_with_fp=no
  5362. if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
  5363. 1>&5 2>&5 ; then
  5364. libc_cv_with_fp=yes
  5365. fi
  5366. rm -f conftest* ;;
  5367. esac
  5368. fi
  5369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
  5370. printf "%s\n" "$libc_cv_with_fp" >&6; }
  5371. conftest_code="
  5372. #ifndef __clang__
  5373. #error Not Clang!
  5374. #endif
  5375. "
  5376. cat > conftest.c <<EOF
  5377. $conftest_code
  5378. EOF
  5379. saved_CC="$CC"
  5380. CC="$TEST_CC"
  5381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in testing" >&5
  5382. printf %s "checking for clang in testing... " >&6; }
  5383. if test ${libc_cv_test_clang+y}
  5384. then :
  5385. printf %s "(cached) " >&6
  5386. else case e in #(
  5387. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c -o conftest 1>&5'
  5388. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5389. (eval $ac_try) 2>&5
  5390. ac_status=$?
  5391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5392. test $ac_status = 0; }; }
  5393. then
  5394. libc_cv_test_clang=yes
  5395. else
  5396. libc_cv_test_clang=no
  5397. fi ;;
  5398. esac
  5399. fi
  5400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clang" >&5
  5401. printf "%s\n" "$libc_cv_test_clang" >&6; }
  5402. CC="$saved_CC"
  5403. rm -f conftest*
  5404. config_vars="$config_vars
  5405. have-test-clang = $libc_cv_test_clang"
  5406. cat > conftest.cc <<EOF
  5407. $conftest_code
  5408. EOF
  5409. saved_CXX="$CXX"
  5410. CXX="$TEST_CXX"
  5411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang++ in testing" >&5
  5412. printf %s "checking for clang++ in testing... " >&6; }
  5413. if test ${libc_cv_test_clangxx+y}
  5414. then :
  5415. printf %s "(cached) " >&6
  5416. else case e in #(
  5417. e) if { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc -o conftest 1>&5'
  5418. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5419. (eval $ac_try) 2>&5
  5420. ac_status=$?
  5421. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5422. test $ac_status = 0; }; }
  5423. then
  5424. libc_cv_test_clangxx=yes
  5425. else
  5426. libc_cv_test_clangxx=no
  5427. fi ;;
  5428. esac
  5429. fi
  5430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clangxx" >&5
  5431. printf "%s\n" "$libc_cv_test_clangxx" >&6; }
  5432. CXX="$saved_CXX"
  5433. rm -f conftest*
  5434. config_vars="$config_vars
  5435. have-test-clangxx = $libc_cv_test_clangxx"
  5436. if test "$libc_cv_test_clang" = "yes"; then
  5437. conftest_code="
  5438. #if __clang_major__ > 19
  5439. #error clang version > 19
  5440. #endif
  5441. "
  5442. cat > conftest.c <<EOF
  5443. $conftest_code
  5444. EOF
  5445. saved_CC="$CC"
  5446. CC="$TEST_CC"
  5447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in testing" >&5
  5448. printf %s "checking for clang in testing... " >&6; }
  5449. if test ${libc_cv_test_clang_19_or_less+y}
  5450. then :
  5451. printf %s "(cached) " >&6
  5452. else case e in #(
  5453. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c -o conftest 1>&5'
  5454. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5455. (eval $ac_try) 2>&5
  5456. ac_status=$?
  5457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5458. test $ac_status = 0; }; }
  5459. then
  5460. libc_cv_test_clang_19_or_less=yes
  5461. else
  5462. libc_cv_test_clang_19_or_less=no
  5463. fi ;;
  5464. esac
  5465. fi
  5466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clang_19_or_less" >&5
  5467. printf "%s\n" "$libc_cv_test_clang_19_or_less" >&6; }
  5468. CC="$saved_CC"
  5469. rm -f conftest*
  5470. fi
  5471. config_vars="$config_vars
  5472. have-test-clang-19-or-less = $libc_cv_test_clang_19_or_less"
  5473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
  5474. printf %s "checking for -fstack-protector... " >&6; }
  5475. if test ${libc_cv_ssp+y}
  5476. then :
  5477. printf %s "(cached) " >&6
  5478. else case e in #(
  5479. e) if { ac_try='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
  5480. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5481. (eval $ac_try) 2>&5
  5482. ac_status=$?
  5483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5484. test $ac_status = 0; }; }
  5485. then :
  5486. libc_cv_ssp=yes
  5487. else case e in #(
  5488. e) libc_cv_ssp=no ;;
  5489. esac
  5490. fi ;;
  5491. esac
  5492. fi
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
  5494. printf "%s\n" "$libc_cv_ssp" >&6; }
  5495. if test "$TEST_CC" = "$CC"; then
  5496. libc_cv_test_ssp=$libc_cv_ssp
  5497. else
  5498. saved_CC="$CC"
  5499. CC="$TEST_CC"
  5500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector in testing" >&5
  5501. printf %s "checking for -fstack-protector in testing... " >&6; }
  5502. if test ${libc_cv_test_ssp+y}
  5503. then :
  5504. printf %s "(cached) " >&6
  5505. else case e in #(
  5506. e) if { ac_try='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
  5507. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5508. (eval $ac_try) 2>&5
  5509. ac_status=$?
  5510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5511. test $ac_status = 0; }; }
  5512. then :
  5513. libc_cv_test_ssp=yes
  5514. else case e in #(
  5515. e) libc_cv_test_ssp=no ;;
  5516. esac
  5517. fi ;;
  5518. esac
  5519. fi
  5520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_ssp" >&5
  5521. printf "%s\n" "$libc_cv_test_ssp" >&6; }
  5522. CC="$saved_CC"
  5523. fi
  5524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
  5525. printf %s "checking for -fstack-protector-strong... " >&6; }
  5526. if test ${libc_cv_ssp_strong+y}
  5527. then :
  5528. printf %s "(cached) " >&6
  5529. else case e in #(
  5530. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
  5531. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5532. (eval $ac_try) 2>&5
  5533. ac_status=$?
  5534. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5535. test $ac_status = 0; }; }
  5536. then :
  5537. libc_cv_ssp_strong=yes
  5538. else case e in #(
  5539. e) libc_cv_ssp_strong=no ;;
  5540. esac
  5541. fi
  5542. ;;
  5543. esac
  5544. fi
  5545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
  5546. printf "%s\n" "$libc_cv_ssp_strong" >&6; }
  5547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
  5548. printf %s "checking for -fstack-protector-all... " >&6; }
  5549. if test ${libc_cv_ssp_all+y}
  5550. then :
  5551. printf %s "(cached) " >&6
  5552. else case e in #(
  5553. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
  5554. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5555. (eval $ac_try) 2>&5
  5556. ac_status=$?
  5557. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5558. test $ac_status = 0; }; }
  5559. then :
  5560. libc_cv_ssp_all=yes
  5561. else case e in #(
  5562. e) libc_cv_ssp_all=no ;;
  5563. esac
  5564. fi
  5565. ;;
  5566. esac
  5567. fi
  5568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
  5569. printf "%s\n" "$libc_cv_ssp_all" >&6; }
  5570. stack_protector=
  5571. no_stack_protector=
  5572. if test "$libc_cv_ssp" = yes; then
  5573. no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
  5574. printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
  5575. fi
  5576. if test "$libc_cv_test_ssp" = yes; then
  5577. printf "%s\n" "#define HAVE_TEST_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
  5578. fi
  5579. if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
  5580. stack_protector="-fstack-protector"
  5581. printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
  5582. elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
  5583. stack_protector="-fstack-protector-all"
  5584. printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
  5585. elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
  5586. stack_protector="-fstack-protector-strong"
  5587. printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
  5588. else
  5589. stack_protector="-fno-stack-protector"
  5590. printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
  5591. fi
  5592. if test -n "$stack_protector"; then
  5593. no_ssp=-fno-stack-protector
  5594. else
  5595. no_ssp=
  5596. if test "$enable_stack_protector" != no; then
  5597. as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
  5598. fi
  5599. fi
  5600. # For the multi-arch option we need support in the assembler & linker.
  5601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
  5602. printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
  5603. if test ${libc_cv_ld_gnu_indirect_function+y}
  5604. then :
  5605. printf %s "(cached) " >&6
  5606. else case e in #(
  5607. e) cat > conftest.S <<EOF
  5608. .type foo,%gnu_indirect_function
  5609. foo:
  5610. .globl _start
  5611. _start:
  5612. .globl __start
  5613. __start:
  5614. .data
  5615. #ifdef _LP64
  5616. .quad foo
  5617. #else
  5618. .long foo
  5619. #endif
  5620. EOF
  5621. libc_cv_ld_gnu_indirect_function=no
  5622. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  5623. -nostartfiles -nostdlib $no_ssp \
  5624. -o conftest conftest.S 1>&5 2>&5; then
  5625. # Do a link to see if the backend supports IFUNC relocs.
  5626. $READELF -r conftest 1>&5
  5627. LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
  5628. libc_cv_ld_gnu_indirect_function=yes
  5629. }
  5630. fi
  5631. rm -f conftest* ;;
  5632. esac
  5633. fi
  5634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
  5635. printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; }
  5636. # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
  5637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
  5638. printf %s "checking for gcc attribute ifunc support... " >&6; }
  5639. if test ${libc_cv_gcc_indirect_function+y}
  5640. then :
  5641. printf %s "(cached) " >&6
  5642. else case e in #(
  5643. e) cat > conftest.c <<EOF
  5644. extern int func (int);
  5645. int used_func (int a)
  5646. {
  5647. return a;
  5648. }
  5649. static void *resolver ()
  5650. {
  5651. return &used_func;
  5652. }
  5653. extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
  5654. EOF
  5655. libc_cv_gcc_indirect_function=no
  5656. if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
  5657. 2>&5 ; then
  5658. if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
  5659. libc_cv_gcc_indirect_function=yes
  5660. fi
  5661. fi
  5662. rm -f conftest* ;;
  5663. esac
  5664. fi
  5665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
  5666. printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; }
  5667. # Check if linker supports textrel relocation with ifunc (used on elf/tests).
  5668. # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
  5669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
  5670. printf %s "checking whether the linker supports textrels along with ifunc... " >&6; }
  5671. if test ${libc_cv_textrel_ifunc+y}
  5672. then :
  5673. printf %s "(cached) " >&6
  5674. else case e in #(
  5675. e) cat > conftest.S <<EOF
  5676. .type foo,%gnu_indirect_function
  5677. foo:
  5678. .globl _start
  5679. _start:
  5680. .globl __start
  5681. __start:
  5682. .data
  5683. #ifdef _LP64
  5684. .quad foo
  5685. #else
  5686. .long foo
  5687. #endif
  5688. .text
  5689. .globl address
  5690. address:
  5691. #ifdef _LP64
  5692. .quad address
  5693. #else
  5694. .long address
  5695. #endif
  5696. EOF
  5697. libc_cv_textrel_ifunc=no
  5698. if test $libc_cv_ld_gnu_indirect_function = yes; then
  5699. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
  5700. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5701. (eval $ac_try) 2>&5
  5702. ac_status=$?
  5703. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5704. test $ac_status = 0; }; }; then
  5705. libc_cv_textrel_ifunc=yes
  5706. fi
  5707. fi
  5708. rm -f conftest* ;;
  5709. esac
  5710. fi
  5711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
  5712. printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
  5713. # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
  5714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
  5715. printf %s "checking for GNU attribute retain support... " >&6; }
  5716. if test ${libc_cv_gnu_retain+y}
  5717. then :
  5718. printf %s "(cached) " >&6
  5719. else case e in #(
  5720. e) cat > conftest.c <<EOF
  5721. static int var __attribute__ ((used, retain, section ("__libc_atexit")));
  5722. EOF
  5723. libc_cv_gnu_retain=no
  5724. if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \
  5725. 2>&5 ; then
  5726. libc_cv_gnu_retain=yes
  5727. fi
  5728. rm -f conftest* ;;
  5729. esac
  5730. fi
  5731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
  5732. printf "%s\n" "$libc_cv_gnu_retain" >&6; }
  5733. if test $libc_cv_gnu_retain = yes; then
  5734. printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
  5735. fi
  5736. config_vars="$config_vars
  5737. have-gnu-retain = $libc_cv_gnu_retain"
  5738. # Check if gcc warns about alias for function with incompatible types.
  5739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
  5740. printf %s "checking if compiler warns about alias for function with incompatible types... " >&6; }
  5741. if test ${libc_cv_gcc_incompatible_alias+y}
  5742. then :
  5743. printf %s "(cached) " >&6
  5744. else case e in #(
  5745. e) cat > conftest.c <<EOF
  5746. int __redirect_foo (const void *s, int c);
  5747. __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
  5748. __typeof (__redirect_foo) *foo_impl (void)
  5749. {
  5750. return 0;
  5751. }
  5752. extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
  5753. EOF
  5754. libc_cv_gcc_incompatible_alias=yes
  5755. if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
  5756. libc_cv_gcc_incompatible_alias=no
  5757. fi
  5758. rm -f conftest* ;;
  5759. esac
  5760. fi
  5761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
  5762. printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; }
  5763. if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
  5764. if test x"$multi_arch" = xyes; then
  5765. as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
  5766. else
  5767. multi_arch=no
  5768. fi
  5769. fi
  5770. if test x"$libc_cv_gcc_indirect_function" != xyes; then
  5771. # GCC 8+ emits a warning for alias with incompatible types and it might
  5772. # fail to build ifunc resolvers aliases to either weak or internal
  5773. # symbols. Disables multiarch build in this case.
  5774. if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
  5775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
  5776. printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
  5777. if test x"$multi_arch" = xyes; then
  5778. as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
  5779. fi
  5780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
  5781. printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;}
  5782. multi_arch=no
  5783. elif test x"$multi_arch" = xyes; then
  5784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
  5785. Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
  5786. printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
  5787. Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
  5788. fi
  5789. fi
  5790. multi_arch_d=
  5791. if test x"$multi_arch" != xno; then
  5792. multi_arch_d=/multiarch
  5793. fi
  5794. # Compute the list of sysdep directories for this configuration.
  5795. # This can take a while to compute.
  5796. sysdep_dir=$srcdir/sysdeps
  5797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
  5798. printf %s "checking sysdep dirs... " >&6; }
  5799. # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
  5800. os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
  5801. test "x$base_os" != x || case "$os" in
  5802. gnu*)
  5803. base_os=mach/hurd ;;
  5804. linux*)
  5805. base_os=unix/sysv ;;
  5806. esac
  5807. # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
  5808. tail=$os
  5809. ostry=$os
  5810. while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
  5811. ostry="$ostry /$o"
  5812. tail=$o
  5813. done
  5814. o=`echo $tail | sed 's/[0-9]*$//'`
  5815. if test $o != $tail; then
  5816. ostry="$ostry /$o"
  5817. fi
  5818. # For linux-gnu, try linux-gnu, then linux.
  5819. o=`echo $tail | sed 's/-.*$//'`
  5820. if test $o != $tail; then
  5821. ostry="$ostry /$o"
  5822. fi
  5823. # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
  5824. base=
  5825. tail=$base_os
  5826. while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
  5827. set $b
  5828. base="$base /$1"
  5829. tail="$2"
  5830. done
  5831. # For sparc/sparc32, try sparc/sparc32 and then sparc.
  5832. mach=
  5833. tail=$machine${submachine:+/$submachine}
  5834. while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
  5835. set $m
  5836. # Prepend the machine's FPU directory unless the architecture specific
  5837. # preconfigure disables it.
  5838. if test "$libc_cv_with_fp" = yes; then
  5839. maybe_fpu=/fpu
  5840. else
  5841. maybe_fpu=/nofpu
  5842. fi
  5843. # For each machine term, try it with and then without /multiarch.
  5844. for try_fpu in $maybe_fpu ''; do
  5845. for try_multi in $multi_arch_d ''; do
  5846. mach="$mach /$1$try_fpu$try_multi"
  5847. done
  5848. done
  5849. tail="$2"
  5850. done
  5851. # Find what sysdep directories exist.
  5852. sysnames=
  5853. for b in $base ''; do
  5854. for m0 in $mach ''; do
  5855. for v in /$vendor ''; do
  5856. test "$v" = / && continue
  5857. for o in /$ostry ''; do
  5858. test "$o" = / && continue
  5859. for m in $mach ''; do
  5860. try_suffix="$m0$b$v$o$m"
  5861. if test -n "$try_suffix"; then
  5862. try_srcdir="${srcdir}/"
  5863. try="sysdeps$try_suffix"
  5864. test -n "$enable_debug_configure" &&
  5865. echo "$0 DEBUG: try $try" >&2
  5866. if test -d "$try_srcdir$try"; then
  5867. sysnames="$sysnames $try"
  5868. { test -n "$o" || test -n "$b"; } && os_used=t
  5869. { test -n "$m" || test -n "$m0"; } && machine_used=t
  5870. case x${m0:-$m} in
  5871. x*/$submachine) submachine_used=t ;;
  5872. esac
  5873. fi
  5874. fi
  5875. done
  5876. done
  5877. done
  5878. done
  5879. done
  5880. # If the assembler supports gnu_indirect_function symbol type and the
  5881. # architecture supports multi-arch, we enable multi-arch by default.
  5882. case $sysnames in
  5883. *"$multi_arch_d"*)
  5884. ;;
  5885. *)
  5886. test x"$multi_arch" = xdefault && multi_arch=no
  5887. ;;
  5888. esac
  5889. if test x"$multi_arch" != xno; then
  5890. printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
  5891. fi
  5892. if test -z "$os_used" && test "$os" != none; then
  5893. as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
  5894. fi
  5895. if test -z "$machine_used" && test "$machine" != none; then
  5896. as_fn_error $? "The $machine is not supported." "$LINENO" 5
  5897. fi
  5898. if test -z "$submachine_used" && test -n "$submachine"; then
  5899. as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
  5900. fi
  5901. # We have now validated the configuration.
  5902. # Expand the list of system names into a full list of directories
  5903. # from each element's parent name and Implies file (if present).
  5904. set $sysnames
  5905. names=
  5906. while test $# -gt 0; do
  5907. name=$1
  5908. shift
  5909. case " $names " in *" $name "*)
  5910. # Already in the list.
  5911. continue
  5912. esac
  5913. # Report each name as we discover it, so there is no long pause in output.
  5914. echo $ECHO_N "$name $ECHO_C" >&6
  5915. name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
  5916. case $name in
  5917. /*) xsrcdir= ;;
  5918. *) xsrcdir=$srcdir/ ;;
  5919. esac
  5920. test -n "$enable_debug_configure" &&
  5921. echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
  5922. for implies_file in Implies Implies-before Implies-after; do
  5923. implies_type=`echo $implies_file | sed s/-/_/`
  5924. eval ${implies_type}=
  5925. if test -f $xsrcdir$name/$implies_file; then
  5926. # Collect more names from the `Implies' file (removing comments).
  5927. implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
  5928. for x in $implied_candidate; do
  5929. found=no
  5930. if test -d $xsrcdir$name_base/$x; then
  5931. eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
  5932. found=yes
  5933. fi
  5934. try="sysdeps/$x"
  5935. try_srcdir=$srcdir/
  5936. test -n "$enable_debug_configure" &&
  5937. echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
  5938. if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
  5939. then
  5940. eval "${implies_type}=\"\$${implies_type} \$try\""
  5941. found=yes
  5942. fi
  5943. if test $found = no; then
  5944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
  5945. printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
  5946. fi
  5947. done
  5948. fi
  5949. done
  5950. # Add NAME to the list of names.
  5951. names="$names $name"
  5952. # Find the parent of NAME, using the empty string if it has none.
  5953. parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
  5954. test -n "$enable_debug_configure" &&
  5955. echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
  5956. Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
  5957. # Add the names implied by NAME, and NAME's parent (if it has one), to
  5958. # the list of names to be processed (the argument list). We prepend the
  5959. # implied names to the list and append the parent. We want implied
  5960. # directories to come before further directories inferred from the
  5961. # configuration components; this ensures that for sysv4, unix/common
  5962. # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
  5963. # after sysv4).
  5964. sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
  5965. test -n "$sysnames" && set $sysnames
  5966. done
  5967. # Add the default directories.
  5968. default_sysnames="sysdeps/generic"
  5969. sysnames="$names $default_sysnames"
  5970. # The other names were emitted during the scan.
  5971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
  5972. printf "%s\n" "$default_sysnames" >&6; }
  5973. # if using special system headers, find out the compiler's sekrit
  5974. # header directory and add that to the list. NOTE: Only does the right
  5975. # thing on a system that doesn't need fixincludes. (Not presently a problem.)
  5976. if test -n "$sysheaders"; then
  5977. SYSINCLUDES=-nostdinc
  5978. for d in include include-fixed; do
  5979. i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
  5980. SYSINCLUDES="$SYSINCLUDES -isystem $i"
  5981. done
  5982. SYSINCLUDES="$SYSINCLUDES \
  5983. -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
  5984. if test -n "$CXX"; then
  5985. CXX_SYSINCLUDES=
  5986. for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
  5987. | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
  5988. test "x$cxxheaders" != x &&
  5989. CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
  5990. done
  5991. fi
  5992. fi
  5993. # Obtain some C++ header file paths. This is used to make a local
  5994. # copy of those headers in Makerules.
  5995. if test -n "$TEST_CXX"; then
  5996. saved_CXX="$CXX"
  5997. CXX="$TEST_CXX"
  5998. find_cxx_header () {
  5999. echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
  6000. | $AWK '$1 == "."{print $2}'
  6001. }
  6002. CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
  6003. CXX_CMATH_HEADER="$(find_cxx_header cmath)"
  6004. CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
  6005. CXX="$saved_CXX"
  6006. fi
  6007. # Test if LD_LIBRARY_PATH contains the notation for the current directory
  6008. # since this would lead to problems installing/building glibc.
  6009. # LD_LIBRARY_PATH contains the current directory if one of the following
  6010. # is true:
  6011. # - one of the terminals (":" and ";") is the first or last sign
  6012. # - two terminals occur directly after each other
  6013. # - the path contains an element with a dot in it
  6014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
  6015. printf %s "checking LD_LIBRARY_PATH variable... " >&6; }
  6016. case ${LD_LIBRARY_PATH} in
  6017. [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
  6018. ld_library_path_setting="contains current directory"
  6019. ;;
  6020. *)
  6021. ld_library_path_setting="ok"
  6022. ;;
  6023. esac
  6024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
  6025. printf "%s\n" "$ld_library_path_setting" >&6; }
  6026. if test "$ld_library_path_setting" != "ok"; then
  6027. as_fn_error $? "
  6028. *** LD_LIBRARY_PATH shouldn't contain the current directory when
  6029. *** building glibc. Please change the environment variable
  6030. *** and run configure again." "$LINENO" 5
  6031. fi
  6032. # Extract the first word of "bash", so it can be a program name with args.
  6033. set dummy bash; ac_word=$2
  6034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6035. printf %s "checking for $ac_word... " >&6; }
  6036. if test ${ac_cv_path_BASH_SHELL+y}
  6037. then :
  6038. printf %s "(cached) " >&6
  6039. else case e in #(
  6040. e) case $BASH_SHELL in
  6041. [\\/]* | ?:[\\/]*)
  6042. ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
  6043. ;;
  6044. *)
  6045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6046. for as_dir in $PATH
  6047. do
  6048. IFS=$as_save_IFS
  6049. case $as_dir in #(((
  6050. '') as_dir=./ ;;
  6051. */) ;;
  6052. *) as_dir=$as_dir/ ;;
  6053. esac
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6056. ac_cv_path_BASH_SHELL="$as_dir$ac_word$ac_exec_ext"
  6057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
  6064. ;;
  6065. esac ;;
  6066. esac
  6067. fi
  6068. BASH_SHELL=$ac_cv_path_BASH_SHELL
  6069. if test -n "$BASH_SHELL"; then
  6070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
  6071. printf "%s\n" "$BASH_SHELL" >&6; }
  6072. else
  6073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6074. printf "%s\n" "no" >&6; }
  6075. fi
  6076. # Extract the first word of "perl", so it can be a program name with args.
  6077. set dummy perl; ac_word=$2
  6078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6079. printf %s "checking for $ac_word... " >&6; }
  6080. if test ${ac_cv_path_PERL+y}
  6081. then :
  6082. printf %s "(cached) " >&6
  6083. else case e in #(
  6084. e) case $PERL in
  6085. [\\/]* | ?:[\\/]*)
  6086. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  6087. ;;
  6088. *)
  6089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6090. for as_dir in $PATH
  6091. do
  6092. IFS=$as_save_IFS
  6093. case $as_dir in #(((
  6094. '') as_dir=./ ;;
  6095. */) ;;
  6096. *) as_dir=$as_dir/ ;;
  6097. esac
  6098. for ac_exec_ext in '' $ac_executable_extensions; do
  6099. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6100. ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
  6101. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6102. break 2
  6103. fi
  6104. done
  6105. done
  6106. IFS=$as_save_IFS
  6107. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  6108. ;;
  6109. esac ;;
  6110. esac
  6111. fi
  6112. PERL=$ac_cv_path_PERL
  6113. if test -n "$PERL"; then
  6114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  6115. printf "%s\n" "$PERL" >&6; }
  6116. else
  6117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6118. printf "%s\n" "no" >&6; }
  6119. fi
  6120. if test "$PERL" != no &&
  6121. (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
  6122. PERL=no
  6123. fi
  6124. # Extract the first word of "install-info", so it can be a program name with args.
  6125. set dummy install-info; ac_word=$2
  6126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6127. printf %s "checking for $ac_word... " >&6; }
  6128. if test ${ac_cv_path_INSTALL_INFO+y}
  6129. then :
  6130. printf %s "(cached) " >&6
  6131. else case e in #(
  6132. e) case $INSTALL_INFO in
  6133. [\\/]* | ?:[\\/]*)
  6134. ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
  6135. ;;
  6136. *)
  6137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6138. as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
  6139. for as_dir in $as_dummy
  6140. do
  6141. IFS=$as_save_IFS
  6142. case $as_dir in #(((
  6143. '') as_dir=./ ;;
  6144. */) ;;
  6145. *) as_dir=$as_dir/ ;;
  6146. esac
  6147. for ac_exec_ext in '' $ac_executable_extensions; do
  6148. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6149. ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext"
  6150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6151. break 2
  6152. fi
  6153. done
  6154. done
  6155. IFS=$as_save_IFS
  6156. test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
  6157. ;;
  6158. esac ;;
  6159. esac
  6160. fi
  6161. INSTALL_INFO=$ac_cv_path_INSTALL_INFO
  6162. if test -n "$INSTALL_INFO"; then
  6163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
  6164. printf "%s\n" "$INSTALL_INFO" >&6; }
  6165. else
  6166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6167. printf "%s\n" "no" >&6; }
  6168. fi
  6169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
  6170. printf %s "checking for .set assembler directive... " >&6; }
  6171. if test ${libc_cv_asm_set_directive+y}
  6172. then :
  6173. printf %s "(cached) " >&6
  6174. else case e in #(
  6175. e) cat > conftest.s <<EOF
  6176. .text
  6177. foo:
  6178. .set glibc_conftest_frobozz,foo
  6179. .globl glibc_conftest_frobozz
  6180. EOF
  6181. # The alpha-dec-osf1 assembler gives only a warning for `.set'
  6182. # (but it doesn't work), so we must do a linking check to be sure.
  6183. cat > conftest1.c <<\EOF
  6184. extern int glibc_conftest_frobozz;
  6185. void _start() { glibc_conftest_frobozz = 1; }
  6186. EOF
  6187. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  6188. -nostartfiles -nostdlib $no_ssp \
  6189. -o conftest conftest.s conftest1.c 1>&5 2>&5; then
  6190. libc_cv_asm_set_directive=yes
  6191. else
  6192. libc_cv_asm_set_directive=no
  6193. fi
  6194. rm -f conftest* ;;
  6195. esac
  6196. fi
  6197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
  6198. printf "%s\n" "$libc_cv_asm_set_directive" >&6; }
  6199. if test $libc_cv_asm_set_directive = yes; then
  6200. printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
  6201. fi
  6202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
  6203. printf %s "checking linker support for protected data symbol... " >&6; }
  6204. if test ${libc_cv_protected_data+y}
  6205. then :
  6206. printf %s "(cached) " >&6
  6207. else case e in #(
  6208. e) cat > conftest.c <<EOF
  6209. int bar __attribute__ ((visibility ("protected"))) = 1;
  6210. EOF
  6211. libc_cv_protected_data=no
  6212. if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
  6213. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6214. (eval $ac_try) 2>&5
  6215. ac_status=$?
  6216. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6217. test $ac_status = 0; }; }; then
  6218. cat > conftest.c <<EOF
  6219. extern int bar;
  6220. int main (void) { return bar; }
  6221. EOF
  6222. if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
  6223. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6224. (eval $ac_try) 2>&5
  6225. ac_status=$?
  6226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6227. test $ac_status = 0; }; }; then
  6228. libc_cv_protected_data=yes
  6229. fi
  6230. fi
  6231. rm -f conftest.*
  6232. ;;
  6233. esac
  6234. fi
  6235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
  6236. printf "%s\n" "$libc_cv_protected_data" >&6; }
  6237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
  6238. printf %s "checking linker support for INSERT in linker script... " >&6; }
  6239. if test ${libc_cv_insert+y}
  6240. then :
  6241. printf %s "(cached) " >&6
  6242. else case e in #(
  6243. e) cat > conftest.c <<EOF
  6244. int __attribute__ ((section(".bar"))) bar = 0x12345678;
  6245. int test (void) { return bar; }
  6246. EOF
  6247. cat > conftest.t <<EOF
  6248. SECTIONS
  6249. {
  6250. .bar : { *(.bar) }
  6251. }
  6252. INSERT AFTER .rela.dyn;
  6253. EOF
  6254. libc_cv_insert=no
  6255. if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
  6256. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6257. (eval $ac_try) 2>&5
  6258. ac_status=$?
  6259. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6260. test $ac_status = 0; }; }; then
  6261. libc_cv_insert=yes
  6262. fi
  6263. rm -f conftest.*
  6264. ;;
  6265. esac
  6266. fi
  6267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
  6268. printf "%s\n" "$libc_cv_insert" >&6; }
  6269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
  6270. printf %s "checking for broken __attribute__((alias()))... " >&6; }
  6271. if test ${libc_cv_broken_alias_attribute+y}
  6272. then :
  6273. printf %s "(cached) " >&6
  6274. else case e in #(
  6275. e) cat > conftest.c <<EOF
  6276. extern int foo (int x) __asm ("xyzzy");
  6277. int bar (int x) { return x; }
  6278. extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
  6279. extern int dfoo;
  6280. extern __typeof (dfoo) dfoo __asm ("abccb");
  6281. int dfoo = 1;
  6282. EOF
  6283. libc_cv_broken_alias_attribute=yes
  6284. if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
  6285. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6286. (eval $ac_try) 2>&5
  6287. ac_status=$?
  6288. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6289. test $ac_status = 0; }; }; then
  6290. if grep 'xyzzy' conftest.s >/dev/null &&
  6291. grep 'abccb' conftest.s >/dev/null; then
  6292. libc_cv_broken_alias_attribute=no
  6293. fi
  6294. fi
  6295. rm -f conftest.c conftest.s
  6296. ;;
  6297. esac
  6298. fi
  6299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
  6300. printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; }
  6301. if test $libc_cv_broken_alias_attribute = yes; then
  6302. as_fn_error $? "working alias attribute support required" "$LINENO" 5
  6303. fi
  6304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
  6305. printf %s "checking whether to put _rtld_local into .sdata section... " >&6; }
  6306. if test ${libc_cv_have_sdata_section+y}
  6307. then :
  6308. printf %s "(cached) " >&6
  6309. else case e in #(
  6310. e) echo "int i;" > conftest.c
  6311. libc_cv_have_sdata_section=no
  6312. if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
  6313. | grep '\.sdata' >/dev/null; then
  6314. libc_cv_have_sdata_section=yes
  6315. fi
  6316. rm -f conftest.c conftest.so
  6317. ;;
  6318. esac
  6319. fi
  6320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
  6321. printf "%s\n" "$libc_cv_have_sdata_section" >&6; }
  6322. if test $libc_cv_have_sdata_section = yes; then
  6323. printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
  6324. fi
  6325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
  6326. printf %s "checking for libunwind-support in compiler... " >&6; }
  6327. if test ${libc_cv_cc_with_libunwind+y}
  6328. then :
  6329. printf %s "(cached) " >&6
  6330. else case e in #(
  6331. e)
  6332. cat > conftest.c <<EOF
  6333. int main (void) { return 0; }
  6334. EOF
  6335. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
  6336. conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
  6337. libc_cv_cc_with_libunwind=yes
  6338. else
  6339. libc_cv_cc_with_libunwind=no
  6340. fi
  6341. rm -f conftest* ;;
  6342. esac
  6343. fi
  6344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
  6345. printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; }
  6346. if test $libc_cv_cc_with_libunwind = yes; then
  6347. printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
  6348. fi
  6349. ASFLAGS_config=
  6350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
  6351. printf %s "checking whether --noexecstack is desirable for .S files... " >&6; }
  6352. if test ${libc_cv_as_noexecstack+y}
  6353. then :
  6354. printf %s "(cached) " >&6
  6355. else case e in #(
  6356. e) cat > conftest.c <<EOF
  6357. void foo (void) { }
  6358. EOF
  6359. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
  6360. -S -o conftest.s conftest.c 1>&5'
  6361. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6362. (eval $ac_try) 2>&5
  6363. ac_status=$?
  6364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6365. test $ac_status = 0; }; } \
  6366. && grep .note.GNU-stack conftest.s >/dev/null \
  6367. && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
  6368. -c -o conftest.o conftest.s 1>&5'
  6369. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6370. (eval $ac_try) 2>&5
  6371. ac_status=$?
  6372. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6373. test $ac_status = 0; }; }
  6374. then
  6375. libc_cv_as_noexecstack=yes
  6376. else
  6377. libc_cv_as_noexecstack=no
  6378. fi
  6379. rm -f conftest* ;;
  6380. esac
  6381. fi
  6382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
  6383. printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
  6384. if test $libc_cv_as_noexecstack = yes; then
  6385. ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
  6386. fi
  6387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-error-execstack" >&5
  6388. printf %s "checking for linker that supports --no-error-execstack... " >&6; }
  6389. libc_linker_feature=no
  6390. cat > conftest.c <<EOF
  6391. int _start (void) { return 42; }
  6392. EOF
  6393. saved_CC="$CC"
  6394. CC="$TEST_CC"
  6395. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
  6396. -Wl,--no-error-execstack -nostdlib -nostartfiles
  6397. -fPIC -shared -o conftest.so conftest.c
  6398. 1>&5'
  6399. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6400. (eval $ac_try) 2>&5
  6401. ac_status=$?
  6402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6403. test $ac_status = 0; }; }
  6404. then
  6405. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-error-execstack -nostdlib \
  6406. -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
  6407. | grep "warning: --no-error-execstack ignored" > /dev/null 2>&1; then
  6408. true
  6409. else
  6410. libc_linker_feature=yes
  6411. fi
  6412. fi
  6413. rm -f conftest*
  6414. if test $libc_linker_feature = yes; then
  6415. libc_cv_test_no_error_execstack=yes
  6416. else
  6417. libc_cv_test_no_error_execstack=no
  6418. fi
  6419. CC="$saved_CC"
  6420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
  6421. printf "%s\n" "$libc_linker_feature" >&6; }
  6422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
  6423. printf %s "checking for linker that supports -z execstack... " >&6; }
  6424. libc_linker_feature=no
  6425. cat > conftest.c <<EOF
  6426. int _start (void) { return 42; }
  6427. EOF
  6428. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
  6429. -Wl,-z,execstack -nostdlib -nostartfiles
  6430. -fPIC -shared -o conftest.so conftest.c
  6431. 1>&5'
  6432. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6433. (eval $ac_try) 2>&5
  6434. ac_status=$?
  6435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6436. test $ac_status = 0; }; }
  6437. then
  6438. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \
  6439. -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
  6440. | grep "warning: -z execstack ignored" > /dev/null 2>&1; then
  6441. true
  6442. else
  6443. libc_linker_feature=yes
  6444. fi
  6445. fi
  6446. rm -f conftest*
  6447. if test $libc_linker_feature = yes; then
  6448. libc_cv_z_execstack=yes
  6449. else
  6450. libc_cv_z_execstack=no
  6451. fi
  6452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
  6453. printf "%s\n" "$libc_linker_feature" >&6; }
  6454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
  6455. printf %s "checking for linker that supports -z start-stop-gc... " >&6; }
  6456. libc_linker_feature=no
  6457. cat > conftest.c <<EOF
  6458. int _start (void) { return 42; }
  6459. EOF
  6460. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
  6461. -Wl,-z,start-stop-gc -nostdlib -nostartfiles
  6462. -fPIC -shared -o conftest.so conftest.c
  6463. 1>&5'
  6464. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6465. (eval $ac_try) 2>&5
  6466. ac_status=$?
  6467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6468. test $ac_status = 0; }; }
  6469. then
  6470. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \
  6471. -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
  6472. | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then
  6473. true
  6474. else
  6475. libc_linker_feature=yes
  6476. fi
  6477. fi
  6478. rm -f conftest*
  6479. if test $libc_linker_feature = yes; then
  6480. libc_cv_z_start_stop_gc=yes
  6481. else
  6482. libc_cv_z_start_stop_gc=no
  6483. fi
  6484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
  6485. printf "%s\n" "$libc_linker_feature" >&6; }
  6486. config_vars="$config_vars
  6487. have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
  6488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
  6489. printf %s "checking for linker that supports --depaudit... " >&6; }
  6490. libc_linker_feature=no
  6491. cat > conftest.c <<EOF
  6492. int _start (void) { return 42; }
  6493. EOF
  6494. saved_CC="$CC"
  6495. CC="$TEST_CC"
  6496. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
  6497. -Wl,--depaudit,x -nostdlib -nostartfiles
  6498. -fPIC -shared -o conftest.so conftest.c
  6499. 1>&5'
  6500. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6501. (eval $ac_try) 2>&5
  6502. ac_status=$?
  6503. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6504. test $ac_status = 0; }; }
  6505. then
  6506. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \
  6507. -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
  6508. | grep "warning: --depaudit ignored" > /dev/null 2>&1; then
  6509. true
  6510. else
  6511. libc_linker_feature=yes
  6512. fi
  6513. fi
  6514. rm -f conftest*
  6515. if test $libc_linker_feature = yes; then
  6516. libc_cv_test_depaudit=yes
  6517. else
  6518. libc_cv_test_depaudit=no
  6519. fi
  6520. CC="$saved_CC"
  6521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
  6522. printf "%s\n" "$libc_linker_feature" >&6; }
  6523. config_vars="$config_vars
  6524. have-depaudit = $libc_cv_test_depaudit"
  6525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
  6526. printf %s "checking for linker that supports -z pack-relative-relocs... " >&6; }
  6527. libc_linker_feature=no
  6528. cat > conftest.c <<EOF
  6529. int _start (void) { return 42; }
  6530. EOF
  6531. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
  6532. -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
  6533. -fPIC -shared -o conftest.so conftest.c
  6534. 1>&5'
  6535. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6536. (eval $ac_try) 2>&5
  6537. ac_status=$?
  6538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6539. test $ac_status = 0; }; }
  6540. then
  6541. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \
  6542. -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
  6543. | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then
  6544. true
  6545. else
  6546. libc_linker_feature=yes
  6547. fi
  6548. fi
  6549. rm -f conftest*
  6550. if test $libc_linker_feature = yes; then
  6551. libc_cv_dt_relr=yes
  6552. else
  6553. libc_cv_dt_relr=no
  6554. fi
  6555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
  6556. printf "%s\n" "$libc_linker_feature" >&6; }
  6557. config_vars="$config_vars
  6558. have-dt-relr = $libc_cv_dt_relr"
  6559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
  6560. printf %s "checking for linker that supports --no-dynamic-linker... " >&6; }
  6561. libc_linker_feature=no
  6562. cat > conftest.c <<EOF
  6563. int _start (void) { return 42; }
  6564. EOF
  6565. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
  6566. -Wl,--no-dynamic-linker -nostdlib -nostartfiles
  6567. -fPIC -shared -o conftest.so conftest.c
  6568. 1>&5'
  6569. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6570. (eval $ac_try) 2>&5
  6571. ac_status=$?
  6572. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6573. test $ac_status = 0; }; }
  6574. then
  6575. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
  6576. -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
  6577. | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then
  6578. true
  6579. else
  6580. libc_linker_feature=yes
  6581. fi
  6582. fi
  6583. rm -f conftest*
  6584. if test $libc_linker_feature = yes; then
  6585. libc_cv_no_dynamic_linker=yes
  6586. else
  6587. libc_cv_no_dynamic_linker=no
  6588. fi
  6589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
  6590. printf "%s\n" "$libc_linker_feature" >&6; }
  6591. config_vars="$config_vars
  6592. have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
  6593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
  6594. printf %s "checking for -static-pie... " >&6; }
  6595. if test ${libc_cv_static_pie+y}
  6596. then :
  6597. printf %s "(cached) " >&6
  6598. else case e in #(
  6599. e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
  6600. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6601. (eval $ac_try) 2>&5
  6602. ac_status=$?
  6603. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6604. test $ac_status = 0; }; }
  6605. then :
  6606. libc_cv_static_pie=yes
  6607. else case e in #(
  6608. e) libc_cv_static_pie=no ;;
  6609. esac
  6610. fi ;;
  6611. esac
  6612. fi
  6613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
  6614. printf "%s\n" "$libc_cv_static_pie" >&6; }
  6615. if test "$TEST_CC" = "$CC"; then
  6616. libc_cv_test_static_pie=$libc_cv_static_pie
  6617. else
  6618. saved_CC="$CC"
  6619. CC="$TEST_CC"
  6620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie in testing" >&5
  6621. printf %s "checking for -static-pie in testing... " >&6; }
  6622. if test ${libc_cv_test_static_pie+y}
  6623. then :
  6624. printf %s "(cached) " >&6
  6625. else case e in #(
  6626. e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
  6627. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6628. (eval $ac_try) 2>&5
  6629. ac_status=$?
  6630. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6631. test $ac_status = 0; }; }
  6632. then :
  6633. libc_cv_test_static_pie=yes
  6634. else case e in #(
  6635. e) libc_cv_test_static_pie=no
  6636. ;;
  6637. esac
  6638. fi ;;
  6639. esac
  6640. fi
  6641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_static_pie" >&5
  6642. printf "%s\n" "$libc_cv_test_static_pie" >&6; }
  6643. CC="$saved_CC"
  6644. fi
  6645. config_vars="$config_vars
  6646. have-static-pie = $libc_cv_static_pie"
  6647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
  6648. printf %s "checking for -fpie... " >&6; }
  6649. if test ${libc_cv_fpie+y}
  6650. then :
  6651. printf %s "(cached) " >&6
  6652. else case e in #(
  6653. e) if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
  6654. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6655. (eval $ac_try) 2>&5
  6656. ac_status=$?
  6657. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6658. test $ac_status = 0; }; }
  6659. then :
  6660. libc_cv_fpie=yes
  6661. else case e in #(
  6662. e) libc_cv_fpie=no ;;
  6663. esac
  6664. fi
  6665. ;;
  6666. esac
  6667. fi
  6668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
  6669. printf "%s\n" "$libc_cv_fpie" >&6; }
  6670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wno-discarded-qualifiers" >&5
  6671. printf %s "checking for -Wno-discarded-qualifiers... " >&6; }
  6672. if test ${libc_cv_cflags_wno_discarded_qualifiers+y}
  6673. then :
  6674. printf %s "(cached) " >&6
  6675. else case e in #(
  6676. e) if { ac_try='${CC-cc} -Werror -Wno-discarded-qualifiers -xc /dev/null -S -o /dev/null'
  6677. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6678. (eval $ac_try) 2>&5
  6679. ac_status=$?
  6680. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6681. test $ac_status = 0; }; }
  6682. then :
  6683. libc_cv_cflags_wno_discarded_qualifiers=-Wno-discarded-qualifiers
  6684. else case e in #(
  6685. e) libc_cv_cflags_wno_discarded_qualifiers= ;;
  6686. esac
  6687. fi
  6688. if test -z "$libc_cv_cflags_wno_discarded_qualifiers"; then
  6689. if { ac_try='${CC-cc} -Werror -Wno-incompatible-pointer-types-discards-qualifiers -xc /dev/null -S -o /dev/null'
  6690. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6691. (eval $ac_try) 2>&5
  6692. ac_status=$?
  6693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6694. test $ac_status = 0; }; }
  6695. then :
  6696. libc_cv_cflags_wno_incompatible_pointer_type_discards_qualifiers=-Wno-incompatible-pointer-types-discards-qualifiers
  6697. else case e in #(
  6698. e) libc_cv_cflags_wno_incompatible_pointer_type_discards_qualifiers= ;;
  6699. esac
  6700. fi
  6701. libc_cv_cflags_wno_discarded_qualifiers=$libc_cv_cflags_wno_incompatible_pointer_type_discards_qualifiers
  6702. fi
  6703. ;;
  6704. esac
  6705. fi
  6706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cflags_wno_discarded_qualifiers" >&5
  6707. printf "%s\n" "$libc_cv_cflags_wno_discarded_qualifiers" >&6; }
  6708. config_vars="$config_vars
  6709. config-cflags-wno-discarded-qualifiers = $libc_cv_cflags_wno_discarded_qualifiers"
  6710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
  6711. printf %s "checking for GLOB_DAT reloc... " >&6; }
  6712. if test ${libc_cv_has_glob_dat+y}
  6713. then :
  6714. printf %s "(cached) " >&6
  6715. else case e in #(
  6716. e) cat > conftest.c <<EOF
  6717. extern int mumble;
  6718. int foo (void) { return mumble; }
  6719. EOF
  6720. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
  6721. -fPIC -shared -o conftest.so conftest.c
  6722. -nostdlib -nostartfiles $no_ssp
  6723. 1>&5'
  6724. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6725. (eval $ac_try) 2>&5
  6726. ac_status=$?
  6727. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6728. test $ac_status = 0; }; }
  6729. then
  6730. if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
  6731. libc_cv_has_glob_dat=yes
  6732. else
  6733. libc_cv_has_glob_dat=no
  6734. fi
  6735. else
  6736. libc_cv_has_glob_dat=no
  6737. fi
  6738. rm -f conftest* ;;
  6739. esac
  6740. fi
  6741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
  6742. printf "%s\n" "$libc_cv_has_glob_dat" >&6; }
  6743. conftest_code="
  6744. __thread int i;
  6745. void foo (void)
  6746. {
  6747. i = 10;
  6748. }
  6749. "
  6750. cat > conftest.c <<EOF
  6751. $conftest_code
  6752. EOF
  6753. saved_CC="$CC"
  6754. CC="$TEST_CC"
  6755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tls descriptor support in testing" >&5
  6756. printf %s "checking for tls descriptor support in testing... " >&6; }
  6757. if test ${libc_cv_test_mtls_descriptor+y}
  6758. then :
  6759. printf %s "(cached) " >&6
  6760. else case e in #(
  6761. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5'
  6762. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6763. (eval $ac_try) 2>&5
  6764. ac_status=$?
  6765. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6766. test $ac_status = 0; }; }
  6767. then
  6768. libc_cv_test_mtls_descriptor=$mtls_descriptor
  6769. else
  6770. libc_cv_test_mtls_descriptor=no
  6771. fi ;;
  6772. esac
  6773. fi
  6774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_mtls_descriptor" >&5
  6775. printf "%s\n" "$libc_cv_test_mtls_descriptor" >&6; }
  6776. CC="$saved_CC"
  6777. rm -f conftest*
  6778. config_vars="$config_vars
  6779. have-test-mtls-descriptor = $libc_cv_test_mtls_descriptor"
  6780. cat > conftest.c <<EOF
  6781. $conftest_code
  6782. EOF
  6783. saved_CC="$CC"
  6784. CC="$TEST_CC"
  6785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for traditional tls support in testing" >&5
  6786. printf %s "checking for traditional tls support in testing... " >&6; }
  6787. if test ${libc_cv_test_mtls_traditional+y}
  6788. then :
  6789. printf %s "(cached) " >&6
  6790. else case e in #(
  6791. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_traditional -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5'
  6792. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6793. (eval $ac_try) 2>&5
  6794. ac_status=$?
  6795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6796. test $ac_status = 0; }; }
  6797. then
  6798. libc_cv_test_mtls_traditional=$mtls_traditional
  6799. else
  6800. libc_cv_test_mtls_traditional=no
  6801. fi ;;
  6802. esac
  6803. fi
  6804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_mtls_traditional" >&5
  6805. printf "%s\n" "$libc_cv_test_mtls_traditional" >&6; }
  6806. CC="$saved_CC"
  6807. rm -f conftest*
  6808. config_vars="$config_vars
  6809. have-test-mtls-traditional = $libc_cv_test_mtls_traditional"
  6810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wno-maybe-uninitialized" >&5
  6811. printf %s "checking for -Wno-maybe-uninitialized... " >&6; }
  6812. if test ${libc_cv_wno_maybe_uninitialized+y}
  6813. then :
  6814. printf %s "(cached) " >&6
  6815. else case e in #(
  6816. e) if { ac_try='${CC-cc} -Werror -Wno-maybe-uninitialized -xc /dev/null -S -o /dev/null'
  6817. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6818. (eval $ac_try) 2>&5
  6819. ac_status=$?
  6820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6821. test $ac_status = 0; }; }
  6822. then :
  6823. libc_cv_wno_maybe_uninitialized=-Wno-maybe-uninitialized
  6824. else case e in #(
  6825. e) libc_cv_wno_maybe_uninitialized= ;;
  6826. esac
  6827. fi
  6828. ;;
  6829. esac
  6830. fi
  6831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_maybe_uninitialized" >&5
  6832. printf "%s\n" "$libc_cv_wno_maybe_uninitialized" >&6; }
  6833. config_vars="$config_vars
  6834. config-cflags-wno-maybe-uninitialized = $libc_cv_wno_maybe_uninitialized"
  6835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
  6836. printf %s "checking whether cc puts quotes around section names... " >&6; }
  6837. if test ${libc_cv_have_section_quotes+y}
  6838. then :
  6839. printf %s "(cached) " >&6
  6840. else case e in #(
  6841. e) cat > conftest.c <<EOF
  6842. static const int foo
  6843. __attribute__ ((section ("bar"))) = 1;
  6844. EOF
  6845. if ${CC-cc} -S conftest.c -o conftest.s; then
  6846. if grep '\.section.*"bar"' conftest.s >/dev/null; then
  6847. libc_cv_have_section_quotes=yes
  6848. else
  6849. libc_cv_have_section_quotes=no
  6850. fi
  6851. else
  6852. libc_cv_have_section_quotes=unknown
  6853. fi
  6854. rm -f conftest.{c,s}
  6855. ;;
  6856. esac
  6857. fi
  6858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
  6859. printf "%s\n" "$libc_cv_have_section_quotes" >&6; }
  6860. if test $libc_cv_have_section_quotes = yes; then
  6861. printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
  6862. fi
  6863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
  6864. printf %s "checking for __builtin_memset... " >&6; }
  6865. if test ${libc_cv_gcc_builtin_memset+y}
  6866. then :
  6867. printf %s "(cached) " >&6
  6868. else case e in #(
  6869. e) cat > conftest.c <<\EOF
  6870. void zero (void *x)
  6871. {
  6872. __builtin_memset (x, 0, 1000);
  6873. }
  6874. EOF
  6875. if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
  6876. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6877. (eval $ac_try) 2>&5
  6878. ac_status=$?
  6879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6880. test $ac_status = 0; }; };
  6881. then
  6882. libc_cv_gcc_builtin_memset=no
  6883. else
  6884. libc_cv_gcc_builtin_memset=yes
  6885. fi
  6886. rm -f conftest* ;;
  6887. esac
  6888. fi
  6889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
  6890. printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; }
  6891. if test "$libc_cv_gcc_builtin_memset" = yes ; then
  6892. printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
  6893. fi
  6894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit atomic support" >&5
  6895. printf %s "checking for 64-bit atomic support... " >&6; }
  6896. if test ${libc_cv_gcc_has_64b_atomics+y}
  6897. then :
  6898. printf %s "(cached) " >&6
  6899. else case e in #(
  6900. e) cat > conftest.c <<\EOF
  6901. typedef struct { long long t; } X;
  6902. extern void has_64b_atomics(void);
  6903. void f(void)
  6904. {
  6905. X x;
  6906. /* Use address of structure with 64-bit type. This avoids incorrect
  6907. implementations which return true even if long long is not 64-bit aligned.
  6908. This works on GCC and LLVM - other cases have bugs and they disagree. */
  6909. _Static_assert (__atomic_always_lock_free (sizeof (x), &x), "no_64b_atomics");
  6910. }
  6911. EOF
  6912. if { ac_try='${CC-cc} -O2 -S conftest.c'
  6913. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6914. (eval $ac_try) 2>&5
  6915. ac_status=$?
  6916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6917. test $ac_status = 0; }; };
  6918. then
  6919. libc_cv_gcc_has_64b_atomics=yes
  6920. else
  6921. libc_cv_gcc_has_64b_atomics=no
  6922. fi
  6923. rm -f conftest* ;;
  6924. esac
  6925. fi
  6926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_has_64b_atomics" >&5
  6927. printf "%s\n" "$libc_cv_gcc_has_64b_atomics" >&6; }
  6928. if test "$libc_cv_gcc_has_64b_atomics" = yes; then
  6929. printf "%s\n" "#define HAVE_64B_ATOMICS 1" >>confdefs.h
  6930. else
  6931. printf "%s\n" "#define HAVE_64B_ATOMICS 0" >>confdefs.h
  6932. fi
  6933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
  6934. printf %s "checking for compiler option to disable generation of FMA instructions... " >&6; }
  6935. if test ${libc_cv_cc_nofma+y}
  6936. then :
  6937. printf %s "(cached) " >&6
  6938. else case e in #(
  6939. e) libc_cv_cc_nofma=
  6940. for opt in -ffp-contract=off -mno-fused-madd; do
  6941. if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
  6942. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6943. (eval $ac_try) 2>&5
  6944. ac_status=$?
  6945. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6946. test $ac_status = 0; }; }
  6947. then :
  6948. libc_cv_cc_nofma=$opt; break
  6949. fi
  6950. done ;;
  6951. esac
  6952. fi
  6953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
  6954. printf "%s\n" "$libc_cv_cc_nofma" >&6; }
  6955. if test -n "$submachine"; then
  6956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
  6957. printf %s "checking for compiler option for CPU variant... " >&6; }
  6958. if test ${libc_cv_cc_submachine+y}
  6959. then :
  6960. printf %s "(cached) " >&6
  6961. else case e in #(
  6962. e) libc_cv_cc_submachine=no
  6963. for opt in "-march=$submachine" "-mcpu=$submachine"; do
  6964. if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
  6965. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6966. (eval $ac_try) 2>&5
  6967. ac_status=$?
  6968. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6969. test $ac_status = 0; }; }
  6970. then :
  6971. libc_cv_cc_submachine="$opt"
  6972. break
  6973. fi
  6974. done ;;
  6975. esac
  6976. fi
  6977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
  6978. printf "%s\n" "$libc_cv_cc_submachine" >&6; }
  6979. if test "x$libc_cv_cc_submachine" = xno; then
  6980. as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
  6981. fi
  6982. fi
  6983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
  6984. printf %s "checking for compiler option that -fsignaling-nans... " >&6; }
  6985. if test ${libc_cv_cc_signaling_nans+y}
  6986. then :
  6987. printf %s "(cached) " >&6
  6988. else case e in #(
  6989. e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
  6990. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6991. (eval $ac_try) 2>&5
  6992. ac_status=$?
  6993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6994. test $ac_status = 0; }; }
  6995. then :
  6996. libc_cv_cc_signaling_nans=-fsignaling-nans
  6997. else case e in #(
  6998. e) libc_cv_cc_signaling_nans= ;;
  6999. esac
  7000. fi ;;
  7001. esac
  7002. fi
  7003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
  7004. printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; }
  7005. if test "$TEST_CC" = "$CC"; then
  7006. libc_cv_test_cc_signaling_nans=$libc_cv_cc_signaling_nans
  7007. else
  7008. saved_CC="$CC"
  7009. CC="$TEST_CC"
  7010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans in testing" >&5
  7011. printf %s "checking for compiler option that -fsignaling-nans in testing... " >&6; }
  7012. if test ${libc_cv_test_cc_signaling_nans+y}
  7013. then :
  7014. printf %s "(cached) " >&6
  7015. else case e in #(
  7016. e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
  7017. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7018. (eval $ac_try) 2>&5
  7019. ac_status=$?
  7020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7021. test $ac_status = 0; }; }
  7022. then :
  7023. libc_cv_test_cc_signaling_nans=-fsignaling-nans
  7024. else case e in #(
  7025. e) libc_cv_test_cc_signaling_nans= ;;
  7026. esac
  7027. fi ;;
  7028. esac
  7029. fi
  7030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_signaling_nans" >&5
  7031. printf "%s\n" "$libc_cv_test_cc_signaling_nans" >&6; }
  7032. CC="$saved_CC"
  7033. fi
  7034. config_vars="$config_vars
  7035. config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
  7036. saved_CC="$CC"
  7037. CC="$TEST_CC"
  7038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fsemantic-interposition in testing" >&5
  7039. printf %s "checking -fsemantic-interposition in testing... " >&6; }
  7040. if test ${libc_cv_test_cc_cflags_fsemantic_interposition+y}
  7041. then :
  7042. printf %s "(cached) " >&6
  7043. else case e in #(
  7044. e) if { ac_try='${CC-cc} -Werror -fsemantic-interposition -xc /dev/null -S -o /dev/null'
  7045. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7046. (eval $ac_try) 2>&5
  7047. ac_status=$?
  7048. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7049. test $ac_status = 0; }; }
  7050. then :
  7051. libc_cv_test_cc_cflags_fsemantic_interposition=yes
  7052. else case e in #(
  7053. e) libc_cv_test_cc_cflags_fsemantic_interposition=no
  7054. ;;
  7055. esac
  7056. fi ;;
  7057. esac
  7058. fi
  7059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_cflags_fsemantic_interposition" >&5
  7060. printf "%s\n" "$libc_cv_test_cc_cflags_fsemantic_interposition" >&6; }
  7061. CC="$saved_CC"
  7062. config_vars="$config_vars
  7063. have-test-cc-cflags-fsemantic-interposition = $libc_cv_test_cc_cflags_fsemantic_interposition"
  7064. saved_CC="$CC"
  7065. CC="$TEST_CC"
  7066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -ffloat-store in testing" >&5
  7067. printf %s "checking for -ffloat-store in testing... " >&6; }
  7068. if test ${libc_cv_test_cc_float_store+y}
  7069. then :
  7070. printf %s "(cached) " >&6
  7071. else case e in #(
  7072. e) if { ac_try='${CC-cc} -Werror -ffloat-store -xc /dev/null -S -o /dev/null'
  7073. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7074. (eval $ac_try) 2>&5
  7075. ac_status=$?
  7076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7077. test $ac_status = 0; }; }
  7078. then :
  7079. libc_cv_test_cc_float_store="-ffloat-store"
  7080. else case e in #(
  7081. e) libc_cv_test_cc_float_store= ;;
  7082. esac
  7083. fi ;;
  7084. esac
  7085. fi
  7086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_float_store" >&5
  7087. printf "%s\n" "$libc_cv_test_cc_float_store" >&6; }
  7088. CC="$saved_CC"
  7089. config_vars="$config_vars
  7090. test-config-cflags-float-store = $libc_cv_test_cc_float_store"
  7091. conftest_code="
  7092. void
  7093. __attribute__ ((__optimize__ (\"-fno-tree-loop-distribute-patterns\")))
  7094. foo (void) {}
  7095. "
  7096. cat > conftest.c <<EOF
  7097. $conftest_code
  7098. EOF
  7099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works" >&5
  7100. printf %s "checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works... " >&6; }
  7101. if test ${libc_cv_cc_loop_to_function+y}
  7102. then :
  7103. printf %s "(cached) " >&6
  7104. else case e in #(
  7105. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
  7106. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7107. (eval $ac_try) 2>&5
  7108. ac_status=$?
  7109. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7110. test $ac_status = 0; }; }
  7111. then
  7112. libc_cv_cc_loop_to_function=yes
  7113. else
  7114. libc_cv_cc_loop_to_function=no
  7115. fi
  7116. ;;
  7117. esac
  7118. fi
  7119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
  7120. printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; }
  7121. if test "$TEST_CC" = "$CC"; then
  7122. libc_cv_test_cc_loop_to_function=$libc_cv_cc_loop_to_function
  7123. else
  7124. saved_CC="$CC"
  7125. CC="$TEST_CC"
  7126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works in testing" >&5
  7127. printf %s "checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works in testing... " >&6; }
  7128. if test ${libc_cv_test_cc_loop_to_function+y}
  7129. then :
  7130. printf %s "(cached) " >&6
  7131. else case e in #(
  7132. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
  7133. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7134. (eval $ac_try) 2>&5
  7135. ac_status=$?
  7136. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7137. test $ac_status = 0; }; }
  7138. then
  7139. libc_cv_test_cc_loop_to_function=yes
  7140. else
  7141. libc_cv_test_cc_loop_to_function=no
  7142. fi ;;
  7143. esac
  7144. fi
  7145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_loop_to_function" >&5
  7146. printf "%s\n" "$libc_cv_test_cc_loop_to_function" >&6; }
  7147. CC="$saved_CC"
  7148. fi
  7149. rm -f conftest*
  7150. if test $libc_cv_cc_loop_to_function = yes; then
  7151. printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
  7152. fi
  7153. if test $libc_cv_test_cc_loop_to_function = yes; then
  7154. printf "%s\n" "#define HAVE_TEST_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
  7155. fi
  7156. config_vars="$config_vars
  7157. config-cflags-cc-loop-to-function = $libc_cv_cc_loop_to_function"
  7158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough" >&5
  7159. printf %s "checking for -Wimplicit-fallthrough... " >&6; }
  7160. if test ${libc_cv_cc_wimplicit_fallthrough+y}
  7161. then :
  7162. printf %s "(cached) " >&6
  7163. else case e in #(
  7164. e) if { ac_try='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null'
  7165. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7166. (eval $ac_try) 2>&5
  7167. ac_status=$?
  7168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7169. test $ac_status = 0; }; }
  7170. then :
  7171. libc_cv_cc_wimplicit_fallthrough=-Wimplicit-fallthrough
  7172. else case e in #(
  7173. e) libc_cv_cc_wimplicit_fallthrough= ;;
  7174. esac
  7175. fi ;;
  7176. esac
  7177. fi
  7178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wimplicit_fallthrough" >&5
  7179. printf "%s\n" "$libc_cv_cc_wimplicit_fallthrough" >&6; }
  7180. if test "$TEST_CC" = "$CC"; then
  7181. libc_cv_test_cc_wimplicit_fallthrough=$libc_cv_cc_wimplicit_fallthrough
  7182. else
  7183. saved_CC="$CC"
  7184. CC="$TEST_CC"
  7185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough in testing" >&5
  7186. printf %s "checking for -Wimplicit-fallthrough in testing... " >&6; }
  7187. if test ${libc_cv_test_cc_wimplicit_fallthrough+y}
  7188. then :
  7189. printf %s "(cached) " >&6
  7190. else case e in #(
  7191. e) if { ac_try='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null'
  7192. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7193. (eval $ac_try) 2>&5
  7194. ac_status=$?
  7195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7196. test $ac_status = 0; }; }
  7197. then :
  7198. libc_cv_test_cc_wimplicit_fallthrough=-Wimplicit-fallthrough
  7199. else case e in #(
  7200. e) libc_cv_test_cc_wimplicit_fallthrough= ;;
  7201. esac
  7202. fi ;;
  7203. esac
  7204. fi
  7205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wimplicit_fallthrough" >&5
  7206. printf "%s\n" "$libc_cv_test_cc_wimplicit_fallthrough" >&6; }
  7207. CC="$saved_CC"
  7208. fi
  7209. if test $libc_cv_test_clang = yes; then
  7210. libc_cv_test_cc_wimplicit_fallthrough=
  7211. fi
  7212. config_vars="$config_vars
  7213. cc-option-wimplicit-fallthrough = $libc_cv_cc_wimplicit_fallthrough"
  7214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wfree-labels" >&5
  7215. printf %s "checking for -Wfree-labels... " >&6; }
  7216. if test ${libc_cv_cc_wfree_labels+y}
  7217. then :
  7218. printf %s "(cached) " >&6
  7219. else case e in #(
  7220. e) if { ac_try='${CC-cc} -Werror -Wfree-labels -xc /dev/null -S -o /dev/null'
  7221. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7222. (eval $ac_try) 2>&5
  7223. ac_status=$?
  7224. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7225. test $ac_status = 0; }; }
  7226. then :
  7227. libc_cv_cc_wfree_labels=-Wfree-labels
  7228. else case e in #(
  7229. e) libc_cv_cc_wfree_labels= ;;
  7230. esac
  7231. fi ;;
  7232. esac
  7233. fi
  7234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wfree_labels" >&5
  7235. printf "%s\n" "$libc_cv_cc_wfree_labels" >&6; }
  7236. if test "$TEST_CC" = "$CC"; then
  7237. libc_cv_test_cc_wfree_labels=$libc_cv_cc_wfree_labels
  7238. else
  7239. saved_CC="$CC"
  7240. CC="$TEST_CC"
  7241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wfree-labels in testing" >&5
  7242. printf %s "checking for -Wfree-labels in testing... " >&6; }
  7243. if test ${libc_cv_test_cc_wfree_labels+y}
  7244. then :
  7245. printf %s "(cached) " >&6
  7246. else case e in #(
  7247. e) if { ac_try='${CC-cc} -Werror -Wfree-labels -xc /dev/null -S -o /dev/null'
  7248. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7249. (eval $ac_try) 2>&5
  7250. ac_status=$?
  7251. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7252. test $ac_status = 0; }; }
  7253. then :
  7254. libc_cv_test_cc_wfree_labels=-Wfree-labels
  7255. else case e in #(
  7256. e) libc_cv_test_cc_wfree_labels= ;;
  7257. esac
  7258. fi ;;
  7259. esac
  7260. fi
  7261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wfree_labels" >&5
  7262. printf "%s\n" "$libc_cv_test_cc_wfree_labels" >&6; }
  7263. CC="$saved_CC"
  7264. fi
  7265. config_vars="$config_vars
  7266. cc-option-wfree-labels = $libc_cv_cc_wfree_labels"
  7267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-parameter-name" >&5
  7268. printf %s "checking for -Wmissing-parameter-name... " >&6; }
  7269. if test ${libc_cv_cc_wmissing_parameter_name+y}
  7270. then :
  7271. printf %s "(cached) " >&6
  7272. else case e in #(
  7273. e) if { ac_try='${CC-cc} -Werror -Wmissing-parameter-name -xc /dev/null -S -o /dev/null'
  7274. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7275. (eval $ac_try) 2>&5
  7276. ac_status=$?
  7277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7278. test $ac_status = 0; }; }
  7279. then :
  7280. libc_cv_cc_wmissing_parameter_name=-Wmissing-parameter-name
  7281. else case e in #(
  7282. e) libc_cv_cc_wmissing_parameter_name= ;;
  7283. esac
  7284. fi ;;
  7285. esac
  7286. fi
  7287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wmissing_parameter_name" >&5
  7288. printf "%s\n" "$libc_cv_cc_wmissing_parameter_name" >&6; }
  7289. if test "$TEST_CC" = "$CC"; then
  7290. libc_cv_test_cc_wmissing_parameter_name=$libc_cv_cc_wmissing_parameter_name
  7291. else
  7292. saved_CC="$CC"
  7293. CC="$TEST_CC"
  7294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-parameter-name in testing" >&5
  7295. printf %s "checking for -Wmissing-parameter-name in testing... " >&6; }
  7296. if test ${libc_cv_test_cc_wmissing_parameter_name+y}
  7297. then :
  7298. printf %s "(cached) " >&6
  7299. else case e in #(
  7300. e) if { ac_try='${CC-cc} -Werror -Wmissing-parameter-name -xc /dev/null -S -o /dev/null'
  7301. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7302. (eval $ac_try) 2>&5
  7303. ac_status=$?
  7304. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7305. test $ac_status = 0; }; }
  7306. then :
  7307. libc_cv_test_cc_wmissing_parameter_name=-Wmissing-parameter-name
  7308. else case e in #(
  7309. e) libc_cv_test_cc_wmissing_parameter_name= ;;
  7310. esac
  7311. fi ;;
  7312. esac
  7313. fi
  7314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wmissing_parameter_name" >&5
  7315. printf "%s\n" "$libc_cv_test_cc_wmissing_parameter_name" >&6; }
  7316. CC="$saved_CC"
  7317. fi
  7318. config_vars="$config_vars
  7319. cc-option-wmissing-parameter-name = $libc_cv_cc_wmissing_parameter_name"
  7320. conftest_code="
  7321. void bar (void (*callback) (void));
  7322. int foo (void)
  7323. {
  7324. int var = 0;
  7325. void callback (void) { var = 1; }
  7326. bar (callback);
  7327. return var;
  7328. }
  7329. "
  7330. cat > conftest.c <<EOF
  7331. $conftest_code
  7332. EOF
  7333. saved_CC="$CC"
  7334. CC="$TEST_CC"
  7335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for trampolines in testing" >&5
  7336. printf %s "checking support for trampolines in testing... " >&6; }
  7337. if test ${libc_cv_test_cc_trampolines+y}
  7338. then :
  7339. printf %s "(cached) " >&6
  7340. else case e in #(
  7341. e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
  7342. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7343. (eval $ac_try) 2>&5
  7344. ac_status=$?
  7345. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7346. test $ac_status = 0; }; }
  7347. then
  7348. libc_cv_test_cc_trampolines=yes
  7349. else
  7350. libc_cv_test_cc_trampolines=no
  7351. fi ;;
  7352. esac
  7353. fi
  7354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_trampolines" >&5
  7355. printf "%s\n" "$libc_cv_test_cc_trampolines" >&6; }
  7356. CC="$saved_CC"
  7357. rm -f conftest*
  7358. config_vars="$config_vars
  7359. have-test-cc-trampoline = $libc_cv_test_cc_trampolines"
  7360. saved_CC="$CC"
  7361. CC="$TEST_CC"
  7362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-restrict in testing" >&5
  7363. printf %s "checking -Wno-restrict in testing... " >&6; }
  7364. if test ${libc_cv_test_cflags_wno_restrict+y}
  7365. then :
  7366. printf %s "(cached) " >&6
  7367. else case e in #(
  7368. e) if { ac_try='${CC-cc} -Werror -Wno-restrict -xc /dev/null -S -o /dev/null'
  7369. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7370. (eval $ac_try) 2>&5
  7371. ac_status=$?
  7372. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7373. test $ac_status = 0; }; }
  7374. then :
  7375. libc_cv_test_cflags_wno_restrict=-Wno-restrict
  7376. else case e in #(
  7377. e) libc_cv_test_cflags_wno_restrict=
  7378. ;;
  7379. esac
  7380. fi ;;
  7381. esac
  7382. fi
  7383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_wno_restrict" >&5
  7384. printf "%s\n" "$libc_cv_test_cflags_wno_restrict" >&6; }
  7385. CC="$saved_CC"
  7386. config_vars="$config_vars
  7387. test-config-cflags-wno-restrict = $libc_cv_test_cflags_wno_restrict"
  7388. saved_CC="$CC"
  7389. CC="$TEST_CC"
  7390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-fortify-source in testing" >&5
  7391. printf %s "checking -Wno-fortify-source in testing... " >&6; }
  7392. if test ${libc_cv_test_cflags_wno_fortify_source+y}
  7393. then :
  7394. printf %s "(cached) " >&6
  7395. else case e in #(
  7396. e) if { ac_try='${CC-cc} -Werror -Wno-fortify-source -xc /dev/null -S -o /dev/null'
  7397. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7398. (eval $ac_try) 2>&5
  7399. ac_status=$?
  7400. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7401. test $ac_status = 0; }; }
  7402. then :
  7403. libc_cv_test_cflags_wno_fortify_source=-Wno-fortify-source
  7404. else case e in #(
  7405. e) libc_cv_test_cflags_wno_fortify_source=
  7406. ;;
  7407. esac
  7408. fi ;;
  7409. esac
  7410. fi
  7411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_wno_fortify_source" >&5
  7412. printf "%s\n" "$libc_cv_test_cflags_wno_fortify_source" >&6; }
  7413. CC="$saved_CC"
  7414. config_vars="$config_vars
  7415. test-config-cflags-wno-fortify-source = $libc_cv_test_cflags_wno_fortify_source"
  7416. saved_CC="$CC"
  7417. CC="$TEST_CC"
  7418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -finput-charset=ascii in testing" >&5
  7419. printf %s "checking -finput-charset=ascii in testing... " >&6; }
  7420. if test ${libc_cv_test_cflags_finput_charset_ascii+y}
  7421. then :
  7422. printf %s "(cached) " >&6
  7423. else case e in #(
  7424. e) if { ac_try='${CC-cc} -Werror -finput-charset=ascii -xc /dev/null -S -o /dev/null'
  7425. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7426. (eval $ac_try) 2>&5
  7427. ac_status=$?
  7428. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7429. test $ac_status = 0; }; }
  7430. then :
  7431. libc_cv_test_cflags_finput_charset_ascii="-finput-charset=ascii"
  7432. else case e in #(
  7433. e) libc_cv_test_cflags_finput_charset_ascii=
  7434. ;;
  7435. esac
  7436. fi ;;
  7437. esac
  7438. fi
  7439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_finput_charset_ascii" >&5
  7440. printf "%s\n" "$libc_cv_test_cflags_finput_charset_ascii" >&6; }
  7441. CC="$saved_CC"
  7442. config_vars="$config_vars
  7443. test-config-cflags-finput-charset-ascii = $libc_cv_test_cflags_finput_charset_ascii"
  7444. saved_CXX="$CXX"
  7445. CXX="$TEST_CXX"
  7446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CXX -finput-charset=ascii in testing" >&5
  7447. printf %s "checking $CXX -finput-charset=ascii in testing... " >&6; }
  7448. if test ${libc_cv_test_cxxflags_finput_charset_ascii+y}
  7449. then :
  7450. printf %s "(cached) " >&6
  7451. else case e in #(
  7452. e) if { ac_try='${CXX-c++} -Werror -finput-charset=ascii -xc++ /dev/null -S -o /dev/null'
  7453. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7454. (eval $ac_try) 2>&5
  7455. ac_status=$?
  7456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7457. test $ac_status = 0; }; }
  7458. then :
  7459. libc_cv_test_cxxflags_finput_charset_ascii="-finput-charset=ascii"
  7460. else case e in #(
  7461. e) libc_cv_test_cxxflags_finput_charset_ascii=
  7462. ;;
  7463. esac
  7464. fi ;;
  7465. esac
  7466. fi
  7467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cxxflags_finput_charset_ascii" >&5
  7468. printf "%s\n" "$libc_cv_test_cxxflags_finput_charset_ascii" >&6; }
  7469. CXX="$saved_CXX"
  7470. config_vars="$config_vars
  7471. test-config-cxxflags-finput-charset-ascii = $libc_cv_test_cxxflags_finput_charset_ascii"
  7472. conftest_code="
  7473. extern int not_exist (void);
  7474. inline int make_unique (void)
  7475. {
  7476. /* Static variables in inline functions and classes
  7477. generate STB_GNU_UNIQUE symbols. */
  7478. static int unique;
  7479. return ++unique;
  7480. }
  7481. int foo (void)
  7482. {
  7483. return make_unique () + not_exist ();
  7484. }
  7485. "
  7486. cat > conftest.cc <<EOF
  7487. $conftest_code
  7488. EOF
  7489. saved_CXX="$CXX"
  7490. CXX="$TEST_CXX"
  7491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for STB_GNU_UNIQUE in testing" >&5
  7492. printf %s "checking for STB_GNU_UNIQUE in testing... " >&6; }
  7493. if test ${libc_cv_test_stb_gnu_unique+y}
  7494. then :
  7495. printf %s "(cached) " >&6
  7496. else case e in #(
  7497. e) if { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc -o conftest 1>&5'
  7498. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7499. (eval $ac_try) 2>&5
  7500. ac_status=$?
  7501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7502. test $ac_status = 0; }; }
  7503. then
  7504. if LC_ALL=C $READELF -sW conftest \
  7505. | grep -q "UNIQUE.* _ZZ11make_uniquevE6unique"; then
  7506. libc_cv_test_stb_gnu_unique=yes
  7507. else
  7508. libc_cv_test_stb_gnu_unique=no
  7509. fi
  7510. else
  7511. libc_cv_test_stb_gnu_unique=no
  7512. fi ;;
  7513. esac
  7514. fi
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_stb_gnu_unique" >&5
  7516. printf "%s\n" "$libc_cv_test_stb_gnu_unique" >&6; }
  7517. CXX="$saved_CXX"
  7518. rm -f conftest*
  7519. config_vars="$config_vars
  7520. have-test-stb-gnu-unique = $libc_cv_test_stb_gnu_unique"
  7521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
  7522. printf %s "checking for libgd... " >&6; }
  7523. if test "$with_gd" != "no"; then
  7524. old_CFLAGS="$CFLAGS"
  7525. CFLAGS="$CFLAGS $libgd_include"
  7526. old_LDFLAGS="$LDFLAGS"
  7527. LDFLAGS="$LDFLAGS $libgd_ldflags"
  7528. old_LIBS="$LIBS"
  7529. LIBS="$LIBS -lgd -lpng -lz -lm"
  7530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7531. /* end confdefs.h. */
  7532. #include <gd.h>
  7533. int
  7534. main (void)
  7535. {
  7536. gdImagePng (0, 0)
  7537. ;
  7538. return 0;
  7539. }
  7540. _ACEOF
  7541. if ac_fn_c_try_link "$LINENO"
  7542. then :
  7543. LIBGD=yes
  7544. else case e in #(
  7545. e) LIBGD=no ;;
  7546. esac
  7547. fi
  7548. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7549. conftest$ac_exeext conftest.$ac_ext
  7550. CFLAGS="$old_CFLAGS"
  7551. LDFLAGS="$old_LDFLAGS"
  7552. LIBS="$old_LIBS"
  7553. else
  7554. LIBGD=no
  7555. fi
  7556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
  7557. printf "%s\n" "$LIBGD" >&6; }
  7558. # SELinux detection
  7559. if test x$with_selinux = xno ; then
  7560. have_selinux=no;
  7561. else
  7562. # See if we have the SELinux library
  7563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
  7564. printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
  7565. if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
  7566. then :
  7567. printf %s "(cached) " >&6
  7568. else case e in #(
  7569. e) ac_check_lib_save_LIBS=$LIBS
  7570. LIBS="-lselinux $LIBS"
  7571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7572. /* end confdefs.h. */
  7573. /* Override any GCC internal prototype to avoid an error.
  7574. Use char because int might match the return type of a GCC
  7575. builtin and then its argument prototype would still apply.
  7576. The 'extern "C"' is for builds by C++ compilers;
  7577. although this is not generally supported in C code supporting it here
  7578. has little cost and some practical benefit (sr 110532). */
  7579. #ifdef __cplusplus
  7580. extern "C"
  7581. #endif
  7582. char is_selinux_enabled (void);
  7583. int
  7584. main (void)
  7585. {
  7586. return is_selinux_enabled ();
  7587. ;
  7588. return 0;
  7589. }
  7590. _ACEOF
  7591. if ac_fn_c_try_link "$LINENO"
  7592. then :
  7593. ac_cv_lib_selinux_is_selinux_enabled=yes
  7594. else case e in #(
  7595. e) ac_cv_lib_selinux_is_selinux_enabled=no ;;
  7596. esac
  7597. fi
  7598. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7599. conftest$ac_exeext conftest.$ac_ext
  7600. LIBS=$ac_check_lib_save_LIBS ;;
  7601. esac
  7602. fi
  7603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
  7604. printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
  7605. if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
  7606. then :
  7607. have_selinux=yes
  7608. else case e in #(
  7609. e) have_selinux=no ;;
  7610. esac
  7611. fi
  7612. if test x$with_selinux = xyes ; then
  7613. if test x$have_selinux = xno ; then
  7614. as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
  7615. fi
  7616. fi
  7617. fi
  7618. # Check if we're building with SELinux support.
  7619. if test "x$have_selinux" = xyes; then
  7620. printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
  7621. # See if we have the libaudit library
  7622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
  7623. printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; }
  7624. if test ${ac_cv_lib_audit_audit_log_user_avc_message+y}
  7625. then :
  7626. printf %s "(cached) " >&6
  7627. else case e in #(
  7628. e) ac_check_lib_save_LIBS=$LIBS
  7629. LIBS="-laudit $LIBS"
  7630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7631. /* end confdefs.h. */
  7632. /* Override any GCC internal prototype to avoid an error.
  7633. Use char because int might match the return type of a GCC
  7634. builtin and then its argument prototype would still apply.
  7635. The 'extern "C"' is for builds by C++ compilers;
  7636. although this is not generally supported in C code supporting it here
  7637. has little cost and some practical benefit (sr 110532). */
  7638. #ifdef __cplusplus
  7639. extern "C"
  7640. #endif
  7641. char audit_log_user_avc_message (void);
  7642. int
  7643. main (void)
  7644. {
  7645. return audit_log_user_avc_message ();
  7646. ;
  7647. return 0;
  7648. }
  7649. _ACEOF
  7650. if ac_fn_c_try_link "$LINENO"
  7651. then :
  7652. ac_cv_lib_audit_audit_log_user_avc_message=yes
  7653. else case e in #(
  7654. e) ac_cv_lib_audit_audit_log_user_avc_message=no ;;
  7655. esac
  7656. fi
  7657. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7658. conftest$ac_exeext conftest.$ac_ext
  7659. LIBS=$ac_check_lib_save_LIBS ;;
  7660. esac
  7661. fi
  7662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
  7663. printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
  7664. if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
  7665. then :
  7666. have_libaudit=yes
  7667. else case e in #(
  7668. e) have_libaudit=no ;;
  7669. esac
  7670. fi
  7671. if test "x$have_libaudit" = xyes; then
  7672. printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
  7673. fi
  7674. # See if we have the libcap library
  7675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
  7676. printf %s "checking for cap_init in -lcap... " >&6; }
  7677. if test ${ac_cv_lib_cap_cap_init+y}
  7678. then :
  7679. printf %s "(cached) " >&6
  7680. else case e in #(
  7681. e) ac_check_lib_save_LIBS=$LIBS
  7682. LIBS="-lcap $LIBS"
  7683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7684. /* end confdefs.h. */
  7685. /* Override any GCC internal prototype to avoid an error.
  7686. Use char because int might match the return type of a GCC
  7687. builtin and then its argument prototype would still apply.
  7688. The 'extern "C"' is for builds by C++ compilers;
  7689. although this is not generally supported in C code supporting it here
  7690. has little cost and some practical benefit (sr 110532). */
  7691. #ifdef __cplusplus
  7692. extern "C"
  7693. #endif
  7694. char cap_init (void);
  7695. int
  7696. main (void)
  7697. {
  7698. return cap_init ();
  7699. ;
  7700. return 0;
  7701. }
  7702. _ACEOF
  7703. if ac_fn_c_try_link "$LINENO"
  7704. then :
  7705. ac_cv_lib_cap_cap_init=yes
  7706. else case e in #(
  7707. e) ac_cv_lib_cap_cap_init=no ;;
  7708. esac
  7709. fi
  7710. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7711. conftest$ac_exeext conftest.$ac_ext
  7712. LIBS=$ac_check_lib_save_LIBS ;;
  7713. esac
  7714. fi
  7715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
  7716. printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
  7717. if test "x$ac_cv_lib_cap_cap_init" = xyes
  7718. then :
  7719. have_libcap=yes
  7720. else case e in #(
  7721. e) have_libcap=no ;;
  7722. esac
  7723. fi
  7724. if test "x$have_libcap" = xyes; then
  7725. printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
  7726. fi
  7727. fi
  7728. no_fortify_source="-U_FORTIFY_SOURCE"
  7729. fortify_source="${no_fortify_source}"
  7730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5
  7731. printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; }
  7732. if test ${libc_cv_supported_fortify_source+y}
  7733. then :
  7734. printf %s "(cached) " >&6
  7735. else case e in #(
  7736. e)
  7737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7738. /* end confdefs.h. */
  7739. int
  7740. main (void)
  7741. {
  7742. __builtin_dynamic_object_size("", 0)
  7743. ;
  7744. return 0;
  7745. }
  7746. _ACEOF
  7747. if ac_fn_c_try_link "$LINENO"
  7748. then :
  7749. libc_cv_supported_fortify_source=3
  7750. else case e in #(
  7751. e) libc_cv_supported_fortify_source=2 ;;
  7752. esac
  7753. fi
  7754. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7755. conftest$ac_exeext conftest.$ac_ext
  7756. ;;
  7757. esac
  7758. fi
  7759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5
  7760. printf "%s\n" "$libc_cv_supported_fortify_source" >&6; }
  7761. if test "$TEST_CC" = "$CC"; then
  7762. libc_cv_test_supported_fortify_source=$libc_cv_supported_fortify_source
  7763. else
  7764. saved_CC="$CC"
  7765. CC="$TEST_CC"
  7766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level in testing" >&5
  7767. printf %s "checking for maximum supported _FORTIFY_SOURCE level in testing... " >&6; }
  7768. if test ${libc_cv_test_supported_fortify_source+y}
  7769. then :
  7770. printf %s "(cached) " >&6
  7771. else case e in #(
  7772. e)
  7773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7774. /* end confdefs.h. */
  7775. int
  7776. main (void)
  7777. {
  7778. __builtin_dynamic_object_size("", 0)
  7779. ;
  7780. return 0;
  7781. }
  7782. _ACEOF
  7783. if ac_fn_c_try_link "$LINENO"
  7784. then :
  7785. libc_cv_test_supported_fortify_source=3
  7786. else case e in #(
  7787. e) libc_cv_test_supported_fortify_source=2 ;;
  7788. esac
  7789. fi
  7790. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7791. conftest$ac_exeext conftest.$ac_ext
  7792. ;;
  7793. esac
  7794. fi
  7795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_supported_fortify_source" >&5
  7796. printf "%s\n" "$libc_cv_test_supported_fortify_source" >&6; }
  7797. CC="$saved_CC"
  7798. fi
  7799. case $enable_fortify_source in #(
  7800. yes) :
  7801. libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #(
  7802. 1|2) :
  7803. libc_cv_fortify_source=yes ;; #(
  7804. 3) :
  7805. if test $libc_cv_supported_fortify_source = 3
  7806. then :
  7807. libc_cv_fortify_source=yes
  7808. else case e in #(
  7809. e) as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;;
  7810. esac
  7811. fi ;; #(
  7812. *) :
  7813. libc_cv_fortify_source=no ;;
  7814. esac
  7815. if test "$libc_cv_fortify_source" = yes
  7816. then :
  7817. fortify_source="${fortify_source} -D_FORTIFY_SOURCE=${enable_fortify_source}"
  7818. fi
  7819. config_vars="$config_vars
  7820. supported-fortify = $libc_cv_supported_fortify_source"
  7821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7822. /* end confdefs.h. */
  7823. int
  7824. main (void)
  7825. {
  7826. #ifndef _FILE_OFFSET_BITS
  7827. # error _FILE_OFFSET_BITS not defined
  7828. #endif
  7829. ;
  7830. return 0;
  7831. }
  7832. _ACEOF
  7833. if ac_fn_c_try_cpp "$LINENO"
  7834. then :
  7835. libc_cv_compiler_default_file_offset_bits=yes
  7836. else case e in #(
  7837. e) libc_cv_compiler_default_file_offset_bits=no ;;
  7838. esac
  7839. fi
  7840. rm -f conftest.err conftest.i conftest.$ac_ext
  7841. if test "$libc_cv_compiler_default_file_offset_bits" = yes
  7842. then :
  7843. no_file_offset_bits_source="-U_FILE_OFFSET_BITS"
  7844. fi
  7845. config_vars="$config_vars
  7846. no-file-offset-bits-source = $no_file_offset_bits_source"
  7847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7848. /* end confdefs.h. */
  7849. int
  7850. main (void)
  7851. {
  7852. #ifndef _TIME_BITS
  7853. # error _TIME_BITS not defined
  7854. #endif
  7855. ;
  7856. return 0;
  7857. }
  7858. _ACEOF
  7859. if ac_fn_c_try_cpp "$LINENO"
  7860. then :
  7861. libc_cv_compiler_default_time_bits=yes
  7862. else case e in #(
  7863. e) libc_cv_compiler_default_time_bits=no ;;
  7864. esac
  7865. fi
  7866. rm -f conftest.err conftest.i conftest.$ac_ext
  7867. if test "$libc_cv_compiler_default_time_bits" = yes
  7868. then :
  7869. no_time_bits_source="-U_TIME_BITS"
  7870. fi
  7871. config_vars="$config_vars
  7872. no-time-bits-source = $no_time_bits_source"
  7873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
  7874. printf %s "checking whether the assembler requires one version per symbol... " >&6; }
  7875. if test ${libc_cv_symver_needs_alias+y}
  7876. then :
  7877. printf %s "(cached) " >&6
  7878. else case e in #(
  7879. e) cat > conftest.s <<EOF
  7880. .text
  7881. testfunc:
  7882. .globl testfunc
  7883. .symver testfunc, testfunc1@VERSION1
  7884. .symver testfunc, testfunc1@VERSION2
  7885. EOF
  7886. libc_cv_symver_needs_alias=no
  7887. if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then
  7888. libc_cv_symver_needs_alias=no
  7889. else
  7890. libc_cv_symver_needs_alias=yes
  7891. fi
  7892. rm conftest.*
  7893. ;;
  7894. esac
  7895. fi
  7896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
  7897. printf "%s\n" "$libc_cv_symver_needs_alias" >&6; }
  7898. if test "$libc_cv_symver_needs_alias" = yes; then
  7899. printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
  7900. fi
  7901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
  7902. printf %s "checking for __builtin_trap with no external dependencies... " >&6; }
  7903. if test ${libc_cv_builtin_trap+y}
  7904. then :
  7905. printf %s "(cached) " >&6
  7906. else case e in #(
  7907. e) libc_cv_builtin_trap=no
  7908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7909. /* end confdefs.h. */
  7910. int
  7911. main (void)
  7912. {
  7913. __builtin_trap ()
  7914. ;
  7915. return 0;
  7916. }
  7917. _ACEOF
  7918. if ac_fn_c_try_compile "$LINENO"
  7919. then :
  7920. libc_undefs=`$NM -u conftest.o |
  7921. LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
  7922. 2>&5` || {
  7923. as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
  7924. }
  7925. echo >&5 "libc_undefs='$libc_undefs'"
  7926. if test -z "$libc_undefs"; then
  7927. libc_cv_builtin_trap=yes
  7928. fi
  7929. fi
  7930. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7931. esac
  7932. fi
  7933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
  7934. printf "%s\n" "$libc_cv_builtin_trap" >&6; }
  7935. if test $libc_cv_builtin_trap = yes; then
  7936. printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
  7937. fi
  7938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __attribute__ ((aligned (65536)))" >&5
  7939. printf %s "checking whether the compiler supports __attribute__ ((aligned (65536)))... " >&6; }
  7940. if test ${libc_cv_aligned_65536+y}
  7941. then :
  7942. printf %s "(cached) " >&6
  7943. else case e in #(
  7944. e)
  7945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7946. /* end confdefs.h. */
  7947. char bss0xb5dce8 __attribute__ ((aligned (65536)));
  7948. _ACEOF
  7949. if ac_fn_c_try_compile "$LINENO"
  7950. then :
  7951. libc_cv_aligned_65536=yes
  7952. else case e in #(
  7953. e) libc_cv_aligned_65536=no ;;
  7954. esac
  7955. fi
  7956. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7957. ;;
  7958. esac
  7959. fi
  7960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aligned_65536" >&5
  7961. printf "%s\n" "$libc_cv_aligned_65536" >&6; }
  7962. config_vars="$config_vars
  7963. aligned-65536 = $libc_cv_aligned_65536"
  7964. ac_ext=cpp
  7965. ac_cpp='$CXXCPP $CPPFLAGS'
  7966. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7967. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7968. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
  7970. printf %s "checking whether the C++ compiler supports thread_local... " >&6; }
  7971. if test ${libc_cv_cxx_thread_local+y}
  7972. then :
  7973. printf %s "(cached) " >&6
  7974. else case e in #(
  7975. e)
  7976. old_CXXFLAGS="$CXXFLAGS"
  7977. CXXFLAGS="$CXXFLAGS -std=gnu++11"
  7978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7979. /* end confdefs.h. */
  7980. #include <thread>
  7981. // Compiler support.
  7982. struct S
  7983. {
  7984. S ();
  7985. ~S ();
  7986. };
  7987. thread_local S s;
  7988. S * get () { return &s; }
  7989. // libstdc++ support.
  7990. #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
  7991. #error __cxa_thread_atexit_impl not supported
  7992. #endif
  7993. _ACEOF
  7994. if ac_fn_cxx_try_compile "$LINENO"
  7995. then :
  7996. libc_cv_cxx_thread_local=yes
  7997. else case e in #(
  7998. e) libc_cv_cxx_thread_local=no ;;
  7999. esac
  8000. fi
  8001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8002. CXXFLAGS="$old_CXXFLAGS"
  8003. ;;
  8004. esac
  8005. fi
  8006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
  8007. printf "%s\n" "$libc_cv_cxx_thread_local" >&6; }
  8008. ac_ext=c
  8009. ac_cpp='$CPP $CPPFLAGS'
  8010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8013. ### End of automated tests.
  8014. ### Now run sysdeps configure fragments.
  8015. # They also can set these variables.
  8016. use_ldconfig=no
  8017. ldd_rewrite_script=no
  8018. libc_cv_sysconfdir=$sysconfdir
  8019. libc_cv_localstatedir=$localstatedir
  8020. libc_cv_gcc_unwind_find_fde=no
  8021. libc_cv_idn=no
  8022. pthread_in_libc=yes
  8023. abort_in_ld=no
  8024. # Iterate over all the sysdep directories we will use, running their
  8025. # configure fragments.
  8026. for dir in $sysnames; do
  8027. case $dir in
  8028. /*) dest=$dir ;;
  8029. *) dest=$srcdir/$dir ;;
  8030. esac
  8031. if test -r $dest/configure; then
  8032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
  8033. printf "%s\n" "running configure fragment for $dir" >&6; }
  8034. . $dest/configure
  8035. fi
  8036. done
  8037. if test x"$build_mathvec" = xnotset; then
  8038. build_mathvec=no
  8039. fi
  8040. config_vars="$config_vars
  8041. build-mathvec = $build_mathvec"
  8042. if test x$libc_cv_gcc_unwind_find_fde = xyes; then
  8043. printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
  8044. fi
  8045. # A sysdeps configure fragment can reset this if IFUNC is not actually
  8046. # usable even though the assembler knows how to generate the symbol type.
  8047. if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
  8048. printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
  8049. fi
  8050. config_vars="$config_vars
  8051. have-ifunc = $libc_cv_ld_gnu_indirect_function"
  8052. if test x"$libc_cv_gcc_indirect_function" = xyes; then
  8053. printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
  8054. fi
  8055. config_vars="$config_vars
  8056. have-gcc-ifunc = $libc_cv_gcc_indirect_function"
  8057. # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
  8058. # configure fragment can override the value to prevent this AC_DEFINE.
  8059. if test "x$use_nscd" != xno; then
  8060. printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
  8061. fi
  8062. if test "x$build_nscd" = xdefault; then
  8063. build_nscd=$use_nscd
  8064. fi
  8065. if test x$use_ldconfig = xyes; then
  8066. printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
  8067. fi
  8068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
  8069. printf %s "checking whether -fPIC is default... " >&6; }
  8070. if test ${libc_cv_pic_default+y}
  8071. then :
  8072. printf %s "(cached) " >&6
  8073. else case e in #(
  8074. e) libc_cv_pic_default=yes
  8075. cat > conftest.c <<EOF
  8076. #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
  8077. # error PIC is default.
  8078. #endif
  8079. EOF
  8080. if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
  8081. libc_cv_pic_default=no
  8082. fi
  8083. rm -f conftest.* ;;
  8084. esac
  8085. fi
  8086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
  8087. printf "%s\n" "$libc_cv_pic_default" >&6; }
  8088. config_vars="$config_vars
  8089. build-pic-default = $libc_cv_pic_default"
  8090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
  8091. printf %s "checking whether -fPIE is default... " >&6; }
  8092. if test ${libc_cv_cc_pie_default+y}
  8093. then :
  8094. printf %s "(cached) " >&6
  8095. else case e in #(
  8096. e) libc_cv_cc_pie_default=yes
  8097. cat > conftest.c <<EOF
  8098. #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
  8099. # error PIE is default.
  8100. #endif
  8101. EOF
  8102. if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
  8103. libc_cv_cc_pie_default=no
  8104. fi
  8105. rm -f conftest.* ;;
  8106. esac
  8107. fi
  8108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
  8109. printf "%s\n" "$libc_cv_cc_pie_default" >&6; }
  8110. config_vars="$config_vars
  8111. cc-pie-default = $libc_cv_cc_pie_default"
  8112. # Get Position Dependent Executable (PDE) load address to be used to
  8113. # load static Position Independent Executable (PIE) at a known working
  8114. # non-zero load address. This is only used by glibc tests to verify
  8115. # that PIE and static PIE with non-zero load address work correctly.
  8116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PDE load address" >&5
  8117. printf %s "checking PDE load address... " >&6; }
  8118. if test ${libc_cv_pde_load_address+y}
  8119. then :
  8120. printf %s "(cached) " >&6
  8121. else case e in #(
  8122. e) cat > conftest.S <<EOF
  8123. .globl _start
  8124. _start:
  8125. .globl __start
  8126. __start:
  8127. .byte 0
  8128. EOF
  8129. if test $libc_cv_cc_pie_default = yes; then
  8130. pde_ld_flags="-no-pie"
  8131. fi
  8132. if ${CC-cc} $pde_ld_flags $CFLAGS $CPPFLAGS $LDFLAGS \
  8133. -nostartfiles -nostdlib $no_ssp \
  8134. -o conftest conftest.S 1>&5 2>&5; then
  8135. # Get the load address of the first PT_LOAD segment.
  8136. libc_cv_pde_load_address=$(LC_ALL=C $READELF -Wl conftest \
  8137. | $AWK '/LOAD/ { print $3; exit 0; }')
  8138. else
  8139. as_fn_error $? "${CC-cc} can not create PDE" "$LINENO" 5
  8140. fi
  8141. rm -f conftest* ;;
  8142. esac
  8143. fi
  8144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pde_load_address" >&5
  8145. printf "%s\n" "$libc_cv_pde_load_address" >&6; }
  8146. config_vars="$config_vars
  8147. pde-load-address = $libc_cv_pde_load_address"
  8148. # Get the linker command-line option to load executable at a non-zero
  8149. # load address. This is only used by glibc tests to verify that PIE and
  8150. # static PIE with non-zero load address work correctly.
  8151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -Ttext-segment=$libc_cv_pde_load_address" >&5
  8152. printf %s "checking for linker that supports -Ttext-segment=$libc_cv_pde_load_address... " >&6; }
  8153. libc_linker_feature=no
  8154. cat > conftest.c <<EOF
  8155. int _start (void) { return 42; }
  8156. EOF
  8157. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
  8158. -Wl,-Ttext-segment=$libc_cv_pde_load_address -nostdlib -nostartfiles
  8159. -fPIC -shared -o conftest.so conftest.c
  8160. 1>&5'
  8161. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8162. (eval $ac_try) 2>&5
  8163. ac_status=$?
  8164. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8165. test $ac_status = 0; }; }
  8166. then
  8167. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-Ttext-segment=$libc_cv_pde_load_address -nostdlib \
  8168. -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
  8169. | grep "warning: -Ttext-segment=$libc_cv_pde_load_address ignored" > /dev/null 2>&1; then
  8170. true
  8171. else
  8172. libc_linker_feature=yes
  8173. fi
  8174. fi
  8175. rm -f conftest*
  8176. if test $libc_linker_feature = yes; then
  8177. libc_cv_load_address_ldflag=-Wl,-Ttext-segment
  8178. else
  8179. libc_cv_load_address_ldflag=
  8180. fi
  8181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
  8182. printf "%s\n" "$libc_linker_feature" >&6; }
  8183. config_vars="$config_vars
  8184. load-address-ldflag = $libc_cv_load_address_ldflag"
  8185. # Check if compiler supports -fno-fp-int-builtin-inexact
  8186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -fno-fp-int-builtin-inexact" >&5
  8187. printf %s "checking if compiler supports -fno-fp-int-builtin-inexact... " >&6; }
  8188. if test ${libc_cv_cc_no_fp_builtin_inexact+y}
  8189. then :
  8190. printf %s "(cached) " >&6
  8191. else case e in #(
  8192. e) if { ac_try='${CC-cc} -Werror -fno-fp-int-builtin-inexact -xc /dev/null -S -o /dev/null'
  8193. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8194. (eval $ac_try) 2>&5
  8195. ac_status=$?
  8196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8197. test $ac_status = 0; }; }
  8198. then :
  8199. libc_cv_cc_no_fp_builtin_inexact=-fno-fp-int-builtin-inexact
  8200. else case e in #(
  8201. e) libc_cv_cc_no_fp_builtin_inexact= ;;
  8202. esac
  8203. fi ;;
  8204. esac
  8205. fi
  8206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_no_fp_builtin_inexact" >&5
  8207. printf "%s\n" "$libc_cv_cc_no_fp_builtin_inexact" >&6; }
  8208. if test "$TEST_CC" = "$CC"; then
  8209. libc_cv_test_cc_no_fp_builtin_inexact=$libc_cv_cc_no_fp_builtin_inexact
  8210. else
  8211. saved_CC="$CC"
  8212. CC="$TEST_CC"
  8213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -fno-fp-int-builtin-inexact in testing" >&5
  8214. printf %s "checking if compiler supports -fno-fp-int-builtin-inexact in testing... " >&6; }
  8215. if test ${libc_cv_test_cc_no_fp_builtin_inexact+y}
  8216. then :
  8217. printf %s "(cached) " >&6
  8218. else case e in #(
  8219. e) if { ac_try='${CC-cc} -Werror -fno-fp-int-builtin-inexact -xc /dev/null -S -o /dev/null'
  8220. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8221. (eval $ac_try) 2>&5
  8222. ac_status=$?
  8223. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8224. test $ac_status = 0; }; }
  8225. then :
  8226. libc_cv_test_cc_no_fp_builtin_inexact=-fno-fp-int-builtin-inexact
  8227. else case e in #(
  8228. e) libc_cv_test_cc_no_fp_builtin_inexact= ;;
  8229. esac
  8230. fi ;;
  8231. esac
  8232. fi
  8233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_no_fp_builtin_inexact" >&5
  8234. printf "%s\n" "$libc_cv_test_cc_no_fp_builtin_inexact" >&6; }
  8235. CC="$saved_CC"
  8236. fi
  8237. config_vars="$config_vars
  8238. config-cflags-no-fp-builtin-inexact = $libc_cv_cc_no_fp_builtin_inexact"
  8239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --undefined-version" >&5
  8240. printf %s "checking for linker that supports --undefined-version... " >&6; }
  8241. libc_linker_feature=no
  8242. cat > conftest.c <<EOF
  8243. int _start (void) { return 42; }
  8244. EOF
  8245. if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
  8246. -Wl,--undefined-version -nostdlib -nostartfiles
  8247. -fPIC -shared -o conftest.so conftest.c
  8248. 1>&5'
  8249. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8250. (eval $ac_try) 2>&5
  8251. ac_status=$?
  8252. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8253. test $ac_status = 0; }; }
  8254. then
  8255. if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--undefined-version -nostdlib \
  8256. -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
  8257. | grep "warning: --undefined-version ignored" > /dev/null 2>&1; then
  8258. true
  8259. else
  8260. libc_linker_feature=yes
  8261. fi
  8262. fi
  8263. rm -f conftest*
  8264. if test $libc_linker_feature = yes; then
  8265. libc_cv_ld_undefined_version=-Wl,--undefined-version
  8266. else
  8267. libc_cv_ld_undefined_version=
  8268. fi
  8269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
  8270. printf "%s\n" "$libc_linker_feature" >&6; }
  8271. config_vars="$config_vars
  8272. have-undefined-version = $libc_cv_ld_undefined_version"
  8273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
  8274. printf %s "checking if we can build programs as PIE... " >&6; }
  8275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8276. /* end confdefs.h. */
  8277. #ifdef PIE_UNSUPPORTED
  8278. # error PIE is not supported
  8279. #endif
  8280. _ACEOF
  8281. if ac_fn_c_try_compile "$LINENO"
  8282. then :
  8283. libc_cv_pie_supported=yes
  8284. else case e in #(
  8285. e) libc_cv_pie_supported=no ;;
  8286. esac
  8287. fi
  8288. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
  8290. printf "%s\n" "$libc_cv_pie_supported" >&6; }
  8291. # Disable build-pie-default if target does not support it or glibc is
  8292. # configured with --disable-default-pie.
  8293. if test "x$default_pie" = xno; then
  8294. build_pie_default=no
  8295. else
  8296. build_pie_default=$libc_cv_pie_supported
  8297. fi
  8298. config_vars="$config_vars
  8299. build-pie-default = $build_pie_default"
  8300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
  8301. printf %s "checking if we can build static PIE programs... " >&6; }
  8302. libc_cv_static_pie_supported=$libc_cv_pie_supported
  8303. if test "x$libc_cv_pie_supported" != xno \
  8304. -a "$libc_cv_no_dynamic_linker" = yes; then
  8305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8306. /* end confdefs.h. */
  8307. #ifndef SUPPORT_STATIC_PIE
  8308. # error static PIE is not supported
  8309. #endif
  8310. _ACEOF
  8311. if ac_fn_c_try_compile "$LINENO"
  8312. then :
  8313. libc_cv_static_pie_supported=yes
  8314. else case e in #(
  8315. e) libc_cv_static_pie_supported=no ;;
  8316. esac
  8317. fi
  8318. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8319. fi
  8320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
  8321. printf "%s\n" "$libc_cv_static_pie_supported" >&6; }
  8322. # Enable static-pie only if it is available and glibc isn't configured
  8323. # with --disable-default-pie.
  8324. if test "x$default_pie" = xno; then
  8325. libc_cv_static_pie=no
  8326. else
  8327. libc_cv_static_pie=$libc_cv_static_pie_supported
  8328. fi
  8329. if test "$libc_cv_static_pie" = "yes"; then
  8330. printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
  8331. fi
  8332. config_vars="$config_vars
  8333. enable-static-pie = $libc_cv_static_pie"
  8334. # Check if we can link support functionality against libgcc_s.
  8335. # Must not be used for linking installed binaries, to produce the
  8336. # same binaries for bootstrapped and bootstrapping builds (the latter
  8337. # with a GCC that does not build libgcc_s).
  8338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC can link against -lgcc_s" >&5
  8339. printf %s "checking whether $CC can link against -lgcc_s... " >&6; }
  8340. if test ${libc_cv_have_libgcc_s+y}
  8341. then :
  8342. printf %s "(cached) " >&6
  8343. else case e in #(
  8344. e) old_LIBS="$LIBS"
  8345. LIBS="$LIBS -lgcc_s"
  8346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8347. /* end confdefs.h. */
  8348. int
  8349. main (void)
  8350. {
  8351. ;
  8352. return 0;
  8353. }
  8354. _ACEOF
  8355. if ac_fn_c_try_link "$LINENO"
  8356. then :
  8357. libc_cv_have_libgcc_s=yes
  8358. else case e in #(
  8359. e) libc_cv_have_libgcc_s=no ;;
  8360. esac
  8361. fi
  8362. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8363. conftest$ac_exeext conftest.$ac_ext
  8364. LIBS="$old_LIBS" ;;
  8365. esac
  8366. fi
  8367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_libgcc_s" >&5
  8368. printf "%s\n" "$libc_cv_have_libgcc_s" >&6; }
  8369. config_vars="$config_vars
  8370. have-libgcc_s = $libc_cv_have_libgcc_s"
  8371. # Support configure.ac under sysdeps.
  8372. enable_gsframe=no
  8373. if test $use_sframe = yes; then
  8374. # SFrame requires to be explicit enabled by the architecture
  8375. if test -z $libc_cv_support_sframe; then
  8376. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  8377. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  8378. as_fn_error $? "the architecture doesn't support SFrame
  8379. See 'config.log' for more details" "$LINENO" 5; }
  8380. fi
  8381. # SFrame requires binutils 2.45 or higher.
  8382. libc_cv_sframe_readelf_version=yes
  8383. for ac_prog in $READELF
  8384. do
  8385. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8386. set dummy $ac_prog; ac_word=$2
  8387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8388. printf %s "checking for $ac_word... " >&6; }
  8389. if test ${ac_cv_prog_READELF+y}
  8390. then :
  8391. printf %s "(cached) " >&6
  8392. else case e in #(
  8393. e) if test -n "$READELF"; then
  8394. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8395. else
  8396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8397. for as_dir in $PATH
  8398. do
  8399. IFS=$as_save_IFS
  8400. case $as_dir in #(((
  8401. '') as_dir=./ ;;
  8402. */) ;;
  8403. *) as_dir=$as_dir/ ;;
  8404. esac
  8405. for ac_exec_ext in '' $ac_executable_extensions; do
  8406. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8407. ac_cv_prog_READELF="$ac_prog"
  8408. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8409. break 2
  8410. fi
  8411. done
  8412. done
  8413. IFS=$as_save_IFS
  8414. fi ;;
  8415. esac
  8416. fi
  8417. READELF=$ac_cv_prog_READELF
  8418. if test -n "$READELF"; then
  8419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8420. printf "%s\n" "$READELF" >&6; }
  8421. else
  8422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8423. printf "%s\n" "no" >&6; }
  8424. fi
  8425. test -n "$READELF" && break
  8426. done
  8427. if test -z "$READELF"; then
  8428. ac_verc_fail=yes
  8429. else
  8430. # Found it, now check the version.
  8431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $READELF" >&5
  8432. printf %s "checking version of $READELF... " >&6; }
  8433. ac_prog_version=`$READELF --version 2>&1 | sed -n 's/^.*GNU readelf.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
  8434. case $ac_prog_version in
  8435. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8436. 2.4[5-9]*|2.[5-9][0-9]*|2.[1-9][0-9][0-9]*|[3-9]*|[1-9][0-9]*)
  8437. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8438. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8439. esac
  8440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  8441. printf "%s\n" "$ac_prog_version" >&6; }
  8442. fi
  8443. if test $ac_verc_fail = yes; then
  8444. libc_cv_sframe_readelf_version=no
  8445. fi
  8446. if test $libc_cv_sframe_readelf_version = no; then
  8447. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  8448. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  8449. as_fn_error $? "binutils too old to enable SFrame
  8450. See 'config.log' for more details" "$LINENO" 5; }
  8451. fi
  8452. # Check if the current toolchain supports SFrame
  8453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SFrame support" >&5
  8454. printf %s "checking for SFrame support... " >&6; }
  8455. if test ${libc_cv_default_sframe+y}
  8456. then :
  8457. printf %s "(cached) " >&6
  8458. else case e in #(
  8459. e) cat > conftest.c <<EOF
  8460. int test_function(void)
  8461. {
  8462. return 42;
  8463. }
  8464. EOF
  8465. libc_cv_default_sframe=no
  8466. if ${CC} -c conftest.c -o conftest.o -Wa,--gsframe >/dev/null 2>&1 && \
  8467. # Check if .sframe section is present and if version > 1
  8468. $READELF --sframe conftest.o | grep "SFRAME_VER" | grep -qv "VERSION_1"; then
  8469. libc_cv_default_sframe=yes
  8470. fi
  8471. rm -f conftest.c conftest.o
  8472. ;;
  8473. esac
  8474. fi
  8475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_default_sframe" >&5
  8476. printf "%s\n" "$libc_cv_default_sframe" >&6; }
  8477. if test $libc_cv_default_sframe = no; then
  8478. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  8479. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  8480. as_fn_error $? "toolchain doesn't support SFrame v2 or higher
  8481. See 'config.log' for more details" "$LINENO" 5; }
  8482. fi
  8483. enable_gsframe=yes
  8484. printf "%s\n" "#define ENABLE_SFRAME 1" >>confdefs.h
  8485. fi
  8486. config_vars="$config_vars
  8487. enable-gsframe = $enable_gsframe"
  8488. # Set the `multidir' variable by grabbing the variable from the compiler.
  8489. # We do it once and save the result in a generated makefile.
  8490. libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
  8491. VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
  8492. RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
  8493. if test "$pthread_in_libc" = yes; then
  8494. printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
  8495. fi
  8496. # Some symbols that might be auto-generated by the compiler are redefined
  8497. # to internal alias (for instance mempcpy to __mempcpy). However, if fortify
  8498. # is enabled, the fortify wrapper is define before the alias re-defined and
  8499. # clang warns attribute declaration must precede definition.
  8500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking attribute can declared after function declaration" >&5
  8501. printf %s "checking attribute can declared after function declaration... " >&6; }
  8502. if test ${libc_cv_attr_after_func_decl+y}
  8503. then :
  8504. printf %s "(cached) " >&6
  8505. else case e in #(
  8506. e) cat > conftest.c <<EOF
  8507. extern __inline int foo (void) { return 0; };
  8508. extern __typeof (foo) foo __asm__ ("__foo");
  8509. EOF
  8510. libc_cv_attr_after_func_decl=no
  8511. if ${CC-cc} $CFLAGS $CPPFLAGS -fgnu89-inline -Werror conftest.c -c \
  8512. 1>&5 2>&5 ; then
  8513. libc_cv_attr_after_func_decl=yes
  8514. fi
  8515. rm -rf conftest* ;;
  8516. esac
  8517. fi
  8518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_attr_after_func_decl" >&5
  8519. printf "%s\n" "$libc_cv_attr_after_func_decl" >&6; }
  8520. if test "$libc_cv_attr_after_func_decl" = yes; then
  8521. printf "%s\n" "#define ATTR_AFTER_FUNC_DECL 1" >>confdefs.h
  8522. fi
  8523. config_vars="$config_vars
  8524. abort-in-ld = $abort_in_ld";
  8525. ac_config_files="$ac_config_files config.make Makefile"
  8526. ac_config_commands="$ac_config_commands default"
  8527. cat >confcache <<\_ACEOF
  8528. # This file is a shell script that caches the results of configure
  8529. # tests run on this system so they can be shared between configure
  8530. # scripts and configure runs, see configure's option --config-cache.
  8531. # It is not useful on other systems. If it contains results you don't
  8532. # want to keep, you may remove or edit it.
  8533. #
  8534. # config.status only pays attention to the cache file if you give it
  8535. # the --recheck option to rerun configure.
  8536. #
  8537. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  8538. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  8539. # following values.
  8540. _ACEOF
  8541. # The following way of writing the cache mishandles newlines in values,
  8542. # but we know of no workaround that is simple, portable, and efficient.
  8543. # So, we kill variables containing newlines.
  8544. # Ultrix sh set writes to stderr and can't be redirected directly,
  8545. # and sets the high bit in the cache file unless we assign to the vars.
  8546. (
  8547. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8548. eval ac_val=\$$ac_var
  8549. case $ac_val in #(
  8550. *${as_nl}*)
  8551. case $ac_var in #(
  8552. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8553. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8554. esac
  8555. case $ac_var in #(
  8556. _ | IFS | as_nl) ;; #(
  8557. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8558. *) { eval $ac_var=; unset $ac_var;} ;;
  8559. esac ;;
  8560. esac
  8561. done
  8562. (set) 2>&1 |
  8563. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8564. *${as_nl}ac_space=\ *)
  8565. # 'set' does not quote correctly, so add quotes: double-quote
  8566. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8567. sed -n \
  8568. "s/'/'\\\\''/g;
  8569. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8570. ;; #(
  8571. *)
  8572. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  8573. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8574. ;;
  8575. esac |
  8576. sort
  8577. ) |
  8578. sed '
  8579. /^ac_cv_env_/b end
  8580. t clear
  8581. :clear
  8582. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  8583. t end
  8584. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8585. :end' >>confcache
  8586. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8587. if test -w "$cache_file"; then
  8588. if test "x$cache_file" != "x/dev/null"; then
  8589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8590. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  8591. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8592. cat confcache >"$cache_file"
  8593. else
  8594. case $cache_file in #(
  8595. */* | ?:*)
  8596. mv -f confcache "$cache_file"$$ &&
  8597. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8598. *)
  8599. mv -f confcache "$cache_file" ;;
  8600. esac
  8601. fi
  8602. fi
  8603. else
  8604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8605. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  8606. fi
  8607. fi
  8608. rm -f confcache
  8609. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8610. # Let make expand exec_prefix.
  8611. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8612. DEFS=-DHAVE_CONFIG_H
  8613. ac_libobjs=
  8614. ac_ltlibobjs=
  8615. U=
  8616. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8617. # 1. Remove the extension, and $U if already installed.
  8618. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8619. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  8620. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8621. # will be set to the directory where LIBOBJS objects are built.
  8622. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8623. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8624. done
  8625. LIBOBJS=$ac_libobjs
  8626. LTLIBOBJS=$ac_ltlibobjs
  8627. : "${CONFIG_STATUS=./config.status}"
  8628. ac_write_fail=0
  8629. ac_clean_files_save=$ac_clean_files
  8630. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8632. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  8633. as_write_fail=0
  8634. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8635. #! $SHELL
  8636. # Generated by $as_me.
  8637. # Run this file to recreate the current configuration.
  8638. # Compiler output produced by configure, useful for debugging
  8639. # configure, is in config.log if it exists.
  8640. debug=false
  8641. ac_cs_recheck=false
  8642. ac_cs_silent=false
  8643. SHELL=\${CONFIG_SHELL-$SHELL}
  8644. export SHELL
  8645. _ASEOF
  8646. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8647. ## -------------------- ##
  8648. ## M4sh Initialization. ##
  8649. ## -------------------- ##
  8650. # Be more Bourne compatible
  8651. DUALCASE=1; export DUALCASE # for MKS sh
  8652. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  8653. then :
  8654. emulate sh
  8655. NULLCMD=:
  8656. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8657. # is contrary to our usage. Disable this feature.
  8658. alias -g '${1+"$@"}'='"$@"'
  8659. setopt NO_GLOB_SUBST
  8660. else case e in #(
  8661. e) case `(set -o) 2>/dev/null` in #(
  8662. *posix*) :
  8663. set -o posix ;; #(
  8664. *) :
  8665. ;;
  8666. esac ;;
  8667. esac
  8668. fi
  8669. # Reset variables that may have inherited troublesome values from
  8670. # the environment.
  8671. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  8672. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  8673. # side effect of setting IFS to empty, thus disabling word splitting.)
  8674. # Quoting is to prevent editors from complaining about space-tab.
  8675. as_nl='
  8676. '
  8677. export as_nl
  8678. IFS=" "" $as_nl"
  8679. PS1='$ '
  8680. PS2='> '
  8681. PS4='+ '
  8682. # Ensure predictable behavior from utilities with locale-dependent output.
  8683. LC_ALL=C
  8684. export LC_ALL
  8685. LANGUAGE=C
  8686. export LANGUAGE
  8687. # We cannot yet rely on "unset" to work, but we need these variables
  8688. # to be unset--not just set to an empty or harmless value--now, to
  8689. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  8690. # also avoids known problems related to "unset" and subshell syntax
  8691. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  8692. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  8693. do eval test \${$as_var+y} \
  8694. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8695. done
  8696. # Ensure that fds 0, 1, and 2 are open.
  8697. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  8698. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  8699. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  8700. # The user is always right.
  8701. if ${PATH_SEPARATOR+false} :; then
  8702. PATH_SEPARATOR=:
  8703. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8704. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8705. PATH_SEPARATOR=';'
  8706. }
  8707. fi
  8708. # Find who we are. Look in the path if we contain no directory separator.
  8709. as_myself=
  8710. case $0 in #((
  8711. *[\\/]* ) as_myself=$0 ;;
  8712. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8713. for as_dir in $PATH
  8714. do
  8715. IFS=$as_save_IFS
  8716. case $as_dir in #(((
  8717. '') as_dir=./ ;;
  8718. */) ;;
  8719. *) as_dir=$as_dir/ ;;
  8720. esac
  8721. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  8722. done
  8723. IFS=$as_save_IFS
  8724. ;;
  8725. esac
  8726. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  8727. # in which case we are not to be found in the path.
  8728. if test "x$as_myself" = x; then
  8729. as_myself=$0
  8730. fi
  8731. if test ! -f "$as_myself"; then
  8732. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8733. exit 1
  8734. fi
  8735. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8736. # ----------------------------------------
  8737. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8738. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8739. # script with STATUS, using 1 if that was 0.
  8740. as_fn_error ()
  8741. {
  8742. as_status=$1; test $as_status -eq 0 && as_status=1
  8743. if test "$4"; then
  8744. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8745. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8746. fi
  8747. printf "%s\n" "$as_me: error: $2" >&2
  8748. as_fn_exit $as_status
  8749. } # as_fn_error
  8750. # as_fn_set_status STATUS
  8751. # -----------------------
  8752. # Set $? to STATUS, without forking.
  8753. as_fn_set_status ()
  8754. {
  8755. return $1
  8756. } # as_fn_set_status
  8757. # as_fn_exit STATUS
  8758. # -----------------
  8759. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8760. as_fn_exit ()
  8761. {
  8762. set +e
  8763. as_fn_set_status $1
  8764. exit $1
  8765. } # as_fn_exit
  8766. # as_fn_unset VAR
  8767. # ---------------
  8768. # Portably unset VAR.
  8769. as_fn_unset ()
  8770. {
  8771. { eval $1=; unset $1;}
  8772. }
  8773. as_unset=as_fn_unset
  8774. # as_fn_append VAR VALUE
  8775. # ----------------------
  8776. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8777. # advantage of any shell optimizations that allow amortized linear growth over
  8778. # repeated appends, instead of the typical quadratic growth present in naive
  8779. # implementations.
  8780. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  8781. then :
  8782. eval 'as_fn_append ()
  8783. {
  8784. eval $1+=\$2
  8785. }'
  8786. else case e in #(
  8787. e) as_fn_append ()
  8788. {
  8789. eval $1=\$$1\$2
  8790. } ;;
  8791. esac
  8792. fi # as_fn_append
  8793. # as_fn_arith ARG...
  8794. # ------------------
  8795. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8796. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8797. # must be portable across $(()) and expr.
  8798. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  8799. then :
  8800. eval 'as_fn_arith ()
  8801. {
  8802. as_val=$(( $* ))
  8803. }'
  8804. else case e in #(
  8805. e) as_fn_arith ()
  8806. {
  8807. as_val=`expr "$@" || test $? -eq 1`
  8808. } ;;
  8809. esac
  8810. fi # as_fn_arith
  8811. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8812. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8813. as_expr=expr
  8814. else
  8815. as_expr=false
  8816. fi
  8817. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8818. as_basename=basename
  8819. else
  8820. as_basename=false
  8821. fi
  8822. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8823. as_dirname=dirname
  8824. else
  8825. as_dirname=false
  8826. fi
  8827. as_me=`$as_basename -- "$0" ||
  8828. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8829. X"$0" : 'X\(//\)$' \| \
  8830. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8831. printf "%s\n" X/"$0" |
  8832. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8833. s//\1/
  8834. q
  8835. }
  8836. /^X\/\(\/\/\)$/{
  8837. s//\1/
  8838. q
  8839. }
  8840. /^X\/\(\/\).*/{
  8841. s//\1/
  8842. q
  8843. }
  8844. s/.*/./; q'`
  8845. # Avoid depending upon Character Ranges.
  8846. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8847. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8848. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8849. as_cr_digits='0123456789'
  8850. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8851. # Determine whether it's possible to make 'echo' print without a newline.
  8852. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  8853. # for compatibility with existing Makefiles.
  8854. ECHO_C= ECHO_N= ECHO_T=
  8855. case `echo -n x` in #(((((
  8856. -n*)
  8857. case `echo 'xy\c'` in
  8858. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8859. xy) ECHO_C='\c';;
  8860. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8861. ECHO_T=' ';;
  8862. esac;;
  8863. *)
  8864. ECHO_N='-n';;
  8865. esac
  8866. # For backward compatibility with old third-party macros, we provide
  8867. # the shell variables $as_echo and $as_echo_n. New code should use
  8868. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  8869. as_echo='printf %s\n'
  8870. as_echo_n='printf %s'
  8871. rm -f conf$$ conf$$.exe conf$$.file
  8872. if test -d conf$$.dir; then
  8873. rm -f conf$$.dir/conf$$.file
  8874. else
  8875. rm -f conf$$.dir
  8876. mkdir conf$$.dir 2>/dev/null
  8877. fi
  8878. if (echo >conf$$.file) 2>/dev/null; then
  8879. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8880. as_ln_s='ln -s'
  8881. # ... but there are two gotchas:
  8882. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  8883. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  8884. # In both cases, we have to default to 'cp -pR'.
  8885. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8886. as_ln_s='cp -pR'
  8887. elif ln conf$$.file conf$$ 2>/dev/null; then
  8888. as_ln_s=ln
  8889. else
  8890. as_ln_s='cp -pR'
  8891. fi
  8892. else
  8893. as_ln_s='cp -pR'
  8894. fi
  8895. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8896. rmdir conf$$.dir 2>/dev/null
  8897. # as_fn_mkdir_p
  8898. # -------------
  8899. # Create "$as_dir" as a directory, including parents if necessary.
  8900. as_fn_mkdir_p ()
  8901. {
  8902. case $as_dir in #(
  8903. -*) as_dir=./$as_dir;;
  8904. esac
  8905. test -d "$as_dir" || eval $as_mkdir_p || {
  8906. as_dirs=
  8907. while :; do
  8908. case $as_dir in #(
  8909. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8910. *) as_qdir=$as_dir;;
  8911. esac
  8912. as_dirs="'$as_qdir' $as_dirs"
  8913. as_dir=`$as_dirname -- "$as_dir" ||
  8914. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8915. X"$as_dir" : 'X\(//\)[^/]' \| \
  8916. X"$as_dir" : 'X\(//\)$' \| \
  8917. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8918. printf "%s\n" X"$as_dir" |
  8919. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8920. s//\1/
  8921. q
  8922. }
  8923. /^X\(\/\/\)[^/].*/{
  8924. s//\1/
  8925. q
  8926. }
  8927. /^X\(\/\/\)$/{
  8928. s//\1/
  8929. q
  8930. }
  8931. /^X\(\/\).*/{
  8932. s//\1/
  8933. q
  8934. }
  8935. s/.*/./; q'`
  8936. test -d "$as_dir" && break
  8937. done
  8938. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8939. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8940. } # as_fn_mkdir_p
  8941. if mkdir -p . 2>/dev/null; then
  8942. as_mkdir_p='mkdir -p "$as_dir"'
  8943. else
  8944. test -d ./-p && rmdir ./-p
  8945. as_mkdir_p=false
  8946. fi
  8947. # as_fn_executable_p FILE
  8948. # -----------------------
  8949. # Test if FILE is an executable regular file.
  8950. as_fn_executable_p ()
  8951. {
  8952. test -f "$1" && test -x "$1"
  8953. } # as_fn_executable_p
  8954. as_test_x='test -x'
  8955. as_executable_p=as_fn_executable_p
  8956. # Sed expression to map a string onto a valid CPP name.
  8957. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  8958. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  8959. # Sed expression to map a string onto a valid variable name.
  8960. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  8961. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  8962. exec 6>&1
  8963. ## ----------------------------------- ##
  8964. ## Main body of $CONFIG_STATUS script. ##
  8965. ## ----------------------------------- ##
  8966. _ASEOF
  8967. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8969. # Save the log message, to keep $0 and so on meaningful, and to
  8970. # report actual input values of CONFIG_FILES etc. instead of their
  8971. # values after options handling.
  8972. ac_log="
  8973. This file was extended by GNU C Library $as_me (see version.h), which was
  8974. generated by GNU Autoconf 2.72. Invocation command line was
  8975. CONFIG_FILES = $CONFIG_FILES
  8976. CONFIG_HEADERS = $CONFIG_HEADERS
  8977. CONFIG_LINKS = $CONFIG_LINKS
  8978. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8979. $ $0 $@
  8980. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8981. "
  8982. _ACEOF
  8983. case $ac_config_files in *"
  8984. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8985. esac
  8986. case $ac_config_headers in *"
  8987. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8988. esac
  8989. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8990. # Files that config.status was made for.
  8991. config_files="$ac_config_files"
  8992. config_headers="$ac_config_headers"
  8993. config_commands="$ac_config_commands"
  8994. _ACEOF
  8995. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8996. ac_cs_usage="\
  8997. '$as_me' instantiates files and other configuration actions
  8998. from templates according to the current configuration. Unless the files
  8999. and actions are specified as TAGs, all are instantiated by default.
  9000. Usage: $0 [OPTION]... [TAG]...
  9001. -h, --help print this help, then exit
  9002. -V, --version print version number and configuration settings, then exit
  9003. --config print configuration, then exit
  9004. -q, --quiet, --silent
  9005. do not print progress messages
  9006. -d, --debug don't remove temporary files
  9007. --recheck update $as_me by reconfiguring in the same conditions
  9008. --file=FILE[:TEMPLATE]
  9009. instantiate the configuration file FILE
  9010. --header=FILE[:TEMPLATE]
  9011. instantiate the configuration header FILE
  9012. Configuration files:
  9013. $config_files
  9014. Configuration headers:
  9015. $config_headers
  9016. Configuration commands:
  9017. $config_commands
  9018. Report bugs to <https://sourceware.org/bugzilla/>.
  9019. GNU C Library home page: <https://www.gnu.org/software/glibc/>.
  9020. General help using GNU software: <https://www.gnu.org/gethelp/>."
  9021. _ACEOF
  9022. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  9023. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  9024. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9025. ac_cs_config='$ac_cs_config_escaped'
  9026. ac_cs_version="\\
  9027. GNU C Library config.status (see version.h)
  9028. configured by $0, generated by GNU Autoconf 2.72,
  9029. with options \\"\$ac_cs_config\\"
  9030. Copyright (C) 2023 Free Software Foundation, Inc.
  9031. This config.status script is free software; the Free Software Foundation
  9032. gives unlimited permission to copy, distribute and modify it."
  9033. ac_pwd='$ac_pwd'
  9034. srcdir='$srcdir'
  9035. INSTALL='$INSTALL'
  9036. test -n "\$AWK" || AWK=awk
  9037. _ACEOF
  9038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9039. # The default lists apply if the user does not specify any file.
  9040. ac_need_defaults=:
  9041. while test $# != 0
  9042. do
  9043. case $1 in
  9044. --*=?*)
  9045. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9046. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9047. ac_shift=:
  9048. ;;
  9049. --*=)
  9050. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9051. ac_optarg=
  9052. ac_shift=:
  9053. ;;
  9054. *)
  9055. ac_option=$1
  9056. ac_optarg=$2
  9057. ac_shift=shift
  9058. ;;
  9059. esac
  9060. case $ac_option in
  9061. # Handling of the options.
  9062. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9063. ac_cs_recheck=: ;;
  9064. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9065. printf "%s\n" "$ac_cs_version"; exit ;;
  9066. --config | --confi | --conf | --con | --co | --c )
  9067. printf "%s\n" "$ac_cs_config"; exit ;;
  9068. --debug | --debu | --deb | --de | --d | -d )
  9069. debug=: ;;
  9070. --file | --fil | --fi | --f )
  9071. $ac_shift
  9072. case $ac_optarg in
  9073. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9074. '') as_fn_error $? "missing file argument" ;;
  9075. esac
  9076. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9077. ac_need_defaults=false;;
  9078. --header | --heade | --head | --hea )
  9079. $ac_shift
  9080. case $ac_optarg in
  9081. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9082. esac
  9083. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9084. ac_need_defaults=false;;
  9085. --he | --h)
  9086. # Conflict between --help and --header
  9087. as_fn_error $? "ambiguous option: '$1'
  9088. Try '$0 --help' for more information.";;
  9089. --help | --hel | -h )
  9090. printf "%s\n" "$ac_cs_usage"; exit ;;
  9091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9092. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9093. ac_cs_silent=: ;;
  9094. # This is an error.
  9095. -*) as_fn_error $? "unrecognized option: '$1'
  9096. Try '$0 --help' for more information." ;;
  9097. *) as_fn_append ac_config_targets " $1"
  9098. ac_need_defaults=false ;;
  9099. esac
  9100. shift
  9101. done
  9102. ac_configure_extra_args=
  9103. if $ac_cs_silent; then
  9104. exec 6>/dev/null
  9105. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9106. fi
  9107. _ACEOF
  9108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9109. if \$ac_cs_recheck; then
  9110. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9111. shift
  9112. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  9113. CONFIG_SHELL='$SHELL'
  9114. export CONFIG_SHELL
  9115. exec "\$@"
  9116. fi
  9117. _ACEOF
  9118. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9119. exec 5>>config.log
  9120. {
  9121. echo
  9122. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9123. ## Running $as_me. ##
  9124. _ASBOX
  9125. printf "%s\n" "$ac_log"
  9126. } >&5
  9127. _ACEOF
  9128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9129. #
  9130. # INIT-COMMANDS
  9131. #
  9132. config_vars='$config_vars'
  9133. _ACEOF
  9134. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9135. # Handling of arguments.
  9136. for ac_config_target in $ac_config_targets
  9137. do
  9138. case $ac_config_target in
  9139. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9140. "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
  9141. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9142. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  9143. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  9144. esac
  9145. done
  9146. # If the user did not use the arguments to specify the items to instantiate,
  9147. # then the envvar interface is used. Set only those that are not.
  9148. # We use the long form for the default assignment because of an extremely
  9149. # bizarre bug on SunOS 4.1.3.
  9150. if $ac_need_defaults; then
  9151. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  9152. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  9153. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  9154. fi
  9155. # Have a temporary directory for convenience. Make it in the build tree
  9156. # simply because there is no reason against having it here, and in addition,
  9157. # creating and moving files from /tmp can sometimes cause problems.
  9158. # Hook for its removal unless debugging.
  9159. # Note that there is a small window in which the directory will not be cleaned:
  9160. # after its creation but before its name has been assigned to '$tmp'.
  9161. $debug ||
  9162. {
  9163. tmp= ac_tmp=
  9164. trap 'exit_status=$?
  9165. : "${ac_tmp:=$tmp}"
  9166. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9167. ' 0
  9168. trap 'as_fn_exit 1' 1 2 13 15
  9169. }
  9170. # Create a (secure) tmp directory for tmp files.
  9171. {
  9172. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9173. test -d "$tmp"
  9174. } ||
  9175. {
  9176. tmp=./conf$$-$RANDOM
  9177. (umask 077 && mkdir "$tmp")
  9178. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9179. ac_tmp=$tmp
  9180. # Set up the scripts for CONFIG_FILES section.
  9181. # No need to generate them if there are no CONFIG_FILES.
  9182. # This happens for instance with './config.status config.h'.
  9183. if test -n "$CONFIG_FILES"; then
  9184. ac_cr=`echo X | tr X '\015'`
  9185. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9186. # But we know of no other shell where ac_cr would be empty at this
  9187. # point, so we can use a bashism as a fallback.
  9188. if test "x$ac_cr" = x; then
  9189. eval ac_cr=\$\'\\r\'
  9190. fi
  9191. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9192. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9193. ac_cs_awk_cr='\\r'
  9194. else
  9195. ac_cs_awk_cr=$ac_cr
  9196. fi
  9197. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9198. _ACEOF
  9199. {
  9200. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9201. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9202. echo "_ACEOF"
  9203. } >conf$$subs.sh ||
  9204. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9205. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9206. ac_delim='%!_!# '
  9207. for ac_last_try in false false false false false :; do
  9208. . ./conf$$subs.sh ||
  9209. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9210. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9211. if test $ac_delim_n = $ac_delim_num; then
  9212. break
  9213. elif $ac_last_try; then
  9214. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9215. else
  9216. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9217. fi
  9218. done
  9219. rm -f conf$$subs.sh
  9220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9221. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9222. _ACEOF
  9223. sed -n '
  9224. h
  9225. s/^/S["/; s/!.*/"]=/
  9226. p
  9227. g
  9228. s/^[^!]*!//
  9229. :repl
  9230. t repl
  9231. s/'"$ac_delim"'$//
  9232. t delim
  9233. :nl
  9234. h
  9235. s/\(.\{148\}\)..*/\1/
  9236. t more1
  9237. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9238. p
  9239. n
  9240. b repl
  9241. :more1
  9242. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9243. p
  9244. g
  9245. s/.\{148\}//
  9246. t nl
  9247. :delim
  9248. h
  9249. s/\(.\{148\}\)..*/\1/
  9250. t more2
  9251. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9252. p
  9253. b
  9254. :more2
  9255. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9256. p
  9257. g
  9258. s/.\{148\}//
  9259. t delim
  9260. ' <conf$$subs.awk | sed '
  9261. /^[^""]/{
  9262. N
  9263. s/\n//
  9264. }
  9265. ' >>$CONFIG_STATUS || ac_write_fail=1
  9266. rm -f conf$$subs.awk
  9267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9268. _ACAWK
  9269. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9270. for (key in S) S_is_set[key] = 1
  9271. FS = ""
  9272. }
  9273. {
  9274. line = $ 0
  9275. nfields = split(line, field, "@")
  9276. substed = 0
  9277. len = length(field[1])
  9278. for (i = 2; i < nfields; i++) {
  9279. key = field[i]
  9280. keylen = length(key)
  9281. if (S_is_set[key]) {
  9282. value = S[key]
  9283. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9284. len += length(value) + length(field[++i])
  9285. substed = 1
  9286. } else
  9287. len += 1 + keylen
  9288. }
  9289. print line
  9290. }
  9291. _ACAWK
  9292. _ACEOF
  9293. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9294. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9295. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9296. else
  9297. cat
  9298. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9299. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9300. _ACEOF
  9301. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9302. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9303. # trailing colons and then remove the whole line if VPATH becomes empty
  9304. # (actually we leave an empty line to preserve line numbers).
  9305. if test "x$srcdir" = x.; then
  9306. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9307. h
  9308. s///
  9309. s/^/:/
  9310. s/[ ]*$/:/
  9311. s/:\$(srcdir):/:/g
  9312. s/:\${srcdir}:/:/g
  9313. s/:@srcdir@:/:/g
  9314. s/^:*//
  9315. s/:*$//
  9316. x
  9317. s/\(=[ ]*\).*/\1/
  9318. G
  9319. s/\n//
  9320. s/^[^=]*=[ ]*$//
  9321. }'
  9322. fi
  9323. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9324. fi # test -n "$CONFIG_FILES"
  9325. # Set up the scripts for CONFIG_HEADERS section.
  9326. # No need to generate them if there are no CONFIG_HEADERS.
  9327. # This happens for instance with './config.status Makefile'.
  9328. if test -n "$CONFIG_HEADERS"; then
  9329. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9330. BEGIN {
  9331. _ACEOF
  9332. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  9333. # here-document in config.status, that substitutes the proper values into
  9334. # config.h.in to produce config.h.
  9335. # Create a delimiter string that does not exist in confdefs.h, to ease
  9336. # handling of long lines.
  9337. ac_delim='%!_!# '
  9338. for ac_last_try in false false :; do
  9339. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9340. if test -z "$ac_tt"; then
  9341. break
  9342. elif $ac_last_try; then
  9343. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9344. else
  9345. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9346. fi
  9347. done
  9348. # For the awk script, D is an array of macro values keyed by name,
  9349. # likewise P contains macro parameters if any. Preserve backslash
  9350. # newline sequences.
  9351. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9352. sed -n '
  9353. s/.\{148\}/&'"$ac_delim"'/g
  9354. t rset
  9355. :rset
  9356. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9357. t def
  9358. d
  9359. :def
  9360. s/\\$//
  9361. t bsnl
  9362. s/["\\]/\\&/g
  9363. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9364. D["\1"]=" \3"/p
  9365. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9366. d
  9367. :bsnl
  9368. s/["\\]/\\&/g
  9369. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9370. D["\1"]=" \3\\\\\\n"\\/p
  9371. t cont
  9372. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9373. t cont
  9374. d
  9375. :cont
  9376. n
  9377. s/.\{148\}/&'"$ac_delim"'/g
  9378. t clear
  9379. :clear
  9380. s/\\$//
  9381. t bsnlc
  9382. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9383. d
  9384. :bsnlc
  9385. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9386. b cont
  9387. ' <confdefs.h | sed '
  9388. s/'"$ac_delim"'/"\\\
  9389. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9390. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9391. for (key in D) D_is_set[key] = 1
  9392. FS = ""
  9393. }
  9394. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9395. line = \$ 0
  9396. split(line, arg, " ")
  9397. if (arg[1] == "#") {
  9398. defundef = arg[2]
  9399. mac1 = arg[3]
  9400. } else {
  9401. defundef = substr(arg[1], 2)
  9402. mac1 = arg[2]
  9403. }
  9404. split(mac1, mac2, "(") #)
  9405. macro = mac2[1]
  9406. prefix = substr(line, 1, index(line, defundef) - 1)
  9407. if (D_is_set[macro]) {
  9408. # Preserve the white space surrounding the "#".
  9409. print prefix "define", macro P[macro] D[macro]
  9410. next
  9411. } else {
  9412. # Replace #undef with comments. This is necessary, for example,
  9413. # in the case of _POSIX_SOURCE, which is predefined and required
  9414. # on some systems where configure will not decide to define it.
  9415. if (defundef == "undef") {
  9416. print "/*", prefix defundef, macro, "*/"
  9417. next
  9418. }
  9419. }
  9420. }
  9421. { print }
  9422. _ACAWK
  9423. _ACEOF
  9424. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9425. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9426. fi # test -n "$CONFIG_HEADERS"
  9427. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9428. shift
  9429. for ac_tag
  9430. do
  9431. case $ac_tag in
  9432. :[FHLC]) ac_mode=$ac_tag; continue;;
  9433. esac
  9434. case $ac_mode$ac_tag in
  9435. :[FHL]*:*);;
  9436. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  9437. :[FH]-) ac_tag=-:-;;
  9438. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9439. esac
  9440. ac_save_IFS=$IFS
  9441. IFS=:
  9442. set x $ac_tag
  9443. IFS=$ac_save_IFS
  9444. shift
  9445. ac_file=$1
  9446. shift
  9447. case $ac_mode in
  9448. :L) ac_source=$1;;
  9449. :[FH])
  9450. ac_file_inputs=
  9451. for ac_f
  9452. do
  9453. case $ac_f in
  9454. -) ac_f="$ac_tmp/stdin";;
  9455. *) # Look for the file first in the build tree, then in the source tree
  9456. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9457. # because $ac_f cannot contain ':'.
  9458. test -f "$ac_f" ||
  9459. case $ac_f in
  9460. [\\/$]*) false;;
  9461. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9462. esac ||
  9463. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  9464. esac
  9465. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9466. as_fn_append ac_file_inputs " '$ac_f'"
  9467. done
  9468. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  9469. # use $as_me), people would be surprised to read:
  9470. # /* config.h. Generated by config.status. */
  9471. configure_input='Generated from '`
  9472. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9473. `' by configure.'
  9474. if test x"$ac_file" != x-; then
  9475. configure_input="$ac_file. $configure_input"
  9476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9477. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  9478. fi
  9479. # Neutralize special characters interpreted by sed in replacement strings.
  9480. case $configure_input in #(
  9481. *\&* | *\|* | *\\* )
  9482. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  9483. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9484. *) ac_sed_conf_input=$configure_input;;
  9485. esac
  9486. case $ac_tag in
  9487. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9488. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9489. esac
  9490. ;;
  9491. esac
  9492. ac_dir=`$as_dirname -- "$ac_file" ||
  9493. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9494. X"$ac_file" : 'X\(//\)[^/]' \| \
  9495. X"$ac_file" : 'X\(//\)$' \| \
  9496. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9497. printf "%s\n" X"$ac_file" |
  9498. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9499. s//\1/
  9500. q
  9501. }
  9502. /^X\(\/\/\)[^/].*/{
  9503. s//\1/
  9504. q
  9505. }
  9506. /^X\(\/\/\)$/{
  9507. s//\1/
  9508. q
  9509. }
  9510. /^X\(\/\).*/{
  9511. s//\1/
  9512. q
  9513. }
  9514. s/.*/./; q'`
  9515. as_dir="$ac_dir"; as_fn_mkdir_p
  9516. ac_builddir=.
  9517. case "$ac_dir" in
  9518. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9519. *)
  9520. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  9521. # A ".." for each directory in $ac_dir_suffix.
  9522. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9523. case $ac_top_builddir_sub in
  9524. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9525. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9526. esac ;;
  9527. esac
  9528. ac_abs_top_builddir=$ac_pwd
  9529. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9530. # for backward compatibility:
  9531. ac_top_builddir=$ac_top_build_prefix
  9532. case $srcdir in
  9533. .) # We are building in place.
  9534. ac_srcdir=.
  9535. ac_top_srcdir=$ac_top_builddir_sub
  9536. ac_abs_top_srcdir=$ac_pwd ;;
  9537. [\\/]* | ?:[\\/]* ) # Absolute name.
  9538. ac_srcdir=$srcdir$ac_dir_suffix;
  9539. ac_top_srcdir=$srcdir
  9540. ac_abs_top_srcdir=$srcdir ;;
  9541. *) # Relative name.
  9542. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9543. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9544. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9545. esac
  9546. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9547. case $ac_mode in
  9548. :F)
  9549. #
  9550. # CONFIG_FILE
  9551. #
  9552. case $INSTALL in
  9553. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9554. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9555. esac
  9556. _ACEOF
  9557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9558. # If the template does not know about datarootdir, expand it.
  9559. # FIXME: This hack should be removed a few years after 2.60.
  9560. ac_datarootdir_hack=; ac_datarootdir_seen=
  9561. ac_sed_dataroot='
  9562. /datarootdir/ {
  9563. p
  9564. q
  9565. }
  9566. /@datadir@/p
  9567. /@docdir@/p
  9568. /@infodir@/p
  9569. /@localedir@/p
  9570. /@mandir@/p'
  9571. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9572. *datarootdir*) ac_datarootdir_seen=yes;;
  9573. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9575. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9576. _ACEOF
  9577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9578. ac_datarootdir_hack='
  9579. s&@datadir@&$datadir&g
  9580. s&@docdir@&$docdir&g
  9581. s&@infodir@&$infodir&g
  9582. s&@localedir@&$localedir&g
  9583. s&@mandir@&$mandir&g
  9584. s&\\\${datarootdir}&$datarootdir&g' ;;
  9585. esac
  9586. _ACEOF
  9587. # Neutralize VPATH when '$srcdir' = '.'.
  9588. # Shell code in configure.ac might set extrasub.
  9589. # FIXME: do we really want to maintain this feature?
  9590. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9591. ac_sed_extra="$ac_vpsub
  9592. $extrasub
  9593. _ACEOF
  9594. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9595. :t
  9596. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9597. s|@configure_input@|$ac_sed_conf_input|;t t
  9598. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9599. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9600. s&@srcdir@&$ac_srcdir&;t t
  9601. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9602. s&@top_srcdir@&$ac_top_srcdir&;t t
  9603. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9604. s&@builddir@&$ac_builddir&;t t
  9605. s&@abs_builddir@&$ac_abs_builddir&;t t
  9606. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9607. s&@INSTALL@&$ac_INSTALL&;t t
  9608. $ac_datarootdir_hack
  9609. "
  9610. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9611. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9612. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9613. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9614. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9615. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  9617. which seems to be undefined. Please make sure it is defined" >&5
  9618. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  9619. which seems to be undefined. Please make sure it is defined" >&2;}
  9620. rm -f "$ac_tmp/stdin"
  9621. case $ac_file in
  9622. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9623. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9624. esac \
  9625. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9626. ;;
  9627. :H)
  9628. #
  9629. # CONFIG_HEADER
  9630. #
  9631. if test x"$ac_file" != x-; then
  9632. {
  9633. printf "%s\n" "/* $configure_input */" >&1 \
  9634. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9635. } >"$ac_tmp/config.h" \
  9636. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9637. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9639. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  9640. else
  9641. rm -f "$ac_file"
  9642. mv "$ac_tmp/config.h" "$ac_file" \
  9643. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9644. fi
  9645. else
  9646. printf "%s\n" "/* $configure_input */" >&1 \
  9647. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9648. || as_fn_error $? "could not create -" "$LINENO" 5
  9649. fi
  9650. ;;
  9651. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  9652. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  9653. ;;
  9654. esac
  9655. case $ac_file$ac_mode in
  9656. "default":C)
  9657. case $CONFIG_FILES in *config.make*)
  9658. echo "$config_vars" >> config.make;;
  9659. esac
  9660. test -d bits || mkdir bits ;;
  9661. esac
  9662. done # for ac_tag
  9663. as_fn_exit 0
  9664. _ACEOF
  9665. ac_clean_files=$ac_clean_files_save
  9666. test $ac_write_fail = 0 ||
  9667. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9668. # configure is writing to config.log, and then calls config.status.
  9669. # config.status does its own redirection, appending to config.log.
  9670. # Unfortunately, on DOS this fails, as config.log is still kept open
  9671. # by configure, so config.status won't be able to write to it; its
  9672. # output is simply discarded. So we exec the FD to /dev/null,
  9673. # effectively closing config.log, so it can be properly (re)opened and
  9674. # appended to by config.status. When coming back to configure, we
  9675. # need to make the FD available again.
  9676. if test "$no_create" != yes; then
  9677. ac_cs_success=:
  9678. ac_config_status_args=
  9679. test "$silent" = yes &&
  9680. ac_config_status_args="$ac_config_status_args --quiet"
  9681. exec 5>/dev/null
  9682. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9683. exec 5>>config.log
  9684. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9685. # would make configure fail if this is the last instruction.
  9686. $ac_cs_success || as_fn_exit 1
  9687. fi
  9688. #
  9689. # CONFIG_SUBDIRS section.
  9690. #
  9691. if test "$no_recursion" != yes; then
  9692. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9693. # so they do not pile up.
  9694. ac_sub_configure_args=
  9695. ac_prev=
  9696. eval "set x $ac_configure_args"
  9697. shift
  9698. for ac_arg
  9699. do
  9700. if test -n "$ac_prev"; then
  9701. ac_prev=
  9702. continue
  9703. fi
  9704. case $ac_arg in
  9705. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9706. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9707. ac_prev=cache_file ;;
  9708. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9709. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9710. | --c=*)
  9711. ;;
  9712. --config-cache | -C)
  9713. ;;
  9714. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9715. ac_prev=srcdir ;;
  9716. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9717. ;;
  9718. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9719. ac_prev=prefix ;;
  9720. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9721. ;;
  9722. --disable-option-checking)
  9723. ;;
  9724. *)
  9725. case $ac_arg in
  9726. *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9727. esac
  9728. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9729. esac
  9730. done
  9731. # Always prepend --prefix to ensure using the same prefix
  9732. # in subdir configurations.
  9733. ac_arg="--prefix=$prefix"
  9734. case $ac_arg in
  9735. *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9736. esac
  9737. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9738. # Pass --silent
  9739. if test "$silent" = yes; then
  9740. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9741. fi
  9742. # Always prepend --disable-option-checking to silence warnings, since
  9743. # different subdirs can have different --enable and --with options.
  9744. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9745. ac_popdir=`pwd`
  9746. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9747. # Do not complain, so a configure script can configure whichever
  9748. # parts of a large source tree are present.
  9749. test -d "$srcdir/$ac_dir" || continue
  9750. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9752. printf "%s\n" "$ac_msg" >&6
  9753. as_dir="$ac_dir"; as_fn_mkdir_p
  9754. ac_builddir=.
  9755. case "$ac_dir" in
  9756. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9757. *)
  9758. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  9759. # A ".." for each directory in $ac_dir_suffix.
  9760. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9761. case $ac_top_builddir_sub in
  9762. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9763. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9764. esac ;;
  9765. esac
  9766. ac_abs_top_builddir=$ac_pwd
  9767. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9768. # for backward compatibility:
  9769. ac_top_builddir=$ac_top_build_prefix
  9770. case $srcdir in
  9771. .) # We are building in place.
  9772. ac_srcdir=.
  9773. ac_top_srcdir=$ac_top_builddir_sub
  9774. ac_abs_top_srcdir=$ac_pwd ;;
  9775. [\\/]* | ?:[\\/]* ) # Absolute name.
  9776. ac_srcdir=$srcdir$ac_dir_suffix;
  9777. ac_top_srcdir=$srcdir
  9778. ac_abs_top_srcdir=$srcdir ;;
  9779. *) # Relative name.
  9780. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9781. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9782. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9783. esac
  9784. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9785. cd "$ac_dir"
  9786. # Check for configure.gnu first; this name is used for a wrapper for
  9787. # Metaconfig's "Configure" on case-insensitive file systems.
  9788. if test -f "$ac_srcdir/configure.gnu"; then
  9789. ac_sub_configure=$ac_srcdir/configure.gnu
  9790. elif test -f "$ac_srcdir/configure"; then
  9791. ac_sub_configure=$ac_srcdir/configure
  9792. else
  9793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9794. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9795. ac_sub_configure=
  9796. fi
  9797. # The recursion is here.
  9798. if test -n "$ac_sub_configure"; then
  9799. # Make the cache file name correct relative to the subdirectory.
  9800. case $cache_file in
  9801. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9802. *) # Relative name.
  9803. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9804. esac
  9805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  9806. printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9807. # The eval makes quoting arguments work.
  9808. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9809. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9810. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9811. fi
  9812. cd "$ac_popdir"
  9813. done
  9814. fi
  9815. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9817. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9818. fi